2003-10-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0088c768
AC
12003-10-22 Andrew Cagney <cagney@redhat.com>
2
3 * target.c: Include "gdb_assert.h" (target_read): Call
4 "target_read_partial", not "target_write_partial".
5 (default_read_partial, default_write_partial): New function.
6 (target_read_partial, target_write_partial): Simplify, assume that
7 there is always a read/write method.
8 (update_current_target, add_target): Always set "to_read_partial"
9 and "to_write_partial".
10 (target_write, target_read): Fail on a zero byte transfer.
11 * Makefile.in (target.o): Update dependencies.
12 * target.h: Update copyright date.
13 (target_object): Fix typo.
14
e2d0e7eb
AC
152003-10-22 Andrew Cagney <cagney@redhat.com>
16
17 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
18 multi-arch method, add "targ" parameter.
19 (struct target_ops): Declare.
20 * gdbarch.h, gdbarch.c: Re-generate.
21 * Makefile.in (c-valprint.o): Update dependencies.
22 * arch-utils.h: Update copyright.
23 (convert_from_func_ptr_addr_identity): Declare.
24 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
25 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
26 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
27 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
28 * infcall.c (find_function_addr, call_function_by_hand): Update.
29 * c-valprint.c: Include "target.h".
30 (print_function_pointer_address): Update.
31
f1c07ab0
AC
322003-10-22 Andrew Cagney <cagney@redhat.com>
33
34 * target.c (target_close): New function.
35 (debug_to_close): Use "target_close".
36 (push_target): Use "target_close".
37 (unpush_target): Use "target_close".
38 (pop_target): Use "target_close".
39 * target.h (struct target_ops): Add "to_xclose".
40 (target_open): Delete macro. Move comment to "to_open".
41 (target_close): Replace macro with function that takes a target.
42 * top.c (quit_target): Pass "current_target" to "target_close".
43
5520a790
EZ
442003-10-21 Elena Zannoni <ezannoni@redhat.com>
45
46 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
47 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
48 * symtab.h (lookup_minimal_symbol_text): Update.
49 * breakpoint.c (create_overlay_event_breakpoint,
50 create_longjmp_breakpoint): Update callers.
51 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
52 * symtab.c (find_pc_sect_line): Ditto.
53
caa92b73
AC
542003-10-21 Andrew Cagney <cagney@redhat.com>
55
56 * target.c (errno): Delete extern declaration.
57
aa2a9a3c
JJ
582003-10-20 Jeff Johnston <jjohnstn@redhat.com>
59
60 * ia64-tdep.c: Change all occurrences of
61 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
62 (ia64_frame_prev_register): Minor whitespace change.
63
4beec2b7
MC
642003-10-20 Michael Chastain <mec@shout.net>
65
66 * config/djgpp/fnchange.lst: Add lines for:
67 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
68 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
69 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
70 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
71 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
72 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
73 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
74
92ad9cd9
AC
752003-10-20 Andrew Cagney <cagney@redhat.com>
76
77 * values.c (register_value_being_returned): Update comments. Use
78 "gdbarch_return_value" when available.
79 (using_struct_return): Ditto.
80 (set_return_value): Ditto. Use "gdbarch_return_value" when
81 available.. Print a warning, and not an error, when an unhandled
82 return type is encountered.
83 * infcmd.c: Include "gdb_assert.h".
84 (print_return_value): When gdbarch_return_value_p, and using
85 struct return, assume that the value is not available.
86 * defs.h (return_value_convention): Define.
87 * gdbarch.sh (gdbarch_return_value): New predicate method.
88 * gdbarch.h, gdbarch.c: Re-generate
89 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
90
198beae2
AC
912003-10-20 Andrew Cagney <cagney@redhat.com>
92
93 * symtab.c: Replace "struct sec" with "struct bfd_section".
94 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
95
24d693a6 962003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
97
98 * config/djgpp/fnchange.lst: Add lines for:
99 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
100 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
101 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
102
21ad8dc3
MK
1032003-10-19 Mark Kettenis <kettenis@gnu.org>
104
105 * amd64fbsd-nat.c (fetch_inferior_registers,
106 store_inferior_registers): Remove functions.
107 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
108
cced5e27
MK
1092003-10-18 Mark Kettenis <kettenis@gnu.org>
110
111 Add NetBSD/amd64 native configuration:
112 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
113 * amd64nbsd-tdep.c: New file.
114 * amd64nbsd-nat.c: New file.
115 * amd64bsd-nat.c: New file.
116 * config/i386/nbsd64.mh: New file.
117 * config/i386/nbsd64.mt: New file.
118 * configure.host: Add x86_64-*-netbsd*.
119 * configure.tgt: Add x86_64-*-netbsd*.
120 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
121 New targets.
122 * NEWS (New native configurations): Mention NetBSD/amd64.
123
666de3fd
MC
1242003-10-17 Michael Chastain <mec@shout.net>
125
126 * config/djgpp/fnchange.lst: Remove dead lines for:
127 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
128 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
129 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
130 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
131 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
132 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
133 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
134 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
135 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
136 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
137 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
138 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
139 gdb/config/sparc/tm-sparclite.h,
140 gdb/gdbtk/generic/ChangeLog-2001,
141 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
142 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
143 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
144 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
145 gdb/testsuite/gdb.mi/mi0-var-block.exp,
146 gdb/testsuite/gdb.mi/mi0-var-child.exp,
147 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
148 gdb/testsuite/gdb.mi/mi0-var-display.exp,
149 itcl/iwidgets3.0.0/demos/extfileselectionbox,
150 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
151 itcl/iwidgets3.0.0/demos/fileselectionbox,
152 itcl/iwidgets3.0.0/demos/fileselectiondialog,
153 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
154 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
155 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
156 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
157 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
158 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
159 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
160 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
161 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
162 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
163 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
164 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
165 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
166 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
167 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
168 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
169 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
170 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
171 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
172 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
173 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
174 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
175 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
176 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
177 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
178 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
179 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
180 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
181 itcl/iwidgets3.0.0/demos/html/shell.n.html,
182 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
183 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
184 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
185 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
186 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
187 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
188 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
189 itcl/iwidgets3.0.0/demos/scrolledcanvas,
190 itcl/iwidgets3.0.0/demos/scrolledframe,
191 itcl/iwidgets3.0.0/demos/scrolledhtml,
192 itcl/iwidgets3.0.0/demos/scrolledlistbox,
193 itcl/iwidgets3.0.0/demos/scrolledtext,
194 itcl/iwidgets3.0.0/demos/selectionbox,
195 itcl/iwidgets3.0.0/demos/selectiondialog,
196 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
197 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
198 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
199 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
200 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
201 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
202 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
203 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
204 itcl/iwidgets3.0.0/doc/scrolledframe.n,
205 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
206 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
207 itcl/iwidgets3.0.0/doc/scrolledtext.n,
208 itcl/iwidgets3.0.0/doc/selectionbox.n,
209 itcl/iwidgets3.0.0/doc/selectiondialog.n,
210 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
211 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
212 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
213 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
214 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
215 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
216 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
217 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
218 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
219 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
220 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
221 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
222 itcl/iwidgets3.0.0/generic/selectionbox.itk,
223 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
224 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
225 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
226 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
227 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
228 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
229 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
230 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
231 itcl/iwidgets3.0.0/tests/scrolledframe.test,
232 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
233 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
234 itcl/iwidgets3.0.0/tests/scrolledtext.test,
235 itcl/iwidgets3.0.0/tests/selectionbox.test,
236 itcl/iwidgets3.0.0/tests/selectiondialog.test,
237 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
238 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
239 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
240 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
241 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
242 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
243 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
244 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
245 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
246 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
247 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
248 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
249 tk/mac/tkMacProjects.sit.hqx.
250
1e3ff5ad
AC
2512003-10-17 Andrew Cagney <cagney@redhat.com>
252
8db32d44
AC
253 * target.c (target_section_by_addr): New function.
254 (do_xfer_memory): Use "target_section_by_addr".
255 * target.h (target_section_by_addr): Declare.
256
1e3ff5ad
AC
257 * target.h (struct target_ops): Add "to_read_partial" and
258 "to_write_partial", delete "to_query".
259 (target_read_partial, target_write_partial): Declare.
260 (target_read, target_write): Declare.
261 (target_query): Delete macro.
262 * target.c (target_read_partial): New function.
263 (target_write_partial, target_read, target_write): New function.
264 (update_current_target): Delete inheritance of "to_query". Add
265 comments about "to_read_partial" and "to_write_partial".
266 (debug_to_partial_read, debug_to_partial_write): New functions.
267 (debug_to_query): Delete function.
268 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
269 instead of "to_query".
270 * remote.c (remote_read_partial): Replace "remote_query".
271 (init_remote_ops): Set "to_read_partial" instead of "to_query".
272 (init_remote_async_ops): Ditto.
273 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
274 "target_read_partial" instead of "target_query".
275 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
276 Use "target_read_partial" instead of "target_query".
277
48c66725
JJ
2782003-10-17 Jeff Johnston <jjohnstn@redhat.com>
279
280 * frame.h (struct frame_id): Add new field: special_addr.
281 (frame_id_build_special): New prototype.
282 * frame.c (frame_id_build_special): New function.
283 (frame_id_build): Change to call frame_id_build_special().
284 (frame_id_eq): Change to also test special_addr field.
285 (frame_id_inner): Update comment.
286
7998dfc3
AC
2872003-10-17 Andrew Cagney <cagney@redhat.com>
288
289 * target.c (update_current_target): Perform the target cleanup.
290 Put the target stack beneath the squashed "current_target".
291 (add_target): Delete disabled call to "cleanup_target".
292 (cleanup_target): Delete function.
293 (push_target, unpush_target): Do not call "cleanup_target".
294
9c04404e 2952003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
296
297 * target.c (target_stack): Change to a static target_ops.
298 (update_current_target): Walk the "struct target_ops" stack.
299 (pop_target, do_xfer_memory, target_info): Ditto.
300 (find_target_beneath): Ditto.
301 (push_target): Rewrite to use the "struct target_ops" stack.
302 (unpush_target): Ditto.
303 * target.h (struct target_stack_item): Delete definition.
304 (target_stack): Delete declaration.
305 (struct target_ops): Add field "beneath".
306
c98a2b49 3072003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
308
309 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
310 declaration.
311 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
312 (h8300_examine_prologue): Use h8300_normal_mode flag
313 (h8300_gdbarch_init): Set architecture info for normal mode
314
506fb367
DJ
3152003-10-16 Daniel Jacobowitz <drow@mvista.com>
316
317 * remote.c (remote_protocol_vcont): New variable.
318 (set_remote_protocol_vcont_packet_cmd): New function.
319 (show_remote_protocol_vcont_packet_cmd): New function.
320 (init_all_packet_configs): Handle remote_protocol_vcont.
321 (remote_vcont_probe): New function.
322 (remote_vcont_resume): New function.
323 (remote_resume): Use it.
324 (remote_async_resume): Call remote_resume.
325 (_initialize_remote): Add verbose-resume packet commands.
326
65815ea1
AC
3272003-10-16 Andrew Cagney <cagney@redhat.com>
328
329 * infrun.c (handle_inferior_event): Add comment about
330 "frame_id_inner" being too weak.
331
40324f1b
EZ
3322003-10-16 Elena Zannoni <ezannoni@redhat.com>
333
334 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
335 second parameter, which is always null. Remove
336 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
337 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
338 accordingly.
339 * somsolib.c (som_solib_create_inferior_hook,
340 som_solib_desire_dynamic_linker_symbols): Update callers.
341 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
342
3432003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
344
345 * remote-m32r-sdi.c : New file, interface to m32r on-chip
346 debug interface, SDI (Scalable Debug Interface).
347 * NEWS: Mention m32r SDI protocol was supported.
348 * Makefile.in (remote-m32r-sdi.o): Add build rule.
349 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
350
51931cbb
JJ
3512003-10-15 Jeff Johnston <jjohnstn@redhat.com>
352
353 * ia64-linux-tdep.c: Include gdbcore.h.
354 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
355 (ia64_linux_sigcontext_register_addr): Find the address of the
356 sigcontext area stored in the sigframe instead of using
357 a magic offset constant.
358
84e7fd53
AC
3592003-10-15 Andrew Cagney <cagney@redhat.com>
360
361 * remote.c (remote_search): Delete function.
362 * target.h (target_search): Delete disabled macro.
363 (struct target_ops): Delete disabled field "to_search".
364
0f4d7c52
KB
3652003-10-14 Kevin Buettner <kevinb@redhat.com>
366
367 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
368 instead of deprecated_inside_entry_file().
369
2e952408
CV
3702003-10-14 Corinna Vinschen <vinschen@redhat.com>
371
372 * sh-tdep.c: Fix copy/paste hangover in comment.
373 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
374 mode.
375 (sh3e_sh4_extract_return_value): Ditto.
376
7e86466e
RH
3772003-10-13 Richard Henderson <rth@redhat.com>
378
379 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
380 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
381 match c_val_print a bit closer.
382
46a16dba
KB
3832003-10-13 Kevin Buettner <kevinb@redhat.com>
384
385 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
386 (frv_gdbarch_adjust_breakpoint_address): New function.
387 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
388 method.
389
76897487
KB
3902003-10-13 Kevin Buettner <kevinb@redhat.com>
391
392 * breakpoint.h (struct breakpoint): Add new member
393 ``requested_address''.
394 * breakpoint.c (breakpoint_adjustment_warning)
395 (adjust_breakpoint_address): New static functions.
396 (print_it_typical): Issue warning if breakpoint's address is different
397 from its requested address.
398 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
399 (breakpoint_re_set_one): Set breakpoint's
400 ``requested_address'' field. Set ``address'' field to the
401 result of calling adjust_breakpoint_address() on the requested
402 address.
403
a1131521
KB
4042003-10-13 Kevin Buettner <kevinb@redhat.com>
405
406 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
407 * gdbarch.h, gdbarch.c: Regenerate.
408
6ce6d90f
MK
4092003-10-11 Mark Kettenis <kettenis@gnu.org>
410
155c1d33
MK
411 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
412 TDEP->sc_num_regs.
413
8a96bc77
MK
414 * i386fbsd-tdep.c: New file.
415 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
416 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
417 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
418 i386bsd-tdep.c.
419 (_initialize_i386fbsd_tdep): New function.
420 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
421 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
422 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
423 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
424 TDEP->sc_num_regs.
425 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
426 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
427 to initialize TDEP->sc_num_regs.
428 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
429 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
430 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
431 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
432 FreeBSD ELF OS/ABI's here.
433 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
434 (i386fbsd-tdep.o): New target.
435 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
436 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
437
477f40d1
MK
438 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
439 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
440 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
441 in initialization of TDEP->sc_num_regs.
442
c6b33596
MK
443 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
444 (x86_64_init_abi): Initialize regset_from_core_section if
445 appropriate.
446
8446b36a
MK
447 * i386-tdep.c (i386_regset_from_core_section): New function.
448 (i386_gdbarch_init): Initialize regset_from_core_section if
449 appropriate.
450 * i386-tdep.h (i386_regset_from_core_section): New declaration.
451
c783cbd6
MK
452 * i386-tdep.h (struct regset): Declare opaque.
453
6ce6d90f
MK
454 * gdbarch.sh (regset_from_core_section): New method.
455 (struct regset): Declare opaque.
456 * gdbarch.c, gdbarch.h: Regenerated.
457
b98ed7be
AM
4582003-10-11 Alan Modra <amodra@bigpond.net.au>
459
460 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
461 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
462 Correct test for pc within section.
463
f6214256
MK
4642003-10-11 Mark Kettenis <kettenis@gnu.org>
465
466 * gdbarch.sh: Remove trailing whitepsace from comments.
467
a8f4cde1
RM
4682003-10-08 Roland McGrath <roland@redhat.com>
469
470 * gcore.c (make_mem_sec): Function removed, folded into ...
471 (gcore_create_callback): ... here. To omit a section, clear its
472 SEC_LOAD bit rather than zeroing its size.
473 Omit read-only sections only if they correspond to a known disk file.
474 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
475
74276724
MS
4762003-10-10 Michael Snyder <msnyder@redhat.com>
477
478 * d10v-tdep.c: Fix typo in comment.
479
e754ae69
AC
4802003-10-10 Andrew Cagney <cagney@redhat.com>
481
482 * rs6000-tdep.c (e500_store_return_value): Delete function.
483 (e500_extract_return_value): Delete function.
484 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
485 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
486 "ppc_sysv_abi_restore_return_value" where applicable.
487 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
488 (ppc_sysv_abi_extract_return_value): Declare.
489 (ppc_sysv_abi_broken_store_return_value): Declare.
490 (ppc_sysv_abi_broken_extract_return_value): Declare.
491 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
492 * ppc-sysv-tdep.c (return_value_convention): Move definition to
493 start of file.
494 (do_ppc_sysv_return_value): New function.
495 (ppc_sysv_abi_extract_return_value): New function.
496 (ppc_sysv_abi_store_return_value): New function.
497 (ppc_sysv_abi_broken_extract_return_value): New function.
498 (ppc_sysv_abi_broken_store_return_value): New function.
499 (ppc_sysv_abi_use_struct_convention): Call
500 do_ppc_sysv_return_value.
501
8d4ce20a
JB
5022003-10-10 J. Brobecker <brobecker@gnat.com>
503
504 * blockframe.c (inside_main_func): No longer use symbol_lookup()
505 to lookup the main function symbol.
506
afce3d2a
CV
5072003-10-10 Corinna Vinschen <vinschen@redhat.com>
508
509 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
510 types correctly.
511 (sh_push_dummy_call_fpu): Fix argument passing rules.
512 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
513 float types.
514 (sh3e_sh4_store_return_value): Ditto.
515
7fe958be
EZ
5162003-10-10 Elena Zannoni <ezannoni@redhat.com>
517
518 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
519 comment.
520
3f997a97
CV
5212003-10-10 Corinna Vinschen <vinschen@redhat.com>
522
523 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
524 more readable code. Accomodate passing of bitfields.
525
8be9034a
AC
5262003-10-10 Andrew Cagney <cagney@redhat.com>
527
528 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
529 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
530 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
531 * ppc-sysv-tdep.c: Include "gdb_assert.h".
532 (ppc64_sysv_abi_push_dummy_call): New function.
533 (ppc64_sysv_abi_broken_push_dummy_call): New function.
534 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
535 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
536
85a453d5
KI
5372003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
538
539 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
540 * README: Ditto.
541 * d10v-tdep.c: Ditto.
542 * h8300-tdep.c: Ditto.
543 * remote-e7000.c: Ditto.
544 * remote-hms.c: Ditto.
545 * ser-e7kpc.c: Ditto.
546 * sh-stub.c: Ditto.
547 * sh-tdep.c: Ditto.
548 * sh-tdep.h: Ditto.
549 * sh3-rom.c: Ditto.
550 * sh64-tdep.c: Ditto.
551 * top.c: Ditto.
552 * wince.c: Ditto.
553 * config/d10v/d10v.mt: Ditto.
554 * config/sh/embed.mt: Ditto.
555 * config/sh/linux.mt: Ditto.
556 * config/sh/tm-linux.h: Ditto.
557 * config/sh/tm-sh.h: Ditto.
558 * config/sh/wince.mt: Ditto.
559
221c12ff
AC
5602003-10-09 Andrew Cagney <cagney@redhat.com>
561
562 * ppc-tdep.h (struct type): Declare opaque.
563 * x86-64-tdep.h (struct regcache): Declare opaque.
564 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
565 coding style.
566
ef5200c1
AC
5672003-10-09 Andrew Cagney <cagney@redhat.com>
568
569 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
570 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
571 (SOFTWARE_SINGLE_STEP_P): Ditto.
572 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
573 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
574 (SOFTWARE_SINGLE_STEP_P): Ditto.
575 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
576 software_single_step to rs6000_software_single_step.
a8f4cde1 577
9644bbdd
AC
5782003-10-09 Andrew Cagney <cagney@redhat.com>
579
580 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
581
db72fa6b
MS
5822003-10-09 Michael Snyder <msnyder@redhat.com>
583
f3efb16c
MS
584 * frame.h: Fix typo in comment.
585 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
586 * d10v-tdep.c: Random whitespace/comment tweaks.
587
9a5cef92
EZ
5882003-10-09 Elena Zannoni <ezannoni@redhat.com>
589
590 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 591 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 592 on stack.
a8f4cde1 593
9a5cef92
EZ
594 Based on input by Stephen Clarke (stephen.clarke@superh.com):
595 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
596 in detail.
a8f4cde1 597
0f317a0c
DJ
5982003-10-09 Daniel Jacobowitz <drow@mvista.com>
599
600 * remote-mips.c (mips_initialize): Remove unneeded call to
601 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
602
bbab2f46
DJ
6032003-10-09 Daniel Jacobowitz <drow@mvista.com>
604
605 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
606 a memory pointer.
607
550950b8
JJ
6082003-10-08 Jeff Johnston <jjohnstn@redhat.com>
609
610 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
611 for any lwp we resume.
612 (running_callback): Add lwps that have pending status events
613 against them to be considered running.
614
15c69bc7
KI
6152003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
616
617 * m32r-tdep.c : Include "dis-asm.h".
618 * Makefile.in (m32r-tdep.o): Update dependencies.
619
51065942
JB
6202003-10-06 J. Brobecker <brobecker@gnat.com>
621
622 * completer.h (get_gdb_completer_word_break_characters): Delete.
623 * completer.c: include language.h.
624 (gdb_completer_word_break_characters): Delete.
625 (get_gdb_completer_word_break_characters): Delete.
626 (location_completer): Use the word break characters of the current
627 language.
628 (complete_line): Likewise.
629 (line_completion_function): Likewise.
630 (skip_quoted_chars): Likewise.
631 * Makefile.in (completer.o): Add dependency on language.h.
632 * top.c (init_main): Set the readline word break characters
633 to GDB's default word break characters.
634
6084f43a
JB
6352003-10-06 J. Brobecker <brobecker@gnat.com>
636
637 * language.h (language_defn): new field, la_word_break_characters.
638 * language.c (unknown_language_defn): Set new field to
639 default_word_break_characters.
640 (auto_language_defn): Likewise.
641 (local_language_defn): Likewise.
642 * ada-lang.c (ada_language_defn): Likewise.
643 * c-lang.c (c_language_defn): Likewise.
644 (cplus_language_defn): Likewise.
645 (asm_language_defn): Likewise.
646 (minimal_language_defn): Likewise.
647 * f-lang.c (f_language_defn): Likewise.
648 * jv-lang.c (java_language_defn): Likewise.
649 * m2-lang.c (m2_language_defn): Likewise.
650 * objc-lang.c (objc_language_defn): Likewise.
651 * p-lang.c (pascal_language_defn): Likewise.
652 * scm-lang.c (scm_language_defn): Likewise.
653
944fcfab
AC
6542003-10-06 Andrew Cagney <cagney@redhat.com>
655
656 * ppc-sysv-tdep.c: Re-indent.
657
9f0a5303
JB
6582003-10-06 J. Brobecker <brobecker@gnat.com>
659
660 * language.h (default_word_break_characters): Add prototype.
661 * language.c (default_word_break_characters): New function.
662
7270b6ed
AS
6632003-10-06 Andreas Schwab <schwab@suse.de>
664
665 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
666 with %eax.
667
a5d61f66
AC
6682003-10-06 Andrew Cagney <cagney@redhat.com>
669
670 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
671 "h8500-tdep.c".
672 (z8k-tdep.o): Delete custom build rule.
673
28a86f5c
AC
6742003-10-06 Andrew Cagney <cagney@redhat.com>
675
1bfd8a83
AC
676 * Makefile.in: Update all dependencies.
677
17144ef8
AC
678 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
679 No longer list PA as as obsolete candidate. List m32r as
680 broken instead of obsolete.
a8f4cde1 681
a5679ae5
AC
682 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
683 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
684 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
685 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
686 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
687 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
688 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
689 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
690 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
691 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
692 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
693 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
694 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
695 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
696 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
697 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
698 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
699 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
700 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
701 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
702 * config/z8k/z8k.mt: Ditto.
703
4a8269c0
AC
704 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
705 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
706 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
707 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
708 sparclite were removed.
709 * configure.host, configure.tgt: Remove corresponding tuples.
710
41989fcd
AC
711 * breakpoint.c, breakpoint.h: Remove obsolete code.
712 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
713 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
714 * stabsread.h, xcoffread.c: Ditto.
715
28a86f5c
AC
716 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
717 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
718 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
719 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
720
4efdaa0d
DL
7212003-10-06 David Lecomber <dsl@sources.redhat.com>
722
723 * f-valprint.c: Reformatting
724
ae53de43
MK
7252003-10-06 Mark Kettenis <kettenis@gnu.org>
726
a8bb57e7
MK
727 * x86-64-tdep.c: Remove duplicate comment.
728
ae53de43
MK
729 * x86-64-tdep.c (x86_64_store_return_value): Don't use
730 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
731 names for return values. This fixes a bug since we looked at %rbx
732 instead of %rdx.
733
473f17b0
MK
7342003-10-05 Mark Kettenis <kettenis@gnu.org>
735
2c261fae
MK
736 * x86-64-tdep.c: Include "regset.h".
737
473f17b0
MK
738 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
739 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
740 sizeof_fpregset.
741 * i386-tdep.c: Include "regset.h".
742 (i386_supply_gregset): New function.
743 (i386_supply_fpregset): New function.
744 (i386_gdbarch_init): Initialze register set-related members of
745 TDEP.
746 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
747 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
748
afd48b75
AC
7492003-10-03 Andrew Cagney <cagney@redhat.com>
750
751 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
752 set extract_return_value, store_return_value and
753 use_struct_convention to ppc64_sysv_abi_extract_return_value,
754 ppc64_sysv_abi_store_return_value and
755 ppc64_sysv_abi_use_struct_convention.
756 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
757 (ppc64_sysv_abi_store_return_value): Declare.
758 (ppc64_sysv_abi_use_struct_convention): Declare.
759 * ppc-sysv-tdep.c (enum return_value_convention): Define.
760 (ppc64_sysv_abi_extract_return_value): New function.
761 (ppc64_sysv_abi_store_return_value): New function.
762 (ppc64_sysv_abi_use_struct_convention): New function.
763 (ppc64_sysv_abi_return_value): New function.
764
9b540880
AC
7652003-10-03 Andrew Cagney <cagney@redhat.com>
766
767 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
768 convert a descriptor to a function when it's in the ".opd"
769 section.
770
8748518b
CV
7712003-10-03 Corinna Vinschen <vinschen@redhat.com>
772
773 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
774 reg_size to keep GCC silent.
775
0fd85043
CV
7762003-10-03 Corinna Vinschen <vinschen@redhat.com>
777
778 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
779 base for DW_EH_PE_textrel encodings.
780 (read_encoded_value): Add a DW_EH_PE_textrel case.
781 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
782 section.
783
37b517aa
MK
7842003-10-03 Mark Kettenis <kettenis@gnu.org>
785
786 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
787
12c266ea
AC
7882003-10-02 Andrew Cagney <cagney@redhat.com>
789
790 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
791 REGISTER_RAW_SIZE.
792 * gdbarch.h, gdbarch.c: Re-generate.
793 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
794 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
795 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
796 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
797 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
798 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
799 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
800 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
801 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
802 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
803 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
804 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
805 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
806 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
807 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
808 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 809
78ba4af6
JB
8102003-10-02 Jim Blandy <jimb@redhat.com>
811
812 * dwarf2read.c (struct die_info): Doc fix.
813
617daa0e
CV
8142003-10-02 Corinna Vinschen <vinschen@redhat.com>
815
816 * sh-tdep.c: Running thru gdb_indent.sh.
817
e5e33cd9
CV
8182003-10-02 Corinna Vinschen <vinschen@redhat.com>
819
820 * sh-tdep.c (sh_justify_value_in_reg): New function.
821 (sh_stack_allocsize): Ditto.
822 (flt_argreg_array): New array used for floating point argument
823 passing.
824 (sh_init_flt_argreg): New function.
a8f4cde1 825 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
826 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
827 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
828 Fix argument passing strategy.
829 (sh_push_dummy_call_nofpu): Ditto.
830
5fe830e4
AC
8312003-10-01 Andrew Cagney <cagney@redhat.com>
832
833 * value.h (register_value_being_returned): Declare. Replace
834 "value_being_returned".
835 * infcall.c (call_function_by_hand): Use
836 register_value_being_returned.
837 * infcmd.c (print_return_value): Call
838 "register_value_being_returned", handle struct return locally.
839 * values.c (register_value_being_returned): New function. Replace
840 "value_being_returned".
a8f4cde1 841
5fe830e4 8422003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
843
844 * linux-proc.c (linux_do_registers): New function.
845 (linux_make_note_section): Use linux_do_registers in case of
846 single threaded inferior programs.
847
64f395bf
AC
8482003-10-01 Andrew Cagney <cagney@redhat.com>
849
850 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
851 use STRUCT_ADDR. When not using "struct return convention", pass
852 "0" to "value_being_returned". Add FIXMEs.
853 * infcmd.c (print_return_value): Pass an explicit 0/1 to
854 value_being_returned. Add comments.
855 * values.c (value_being_returned): Add fixme.
856 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
857 (hppa_value_returned_from_stack): Add FIXME.
858
639d11d3
DC
8592003-09-30 David Carlton <carlton@kealia.com>
860
861 * dwarf2read.c (struct die_info): Add 'parent' field; replace
862 'has_children' and 'next' by 'child' and 'sibling'.
863 (read_comp_unit): Rework algorithm, breaking body into
864 read_die_and_children and read_die_and_siblings.
865 (read_die_and_children, read_die_and_siblings): New.
866 (read_full_die): Add 'has_children' argument; set it instead of
867 the die's 'has_children' field. Minor formatting cleanup.
868 (free_die_list): Use die->child and die->sibling instead of
869 die->next.
870 (dump_die_list): Ditto.
871 (sibling_die): Use die->sibling.
872 (psymtab_to_symtab_1): Use die's 'child' field in place of its
873 'has_children' and 'next' fields.
a8f4cde1
RM
874 (process_die, read_file_scope, read_func_scope)
875 (read_lexical_block_scope, read_structure_scope)
876 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
877 (read_namespace, read_subroutine_type, dump_die): Ditto.
878
5bffac25
AC
8792003-09-30 Andrew Cagney <cagney@redhat.com>
880
881 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
882 to 224, not 220.
883
f30992d4
AC
8842003-09-30 Andrew Cagney <cagney@redhat.com>
885
886 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
887 REGISTER_VIRTUAL_SIZE.
888 * gdbarch.h, gdbarch.c: Regenerate.
889 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
890 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
891 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
892
2e092625
AC
8932003-09-29 Andrew Cagney <cagney@redhat.com>
894
895 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
896 DEPRECATED_REGISTER_VIRTUAL_TYPE.
897 * gdbarch.h, gdbarch.c: Regenerate.
898 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
899 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
900
901 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
902 * remote-vxmips.c (vx_read_register): Ditto.
903 * remote-vx68.c (vx_read_register): Ditto.
904 * gnu-nat.c (inf_validate_procs): Ditto.
905
7a5dd6ee
JB
9062003-09-29 J. Brobecker <brobecker@gnat.com>
907
908 * infcall.c (call_function_by_hand): Fix build failure
909 introduced in the previous change to this file.
910
1fe43d45
AC
9112003-09-29 Andrew Cagney <cagney@redhat.com>
912
913 * NEWS: Mention Objective-C.
914
e28a332c
JG
9152003-09-29 Jerome Guitton <guitton@act-europe.fr>
916
917 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
918 test if the register has been saved on the stack.
919 (arm_scan_prologue_cache): When analysing the instruction
920 "str lr, [sp, #-4]", save the address where lr has been stored.
921
9ff63c35
AC
9222003-09-28 Andrew Cagney <cagney@redhat.com>
923
7f5f525d
AC
924 * frame.c (frame_read_unsigned_register): Delete function.
925 * frame.h (frame_read_unsigned_register): Delete declaration.
926 * sparc-tdep.c (sparc_init_extra_frame_info): Use
927 get_frame_register_unsigned.
928 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
929 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
930 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 931
7f5f525d
AC
932 * frame.h (frame_read_register): Delete declaration.
933 * frame.c (frame_read_register): Delete function.
934 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
935 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
936 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
937 * mips-tdep.c (mips_register_to_value): Ditto.
938 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
939 * d10v-tdep.c (d10v_print_registers_info): Ditto.
940
941 * frame.c (frame_read_signed_register): Delete function.
942 (frame_read_unsigned_register): Update comments.
943 * frame.h (frame_read_signed_register): Delete declaration.
944 * h8300-tdep.c (h8300_print_register): Use
945 get_frame_register_signed.
946 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
947
9ff63c35
AC
948 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
949 Rename VALUE_RETURNED_FROM_STACK.
950 * infcmd.c (print_return_value): Update.
951 * infcall.c (call_function_by_hand): Update.
952
41d041d6
MK
9532003-09-28 Mark Kettenis <kettenis@gnu.org>
954
955 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
956 regcache argument and reverse the order of the other two
957 arguments. Remove local regcache variable. Determine
958 architecture from REGCACHE. Update comments.
959 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
960 reverse the order of the other two arguments. Remove local
961 regcache variable. Determine architecture from REGCACHE. Update
962 comments.
963 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
964 prototypes. Update comments.
965 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
966 comment.
967 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
968 Update.
969 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
970 * i386-interix-nat.c (supply_fpregset): Update.
971 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
972 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
973 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
974 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
975 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
976 Update.
977 * i386obsd-tdep.c (fetch_core_registers): Update.
978 * i386v4-nat.c (supply_fpregset): Update.
979 * x86-64-linux-nat.c (supply_fpregset): Update.
980 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 981
1cb97e17
MK
9822003-09-27 Mark Kettenis <kettenis@gnu.org>
983
5716833c
MK
984 * i386-tdep.h: Put opaque declarations in alphabetical
985 order. Remove spurious whitespace.
986 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
987 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
988 * i386-tdep.c (MM0_REGNUM): Remove define.
989 (i386_mmx_regnum_p): Add gdbarch argument.
990 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
991 Rewrite using new macro definitions for FPU/SSE registers.
992 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
993 definitions from i387-tdep.h.
994 (i386_register_name): Update.
995 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
996 new macro definitions for FPU/SSE registers.
997 (i386_extract_return_value): Determine whether floating-point
998 registers are present by examining REGCACHE's architecture.
999 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1000 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1001 FPU/SSE registers.
1002 (i386_register_type): Update.
1003 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1004 definitions for FPU registers. Use REGCACHE's architecture to
1005 determine the appropriate register numbers.
1006 (i386_pseudo_register_read, i386_pseudo_register_write,
1007 i386_register_reggroup_p): Update.
1008 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1009 TDEP->mm0_regnum.
1010 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1011 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1012 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1013 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1014 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1015 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1016 *' to `void *'.
1017 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1018 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1019 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1020 definitions for FPU/SSE registers.
1021 (FXSAVE_MXCSR_ADDR): New define.
1022 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1023 TDEP->mm0_regnum.
1024 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1025 (I387_ST0_REGNUM): Define.
1026
41d35cb0
MK
1027 * regcache.h (get_regcache_arch): New prototype.
1028 * regcache.c (get_regcache_arch): New function.
1029
54e74f72
MK
1030 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1031 whitespace.
1032
1cb97e17
MK
1033 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1034 Initialize using ARRAY_SIZE.
1035
0968aa8c
AC
10362003-09-27 Andrew Cagney <cagney@redhat.com>
1037
1038 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1039 "init_frame_pc_default".
1040 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1042 * vax-tdep.c (vax_gdbarch_init): Update.
1043 * v850-tdep.c (v850_gdbarch_init): Update.
1044 * sh64-tdep.c (sh64_gdbarch_init): Update.
1045 * s390-tdep.c (s390_gdbarch_init): Update.
1046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1047 * mcore-tdep.c (mcore_gdbarch_init): Update.
1048 * h8300-tdep.c (h8300_gdbarch_init): Update.
1049 * cris-tdep.c (cris_gdbarch_init): Update.
1050 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1051
54c84734
MK
10522003-09-26 Mark Kettenis <kettenis@gnu.org>
1053
1054 * regset.h: New file.
1055 * Makefile.in (regset_h): Add.
1056
1b1d3794
AC
10572003-09-25 Andrew Cagney <cagney@redhat.com>
1058
1059 * frame.h (deprecated_frame_saved_regs): Rename
1060 get_frame_saved_regs.
1061 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1062 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1063 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1064 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1065 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1066
e6beb428
AC
10672003-09-25 Andrew Cagney <cagney@redhat.com>
1068
1069 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1070 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1071 and Java.
1072 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1073 arm*-*-* do not use the new frame code.
1074
710122da
DC
10752003-09-25 David Carlton <carlton@kealia.com>
1076
1077 * c-exp.y: Remove 'register' declarations.
1078 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1079
79c2c32d
DC
10802003-09-25 David Carlton <carlton@kealia.com>
1081
1082 * c-exp.y: Include cp-support.h. Add qualified_type.
1083 (yylex): Delete nested type hack; add comments.
1084 * cp-namespace.c (cp_lookup_nested_type): New function.
1085 * cp-support.h: Declare cp_lookup_nested_type.
1086 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1087 instead of value_struct_elt_for_reference.
1088 * valops.c: Include cp-support.h.
1089 (value_aggregate_elt): New function.
1090 (value_namespace_elt): Ditto.
1091 (value_struct_elt_for_reference): Make static.
1092 * value.h: Delete declaration of value_struct_elt_for_reference;
1093 add declaration for value_aggregate_elt.
1094 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1095 (valops.o): Ditto.
1096
898c62f5
DJ
10972003-09-25 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * stack.c: Include "reggroups.h".
1100 (frame_info): Only display registers in all_reggroup.
1101 * Makefile.in (stack.o): Update dependencies.
1102
28cd8767
JG
11032003-09-25 Jerome Guitton <guitton@act-europe.fr>
1104
1105 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1106 "add ip, sp #n" in the prologue.
1107 (arm_scan_prologue): Ditto.
1108
a4ab2b5d
JG
11092003-09-25 Jerome Guitton <guitton@act-europe.fr>
1110
1111 * MAINTAINERS (write after approval): Add myself.
1112
3f244638
AS
11132003-09-25 Andreas Schwab <schwab@suse.de>
1114
1115 * m68k-tdep.c: Include "dwarf2-frame.h".
1116 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1117 * Makefile.in (m68k-tdep.o): Update dependencies.
1118
1c0159e0
CV
11192003-09-25 Corinna Vinschen <vinschen@redhat.com>
1120
1121 * sh-tdep.c (struct frame_extra_info): Remove.
1122 (struct sh_frame_cache): New structure.
1123 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1124 (GET_TARGET_REG): Ditto but target register.
1125 (GET_PUSHED_REG): Remove.
1126 (IS_MOV_ARG_TO_REG): New macro.
1127 (IS_MOV_ARG_TO_IND_R14): New macro.
1128 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1129 (IS_MOVW_PCREL_TO_REG): New macro.
1130 (IS_MOVL_PCREL_TO_REG): New macro.
1131 (IS_SUB_REG_FROM_SP): New macro.
1132 (IS_ARG_MOV): Remove.
1133 (IS_MOV_TO_R14): Remove.
1134 (IS_RESTORE_FP): New macro.
1135 (IS_RTS): New macro.
1136 (IS_LDS): New macro.
1137 (IS_MOV_FP_SP): New macro.
1138 (IS_ADD_REG_TO_FP): New macro.
1139 (IS_ADD_IMM_FP): New macro.
1140 (sh_skip_prologue_hard_way): Remove.
1141 (sh_saved_pc_after_call): Remove.
1142 (sh_frame_chain): Remove.
1143 (sh_find_callers_reg): Remove.
a8f4cde1 1144 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1145 (sh_fp_frame_init_saved_regs): Remove.
1146 (sh_init_extra_frame_info): Remove.
1147 (sh_analyze_prologue): New function.
1148 (sh_skip_prologue): Remove deprecated code. Rely on new function
1149 sh_analyze_prologue when after_prologue fails.
1150 (sh_frame_saved_pc): Remove.
1151 (sh_alloc_frame_cache): New function.
1152 (sh_frame_cache): Ditto.
1153 (sh_frame_prev_register): Ditto.
1154 (sh_frame_this_id): Ditto.
1155 (sh_frame_unwind): New structure defining the heuristic frame
1156 sniffer interface.
1157 (sh_frame_sniffer): New function.
1158 (sh_unwind_sp): Ditto.
1159 (sh_unwind_pc): Ditto.
1160 (sh_unwind_dummy_id): Ditto.
1161 (sh_frame_base_address): Ditto.
1162 (sh_frame_base): New structure defining new frame base code.
1163 (sh_in_function_epilogue_p): New function.
1164 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1165 code and to call all new code instead. Initialize dwarf2 and
1166 heuristic frame sniffer.
1167
5f9769d1
PH
11682003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1169
a8f4cde1
RM
1170 * parser-defs.h (struct exp_descriptor): New definition, containing
1171 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1172 evaluating expressions.
1173 (exp_descriptor_standard): Declare new variable.
1174 (print_subexp): Make global and declare here (from expprint.c).
1175 (dump_subexp): Ditto.
1176 (dump_subexp_body_standard): Declare.
1177 (operator_length_standard): Declare.
1178 (op_name_standard): Declare.
1179 (print_subexp): Declare.
1180 (print_subexp_standard): Declare.
1181
1182 * language.h (struct language_defn): Add la_exp_desc field to hold
1183 pointer to table for language-specific operators.
1184 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1185
1186 * parse.c (operator_length): Move most code to new
5f9769d1 1187 operator_length_standard function. Use language-specific information.
a8f4cde1 1188 (operator_length_standard): New function taking most code from
5f9769d1
PH
1189 operator_length.
1190 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1191
1192 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1193 and OP_EXTENDED_LAST.
a8f4cde1
RM
1194
1195 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1196 Make global; remove static declaration.
1197 Move most code to print_subexp_standard.
a8f4cde1 1198 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1199 print_subexp.
1200 (op_name): Add expression to argument signature.
a8f4cde1 1201 Use langauge-specific op_name.
5f9769d1
PH
1202 Move most code to op_name_standard.
1203 (op_name_standard): New function, containing code formerly in op_name.
1204 (dump_subexp): Use new version of op_name function.
1205 Use language-specific dump_subexp_body, and move most existing code to
1206 dump_subexp_body_standard.
1207 (dump_raw_expression): Use new op_name interface.
1208 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1209 (dump_subexp_body_standard): New function, containing code formerly
1210 in dump_subexp_body.
a8f4cde1 1211
5f9769d1
PH
1212 * language.c (unknown_language): Add default la_exp_desc field and
1213 remove evaluate_exp field.
1214 (auto_language): Ditto.
1215 (local_language): Ditto.
1216 * f-lang.c (f_language_defn): Ditto.
1217 * c-lang.c (c_language_defn): Ditto.
1218 (cplus_language_defn): Ditto.
1219 (asm_language_defn): Ditto.
1220 (minimal_language_defn): Ditto.
1221 * p-lang.c (pascal_language_defn): Ditto.
1222 * m2-lang.c (m2_language_defn): Ditto.
1223 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1224
1225 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1226 Java-specific expression evaluator.
1227 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1228 field.
a8f4cde1 1229 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1230 Scheme-specific expression evaluator.
1231 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1232 field.
1233 * objc-lang.c (print_object_command): Take evaluate_exp from the
1234 la_exp_desc field.
a8f4cde1 1235
5f9769d1 1236 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1237
1238 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1239 la_exp_desc's type.
1240 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1241
24daaebc
PH
12422003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1243
1244 * parser-defs.h (operator_length): Declare.
a8f4cde1 1245
24daaebc
PH
1246 * parse.c (length_of_subexp): Use operator_length to get operator
1247 lengths and arities for operators.
1248 Move most code to new operator_length function.
a8f4cde1 1249 (operator_length): New function absorbing most code from
24daaebc
PH
1250 length_of_subexp.
1251 (prefixify_subexp): Remove large case and use operator_length instead.
1252 (parse_exp_1): Use renamings:
a8f4cde1 1253 dump_prefix_expression => dump_raw_expression and
24daaebc 1254 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1255
24daaebc
PH
1256 * expression.h (dump_prefix_expression): Rename to ...
1257 (dump_raw_expression): New name.
1258 (dump_postfix_expression): Rename to ...
1259 (dump_prefix_expression): New name.
a8f4cde1 1260
24daaebc
PH
1261 * expprint.c (dump_subexp): Make global. Add comment.
1262 Move most existing code to dump_subexp_body.
1263 (dump_subexp_body): New function.
1264 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1265 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1266 work before the expression is prefixified.
1267 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1268 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1269 that's what it does.
a8f4cde1 1270 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1271 prefixified expression.
1272 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1273
8c2957c4
JB
12742003-09-22 Jim Blandy <jimb@redhat.com>
1275
1276 * dwarf2read.c (read_array_type): When building the type for an
1277 array of unspecified length, make sure to choose the upper bound
1278 so that the array's total length comes out to be zero --- that's
1279 how we represent such arrays.
1280
592e3010
MC
12812003-09-22 Michael Chastain <mec@shout.net>
1282
1283 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1284
365c70b1
JJ
12852003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1286
1287 * top.c (quit_force): Fix indirect call to quit_target so
1288 a struct qt_args pointer is passed.
1289
5d6eb653
AC
12902003-09-22 Andrew Cagney <cagney@redhat.com>
1291
1292 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1293 * arch-utils.c (init_frame_pc_noop): Delete function.
1294 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1295 "init_frame_pc".
1296 * mips-tdep.c (mips_gdbarch_init): Ditto.
1297 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1298 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1299 declaration.
1300 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1301 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1302 declaration.
1303 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1304
b222a67f
AG
13052003-09-22 Anthony Green <green@redhat.com>
1306
1307 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1308 declaration.
1309
d5b5ac79
AC
13102003-09-20 Andrew Cagney <cagney@redhat.com>
1311
deafb061
AC
1312 * breakpoint.c: Eliminate ARGSUSED.
1313 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1314 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1315 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1316 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1317 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1318 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1319 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1320 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1321 * wince.c, remote-vx.c: Ditto.
1322
d5b5ac79
AC
1323 * cli/cli-script.c: Remove "register" attributes.
1324 * config/pa/tm-hppa.h: Ditto.
1325 * cli/cli-decode.c: Ditto.
1326 * cli/cli-cmds.c: Ditto.
1327
c6316faa
AC
13282003-09-19 Andrew Cagney <cagney@redhat.com>
1329
1330 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1331 DEPRECATED_NPC_REGNUM.
1332 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1333
f4f99b11
CF
13342003-09-19 Christopher Faylor <cgf@redhat.com>
1335
1336 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1337
1708f284
JB
13382003-09-19 Jim Blandy <jimb@redhat.com>
1339
1340 * macrotab.c (macro_include): Use the correct comparison to find
1341 the appropriate place for this inclusion in the list.
1342
b9fbf434
AC
13432003-09-19 Andrew Cagney <cagney@redhat.com>
1344
1345 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1346 (DEPRECATED_HPUX_TEXT_END): Define.
1347 (deprecated_hpux_text_end): Declare.
1348 (struct target_ops): Declare opaque.
1349 * hppah-nat.c (text_end): Make static.
1350 (deprecated_hpux_text_end): New function.
1351 * exec.c (text_end): Delete global variable.
1352 (NEED_TEXT_START_END): Do not define.
1353 (exec_file_attach): Replace code computing "text_end" code with
1354 call to DEPRECATED_HPUX_TEXT_END.
1355
5b03f266
AC
13562003-09-19 Andrew Cagney <cagney@redhat.com>
1357
1358 * utils.c (align_up, align_down): New functions.
1359 * defs.h (align_up, align_down): Declare.
1360 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1361 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1362 and "align_down".
1363 (round_up, round_down): Delete functions.
1364 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1365 "align_down".
1366 (ROUND_DOWN, ROUND_UP): Delete macros.
1367 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1368 * h8300-tdep.c: Replace "round_up" and "round_down" with
1369 "align_up" and "align_down".
1370 (round_up, round_down): Delete macros.
1371 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1372 "align_down".
1373 (ROUND_UP, ROUND_DOWN): Delete macros.
1374
51db5742
JB
13752003-09-18 J. Brobecker <brobecker@gnat.com>
1376
1377 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1378 hard-coded constant. Use the proper machine name instead.
1379
77949794
AC
13802003-09-17 Andrew Cagney <cagney@redhat.com>
1381
1382 * sparc-tdep.c (legacy_register_name): Delete function.
1383 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1384 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1385 * infcmd.c (gdb_register_name): Delete variable.
1386 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1387 REGISTER_NAME and "tm.h".
1388 * gdbarch.h, gdbarch.c: Regenerate.
1389 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1390 REGISTER_NAMES in comments.
1391 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1392 * m68klinux-nat.c (regmap): Ditto.
1393
b55c33cc
JB
13942003-09-17 Jim Blandy <jimb@redhat.com>
1395
1396 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1397
957e27ac
AC
13982003-09-17 Andrew Cagney <cagney@redhat.com>
1399
1400 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1401 (ppcnbsd_init_abi): Set "use_struct_convention" to
1402 "ppcnbsd_use_struct_convention".
1403
192cb3d4
MK
14042003-09-17 Mark Kettenis <kettenis@gnu.org>
1405
1406 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1407 * gdbarch.h, gdbarch.c: Regenerate.
1408 (stabs_argument_has_addr): New architecture method.
1409 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1410 * arch-utils.c: Include "buildsym.h".
1411 (default_stabs_argument_has_addr): New function.
1412 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1413 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1414
efe59759
AC
14152003-09-17 Andrew Cagney <cagney@redhat.com>
1416
1417 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1418 * gdbarch.h, gdbarch.c: Regenerate.
1419 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1420 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1421 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1422 * sparcnbsd-tdep.c: Update.
a8f4cde1 1423
62700349
AC
14242003-09-17 Andrew Cagney <cagney@redhat.com>
1425
1426 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1427 * gdbarch.h, gdbarch.c: Regenerate.
1428 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1429 * d10v-tdep.c, frame.c: Update.
1430 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1431 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1432 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1433 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1434 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1435 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1436 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1437 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1438 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1439 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1440 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1441 * config/pa/nm-hppah.h: Update.
1442
b9ff3018
AC
14432003-09-16 Andrew Cagney <cagney@redhat.com>
1444
1445 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1446 "use_struct_convention" to "ppc_linux_use_struct_convention".
1447 (ppc_linux_use_struct_convention): New function.
1448 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1449 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1450 "rs6000_use_struct_convention".
1451 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1452 declaration.
1453 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1454 Delete function.
1455
aa1ee363
AC
14562003-09-16 Andrew Cagney <cagney@redhat.com>
1457
1458 * buildsym.c: Remove more occurances of "register".
1459 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1460 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1461 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1462 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1463 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1464 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1465 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1466 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1467
f2ea0907
CV
14682003-09-16 Corinna Vinschen <vinschen@redhat.com>
1469
1470 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1471 numbers to enumeration values.
1472 * sh-tdep.c: Accomodate above change.
1473 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1474 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1475 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1476 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1477 (IS_FPUSH): Rename from IS_FMOV.
1478 (sh_extract_struct_value_address): Remove useless comment.
1479 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1480 instead of own local values.
1481 (sh_dump_tdep): Remove.
1482 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1483 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1484
1c704f11
AC
14852003-09-15 Andrew Cagney <cagney@redhat.com>
1486
1487 * doublest.c (convert_floatformat_to_doublest): No longer need to
1488 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1489
ac79b88b
DJ
14902003-09-15 Daniel Jacobowitz <drow@mvista.com>
1491
1492 * values.c (unpack_double): Call floatformat_is_valid.
1493
1c671366
MK
14942003-09-15 Mark Kettenis <kettenis@gnu.org>
1495
de5227fb
MK
1496 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1497 ps_strings into a long.
1498
1c671366
MK
1499 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1500 _initialize_am64fbsd_nat.
1501
a604369a
KB
15022003-09-15 Kevin Buettner <kevinb@redhat.com>
1503
1504 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1505 associated with DW_AT_ranges attribute is out of bounds.
1506
b3cacbee
DL
15072003-09-15 David Lecomber <dsl@sources.redhat.com>
1508
1509 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1510
d0f37bb2
MC
15112003-09-14 Michael Chastain <mec@shout.net>
1512
1513 * config/m68k/nm-apollo68v.h: Delete.
1514 * config/m68k/xm-apollo68v.h: Delete.
1515
69517000
AC
15162003-09-14 Andrew Cagney <cagney@redhat.com>
1517
1518 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1519 * dcache.c: Update copyrights and descriptions.
1520 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1521
ef8b349d
AC
15222003-09-14 Andrew Cagney <cagney@redhat.com>
1523
1524 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1525 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1526
52f0bd74
AC
15272003-09-14 Andrew Cagney <cagney@redhat.com>
1528
1529 * alpha-nat.c: Remove some occurances of "register".
1530 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1531 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1532 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1533 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1534 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1535 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1536 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1537 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1538 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1539 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1540 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1541 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1542 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1543 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1544 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1545 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1546 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1547 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1548 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1549 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1550 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1551 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1552
4a4b3fed
AC
15532003-09-13 Andrew Cagney <cagney@redhat.com>
1554
1555 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1556 * ppc-tdep.h (struct regcache): Declare opaque.
1557 * objfiles.h (struct objfile_data): Declare opaque.
1558 * cp-support.h (struct objfile): Declare opaque.
1559 * linux-nat.h (target_waitstatus): Declare opaque.
1560
2110b94f
MK
15612003-09-14 Mark Kettenis <kettenis@gnu.org>
1562
1c671366
MK
1563 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1564 (stabs_argument_has_addr): New architecture method.
1565 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1566 * arch-utils.c: Include "buildsym.h".
1567 (default_stabs_argument_has_addr): New function.
1568 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1569 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1570
2110b94f
MK
1571 * cris-tdep.c (cris_gdbarch_init): Set
1572 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1573 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1574 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1575 * mips-tdep.c (mips_gdbarch_init): Likewise.
1576 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1577 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1578
48436ce6
AC
15792003-09-13 Andrew Cagney <cagney@redhat.com>
1580
1581 * values.c (using_struct_return): Delete "function" and "funcaddr"
1582 parameters.
1583 * value.h (using_struct_return): Update declaration.
1584 * infcmd.c (finish_command_continuation): Update.
1585 (finish_command): Update.
1586 * infcall.c (call_function_by_hand): Update.
1587 * eval.c (evaluate_subexp_standard): Update.
1588
403d9909
CF
15892003-09-13 Christopher Faylor <cgf@redhat.com>
1590
1591 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1592 SSE registers since gdb will not operate correctly without this.
1593 Restore include file ordering munged in previous change.
1594 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1595
ebf7d56b
MK
15962003-09-13 Mark Kettenis <kettenis@gnu.org>
1597
8e823e25
MK
1598 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1599 REG_STRUCT_HAS_ADDR.
1600 * gdbarch.c, gdbarch.h: Updated.
1601 * infcall.c (call_function_by_hand): Update.
1602 * stabsread.c (define_symbol): Updated.
a8f4cde1 1603
ebf7d56b
MK
1604 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1605
d3f13f72
CF
16062003-09-12 Christopher Faylor <cgf@redhat.com>
1607
1608 * win32-nat.c: Reorganize so that defines used by target headers are
1609 actually defined by the system headers.
1610 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1611 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1612
14f75137
JB
16132003-09-12 Jim Blandy <jimb@redhat.com>
1614
d646061f
JB
1615 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1616 the file has no .data, .bss, or .rodata sections. Instead wait
1617 until we see a variable alleged to live in one of those sections.
1618
2a13f9bc
JB
1619 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1620 .bss section, presume that any variables we find live in the
1621 .rodata section.
1622
4f49b26b
JB
1623 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1624 offsets for global and static variables.
1625
14f75137
JB
1626 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1627 symbol types are, by definition, in the .data section, so it is
1628 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1629 If there is no .data section, there should be no N_DATA or N_DATA
1630 | N_EXT symbols.
1631
212c460c
MK
16322003-09-12 Mark Kettenis <kettenis@gnu.org>
1633
1634 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1635 (amd64fbsd_sigcontext_addr): Rewrite.
1636 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1637 with correct values.
1638 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1639 (amd64fbsd_init_abi): Fix typo.
1640
68856ea3
AC
16412003-09-12 Andrew Cagney <cagney@redhat.com>
1642
1643 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1644 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1645
627b3ba2
AC
16462003-09-12 Andrew Cagney <cagney@redhat.com>
1647
1648 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1649 "entry_file_highpc". Update comments.
1650 * defs.h (deprecated_inside_entry_file): Rename
1651 "inside_entry_file".
1652 * blockframe.c (deprecated_inside_entry_file): Rename
1653 "inside_entry_file".
1654 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1655 * vax-tdep.c (vax_frame_chain): Update.
1656 * sh64-tdep.c (sh64_frame_chain): Update.
1657 * sh-tdep.c (sh_frame_chain): Update.
1658 * rs6000-tdep.c (rs6000_frame_chain): Update.
1659 * ns32k-tdep.c (ns32k_frame_chain): Update.
1660 * mips-tdep.c (mips_frame_chain): Update.
1661 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1662 * m32r-tdep.c (m32r_frame_this_id): Update.
1663 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1664 * frv-tdep.c (frv_frame_this_id): Update.
1665 * d10v-tdep.c (d10v_frame_this_id): Update.
1666 * cris-tdep.c (cris_frame_chain): Update.
1667 * blockframe.c (legacy_frame_chain_valid): Update.
1668 * avr-tdep.c (avr_frame_this_id): Update.
1669 * arm-tdep.c (arm_prologue_this_id): Update.
1670 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1671 * objfiles.c (objfile_relocate): Update.
1672 * mipsread.c (mipscoff_symfile_read): Update.
1673 (mipscoff_symfile_read): Update.
1674 * mdebugread.c (parse_partial_symbols): Update.
1675 * dwarfread.c (read_file_scope): Update.
1676 * dwarf2read.c (read_file_scope): Update.
1677 * dbxread.c (read_dbx_symtab): Update.
1678 (read_dbx_symtab): Update.
1679 * coffread.c (complete_symtab): Update.
1680
b0abbc58
JJ
16812003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1682
1683 * top.c (quit_target): New static helper function.
1684 (quit_force): Moved code to quit_target(). Call quit_target()
1685 via catch_errors() to catch errors during quit.
1686
a1632d59
DC
16872003-09-11 David Carlton <carlton@kealia.com>
1688
1689 * buildsym.c (finish_block): Use allocate_block to allocate the
1690 block.
1691 * mdebugread.c (new_block): Add FIXME.
1692
5c4e30ca
DC
16932003-09-11 David Carlton <carlton@kealia.com>
1694
1695 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1696 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1697 (recursive_dump_type): Ditto.
1698 * printcmd.c (print_formatted): Ditto.
1699 * typeprint.c (print_type_scalar): Ditto.
1700 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1701 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1702 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1703 maint_cplus_cmd_list.
1704 * cp-support.c: Make maint_cplus_cmd_list extern.
1705 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1706 command.h.
1707 (lookup_symbol_file): Look in possible namespace blocks when
1708 appropriate.
1709 (initialize_namespace_symtab): New.
1710 (get_possible_namespace_block, free_namespace_block)
1711 (check_possible_namespace_symbols)
1712 (check_possible_namespace_symbols_loop)
1713 (check_one_possible_namespace_symbol)
1714 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1715 (_initialize_cp_namespace): Ditto.
1716 * block.h: Declare allocate_block.
1717 * block.c (allocate_block): New.
1718 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1719 allocate_block.
1720 * symfile.h: Update declaration of add_psymbol_to_list.
1721 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1722 question.
1723 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1724 scan_partial_symbols_call.
1725 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1726 helper functions.
1727 (add_partial_symbol): If necessary, scan mangled names for names
1728 of namespaces.
1729 (add_partial_namespace): Add NAMESPACE argument; generate partial
1730 symbols associated to namespaces.
1731 (add_partial_enumeration): Add NAMESPACE argument.
1732 (new_symbol): Allow namespace syms.
1733 (read_namespace): Generate namespace syms.
1734 * objfiles.h: Add opaque declaration of struct symtab.
1735 (struct objfile): Add cp_namespace_symtab member.
1736 * objfiles.c (allocate_objfile): Set
1737 objfile->cp_namespace_symtab.
1738 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1739 dictionary_h, command_h.
1740
33a7c2fc
AC
17412003-09-11 Andrew Cagney <cagney@redhat.com>
1742
1743 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1744 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1745 near the function's end.
1746 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1748 regcache_raw_write_signed to set SP_REGNUM.
1749
63cd24fe
EZ
17502003-09-11 Elena Zannoni <ezannoni@redhat.com>
1751
1752 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1753 orig_addrs is set up properly.
1754
f27dd7fd
AC
17552003-09-11 Andrew Cagney <cagney@redhat.com>
1756
1757 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1758 * gdbarch.h, gdbarch.c: Re-generate.
1759 * infcall.c (call_function_by_hand): Update.
1760 * hppa-tdep.c (hppa_push_arguments): Update.
1761 * ada-lang.c (place_on_stack): Update.
1762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1763 * sparc-tdep.c (sparc_gdbarch_init): Update.
1764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1765 * hppa-tdep.c (hppa_gdbarch_init): Update.
1766 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1767 stack_align.
1768
f630a401
DJ
17692003-09-11 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1772 register do need a frame.
1773
0ddabb4c
AC
17742003-09-11 Andrew Cagney <cagney@redhat.com>
1775
1776 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1777 buildable since GDB 5.0.
1778 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1779 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1780 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1781 * irix4-nat.c: Delete file.
1782 * config/mips/irix4.mh: Delete file.
1783 * config/mips/irix3.mh: Delete file.
1784 * config/mips/irix3.mt: Delete file.
1785 * config/mips/tm-irix3.h: Delete file.
1786 * config/mips/nm-irix3.h: Delete file.
1787 * config/mips/xm-irix3.h: Delete file.
1788 * config/mips/nm-irix4.h: Delete file.
1789 * config/mips/xm-irix4.h: Delete file.
1790 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1791
fde2cceb
JB
17922003-09-10 J. Brobecker <brobecker@gnat.com>
1793
1794 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1795 * Makefile.in (hppa-tdep.o): Update dependencies.
1796
66f667f5
JW
17972003-09-10 James E Wilson <wilson@specifixinc.com>
1798
ef5fd69f
JW
1799 * MAINTAINERS: Change my e-mail address. Move to paper trail
1800 section.
66f667f5 1801
53e8aaea
KB
18022003-09-10 Kevin Buettner <kevinb@redhat.com>
1803
1804 * MAINTAINERS (frv): New ISA entry.
1805
dcc6aaff
KB
18062003-09-10 Kevin Buettner <kevinb@redhat.com>
1807
1808 * frv-tdep.c (dis-asm.h): Include.
1809 * Makefile.in (frv-tdep.o): Update dependencies.
1810
932644f0
JJ
18112003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1812
1813 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1814 Fix typo for high range of floating registers.
1815
91c24f0a
DC
18162003-09-09 David Carlton <carlton@kealia.com>
1817
1818 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1819 highpc initialization here out of scan_partial_symbols.
1820 (scan_partial_symbols): Restructure into a recursive version,
1821 calling add_partial_namespace and add_partial_enumeration when
1822 appropriate.
1823 (add_partial_namespace): New.
1824 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1825
c9263853
AC
18262003-09-09 Andrew Cagney <cagney@redhat.com>
1827
e56a0ecc
AC
1828 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1829 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1830 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1831 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1832
794a477a
AC
1833 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1834 (rs6000_push_dummy_call): Set the "TOC" register.
1835
c9263853
AC
1836 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1837 methods "max_register_raw_size", "max_register_virtual_size" or
1838 "register_virtual_size".
1839
afa7d0b2
ILT
18402003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1841
1842 * MAINTAINERS: Update my e-mail address.
1843
7a41266b
AC
18442003-09-09 Andrew Cagney <cagney@redhat.com>
1845
1846 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1847 (rs6000_push_dummy_call): Store the struct return address.
1848 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1849
77b2b6d4
AC
18502003-09-09 Andrew Cagney <cagney@redhat.com>
1851
1852 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1853 "ppc_sysv_abi_push_arguments".
1854 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1855 "ppc_sysv_abi_push_arguments".
1856 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1857 instead of "push_arguments".
1858 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1859
e8a7b686
AC
18602003-09-09 Andrew Cagney <cagney@redhat.com>
1861
1862 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1863 instead of CALL_DUMMY_ADDRESS.
1864
f86f5ca3
PH
18652003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1866
1867 * p-lang.c: Eliminate "register".
1868 * c-lang.c: Ditto.
1869 * expprint.c: Ditto.
1870 * f-lang.c: Ditto.
1871 * jv-lang.c: Ditto.
1872 * language.c: Ditto.
1873 * m2-lang.c: Ditto.
1874 * parse.c: Ditto.
1875 * scm-lang.c: Ditto.
1876 * objc-lang.c: Ditto.
1877
83ee270e
NC
18782003-09-09 Nick Clifton <nickc@redhat.com>
1879
1880 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1881
a89aa300
AC
18822003-09-04 Andrew Cagney <cagney@redhat.com>
1883
1884 * avr-tdep.c: Include "dis-asm.h".
1885 * cris-tdep.c: Include "dis-asm.h".
1886 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1887 instead of corresponding typedef.
1888 * h8300-tdep.c: Include "dis-asm.h".
1889 * ia64-tdep.c: Include "dis-asm.h".
1890 * i386-tdep.c: Include "dis-asm.h".
1891 (i386_print_insn): Use "struct disassemble_info" instead of
1892 corresponding typedef.
1893 * m68k-tdep.c: Include "dis-asm.h".
1894 * mcore-tdep.c: Include "dis-asm.h".
1895 * mips-tdep.c: Include "dis-asm.h".
1896 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1897 instead of corresponding typedef.
1898 * ns32k-tdep.c: Include "dis-asm.h".
1899 * s390-tdep.c: Include "dis-asm.h".
1900 * sparc-tdep.c: Include "dis-asm.h".
1901 * vax-tdep.c: Include "dis-asm.h".
1902 * v850-tdep.c: Include "dis-asm.h".
1903 * mn10300-tdep.c: Include "dis-asm.h".
1904 * rs6000-tdep.c: Include "dis-asm.h".
1905 * xstormy16-tdep.c: Include "dis-asm.h".
1906 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1907 print_insn_xstormy16.
1908 * Makefile.in (v850-tdep.o): Update dependencies.
1909 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1910 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1911 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1912 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1913 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1914 (gdbarch_h): Remove $(dis_asm_h).
1915 * disasm.c: Include "dis-asm.h".
1916 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1917 corresponding typedef.
1918 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1919 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1920 * gdbarch.sh: Do not include "dis-asm.h".
1921 (struct disassemble_info): Declare opaque.
1922 (TARGET_PRINT_INSN): Update declaration.
1923 * gdbarch.h, gdbarch.c: Re-generate.
1924
88a82a65
AC
19252003-09-08 Andrew Cagney <cagney@redhat.com>
1926
1927 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1928 CALL_DUMMY_ADDRESS, change to a predicate.
1929 * gdbarch.h, gdbarch.c: Re-generate.
1930 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1931 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1932 * infcall.c (call_function_by_hand): Ditto.
1933 * sparc-tdep.c (sparc_push_return_address): Ditto.
1934 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1935 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1936 CALL_DUMMY_ADDRESS with entry_point_address.
1937 * v850-tdep.c (v850_push_return_address): Ditto.
1938 * s390-tdep.c (s390_push_return_address): Ditto.
1939 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1940 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1941 * mcore-tdep.c (mcore_push_return_address): Ditto.
1942 * cris-tdep.c (cris_push_return_address): Ditto.
1943 * arm-tdep.c (arm_push_return_address): Ditto.
1944
3e2c4033
AC
19452003-09-08 Andrew Cagney <cagney@redhat.com>
1946
1947 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1948 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1949 and REG_UNMODIFIED to REG_SAME_VALUE.
1950 (execute_cfa_program): Update.
1951 (dwarf2_frame_cache): Update. Initialize table to
1952 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1953 location.
1954 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1955
39efb398
AC
19562003-09-08 Andrew Cagney <cagney@redhat.com>
1957
1958 * gnu-nat.c: Remove "inline" function attribute.
1959 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1960
f5cb5aca
KB
19612003-09-08 Kevin Buettner <kevinb@redhat.com>
1962
1963 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1964 target.
1965
1cb761c7
KB
19662003-09-08 Kevin Buettner <kevinb@redhat.com>
1967
1968 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1969 (frame_extra_info): Rename this struct to frv_unwind_cache.
1970 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1971 Add fields ``prev_sp'' and ``base''.
1972 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1973 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1974 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1975 Delete.
1976 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1977 Revise all callers. Fill in the unwind cache argument and make
1978 other adjustments to account for new frame mechanisms.
1979 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1980 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1981 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1982 (frv_frame_unwind, frv_frame_base): New structs.
1983 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1984 additional arguments expected by this method and adjust function
1985 body accordingly.
1986 (frv_gdbarch_init): Remove calls to the following functions:
1987 set_gdbarch_deprecated_init_frame_pc(),
1988 set_gdbarch_deprecated_saved_pc_after_call(),
1989 set_gdbarch_deprecated_frame_chain(),
1990 set_gdbarch_deprecated_frame_saved_pc(),
1991 set_gdbarch_deprecated_frame_init_saved_regs(),
1992 set_gdbarch_deprecated_push_arguments(),
1993 set_gdbarch_deprecated_push_return_address(),
1994 set_gdbarch_deprecated_pop_frame(),
1995 set_gdbarch_deprecated_call_dummy_words(),
1996 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1997 set_gdbarch_deprecated_init_extra_frame_info(),
1998 set_gdbarch_deprecated_dummy_write_sp(), and
1999 set_gdbarch_deprecated_pc_in_call_dummy().
2000 Add calls to the following functions:
2001 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2002 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2003 frame_base_set_default().
2004 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2005
68f6cf99
MK
20062003-09-09 Mark Kettenis <kettenis@gnu.org>
2007
2008 * dwarf2-frame.c (read_encoded_value): Add support for
2009 DW_EH_PE_aligned encoding.
2010
73b65bb0
DJ
20112003-09-08 Daniel Jacobowitz <drow@mvista.com>
2012
2013 * infrun.c (normal_stop): Don't print a message if the inferior
2014 has exited.
2015
7c8a5605
JB
20162003-09-08 Jim Blandy <jimb@redhat.com>
2017
2018 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2019 * dbxread.c: #include "gdb_assert.h".
2020 (read_dbx_symtab): If the objfile has no .data section, use the
2021 section index for the .bss section instead.
2022
7dd88986
DJ
20232003-09-08 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * frame.c (deprecated_safe_get_selected_frame): New function.
2026 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2027 * findvar.c (read_var_value): Call it.
2028
55ff77ac
CV
20292003-09-08 Corinna Vinschen <vinschen@redhat.com>
2030
2031 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2032 (sh64-tdep.o): Add dependencies.
2033 * configure.tgt: Add FIXME to sh-*-linux*.
2034 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2035 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2036 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2037 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2038 * sh64-tdep.c: New file, containing all sh64 related code from
2039 sh-tdep.c.
2040 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2041 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2042 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2043 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2044 * config/sh/wince.mt (TDEPFILES): Ditto.
2045
bfb39158
DJ
20462003-09-07 Daniel Jacobowitz <drow@mvista.com>
2047
2048 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2049 (stop_wait_callback): Handle !lp->signalled also.
2050 (lin_lwp_has_pending, flush_callback): New functions.
2051 (lin_lwp_wait): Call flush_callback.
2052 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2053 (linux_proc_pending_signals): New function.
2054 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2055
9407de8e
DJ
20562003-09-07 Daniel Jacobowitz <drow@mvista.com>
2057
2058 From Nick Kelsey <nickk@ubicom.com>:
2059 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2060 when the stop PC is at the beginning of a function also.
2061
2ef47cd0
DJ
20622003-09-06 Daniel Jacobowitz <drow@mvista.com>
2063
2064 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2065 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2066
6f4492c8
MK
20672003-09-06 Mark Kettenis <kettenis@gnu.org>
2068
2069 * sol-thread.c: Include "gdb_string.h".
2070
d3420b2f
MK
20712003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2072
2073 * gcore.c: Reorder include files in alphabetical order. Include
2074 "gdb_assert.h". Various coding style fixes.
2075 (derive_stack_segment, derive_heap_segment): Replace check for
2076 non-null BOTTOM and TOP with gdb_assert.
2077 (derive_heap_segment): Replace check for successful creation of
2078 ZERO with gdb_assert.
2079 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2080
5220ea4c
AC
20812003-09-04 Andrew Cagney <cagney@redhat.com>
2082
2083 * thread-db.c (verbose_dlsym): New function.
2084 (thread_db_load): Use verbose_dlsym
2085 (thread_db_new_objfile): Print that libthread_db was loaded, and
2086 that thread debugging was enabled.
2087
6e8c2c06
AC
20882003-09-04 Andrew Cagney <cagney@redhat.com>
2089
2090 * configure.tgt: Add "mips64*-*-*" target. Delete
2091 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2092 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2093 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2094 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2095 mips*-sony-*, and mips64*-*-elf* targets.
2096 * config/mips/embedl.mt: Delete file.
2097 * config/mips/embedl64.mt: Delete file.
2098 * config/mips/mips.mt: Delete file.
2099 * config/mips/mips64.mt: Delete file.
2100 * config/mips/tm-embed.h: Delete file.
2101 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2102 * config/mips/embed64.mt: Delete out-of-date comment.
2103
3a3bc038
AC
21042003-09-04 Andrew Cagney <cagney@redhat.com>
2105
2106 * hppa-tdep.c (hppa_gdbarch_init): Set
2107 "have_nonsteppable_watchpoint".
2108 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2109 * mips-tdep.c (mips_dump_tdep): Do not print
2110 HAVE_NONSTEPPABLE_WATCHPOINT.
2111 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2112 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2113 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2114 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2115
a957e642
CV
21162003-09-04 Corinna Vinschen <vinschen@redhat.com>
2117
2118 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2119 unused code. Add comment.
2120
a6fbcf2f
CV
21212003-09-04 Corinna Vinschen <vinschen@redhat.com>
2122
2123 * breakpoint.c (watchpoint_check): Check for pc being in an
2124 epilogue if watchpoint frame couldn't be found.
2125
c14a44d5
AC
21262003-09-04 Andrew Cagney <cagney@redhat.com>
2127
2128 * Makefile.in: Re-generate all dependencies.
2129
f6c40618
AC
21302003-09-03 Andrew Cagney <cagney@redhat.com>
2131
2132 * arch-utils.h (legacy_print_insn): Delete declaration.
2133 * arch-utils.c (legacy_print_insn): Delete function.
2134 * disasm.c (deprecated_tm_print_insn_info): Delete.
2135 (_initialize_disasm): Delete function, contained code initializing
2136 deprecated_tm_print_insn_info.
2137 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2138 (deprecated_tm_print_insn_info): Delete.
2139 (TARGET_PRINT_INSN): Do not provide a default.
2140 * gdbarch.h, gdbarch.c: Re-generate.
2141
242e8be5
AC
21422003-09-03 Andrew Cagney <cagney@redhat.com>
2143
2144 * disasm.c (fprintf_disasm): New function.
2145 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2146 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2147 reverts 2003-08-14 change.
2148 (_initialize_disasm): Call "init_disassemble_info", instead of
2149 INIT_DISASSEMBLE_INFO_NO_ARCH.
2150
3ffc3dda
MS
21512003-09-03 Michael Snyder <msnyder@redhat.com>
2152
2153 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2154
52d16ba8
AC
21552003-09-03 Andrew Cagney <cagney@redhat.com>
2156
2157 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2158 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2159 * symfile.c (syms_from_objfile): Update.
2160 (reread_symbols): `Update
2161 * exec.c (exec_file_attach): Update.
2162 (exec_file_attach): Update.
2163 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2164 2003-08-29 change.
2165 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2166
eb5492fa
DJ
21672003-09-03 Daniel Jacobowitz <drow@mvista.com>
2168
2169 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2170 trad-frame.h.
2171 (arm_get_cache): Delete macro.
2172 (struct arm_prologue_cache): Update comments. Make saved_regs into
2173 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2174 to prev_sp.
2175 (thumb_scan_prologue): Update for cache changes. Don't call
2176 DEPRECATED_PC_IN_CALL_DUMMY.
2177 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2178 argument and use it in desperation search for our prologue. Do not
2179 search past the specified PC.
2180 (arm_make_prologue_cache): Simplify.
2181
2182 (arm_prologue_this_id, arm_prologue_prev_register)
2183 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2184 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2185 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2186 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2187 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2188
2189 (arm_frame_chain_valid, arm_find_callers_reg)
2190 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2191 (arm_pop_frame): Delete obsolete methods.
2192 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2193
2194 (arm_gdbarch_init): Update for new frame methods. Register prologue
2195 and sigtramp unwinders. Set the default frame base method.
2196
2197 * Makefile.in (arm-tdep.o): Update dependencies.
2198 * varobj.c (find_frame_addr_in_frame_chain): Call
2199 get_frame_base_address.
2200 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2201
24de872b
DJ
22022003-09-03 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2205 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2206 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2207 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2208 Take NEXT_FRAME and CACHE arguments. Call
2209 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2210 Set unwound_pc in CACHE instead of modifying the frame argument.
2211 Don't bother checking the frame type when looking for sigtramp
2212 frames.
2213 (arm_make_prologue_cache, arm_frame_chain)
2214 (arm_init_extra_frame_info): New functions.
2215
9b8d791a
DJ
22162003-09-03 Daniel Jacobowitz <drow@mvista.com>
2217
2218 * arm-tdep.c (arm_get_cache): Define.
2219 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2220 unwound_sp, unwound_pc, and saved_regs.
2221 (thumb_scan_prologue): Take a cache instead of the frame.
2222 (arm_scan_prologue): Likewise.
2223 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2224 instead of a temporary frame.
2225 (arm_init_extra_frame_info): Allocate and use a cache.
2226 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2227
7ee3275f
AC
22282003-09-03 Andrew Cagney <cagney@redhat.com>
2229
2230 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2231 * config/mips/wince.mt (TM_CLIBS): Ditto.
2232 * config/sh/wince.mt (TM_CLIBS): Ditto.
2233 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2234 * config/sparc/sp64.mt (CC): Delete.
2235
57b29be7
AC
22362003-09-03 Andrew Cagney <cagney@redhat.com>
2237
2238 * defs.h: Do not include "arch-utils.h".
2239 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2240 GDB_MULTI_ARCH_PURE.
2241 * configure.in (GDB_MULTI_ARCH): Do not define.
2242 * configure, config.in: Regenerate.
2243 * configure.tgt: Do not set variable "gdb_multi_arch".
2244 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2245 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2246 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2247 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2248 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2249 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2250 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2251 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2252 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2253 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2254 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2255 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2256 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2257 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2258 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2259 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2260 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2261 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2262
12e035e2
MC
22632003-08-30 Michael Chastain <mec@shout.net>
2264
2265 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2266 * config/m68k/nm-hp300hpux.h: Delete.
2267 * config/m68k/tm-hp300hpux.h: Delete.
2268 * config/m68k/xm-hp300hpux.h: Delete.
2269 * config/m68k/xm-hp300bsd.h: Delete.
2270 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2271 tm-hp300hpux.h, xm-hp300hpux.h.
2272 * somsolib.c: Remove comment about hp300 shared libraries.
2273
bda34dc2
MK
22742003-08-31 Mark Kettenis <kettenis@gnu.org>
2275
5bca7895
MK
2276 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2277 Only define PTRACE_GET_THREAD_AREA is not already defined.
2278 Various style fixes in code and comments and some additional
2279 spelling fixes in comments. Move after functions dealing with
2280 debug registers.
2281 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2282 Fix coding-style.
2283
bda34dc2
MK
2284 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2285 frame_unwind_register_unsigned instead of
2286 frame_unwind_unsigned_register.
2287
c890192f
MK
22882003-08-30 Mark Kettenis <kettenis@gnu.org>
2289
2290 * configure.in: Search for gethostbyname in libnsl.
2291 * configure: Regenerated.
2292
60fac5b8
MK
22932003-08-29 Mark Kettenis <kettenis@gnu.org>
2294
e294916c
MK
2295 * configure.in: Remove redundant AC_MSG_RESULT in check for
2296 uintptr_t in stdint.h.
2297 * configure: Regenerated.
2298
c40d267a
MK
2299 * amd64-nat.h (struct regcache): Add opaque declaration.
2300
60fac5b8
MK
2301 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2302 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2303 Change "register array" to "register cache" in comments.
2304 (x86_64_linux_gregset64_reg_offset): New variable.
2305 (GETREGS_SUPPLIES): Remove macro.
2306 (supply_gregset): Call amd64_supply_native_gregset instead of
2307 x86_64_linux_supply_gregset.
2308 (fill_gregset): Rename `regno' to `regnum'. Call
2309 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2310 (store_regs): Rename `regno' to `regnum'.
2311 (store_fpregs): Rename `regno' to `regnum'.
2312 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2313 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2314 Reorganize function a bit.
2315 (store_inferior_registers): Rename `regno' to `regnum'. Use
2316 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2317 Reorganize function a bit.
2318 (_initialize_x86_64_linux_nat): New function.
2319 * config/i386/x86-64linux.mh.
2320
546143b6
AC
23212003-08-29 Andrew Cagney <cagney@redhat.com>
2322
2323 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2324 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2325 (target_remove_watchpoint): Delete macro.
2326 (target_insert_watchpoint): Delete macro.
2327 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2328 (remote_mips_stopped_by_watchpoint): Delete declaration.
2329 (remote_mips_remove_watchpoint): Delete declaration.
2330 (remote_mips_set_watchpoint): Delete declaration.
2331 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2332 * remote-mips.c (_initialize_remote_mips): Set
2333 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2334 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2335 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2336 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2337 (mips_stopped_by_watchpoint): Rename
2338 remote_mips_stopped_by_watchpoint.
2339 (mips_can_hardware_watchpoint): Rename
2340 remote_mips_can_use_hardware_watchpoint, update function
2341 signature.
2342
7bace51b
MK
23432003-08-29 Mark Kettenis <kettenis@gnu.org>
2344
b0f5c6f2
MK
2345 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2346 USER_DS. We haven't given them a register number yet.
2347
2a6d284d
MK
2348 * amd64-nat.h: New file.
2349 * amd64-nat.c: New file.
2350 * amd64fbsd-nat.c: Include "amd64-nat.h".
2351 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2352 (amd64fbsd32_r_reg_offset): New variable.
2353 (supply_gregset): Simply call amd64_supply_native_gregset.
2354 (fill_gregset): Rename `regno' to `regnum'. Simply call
2355 amd64_collect_native_gregset.
2356 (fill_fpregset): Rename `regno' to `regnum'.
2357 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2358 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2359 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2360 `fpregset_t'. Call amd64_supply_native_gregset instead of
2361 supply_gregset. Call x86_64_supply_fxsave instead of
2362 supply_fpregset.
2363 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2364 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2365 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2366 `fpregset_t'. Call amd64_collect_native_gregset instead of
2367 fill_gregset. Call x86_64_collect_fxsave instead of
2368 fill_fpregset.
2369 (_initialize_am64fbsd_nat): Initialize
2370 amd64_native_gregset32_reg_offset and
2371 amd64_native_gregset64_reg_offset.
2372 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2373
a16d75cc
MK
2374 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2375 null pointer. Fix typo in comment.
2376
7bace51b
MK
2377 * regcache.c (supply_register): Reimplement to call
2378 regcache_raw_supply.
2379 (regcache_collect): Reimplement by calling regcache_raw_collect.
2380
9a661b68
MK
23812003-08-28 Mark Kettenis <kettenis@gnu.org>
2382
2383 * regcache.c (register_buffer): Consitify first argument.
2384 (regcache_raw_supply, regcache_raw_collect): New
2385 functions.
2386
e94cc8fa
DJ
23872003-08-28 Daniel Jacobowitz <drow@mvista.com>
2388
2389 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2390 by Nathan J. Williams.
2391
c64bd0ce
DJ
23922003-08-28 Daniel Jacobowitz <drow@mvista.com>
2393
2394 * lin-lwp.c (wait_lwp): New function, copied from
2395 stop_wait_callback. Clean up.
2396 (stop_wait_callback): Use wait_lwp.
2397
e5ab0dce
AC
23982003-08-28 Andrew Cagney <cagney@redhat.com>
2399
2400 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2401 flavour and disassembler options.
2402 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2403 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2404 deprecated_tm_print_insn_info.
a8f4cde1 2405
a788de9b
AC
24062003-08-27 Andrew Cagney <cagney@redhat.com>
2407
2408 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2409 Use target_read_memory.
2410 (s390_get_frame_info): Update. Do not reference
2411 deprecated_tm_print_insn_info.
2412 (s390_check_function_end, s390_is_sigreturn): Ditto.
2413
36482093
AC
24142003-08-27 Andrew Cagney <cagney@redhat.com>
2415
2416 * Makefile.in (cris-tdep.o): Update dependencies.
2417 * cris-tdep.c: Include "gdb_assert.h".
2418 (cris_gdbarch_init): Set print_insn.
2419 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2420 (cris_delayed_get_disassembler): Simplify, directly call the
2421 disassembler returned by cris_get_disassembler.
2422 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2423 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2424 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2425 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2426 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2427 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2428 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2429 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2430 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2431 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2432 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2433 (gdb_print_insn_sparc): Delete function.
2434 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2435 deprecated_tm_print_insn_info.
2436 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2437 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2438 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2440 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2441 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2442 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2443 (s390_gdbarch_init): Set print_insn.
2444
0285512f
AC
24452003-08-27 Andrew Cagney <cagney@redhat.com>
2446
2447 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2448 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2449 * infcall.c (call_function_by_hand): Convert the entry point
2450 address into a code address.
2451
cdcd5552
AC
24522003-08-27 Andrew Cagney <cagney@redhat.com>
2453
2454 * dsrec.c: Include "gdb_string.h".
2455 * Makefile.in (dsrec.o): Update dependencies.
2456
e85cddad
MC
24572003-08-27 Michael Chastain <mec@shout.net>
2458
2459 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2460
8bbfbb23
AC
24612003-08-27 Andrew Cagney <cagney@redhat.com>
2462
2463 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2464 (alpha_osf1_init_abi): Do not set call_dummy_address.
2465
ba058b66
DC
24662003-08-27 David Carlton <carlton@kealia.com>
2467
2468 From Randolph Chung <tausq@debian.org>:
2469 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2470 compiles with -Wformat-nonliteral -Werror.
2471
87f84c9d
JB
24722003-08-26 Jim Blandy <jimb@redhat.com>
2473
2474 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2475 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2476 bfd_lookup_symbol, since we only want symbols in code sections.
2477 (look_for_base): Pass zero as the SECT_FLAGS argument to
2478 bfd_lookup_symbol, since we're not concerned about which section
2479 the symbol is in.
2480
102d615a
JJ
24812003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2482
2483 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2484 we are frameless or the return address register is already known.
102d615a 2485
cc7ad3ea
AC
24862003-08-26 Andrew Cagney <cagney@redhat.com>
2487
2488 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2489 in size. Add comments.
2490
af8b88dd
JJ
24912003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2492
2493 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2494 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2495
e0a4f5a1
JM
24962003-08-26 Jason Merrill <jason@redhat.com>
2497
2498 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2499 case out of #ifdef MIPS block.
2500
4ae9ee8e
DJ
25012003-08-25 Daniel Jacobowitz <drow@mvista.com>
2502
2503 PR java/1322
2504 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2505 available before calling SECT_OFF_TEXT.
3c164570 2506 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2507
004d836a
JJ
25082003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2509
a8f4cde1 2510 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2511 bof, and nat0-nat127 as pseudo-registers.
2512 (ia64_frame_cache): New struct used to cache frame info.
2513 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2514 register grouping so registers without names are still saved and
004d836a 2515 restored.
a8f4cde1 2516 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2517 pseudo values.
2518 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2519 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2520 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2521 ia64_frame_cache.
2522 (examine_prologue): Change prototype to add next_frame pointer.
2523 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2524 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2525 alloc insn and if equal, mark as not frameless. At end of routine,
2526 if not frameless, calculate registers for the previous frame and store
2527 in the cache, if a cache is provided.
2528 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2529 and pass 0 for next_frame.
2530 (ia64_store_return_value): Change to use convert_typed_floating()
2531 instead of calling ia64_convert_to_raw().
2532 (ia64_extract_return_value): Change to use convert_typed_floating()
2533 instead of calling ia64_convert_to_virtual().
2534 (ia64_frame_cache): New routine to support new frame model.
2535 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2536 (ia64_frame_sniffer): Ditto.
2537 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2538 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2539 (ia64_sigtramp_frame_prev_register): Ditto.
2540 (ia64_sigtramp_frame_sniffer): Ditto.
2541 (ia64_frame_base_address): Ditto.
2542 (ia64_extract_struct_value_address): Change to issue error message.
2543 (ia64_frame_align): New routine to align sp.
2544 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2545 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2546 ia64_push_dummy_call().
2547 (ia64_push_return_address): Ditto.
2548 (ia64_unwind_dummy_id): New function.
2549 (ia64_unwind_pc): Ditto.
2550 (ia64_convert_register_p): Ditto.
2551 (ia64_register_to_value): Ditto.
2552 (ia64_value_to_register): Ditto.
2553 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2554 (ia64_register_byte, ia64_register_raw_size): Ditto.
2555 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2556 (ia64_saved_pc_after_call): Ditto.
2557 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2558 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2559 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2560 (ia64_register_convert_to_raw): Ditto.
2561 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2562 (ia64_init_extra_frame_info): Ditto.
2563 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2564 (ia64_gdbarch_init): Remove registering of deprecated functions that
2565 are no longer used. Add registration of new gdbarch functions.
2566 Remove registering deprecated_write_sp. Replace
2567 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2568 Delete set_gdbarch_deprecated_register_convertible(),
2569 set_gdbarch_deprecated_register_convert_to_virtual(), and
2570 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2571 set_gdbarch_deprecated_register_size(),
2572 set_gdbarch_deprecated_register_bytes(),
2573 set_gdbarch_pcregnum(),
2574 set_gdbarch_deprecated_register_byte(),
2575 set_gdbarch_deprecated_register_raw_size(),
2576 set_gdbarch_deprecated_max_register_raw_size(),
2577 set_gdbarch_deprecated_register_virtual_size(),
2578 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2579 Replace set_gdbarch_deprecated_extract_return_value() with
2580 set_gdbarch_extract_return_value(). Remove calls to:
2581 set_gdbarch_deprecated_saved_pc_after_call();
2582 set_gdbarch_deprecated_frame_chain(),
2583 set_gdbarch_deprecated_frame_saved_pc(),
2584 set_gdbarch_deprecated_frame_init_saved_regs(),
2585 set_gdbarch_deprecated_get_saved_register(),
2586 set_gdbarch_deprecated_call_dummy_words(),
2587 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2588 set_gdbarch_deprecated_init_extra_frame_info(),
2589 set_gdbarch_deprecated_frame_args_address(),
2590 set_gdbarch_deprecated_frame_locals_address(),
2591 and set_gdbarch_deprecated_dummy_write_sp().
2592 Add set_gdbarch_convert_register_p(),
2593 set_gdbarch_register_to_value(),
2594 set_gdbarch_value_to_register(),
2595 set_gdbarch_push_dummy_call(),
2596 set_gdbarch_frame_align(),
2597 set_gdbarch_unwind_dummy_id(),
2598 set_gdbarch_unwind_pc(),
2599 frame_unwind_append_sniffer(),
2600 frame_unwind_append_sniffer(),
2601 and frame_base_set_default().
2602
aede7613
CD
26032003-08-25 Chris Demetriou <cgd@broadcom.com>
2604
2605 * configure.tgt: Document need for special "mipsisa64" handling.
2606 (mipsisa64*-*-linux64): Handle as target linux64.
2607 (mipsisa64*-*-*): Handle as target embed64.
2608
43c3a82e
MC
26092003-08-18 Michael Chastain <mec@shout.net>
2610
2611 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2612 objfile bug.
2613
6564f77d
MK
26142003-08-24 Mark Kettenis <kettenis@gnu.org>
2615
2de139ba
MK
2616 * i387-tdep.h: Update copyright date.
2617 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2618
6564f77d
MK
2619 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2620 CFLAGS games to reflect reality.
2621
42cf1509
AC
26222003-08-24 Andrew Cagney <cagney@redhat.com>
2623
2624 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2625 GDB_MULTI_ARCH is always non-zero.
2626 * osabi.c (_initialize_gdb_osabi): Ditto.
2627 (gdbarch_init_osabi): Ditto.
2628 * sparc-tdep.c: Ditto for #if code.
2629
0485f6ad
MK
26302003-08-23 Mark Kettenis <kettenis@gnu.org>
2631
2632 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2633 Update comments.
2634 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2635 comments.
2636 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2637 x86_64_supply_fxsave.
2638 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2639 x86_64_supply_fxsave.
2640 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2641 x86_64_supply_fxsave.
2642
c7716133
AJ
26432003-08-23 Andreas Jaeger <aj@suse.de>
2644
2645 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2646 i387_supply_fxsave.
2647
ed504bdf
MK
26482003-08-23 Mark Kettenis <kettenis@gnu.org>
2649
2650 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2651 i387_supply_register.
2652 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2653 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2654 i387_supply_fsave.
2655 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2656 i387_supply_fxsave.
2657 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2658 i387_supply_fsave.
2659 * i386bsd-nat.c (supply_fpregset): Adjust call to
2660 i387_supply_fsave.
2661 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2662 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2663 supply_fpregset.
2664 (store_inferior_registers): Remove extraneous whitespace. Call
2665 i387_fill_fsave instead of fill_fpregset.
2666 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2667 (supply_fpregset): Likewise.
2668 * i386v4-nat.c (supply_fpregset): Adjust call to
2669 i387_supply_fsave.
2670 * i386-interix-nat.c (supply_fpregset): Adjust call to
2671 i387_supply_fsave.
2672 * i386-linux-nat.c (supply_fpregset): Adjust call to
2673 i387_supply_fsave.
2674 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2675 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2676 i387supply_fsave and i387_supply_fxsave.
2677 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2678 Incorporate code from `i387_supply_register.
2679 (i387_supply_register): Remove.
2680 (i387_supply_fxsave): Add `regnum' argument.
2681 Update comments.
2682 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2683 prototype.
2684 (i387_supply_register): remove prototype.
2685 Update comments.
a8f4cde1 2686
4be5d520
MC
26872003-08-22 Michael Chastain <mec@shout.net>
2688
2689 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2690 Add lines for files in gdb/testsuite/gdb.cp/* that are
2691 still not 8.3 unique.
2692
7ed85d26
DJ
26932003-08-22 Daniel Jacobowitz <drow@mvista.com>
2694
2695 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2696 TYPE_VPTR_FIELDNO is valid.
2697
eb0d3137
MK
26982003-08-19 Mark Kettenis <kettenis@gnu.org>
2699
2700 * utils.c (set_width_command): Remove prototypes.
2701 (set_screen_size): New prototype.
2702 (init_page_info): Simplify by fetching the screen size from
2703 Readline. Call set_screen_size.
2704 (set_screen_size): New function.
2705 (set_width): Add missing whitespace in comment.
2706 (set_width_command): Call set_screen_size.
2707 (set_height_command): New function.
2708 (initialize_utils): Fix formatting. Make "set height" command
2709 call set_height_command. Remove redundant code that turns off
2710 pagination if output isn't a terminal. Remove redundant call to
2711 set_width_command.
a8f4cde1 2712
7e6d0ac8
MK
27132003-08-22 Mark Kettenis <kettenis@gnu.org>
2714
3567a8ea
MK
2715 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2716 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2717 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2718 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2719 `case' keyword.
2720 (sparc64_register_info): Give the reister with number
2721 SPARC64_STATE_REGNUM a name.
2722 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2723 %asi and %ccr.
2724 (sparc64_push_dummy_call): Take BIAS into account when checking
2725 stcak alignment.
2726 (sparc_software_single_step): Remove assertions that check whether
2727 NPC and NNPC were zero.
2728 (sparc_supply_rwindow): Make public. Merge functionality with
2729 sparc64_supply_rwindow.
2730 (sparc_fill_rwindow): Make public. Merge functionality with
2731 sparc64_fill_rwindow.
2732 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2733 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2734 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2735 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2736 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2737
7e6d0ac8
MK
2738 * reggroups.c: Add whitespace after declarations of local
2739 variables in functions.
2740
72e5f484
MC
27412003-08-21 Michael Chastain <mec@shout.net>
2742
2743 * gdbtypes.h: Change array bound type from an int to enum.
2744
435ac228
AC
27452003-08-21 Andrew Cagney <cagney@redhat.com>
2746
2747 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2748 * config/sparc/tm-sparc.h: Ditto.
2749 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2750 unconditionally.
2751 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2752
0d0e1a63
MK
27532003-07-13 Mark Kettenis <kettenis@gnu.org>
2754
2755 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2756 (register_objfile_data, set_objfile_data, objfile_data): New
2757 prototypes.
2758 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2759 prototypes.
2760 (allocate_objfile): Call objfile_alloc_data.
2761 (free_objfile): Call objfile_free_data.
2762 (struct objfile_data): New.
2763 (struct objfile_data_registration): New.
2764 (struct objfile_data_registry): New.
2765 (objfile_data_registry): New variable.
2766 (register_objfile_data): New function.
2767 (objfile_alloc_data, objfile_free_data): New functions.
2768 (set_objfile_data, objfile_data): New functions.
2769 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2770 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2771 (_initialize_dwarf2_frame): New function and prototype.
2772
d90cf509
AC
27732003-08-21 Andrew Cagney <cagney@redhat.com>
2774
2775 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2776 a specific architecture.
2777 * arch-utils.h (set_architecture_from_arch_mach): Delete
2778 declaration.
2779 (target_architecture_hook): Delete declaration.
2780 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2781 (default_float_format): Assume GDB_MULTI_ARCH.
2782 (default_double_format): Assume GDB_MULTI_ARCH.
2783 (set_endian_from_file): Delete function.
2784 (arch_ok): Delete function.
2785 (set_arch): Delete function.
2786 (set_architecture_from_arch_mach): Delete function.
2787 (set_architecture_from_file): Delete function.
2788 (set_architecture): Assume GDB_MULTI_ARCH.
2789 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2790
8b39fe56
MK
27912003-08-21 Mark Kettenis <kettenis@gnu.org>
2792
2793 Rewrite FreeBSD/sparc64 native configuration.
2794 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2795 * sparc64fbsd-nat.c: New file.
2796 * sparc64fbsd-tdep.c: New file.
2797 * sparc64-tdep.c sparc64-tdep.h: New files.
2798 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2799 sparc64fbsd-tdep.o): New dependencies.
2800 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2801 and sparc64fbsd-tdep.c.
2802 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2803 * config/sparc/fbsd.mh: Remove copyright notice.
2804 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2805 sparcbsd-nat.o.
2806 * config/sparc/fbsd.mt: Remove copyright notice.
2807 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2808 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2809 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2810 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2811 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2812 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2813 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2814 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2815 "sparc/tm-sp64.h".
2816 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2817 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2818
a7f19c79
MC
28192003-08-21 Michael Chastain <mec@shout.net>
2820
2821 * symtab.h: Add doco on the space critical structures and
2822 some measurements of space usage.
2823
da08ea5b
MS
28242003-08-21 Michael Snyder <msnyder@redhat.com>
2825
2826 * tracepoint.c (trace_dump_command): Trace break address
2827 is subject to DECR_PC_AFTER_BREAK.
2828 (set_traceframe_context): Make "trace_line" an int.
2829 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2830
6df2bf50
MS
28312003-08-20 Michael Snyder <msnyder@redhat.com>
2832
2833 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2834 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2835 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2836 argument passing.
a8f4cde1 2837 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2838 functions, replace sh_push_dummy_call.
2839 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2840
0955bbf0
MC
28412003-08-20 Michael Chastain <mec@shout.net>
2842
2843 * gdbtypes.h (struct main_type): Rearrange to save space.
2844
260a4188
MS
28452003-08-20 Michael Snyder <msnyder@redhat.com>
2846
2847 * trad-frame.c: Comment typo fix.
2848
8baa6f92
KB
28492003-08-20 Michael Snyder <msnyder@redhat.com>
2850 Kevin Buettner <kevinb@redhat.com>
2851
2852 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2853 (frv_frame_init_saved_regs): Add declaration.
2854 (frame_extra_info): Add new field ``saved_regs''.
2855 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2856 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2857 Update frame related code.
2858 (frv_extract_struct_value_address): Adjust formatting.
2859 * Makefile.in (frv-tdep.o): Update dependencies.
2860 * config/frv/tm-frv.h (target_insert_watchpoint)
2861 (target_remove_watchpoint, target_insert_hw_breakpoint)
2862 (target_remove_hw_breakpoint): Delete these macros.
2863 (remote_insert_watchpoint, remote_remove_watchpoint)
2864 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2865 these declarations.
2866
87193939
MC
28672003-08-20 Michael Chastain <mec@shout.net>
2868
2869 * defs.h (ENUM_BITFIELD): New macro.
2870 * symtab.h (ENUM_BITFIELD): Use it.
2871 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2872
062103ba
SA
28732003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2874
2875 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2876
8b148df9
AC
28772003-08-18 Andrew Cagney <cagney@redhat.com>
2878
2879 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2880 * gdbarch.h, gdbarch.c: Re-generate.
2881 * infcall.c (call_function_by_hand): Adjust the SP by
2882 frame_red_zone_size before allocating any stack space.
2883 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2884 * x86-64-tdep.c (x86_64_frame_align): New function.
2885 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2886
2887 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2888 Remove code adjusting SP so that it skips over the Red Zone.
2889
954a4db8
MK
28902003-08-18 Mark Kettenis <kettenis@gnu.org>
2891
2892 * NEWS (New native configurations): Mention FreeBSD/amd64.
2893
1a241548
AC
28942003-08-18 Andrew Cagney <cagney@redhat.com>
2895
2896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2897 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2898 "m68k_frame_p".
2899 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2900
f82b2acd
MK
29012003-08-18 Mark Kettenis <kettenis@gnu.org>
2902
2903 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2904
4056d258
ML
29052003-08-18 Michal Ludvig <mludvig@suse.cz>
2906
2907 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2908 Define.
2909 * i386-linux-nat.c: Include "linux-nat.h".
2910 (child_post_startup_inferior): New function.
a8f4cde1 2911
99ab4326
MK
29122003-08-18 Mark Kettenis <kettenis@gnu.org>
2913
2914 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2915 at the start of a frameless function. This probably fixes PR
2916 backtrace/1338.
2917
c8d5f0d6
MC
29182003-08-17 Michael Chastain <mec@shout.net>
2919
2920 * symfile.c (find_sym_fns): Remove special case for apollo target.
2921
9016a515
DJ
29222003-08-17 Daniel Jacobowitz <drow@mvista.com>
2923
2924 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2925 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2926 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2927 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2928 (linux_supports_tracevforkdone): New function.
2929 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2930 TRACEVFORKDONE.
2931 (child_follow_fork): Handle vfork.
2932 (linux_handle_extended_wait): Likewise. Also handle exec.
2933 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2934 * NEWS: Mention fork tracing.
2935
c538c11c
DJ
29362003-08-17 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2939
4de4c07c
DJ
29402003-08-17 Daniel Jacobowitz <drow@mvista.com>
2941
2942 * Makefile.in (i386-linux-nat.o): Update dependencies.
2943 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2944 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2945 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2946 * i386-linux-nat.c: Include "linux-nat.h".
2947 (child_post_startup_inferior): New function.
2948 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2949 * infptrace.c (kill_inferior): Wrap in #ifdef.
2950 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2951 attaching to each LWP.
2952 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2953 (init_lin_lwp_ops): Fill in some more operations.
2954 * linux-nat.h (linux_enable_event_reporting)
2955 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2956 prototypes.
2957 * linux-nat.c (linux_enable_event_reporting): New function.
2958 (child_post_attach, linux_child_post_startup_inferior)
2959 (child_post_startup_inferior, child_follow_fork)
2960 (linux_handle_extended_wait, kill_inferior): New functions.
2961
7996bcec
AC
29622003-08-16 Andrew Cagney <cagney@redhat.com>
2963
2964 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2965 * gdbarch.h, gdbarch.c: Re-generate.
2966
3d48a7a0
MK
29672003-08-16 Mark Kettenis <kettenis@gnu.org>
2968
2969 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2970
7989c619
AC
29712003-08-16 Andrew Cagney <cagney@redhat.com>
2972
2973 * NEWS: Mention that "set prompt-escape-char" was deleted.
2974 * top.c (get_prompt_1): Delete function.
2975 (gdb_prompt_escape):
2976 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2977 prompt-escape-char" command.
2978 (MAX_PROMPT_SIZE): Delete macro.
2979 (get_prompt): Simplify, do not call get_prompt_1.
2980
07978cd8
AC
29812003-08-16 Andrew Cagney <cagney@redhat.com>
2982
2983 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2984 -Werror. -Wformat-nonliteral problems.
2985
3ff7cf9e
JB
29862003-08-15 J. Brobecker <brobecker@gnat.com>
2987
2988 Further multiarching work mostly for hppa64-*-hpux11:
2989 * hppa-tdep.h: New file.
2990 * hppa-tdep.c: #include hppa-tdep.c.
2991 (hppa32_num_regs): Renamed from hppa_num_regs.
2992 (hppa64_num_regs): New constant.
2993 (hppa64_call_dummy_breakpoint_offset): New constant.
2994 (hppa32_call_dummy_length): New constant.
2995 (hppa64_call_dummy_length): New constant.
2996 (hppa32_stack_align): Make name 32bit explicit.
2997 (hppa32_register_virtual_type): Likewise.
2998 (hppa32_extract_return_value): Likewise.
2999 (hppa32_use_struct_convention): Likewise.
3000 (hppa32_store_return_value): Likewise.
3001 (hppa64_register_virtual_type): New function.
3002 (hppa64_extract_return_value): New function.
3003 (hppa64_use_struct_convention): New function.
3004 (hppa64_store_return_value): New function.
3005 (hppa_frame_locals_address): Remove declaration, function does
3006 not exist anymore.
3007 (hppa_register_byte): Add support for PA64 ABI.
3008 (hppa_gdbarch_init): Add support for PA64 ABI.
3009 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3010 Make name 32bit explicit.
3011 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3012 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3013 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3014 (hppa64_hpux_frame_base_before_sigtramp): New function.
3015 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3016 * config/pa/tm-hppa64.h: Remove macros that are no longer
3017 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3018 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3019 * config/pa/tm-hppah.h: Update function calls in macros
3020 following the function renaming in hppa-hpux-tdep.c.
3021 * Makefile.in (hppa_tdep_h): New variable.
3022 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3023
5d05ca6d
MS
30242003-08-14 Michael Snyder <msnyder@redhat.com>
3025
3026 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3027
37ba2569
JB
30282003-08-13 J. Brobecker <brobecker@gnat.com>
3029
3030 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3031 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3032 routine.
3033
aed7f26a
MS
30342003-08-13 Michael Snyder <msnyder@redhat.com>
3035
3036 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3037 (frv_saved_pc_after_call): Use deprecated ftype.
3038 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3039 (frv_remote_translate_xfer_address): Remove.
3040 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3041
752d4ac1
JB
30422003-08-13 J. Brobecker <brobecker@gnat.com>
3043
3044 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3045 initialization after the common gdbarch initialization, not before.
3046
1426ac1d
JB
30472003-08-13 J. Brobecker <brobecker@gnat.com>
3048
3049 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3050 (ADDR_BITS_REMOVE): Remove, redundant.
3051
b6fbdd1d
JB
30522003-08-13 J. Brobecker <brobecker@gnat.com>
3053
3054 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3055 gdbarch method to clear the 2 low bits of text addresses.
3056
44160db3
AC
30572003-08-12 Andrew Cagney <cagney@redhat.com>
3058
3059 * Makefile.in (dsrec.o): Update dependencies.
3060 * dsrec.c: Include "gdb_assert.h".
3061 (make_srec): Use snprintf instead of sprintf, use a literal format
3062 string.
3063
bcf7d3ca
AC
30642003-08-12 Andrew Cagney <cagney@redhat.com>
3065
3066 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3067 FRAME_OBSTACK_ZALLOC.
3068
49ed40de
KB
30692003-08-12 Kevin Buettner <kevinb@redhat.com>
3070
3071 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3072 SSE registers.
3073
b246147c
MK
30742003-08-10 Mark Kettenis <kettenis@gnu.org>
3075
3076 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3077 amd64fbsd_sc_reg_offset): Add extern declarations.
3078 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3079 declarations.
3080
d95fdc0d
BE
30812003-08-11 Ben Elliston <bje@wasabisystems.com>
3082
3083 * MAINTAINERS (write after approval): Update my mail address.
3084
cf6a0e73
AC
30852003-08-10 Andrew Cagney <cagney@redhat.com>
3086
3087 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3088
f837910f
MK
30892003-08-10 Mark Kettenis <kettenis@gnu.org>
3090
e2dbbd2d
MK
3091 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3092 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3093 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3094 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3095 i386bsd_sc_reg_offset): Add extern declarations.
3096 * i386obsd-nat.c: Include "i386-tdep.h"
3097 (_initialize_i386obsd_nat): Remove extern declarations.
3098 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3099 declarations.
3100 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3101 declarations.
3102
f837910f
MK
3103 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3104 instead of frame_read_register.
3105 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3106 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3107 SP_REGNUM.
3108 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3109 instead of frame_unwind_unsigned_register. Use
3110 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3111 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3112 instead of read_register. Use builtin_type_void_data_ptr instead
3113 of builtin_type_void_func_ptr when extracting the address of the
3114 jmp_buf.
3115 (i386_extract_return_value, i386_store_return_value,
3116 i386_pseudo_register_read, i386_pseudo_register_write): Use
3117 register_size instead REGISTER_RAW_SIZE.
3118
edcf254d
AC
31192003-08-10 Andrew Cagney <cagney@redhat.com>
3120
3121 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3122 sprintf. Make "name" constant.
3123
26604a34
MK
31242003-08-10 Mark Kettenis <kettenis@gnu.org>
3125
192285c6
MK
3126 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3127 instead of frame_read_register.
f837910f
MK
3128 (i387_print_float_info): Use get_frame_register and
3129 get_frame_register_unsigned instead of frame_register_read.
192285c6 3130
f0925262
MK
3131 * i386fbsd-nat.c: Include "i386-tdep.h".
3132 (child_resume): Make `eflags' an ULONGEST. Use
3133 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3134 instead of register_read and register_write.
3135
a144416f
MK
3136 * i386bsd-nat.c (fetch_inferior_registers,
3137 store_inferior_registers): Don't use && at the end of a line.
3138 (_initialize_i386bsd_nat): Fix typo.
3139
fec74868
MK
3140 * frame.c (_initialize_frame): Add missing backslash.
3141
87232496
MK
3142 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3143 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3144 and supply_register instead of manipulating the register buffer
3145 directly.
3146
c9b9de0b
MK
3147 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3148 * config/i386/nm-i386sol2.h
3149 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3150
26604a34
MK
3151 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3152 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3153 instructions that GCC likes to mingle into the prologue. Fixes
3154 gdb/1253 and gdb/1255.
3155
25d29d70
AC
31562003-08-09 Andrew Cagney <cagney@redhat.com>
3157
3158 Fix GDB PR cli/926.
3159 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3160 * command.h (add_setshow_uinteger_cmd): Declare.
3161 * frame.c (set_backtrace_cmd): New function.
3162 (show_backtrace_cmd): New function.
3163 * frame.c (_initialize_frame): Replace "set/show
3164 backtrace-below-main" with "set/show backtrace past-main". Add
3165 command "set/show backtrace limit".
3166 (backtrace_past_main): Rename "backtrace_below_main".
3167 (backtrace_limit): New variable.
3168 (get_prev_frame): Update. Check the backtrace_limit.
3169
9ebf4acf
AC
31702003-08-09 Andrew Cagney <cagney@redhat.com>
3171
3172 * defs.h (xstrprintf): Declare.
3173 * utils.c (xstrprintf): New function.
3174 * breakpoint.c (insert_breakpoints): Replace sprintf and
3175 non-literal format strings, with xstrprintf and cleanups.
3176 (delete_breakpoint,breakpoint_re_set): Ditto.
3177 (commands_command, insert_breakpoints): Ditto.
3178 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3179 (break_at_finish_command_1): Ditto.
3180
3771659b
AC
31812003-08-09 Andrew Cagney <cagney@redhat.com>
3182
3183 * MAINTAINERS (language support): List Adam Fedor as Objective C
3184 maintainer.
3185
b4263afa
JB
31862003-08-08 J. Brobecker <brobecker@gnat.com>
3187
3188 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3189 are now multiarched.
3190
d84defb1
JB
31912003-08-08 J. Brobecker <brobecker@gnat.com>
3192
3193 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3194 longer necessary now that hppa64 is partially multiarch'ed.
3195
f786f615
AC
31962003-08-08 Andrew Cagney <cagney@redhat.com>
3197
3198 * interps.c (interp_set): Check for a NULL "old_interp".
3199
c938e9b0
L
32002003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3201
3202 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3203 (install-only): Support DESTDIR.
3204 (uninstall): Likewise.
3205 (install-gdbtk): Likewise.
3206
9a146a11
EZ
32072003-08-08 Elena Zannoni <ezannoni@redhat.com>
3208
3209 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3210 contains something meaningful at all times.
3211
3212Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3213
62599e99 3214 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3215
56296155
BC
3216Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3217
62599e99 3218 * MAINTAINERS (write after approval): Added self.
56296155 3219
9710e734
AC
32202003-08-07 Andrew Cagney <cagney@redhat.com>
3221
3222 * inferior.h (AT_SYMBOL): Define.
3223 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3224 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3225 * mips-tdep.c (mips_call_dummy_address): Delete function.
3226 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3227 set call_dummy_address.
3228
98b3ab73
AC
32292003-08-07 Andrew Cagney <cagney@redhat.com>
3230
3231 * language.c (op_error): Delete function.
3232 (binop_type_check): Delete function.
3233 * language.h (type_op_error, range_op_error): Delete macros.
3234 (op_error): Delete declaration.
3235
2fcf52f0
AC
32362003-08-07 Andrew Cagney <cagney@redhat.com>
3237
3238 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3239
abd4220e 32402003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3241
abd4220e 3242 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3243 (x86_64_push_arguments): Skip the red zone.
abd4220e 3244
9dd5f34f
AC
32452003-08-05 Andrew Cagney <cagney@redhat.com>
3246
3247 * reggroups.c (reggroup_next): Check for the final entry.
3248
e5e78edc
AC
32492003-08-04 Andrew Cagney <cagney@redhat.com>
3250
ab4e3d93
AC
3251 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3252 * cli/cli-script.c (define_command): Call query directly, instead
3253 of passing it a buffer.
3254 * ocd.c (ocd_error): Pass error a constant format string.
3255 * remote-mips.c (mips_error): Use fputs_filtered.
3256
1062ca82
AC
3257 * solib-svr4.c (_initialize_svr4_solib): Update
3258 register_gdbarch_data call.
3259 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3260
fcc1c85c
AC
3261 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3262 (register_gdbarch_data): Delete "free" parameter. Update
3263 comments.
3264 * gdbarch.h, gdbarch.c: Re-generate.
3265 * reggroups.c (_initialize_reggroup): Update.
3266 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3267 * frame-base.c (_initialize_frame_base): Update.
3268 * frame-unwind.c (_initialize_frame_unwind): Update.
3269 * user-regs.c (_initialize_user_regs): Update.
3270 * remote.c (_initialize_remote): Update.
3271 * regcache.c (_initialize_regcache): Update.
3272
116f06ea
AC
3273 * regcache.c (xfree_regcache_descr): Delete function.
3274 (_initialize_regcache): Update call to register_gdbarch_data.
3275 (init_regcache_descr, init_legacy_regcache_descr): Use
3276 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3277
e5e78edc
AC
3278 * remote.c (free_remote_state): Delete function.
3279 (_initialize_remote): Update register_gdbarch_data.
3280 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3281 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3282
6c7d17ba
AC
32832003-08-04 Andrew Cagney <cagney@redhat.com>
3284
3285 * reggroups.c (struct reggroup_el): Define.
3286 (struct reggroups): Delete field "nr_group". Replace array
3287 "group" with a "first" to "last" linked list.
3288 (reggroups_init): Update. Allocate using gdbarch's obstack.
3289 (reggroups_free): Delete function.
3290 (add_group): Update. Add "el" parameter.
3291 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3292 (default_groups): Update.
3293 (reggroup_next): Replace reggroups.
3294 (reggroups_dump): Update.
3295 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3296 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3297 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3298
89b7795b
DJ
32992003-08-04 Daniel Jacobowitz <drow@mvista.com>
3300
3301 * Makefile.in (tui-interp.o): Update dependencies.
3302
306d9ac5
DC
33032003-08-04 David Carlton <carlton@kealia.com>
3304
3305 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3306 to internal_error call.
3307 * source.c (forward_search_command): Add "%s" format argument.
3308 (reverse_search_command): Ditto.
3309 * top.c (quit_confirm): Ditto.
3310 * cli/cli-setshow.c (do_setshow_command): Ditto.
3311 * cp-valprint.c (cp_print_class_method): Replace
3312 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3313 (cp_print_class_member): Ditto.
3314 * event-top.c (command_line_handler): Ditto.
3315 * linux-proc.c (linux_info_proc_cmd): Ditto.
3316 * p-typeprint.c (pascal_type_print_base): Ditto.
3317 * p-valprint.c (pascal_object_print_class_method): Ditto.
3318 (pascal_object_print_class_member): Ditto.
3319 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3320 * remote.c (remote_cisco_section_offsets): Ditto.
3321 * top.c (command_line_input): Ditto.
3322 * utils.c (vwarning,error_stream,quit): Ditto.
3323 * valprint.c (print_floating,print_binary_chars)
3324 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3325
57bfe177
AC
33262003-08-04 Andrew Cagney <cagney@redhat.com>
3327
3328 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3329
e546b999
AC
33302003-08-02 Andrew Cagney <cagney@redhat.com>
3331
3332 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3333 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3334 amd64fbsd-nat.c.
3335
91092ee5
AC
33362003-08-02 Andrew Cagney <cagney@redhat.com>
3337
3338 * Makefile.in: Update all dependencies and definitions.
3339
889f28e2
AF
33402003-08-02 Adam Fedor <fedor@gnu.org>
3341
3342 * linespec.c (is_objc_method_format): New function
3343 (decode_line_1, locate_first_half): Use it.
3344 Fixes PR objc/1298
3345
880bc914
AC
33462003-08-01 Andrew Cagney <cagney@redhat.com>
3347
3348 * NEWS: Mention that m32r is multi-arch.
3349 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3350 * configure.tgt: Recognize m32r-*-*.
3351 * config/m32r/tm-m32r.h: Delete file.
3352 * config/m32r/m32r.mt: New file.
a8f4cde1 3353 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3354 gethostname succeeds, in order to avoid a compilation
3355 warning.
3356 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3357 compiler warning.
3358
19f59343
MS
33592003-08-01 Michael Snyder <msnyder@redhat.com>
3360
3361 * sh-tdep.c (sh_frame_align): New gdbarch method.
3362 (sh_gdbarch_init): Set up frame_align method.
3363
4e7d7511
MS
33642003-07-31 Michael Snyder <msnyder@redhat.com>
3365
3366 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3367 which is already covered by the new frames infrastructure.
3368
63022984
AC
33692003-07-31 Andrew Cagney <cagney@redhat.com>
3370
3371 * user-regs.c (struct user_reg): Add "next" link.
3372 (struct user_regs): Replace "user" with "first" and "last" links.
3373 (append_user_reg): Add pre-allocated "reg" parameter.
3374 (builtin_user_regs): Provide initial value for "last".
3375 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3376 (user_regs_init): Allocate memory from the gdbarch obstack.
3377 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3378 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3379 linked list.
3380 (usernum_to_user_reg): New function.
3381 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3382 (value_of_user_reg): Use usernum_to_user_reg.
3383 (user_regs_free): Delete function.
3384 (_initialize_user_regs): Update register_gdbarch_data call.
3385
7cf6e574
DJ
33862003-07-31 Daniel Jacobowitz <drow@mvista.com>
3387
3388 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3389
c48a845b
MS
33902003-07-30 Michael Snyder <msnyder@redhat.com>
3391
4e7d7511 3392 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3393 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3394 value_being_returned.
3395 * infcmd.c (print_return_value): Pass zero as struct_addr.
3396 * values.c (value_being_returned): If struct_addr is passed,
3397 use it instead of trying to recover it from the inferior.
3398
f0d8db19
KB
33992003-07-30 Kevin Buettner <kevinb@redhat.com>
3400
3401 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3402 the prologue analyzer won't need to attempt to extract the pc
3403 value from the woefully incomplete dummy frame.
3404 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3405 possible. Disable code which modifies the frame.
3406
e5c113a1
AC
34072003-07-28 Andrew Cagney <cagney@redhat.com>
3408
3409 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3410 to level 2.
3411 (annotate_breakpoints_table, annotate_record): Ditto.
3412 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3413 (annotate_field_name_end, annotate_field_value): Ditto.
3414 (annotate_field_end, annotate_frame_source_begin): Ditto.
3415 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3416 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3417 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3418 (annotate_frame_address_end, annotate_frame_address): Ditto.
3419 (annotate_frame_args, annotate_frame_end): Ditto.
3420 (annotate_frame_where, annotate_arg_begin): Ditto.
3421 (annotate_arg_name_end, annotate_arg_value): Ditto.
3422 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3423 (annotate_function_call, annotate_signal_name): Ditto.
3424 (annotate_signal_string, annotate_signal_name_end): Ditto.
3425 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3426 (annotate_value_begin, annotate_value_history_value): Ditto.
3427 (annotate_value_history_end, annotate_value_end): Ditto.
3428 (annotate_display_begin, annotate_display_number_end): Ditto.
3429 (annotate_display_format, annotate_display_expression): Ditto.
3430 (annotate_display_expression_end, annotate_display_value): Ditto.
3431 (annotate_display_end, annotate_array_section_begin): Ditto.
3432 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3433 (annotate_elt, annotate_array_section_end): Ditto.
3434
bb1db049
AC
34352003-07-28 Andrew Cagney <cagney@redhat.com>
3436
3437 * regcache.c (struct regcache_descr): Update comments on
3438 nr_raw_registers.
3439 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3440 sizeof_raw_register_valid_p.
3441 (init_regcache_descr): Set nr_raw_registers and
3442 sizeof_raw_register_valid_p before calling
3443 init_legacy_regcache_descr.
3444
20e6603c
AC
34452003-07-28 Andrew Cagney <cagney@redhat.com>
3446
3447 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3448 MOD NUM_REGS.
3449
db742940
DJ
34502003-07-28 Daniel Jacobowitz <drow@mvista.com>
3451
3452 * thread.c (info_threads_command): Use get_selected_frame ().
3453 Check that there is at least one non-sentinel frame.
3454
ce7f4371
SC
34552003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3456
3457 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3458 (m68hc11_pop_frame): Remove.
3459 (m68hc11_frame_saved_pc): Remove.
3460 (m68hc11_frame_chain): Remove.
3461 (m68hc11_frame_init_saved_regs): Remove.
3462 (m68hc11_init_extra_frame_info): Remove.
3463 (m68hc11_store_struct_return): Remove.
3464 (m68hc11_saved_pc_after_call): Remove.
3465
1ea653ae
SC
34662003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3467
3468 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3469 frame unwind information.
3470 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3471 and adapted for frame unwinding.
3472 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3473 (m68hc11_unwind_pc): New function.
3474 (m68hc11_frame_unwind_cache): New function to analyze frames.
3475 (m68hc11_frame_this_id): New function to create new frame struct.
3476 (m68hc11_frame_prev_register): New function to unwind a register from
3477 the frame.
3478 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3479 (m68hc11_frame_p): New function for the above.
3480 (m68hc11_frame_base_address): New function to return fp of frame.
3481 (m68hc11_frame_args_address): Update for frame.
3482 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3483 (m68hc11_unwind_sp): New function.
3484 (m68hc11_unwind_dummy_id): New function.
3485 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3486 calls.
3487
c8a7f6ac
SC
34882003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3489
3490 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3491 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3492 when we are beyond the current pc.
3493
3dc990bf
SC
34942003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3495
3496 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3497 from m68hc11_push_arguments.
3498 (m68hc11_push_arguments): Remove.
3499 (m68hc11_push_return_address): Remove.
3500 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3501 handlers; remove deprecated_extra_stack_alignment_needed.
3502
222e5d1d
AC
35032003-07-27 Andrew Cagney <cagney@redhat.com>
3504
3505 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3506 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3507 REAL_PC and not the pointer.
3508 * hppa-hpux-tdep.c: Include frame.h
3509
a7e9a47e
AC
35102003-07-27 Andrew Cagney <cagney@redhat.com>
3511
3512 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3513 GDB_MULTI_ACH_PARTIAL.
3514
7e3dd49e
AC
35152003-07-27 Andrew Cagney <cagney@redhat.com>
3516
3517 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3518 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3519 operator at start and not end of line.
3520 (decode_prologue): Ditto.
3521 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3522 frame_unwind_register_unsigned instead of
3523 frame_unwind_unsigned_register.
3524 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3525 read_register.
3526 (m32r_push_dummy_call): Use register_size instead of
3527 REGISTER_RAW_SIZE.
3528 (m32r_frame_sniffer): Replace m32r_frame_p.
3529 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3530 * m32r-rom.c (report_transfer_performance): Delete extern
3531 declaration.
3532 (m32r_load, m32r_upload_command): Use print_transfer_performance
3533 instead of report_transfer_performance.
3534 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3535 / add_show_from_set.
3536
0880807f
AC
35372003-07-26 Andrew Cagney <cagney@redhat.com>
3538
3539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3540 store_return_value and extract_struct_value_address.
3541
64ae9269
DJ
35422003-07-26 Daniel Jacobowitz <drow@mvista.com>
3543
3544 PR c++/1267
3545 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3546 NULL, default to the section containing PC.
3547
e286caf2
SC
35482003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3549
3550 * NEWS: Mention "regs" deprecated for m68hc11 too.
3551
3552 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3553 (m68hc11_print_register): New function to print out one register.
3554 (m68hc11_print_registers_info): New function to print registers.
3555 (show_regs): Deprecate and use the above.
3556 (m68hc11_gdbarch_init): Install the print_registers_info.
3557
705b278b
JJ
35582003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3559
3560 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3561 that we have a SIGTRAP before returning non-zero.
3562
63cd4198
EZ
35632003-07-23 Michal Ludvig <mludvig@suse.cz>
3564 Elena Zannoni <ezannoni@redhat.com>
3565
a8f4cde1 3566 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3567 find_function_start_sal() returns empty record.
3568
6926787d
AS
35692003-07-23 Andreas Schwab <schwab@suse.de>
3570
3571 * ia64-tdep.c (ia64_print_insn): New function.
3572 (ia64_gdbarch_init): Set print_insn to it.
3573 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3574 deprecated_tm_print_insn_info.
3575
708cc1b6
MS
35762003-07-22 Michael Snyder <msnyder@redhat.com>
3577
3578 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3579 handle 8-bit returns (long long).
3580 (h8300h_extract_return_value): Ditto.
3581 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3582
aebd7893
AC
35832003-07-22 Andrew Cagney <cagney@redhat.com>
3584
3585 * gdbarch.c Include "gdb_obstack.h".
3586 (struct gdbarch): Add an "obstack".
3587 (alloc_gdbarch_data): Allocate the gdbarch data using
3588 GDBARCH_OBSTACK_CALLOC.
3589 (free_gdbarch_data): Delete function.
3590 (gdbarch_obstack_zalloc): New function.
3591 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3592 Assert that the architecture is not initialized.
3593 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3594 vector from the obstack.
3595 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3596 architecture obstack.
3597 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3598 (set_gdbarch_data): Assert that the data is not initialized.
3599 (struct gdbarch_data): Delete member "free".
3600 (register_gdbarch_data): Do not initialize "free".
3601 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3602
153721e6
AC
36032003-07-22 Andrew Cagney <cagney@redhat.com>
3604
3605 * configure.in (build_warnings): Add -Wformat-nonliteral.
3606 * configure: Re-generate.
3607
c193f044 36082003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3609
3610 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3611
c3228f12
EZ
36122003-07-22 Elena Zannoni <ezannoni@redhat.com>
3613
3614 * findvar.c (read_var_value): Remove case for thread local storage
3615 variables. It is now entirely handled by the dwarf2 location
3616 expression code.
3617 * printcmd.c (address_info): Ditto.
3618 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3619 enumeration value.
3620 (struct symbol): Remove objfile field, which was used by
3621 LOC_THREAD_LOCAL_STATIC only.
3622 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3623 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3624 usage of objfile pointer.
3625 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3626 thread local variables.
3627 Add include of objfiles.h.
3628 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3629 storage variables.
3630 * Makefile.in (dwarf2loc.o): Update dependencies.
3631
aef9bcd2
AC
36322003-07-22 Andrew Cagney <cagney@redhat.com>
3633
3634 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3635 get_frame_base.
3636 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3637 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3638 (struct value): Add opaque declaration.
3639 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3640
d95a8903
AC
36412003-07-21 Andrew Cagney <cagney@redhat.com>
3642
3643 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3644 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3645
4db73d49
SC
36462003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3647
a8f4cde1 3648 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3649 regcache_cooked_read_unsigned instead of read_register.
3650 (m68hc11_saved_pc_after_call): Likewise.
3651 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3652 instead of write_register.
3653 (m68hc11_register_type): New function.
3654 (m68hc11_register_virtual_type): Remove.
3655 (m68hc11_store_return_value): Convert to use the regcache.
3656 (m68hc11_extract_struct_value_address): Likewise.
3657 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3658 m68hc11_register_type; undeprecate store_return_value and
3659 extract_struct_value_address.
3660
ef2b8fcd
SC
36612003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3662
3663 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3664 and translate to use regcache.
3665 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3666
625b0b97
AC
36672003-07-18 Andrew Cagney <cagney@redhat.com>
3668
3669 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3670 * gdbarch.h, gdbarch.c: Re-generate.
3671 * i386-tdep.c (i386_gdbarch_init): Do not set
3672 DWARF2_BUILD_FRAME_INFO.
3673 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3674 unconditionally.
3675 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3676 DWARF2_BUILD_FRAME_INFO.
3677
22b0d388
AC
36782003-07-18 Andrew Cagney <cagney@redhat.com>
3679
3680 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3681 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3682
1ce5d6dd
AC
36832003-07-18 Andrew Cagney <cagney@redhat.com>
3684
3685 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3686 frame_unwind_address_in_block, instead of frame_pc_unwind.
3687 (dwarf2_frame_cache): Ditto.
3688
e6e5e94c
AC
36892003-07-18 Andrew Cagney <cagney@redhat.com>
3690
3691 * user-regs.h (struct gdbarch): Declare opaque.
3692 * ui-out.h (struct ui_file): Declare opaque.
3693 * dwarf2-frame.h (struct frame_info): Declare opaque.
3694
5483d879
KW
36952003-07-18 Kris Warkentin <kewarken@qnx.com>
3696
3697 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3698 #include "...".
3699 (procfs_meminfo): Change strerror to safe_strerror.
3700 (procfs_can_run): Remove K&R badness.
3701
278a7cf7
MS
37022003-07-17 Michael Snyder <msnyder@redhat.com>
3703
3704 * remote-sim.c: Comment typo fix.
3705
606e3b82
AC
37062003-07-17 Andrew Cagney <cagney@redhat.com>
3707
3708 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3709 configure.
3710 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3711 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3712 GDB_MULTI_ARCH_PARTIAL.
3713
c43af07c
EZ
37142003-07-17 Elena Zannoni <ezannoni@redhat.com>
3715
3716 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3717 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3718 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3719
3b85b0f1
TR
37202003-07-16 Theodore A. Roth <troth@openavr.org>
3721
3722 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3723 found.
3724 (avr_frame_unwind_cache): Don't unwind FP for main.
3725 Update a comment.
3726 Save the computed prev_sp.
3727 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3728 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3729 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3730
336d1bba
AC
37312003-07-16 Andrew Cagney <cagney@redhat.com>
3732
3733 * frame-base.h (frame_base_p_ftype): Delete definition.
3734 (frame_base_append_predicate): Delete declaration.
3735 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3736 (frame_unwind_append_predicate): Delete declaration.
3737 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3738 (append_predicate): Delete parameter "p".
3739 (frame_unwind_append_predicate): Delete function.
3740 (frame_unwind_append_sniffer): Update call to append_predicate.
3741 (frame_unwind_free): Delete function.
3742 (_initialize_frame_unwind): Pass NULL as "free" to
3743 register_gdbarch_data.
3744 (frame_unwind_init): Append the dummy_frame_sniffer.
3745 (frame_unwind_find_by_frame): Simplify.
3746 * frame-base.c (struct frame_base_table): Delete field "p".
3747 (append_predicate): Delete parameter "p".
3748 (frame_base_append_predicate): Delete function.
3749 (frame_base_append_sniffer): Update call to append_predicate.
3750 (frame_base_free): Delete function.
3751 (frame_base_find_by_frame): Simplify.
3752 (_initialize_frame_base): Pass NULL as "free" to
3753 register_gdbarch_data.
3754 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3755 (x86_64_sigtramp_frame_sniffer): Replace
3756 "x86_64_sigtramp_frame_p".
3757 (x86_64_init_abi): Set the frame unwind sniffers.
3758 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3759 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3760 (m68k_gdbarch_init): Set the frame unwind sniffers.
3761 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3762 "i386_sigtramp_frame_p".
3763 (i386_frame_sniffer): Replace "i386_frame_p".
3764 (i386_gdbarch_init): Set the frame unwind sniffers.
3765 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3766 (avr_gdbarch_init): Set the frame unwind sniffers.
3767 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3768 "alpha_sigtramp_frame_p"
3769 (alpha_heuristic_frame_sniffer): Replace
3770 "alpha_heuristic_frame_p".
3771 (alpha_gdbarch_init): Set the frame unwind sniffers.
3772 (alpha_dwarf2_init_abi): Ditto.
3773 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3774 "alpha_debug_frame_p".
3775 (alpha_mdebug_frame_base_sniffer): Replace
3776 "alpha_mdebug_frame_base_p".
3777 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3778 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3779 (d10v_gdbarch_init): Set the frame unwind sniffer.
3780 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3781 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3782 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3783 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3784 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3785 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3786
48db5a3c
CV
37872003-07-16 Michael Snyder <msnyder@redhat.com>
3788
3789 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3790 should go thru sh_dsp_register_sim_regno, else the dsp regs
3791 will not get the right values.
3792
37932003-07-16 Corinna Vinschen <vinschen@redhat.com>
3794
3795 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3796 deprecated_store_floating by call to store_typed_floating.
3797 (sh_sh4_register_convert_to_raw): Substitute call to
3798 deprecated_extract_floating by call to extract_typed_floating.
3799
38002003-07-16 Corinna Vinschen <vinschen@redhat.com>
3801
3802 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3803
38042003-07-16 Corinna Vinschen <vinschen@redhat.com>
3805
3806 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3807 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3808 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3809 as possible.
3810 (do_pseudo_register): Remove.
3811 (sh_push_dummy_code): New function.
3812 (sh64_store_struct_return): Rename from sh_store_struct_return.
3813 Only called for sh64 now.
3814 (sh_extract_struct_value_address): Regcache'ify.
3815 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3816 and accomodate new tasks.
3817 (sh64_push_return_address): Rename from sh_push_return_address.
3818 Only called for sh64 now.
3819 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3820 Regcache'ify.
3821 (sh3e_sh4_extract_return_value): Regcache'ify.
3822 (sh_default_store_return_value): Ditto.
3823 (sh3e_sh4_store_return_value): Ditto.
3824 (sh_default_register_byte): Remove.
3825 (sh_sh4_register_byte): Remove.
3826 (sh_default_register_raw_size): Remove.
3827 (sh_sh4_register_raw_size): Remove.
3828 (sh_register_virtual_size): Remove.
3829 (sh_sh3e_register_virtual_type): Remove.
3830 (sh_sh3e_register_type): New function.
3831 (sh_sh4_register_virtual_type): Remove.
3832 (sh_sh4_register_type): New function.
3833 (sh_default_register_virtual_type): Remove.
3834 (sh_default_register_type): New function.
3835 (do_fv_register_info): Add parameters to accomodate call from
3836 sh_print_registers_info.
3837 (do_dr_register_info): Ditto.
3838 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3839 Add parameters to accomodate call from sh_print_registers_info.
3840 (sh_do_fp_register): Ditto.
3841 (sh64_do_pseudo_register): Call do_dr_register_info,
3842 do_fv_register_info and sh_do_fp_register with default parameters.
3843 (sh_do_register): Add parameters to accomodate call from
3844 sh_print_registers_info.
3845 (sh_print_register): Ditto.
3846 (sh_print_registers_info): Rename from sh_do_registers_info.
3847 Add parameters to be used as gdbarch_print_registers_info
3848 implementation. Accomodate removed do_pseudo_register function
3849 pointer.
3850 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3851 function pointer. Call sh_print_register with default parameters.
3852 (sh64_do_registers_info): Call sh_print_registers_info instead of
3853 sh_do_registers_info.
3854 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3855 detection of deprecated vs. non-deprecated functionality.
3856 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3857 function pointer assignments by direct function calls.
3858
e8a89fe2
AC
38592003-07-15 Andrew Cagney <cagney@redhat.com>
3860
3861 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3862 (frame_register_unwind, create_new_frame): Ditto.
3863 (legacy_get_prev_frame, get_frame_type): Ditto.
3864 (get_frame_base_address): Use frame_base_find_by_frame.
3865 (get_frame_locals_address): Use frame_base_find_by_frame.
3866 (get_frame_args_address): Use frame_base_find_by_frame.
3867 * frame-base.h (frame_base_sniffer_ftype): Declare.
3868 (frame_base_append_sniffer): Declare.
3869 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3870 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3871 (frame_base_append_sniffer): New function.
3872 (frame_base_append_predicate): Add a NULL sniffer.
3873 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3874 (struct frame_base_table): Add "sniffer".
3875 (frame_base_free): Free the "sniffer" table.
3876 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3877 (frame_unwind_append_sniffer): Declare.
3878 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3879 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3880 (struct frame_unwind_table): Add "sniffer", delete "middle".
3881 (append_predicate): Add "sniffer" parameter, append the sniffer.
3882 (frame_unwind_init): Update append_predicate call.
3883 (frame_unwind_append_sniffer): New function.
3884 (frame_unwind_append_predicate): Update append_predicate call.
3885 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3886
0714963c
AC
38872003-07-15 Andrew Cagney <cagney@redhat.com>
3888
3889 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3890 before code inhibiting repeated unwind attempts. Add to
3891 commentary on that test's problems.
3892 * blockframe.c (inside_main_func): Look for "main" in the minimal
3893 symbol table.
3894 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3895 identical.
3896
d9170e22
AC
38972003-07-15 Andrew Cagney <cagney@redhat.com>
3898
3899 * complaints.c (struct explanation): Define.
3900 (struct complaints): Change type of "explanation" to "struct
3901 explanation".
3902 (symfile_explanations): Convert to a "struct explanation" table.
3903 (vcomplaint): Update.
3904
eba29c8c
ML
39052003-07-15 Michal Ludvig <mludvig@suse.cz>
3906
3907 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3908 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3909 x86_64_linux_(fill,supply)_gregset functions.
3910 * x86-64-linux-tdep.c (USER_*): New defines.
3911 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3912 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3913 New functions.
3914 (fetch_core_registers): Ditto.
3915 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3916 * x86-64-linux-tdep.h: New file.
3917 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3918 and core-regset.o.
3919 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3920
68cc0bfb
MK
39212003-07-13 Mark Kettenis <kettenis@gnu.org>
3922
88a115f7
MK
3923 * x86-64-tdep.c (x86_64_store_return_value): Use
3924 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3925
68cc0bfb
MK
3926 * configure.host: Add x86_64-*-freebsd*.
3927 * configure.tgt: Add x86_64-*-freebsd*.
3928 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3929 * amd64fbsd-nat.c: New file.
3930 * amd64fbsd-tdep.c: New file.
3931 * config/i386/nm-fbsd64.h: New file.
3932 * config/i386/fbsd64.mh: New file.
3933 * config/i386/fbsd64.mt: New file.
3934
138e7be5
MK
39352003-07-11 Mark Kettenis <kettenis@gnu.org>
3936
3937 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3938 `sc_regs_offset' and `sc_fpregs_offset'.
3939 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3940 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3941 (alpha_sigtramp_register_address): Rewrite to use new members of
3942 `struct gdbarch_tdep'.
3943 (alpha_gdbarch_init): Initialize new members of struct
3944 gdbarch_tdep'.
3945 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3946 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3947 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3948 (alphafbsd_pc_in_sigtramp): Implement.
3949 (alphafbsd_sigtramp_offset): New function.
3950 (alphafbsd_sigcontext_addr): New function.
3951 (alphafbsd_init_abi): Initialize signal trampoline related members
3952 of `struct gdbarch_tdep'.
3953 (_initialize_alphafbsd_tdep): Add prototype.
3954
95303a68
TR
39552003-07-11 Theodore A. Roth <troth@openavr.org>
3956
ba292e4c
TR
3957 * Makefile.in (install-only): Quote sed expression when generating
3958 transformed_name.
95303a68 3959
6896c0c7
RH
39602003-07-11 Richard Henderson <rth@redhat.com>
3961
3962 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3963 * dwarf2-frame.c: Include complaints.h.
3964 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3965 variable initialization; return NULL on error.
3966 (decode_frame_entry): New.
3967
8edd5d01
AC
39682003-07-11 Andrew Cagney <cagney@redhat.com>
3969
c4a09524
AC
3970 * frame.h (frame_address_in_block): Delete declaration.
3971 * blockframe.c (frame_address_in_block): Delete function.
3972 (get_frame_block): Use get_frame_address_in_block.
3973 (block_innermost_frame): Ditto.
3974 * stack.c (print_frame, backtrace_command_1): Ditto.
3975
8edd5d01
AC
3976 * frame.h (get_frame_address_in_block): Declare.
3977 (frame_unwind_address_in_block): Declare.
3978 * frame.c (frame_unwind_address_in_block): New function.
3979 (get_frame_address_in_block): New function.
3980
f7968451
AC
39812003-07-10 Andrew Cagney <cagney@redhat.com>
3982
3983 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3984 pre-default. Note: re-generate has no effect.
a8f4cde1 3985
ae99b398
AC
39862003-07-10 Andrew Cagney <cagney@redhat.com>
3987
3988 * gdbarch.sh: When a variable, but not a function, compare against
3989 0. Fix problem in previous patch.
3990 * gdbarch.c: Re-generate.
a8f4cde1 3991
956ac328
AC
39922003-07-10 Andrew Cagney <cagney@redhat.com>
3993
3994 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3995 functions against NULL, not 0.
3996 * gdbarch.c: Re-generate.
a8f4cde1 3997
287c3240
FF
39982003-07-10 Fred Fish <fnf@ninemoons.com>
3999
4000 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4001 null string instead of a null pointer.
4002 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4003
32f63c4b
MS
40042003-07-09 Michael Snyder <msnyder@redhat.com>
4005
4006 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4007
402ecd56
MK
40082003-07-09 Mark Kettenis <kettenis@gnu.org>
4009
4010 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4011 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4012 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4013 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4014 * x86-64-tdep.c: ... from here.
4015
c481dac7
AS
40162003-07-09 Andreas Schwab <schwab@suse.de>
4017
4018 * m68k-tdep.h (enum struct_return): Define.
4019 (struct gdbarch_tdep): Add struct_return.
4020 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4021 bytes are padded to the right, not to the left. Pass struct value
4022 address in register %a1, not on stack.
4023 (m68k_use_struct_convention): New function.
4024 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4025 struct_return in tdep to pcc_struct_return.
4026 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4027 reg_struct_return.
4028
a8f4cde1 40292003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4030
a8f4cde1 4031 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4032
96a4ee76
AC
40332003-07-09 Andrew Cagney <cagney@redhat.com>
4034
4035 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4036 Add comments about the checks.
4037
1517c6d1
AC
40382003-07-08 Andrew Cagney <cagney@redhat.com>
4039
4040 * Makefile.in: Make dependency section headers consistent.
4041 (config_h): Move to $BUILD headers section.
4042 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4043 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4044 (ada-exp.tab.c): Move to YACC/LEX section.
4045 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4046 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4047
dc5dd1eb
KW
40482003-07-08 Kris Warkentin <kewarken@qnx.com>
4049
4050 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4051 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4052 of strerror with safe_strerror, use ISO C function definitions,
4053 and replace instances of sprintf with snprintf.
dc5dd1eb 4054
612dde91
AC
40552003-07-07 Andrew Cagney <cagney@redhat.com>
4056
4057 * frame.c (get_prev_frame): Enable check for identical frames.
4058 Update comments. Update error messages.
4059
492c11d3
JB
40602003-07-07 Joel Brobecker <brobecker@gnat.com>
4061
4062 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4063
376a5a49
JB
40642003-07-07 Joel Brobecker <brobecker@gnat.com>
4065
4066 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4067 sort_symtab_syms, no longer necessary.
4068
22b4a9ad
JB
40692003-07-07 Joel Brobecker <brobecker@gnat.com>
4070
4071 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4072
5bbcb741
JB
40732003-07-07 Joel Brobecker <brobecker@gnat.com>
4074
4075 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4076 (mips_register_byte): Likewise.
4077
c139e7d9
DJ
40782003-07-07 Daniel Jacobowitz <drow@mvista.com>
4079
4080 * Makefile.in (sparc_tdep_h): New.
4081 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4082 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4083 * sparc-linux-nat.c: Include "sparc-tdep.h".
4084 * sparc-nat.c: Likewise.
4085 * sparc-tdep.c: Likewise.
4086 * sparc64nbsd-nat.c: Likewise.
4087 * sparcnbsd-nat.c: Likewise.
4088 * sparcnbsd-tdep.c: Likewise.
4089 * sparc-tdep.h: New file.
4090 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4091 and sparc_npc_regnum.
4092
fd8f87c5
DJ
40932003-07-07 Daniel Jacobowitz <drow@mvista.com>
4094
4095 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4096 (mips_linux_cannot_store_register): List supported instead of
4097 unsupported registers.
4098
13adf674
DJ
40992003-07-07 Daniel Jacobowitz <drow@mvista.com>
4100
4101 * disasm.c (dump_insns): Separate instructions from addresses.
4102
8de307e0
AS
41032003-07-07 Andreas Schwab <schwab@suse.de>
4104
4105 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4106 dependencies.
4107 * m68k-tdep.c (NUM_FREGS): Delete.
4108 (SIG_PC_FP_OFFSET): Delete.
4109 (TARGET_M68K): Delete.
4110 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4111 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4112 P_MOVEL_SP, P_MOVEML_SP): Define.
4113 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4114 P_TRAP): Delete.
4115 (m68k_register_raw_size): Delete.
4116 (m68k_register_virtual_size): Delete.
4117 (m68k_register_type): Renamed from m68k_register_virtual_type and
4118 add gdbarch argument.
4119 (m68k_store_struct_return): Delete.
4120 (m68k_deprecated_extract_return_value): Delete.
4121 (m68k_deprecated_extract_struct_value_address): Delete.
4122 (m68k_frame_chain): Delete.
4123 (m68k_frame_saved_pc): Delete.
4124 (m68k_fix_call_dummy): Delete.
4125 (m68k_push_dummy_frame): Delete.
4126 (m68k_pop_frame): Delete.
4127 (m68k_extract_return_value): New function.
4128 (m68k_store_return_value): Rewrite using regcache.
4129 (m68k_extract_struct_value_address): Rewrite using regcache.
4130 (m68k_push_dummy_call): New function.
4131 (struct m68k_frame_cache): Define.
4132 (m68k_alloc_frame_cache): New function.
4133 (m68k_analyze_frame_setup): New function.
4134 (m68k_analyze_register_saves): New function.
4135 (m68k_analyze_prologue): New function.
4136 (m68k_skip_prologue): Rewrite using above functions.
4137 (m68k_unwind_pc): New function.
4138 (m68k_frame_cache): New function.
4139 (m68k_frame_this_id): New function.
4140 (m68k_frame_prev_register): New function.
4141 (m68k_frame_unwind): New variable.
4142 (m68k_frame_p): New function.
4143 (m68k_sigtramp_frame_cache): New function.
4144 (m68k_sigtramp_frame_this_id): New function.
4145 (m68k_sigtramp_frame_prev_register): New function.
4146 (m68k_sigtramp_frame_unwind): New variable.
4147 (m68k_sigtramp_frame_p): New function.
4148 (m68k_frame_base_address): New function.
4149 (m68k_frame_base): New function.
4150 (m68k_unwind_dummy_id): New function.
4151 (fill_gregset): Use regcache_collect.
4152 (fill_fpregset): Likewise.
4153 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4154 defined.
4155 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4156 deprecated_init_frame_pc, deprecated_store_struct_return,
4157 deprecated_extract_return_value, deprecated_store_return_value,
4158 deprecated_frame_chain, deprecated_frame_saved_pc,
4159 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4160 deprecated_register_virtual_size,
4161 deprecated_max_register_raw_size,
4162 deprecated_max_register_virtual_size,
4163 deprecated_register_virtual_type, deprecated_register_size,
4164 deprecated_register_byte, deprecated_register_bytes,
4165 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4166 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4167 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4168 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4169 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4170 deprecated_push_dummy_frame, deprecated_pop_frame,
4171 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4172 only if SYSCALL_TRAP is defined. Set extract_return_value,
4173 store_return_value, extract_struct_value_address, register_type,
4174 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4175 predicates.
4176 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4177 M68K_MAX_REGISTER_SIZE): Define.
4178 (struct m68k_sigtramp_info): Define.
4179 (struct gdbarch_tdep): Add get_sigtramp_info.
4180 * m68klinux-nat.c (fetch_register): Use register_size instead of
4181 REGISTER_RAW_SIZE. Don't put assignment in if.
4182 (store_register): Likewise.
4183 (fetch_inferior_registers): Likewise.
4184 (store_inferior_registers): Likewise.
4185 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4186 (m68k_linux_frame_saved_pc): Delete.
4187 (m68k_linux_sigcontext_reg_offset,
4188 m68k_linux_ucontext_reg_offset): Define.
4189 (m68k_linux_get_sigtramp_info): New function.
4190 (m68k_linux_extract_return_value): Rewrite using regcache.
4191 (m68k_linux_store_return_value): Likewise.
4192 (m68k_linux_extract_struct_value_address): Likewise.
4193 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4194 Don't set deprecated_frame_saved_pc,
4195 deprecated_extract_return_value, deprecated_store_return_value,
4196 deprecated_extract_struct_value_address. Set
4197 extract_return_value, store_return_value,
4198 extract_struct_value_address.
4199
eb8bc282
AC
42002003-07-07 Andrew Cagney <cagney@redhat.com>
4201
4202 * expprint.c: Include "user-regs.h" instead of "frame.h".
4203 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4204 frame_map_regnum_to_name.
4205 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4206 (frame_map_name_to_regnum): Simplify, call
4207 user_reg_map_name_to_regnum.
4208 (frame_map_regnum_to_name): Simplify, call
4209 user_reg_map_regnum_to_name.
4210 (frame_register_unwind): Update.
4211 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4212 (_initialize_frame_reg): Call user_reg_add_builtin.
4213 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4214 (value_of_register): Use value_of_user_reg.
4215 * eval.c (evaluate_subexp_standard): Update.
4216 * parse.c (write_dollar_variable): Update.
4217 * d10v-tdep.c (d10v_print_registers_info): Update.
4218 * infcmd.c (registers_info): Update.
4219 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4220 (builtin_regs_h): Delete macro.
4221 (user_regs_h): Define.
4222 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4223 (builtin-regs.o): Delete target.
4224 (user-regs.o): Specify dependencies.
4225 (expprint.o): Update dependencies.
4226 (findvar.o): Update dependencies.
4227 (frame.o): Update dependencies.
4228 (std-regs.o): Update dependencies.
4229
9f476a01
CF
42302003-07-06 Christopher Faylor <cgf@redhat.com>
4231
4232 * win32-nat.c (solib_symbols_add): Use one variable for all section
4233 address stuff. Pass variable rather than address of variable to
4234 safe_symbol_file_add.
4235
a731b831
AS
42362003-07-06 Andreas Schwab <schwab@suse.de>
4237
4238 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4239
9f83329d
JB
42402003-07-04 Joel Brobecker <brobecker@gnat.com>
4241
4242 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4243
27e28cc5
KW
42442003-07-04 Kris Warkentin <kewarken@qnx.com>
4245
4246 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4247
42482003-07-04 Kris Warkentin <kewarken@qnx.com>
4249
4250 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4251 * config/i386/nto.mh: New file.
4252 * config/i386/nm-nto.h: New file.
4253 * configure.host: Add i[3456]86-*-nto*.
4254
100f2e98
JB
42552003-07-03 Joel Brobecker <brobecker@gnat.com>
4256
4257 * remote-vx.c (vx_add_symbols): Fix compilation error.
4258
e23457df
AC
42592003-07-03 Andrew Cagney <cagney@redhat.com>
4260
4261 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4262 * gdbarch.h, gdbarch.c: Re-generate.
4263 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4264 (legacy_register_name): Declare.
4265 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4266 (REGISTER_NAME): Define.
4267 * sparc-tdep.c (legacy_register_name): New function.
4268 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4269 (REGISTER_NAME): Define.
4270 (hppa64_register_name): Declare.
4271 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4272 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4273 (hppa64_register_name): New function.
4274 (hppa_register_name): New function.
4275 * arch-utils.c (legacy_register_name): Delete.
4276 * arch-utils.h (legacy_register_name): Delete.
4277
38caaeec
DJ
42782003-07-03 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * cli/cli-interp.c (cli_interpreter_resume): Update the
4281 cli_uiout's stream to gdb_stdout.
4282
dadd712e
AC
42832003-07-03 Andrew Cagney <cagney@redhat.com>
4284
4285 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4286 predicate.
4287 * gdbarch.h, gdbarch.c: Re-generate.
4288 * regcache.c (init_regcache_descr): Use legacy code when either
4289 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4290
c7f1390e
DJ
42912003-07-02 Daniel Jacobowitz <drow@mvista.com>
4292
4293 * NEWS: Move "set logging" entry into GDB 6.0 section.
4294
4bc8c588
JB
42952003-07-02 Jim Blandy <jimb@redhat.com>
4296
a9dd42f1
JB
4297 * s390-tdep.c (struct frame_extra_info): new member:
4298 'stack_bought_valid'.
4299 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4300 initialize fextra_info->stack_bought.
4301 (s390_frameless_function_invocation): Don't trust the value of
4302 fextra_info_ptr->stack_bought unless
4303 fextra_info->stack_bought_valid is set.
4304
4bc8c588
JB
4305 New S390 prologue analyzer.
4306 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4307 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4308 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4309 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4310 compute_x_addr, s390_on_stack, s390_store,
4311 s390_get_signal_frame_info): New functions.
4312 (S390_NUM_SPILL_SLOTS): New macro.
4313 (s390_get_frame_info): Rewritten.
4314 (is_arg_reg): Deleted.
4315
4316 Break out the decoding of S/390 instructions into separate
4317 functions, to make it more legible, and easier to check
4318 against the spec.
4319 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4320 is_rx, is_rxe): New functions.
4321 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4322 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4323 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4324 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4325 enums for opcode values. (Is this an improvement?)
4326
fd13a04a
AC
43272003-07-02 Andrew Cagney <cagney@redhat.com>
4328
4329 * i386-tdep.c: Revert change committed as part of trad-frame code
4330 below.
4331
3f8091c1
DJ
43322003-07-02 Daniel Jacobowitz <drow@mvista.com>
4333
4334 * breakpoint.c (insert_catchpoint): Make static.
4335
8dd5115e
AS
43362003-07-02 Andreas Schwab <schwab@suse.de>
4337
4338 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4339 former ia64_push_arguments and ia64_push_return_address, and use
4340 regcache functions instead of read/write_register.
4341 (ia64_gdbarch_init): Set push_dummy_call instead of
4342 deprecated_push_arguments and deprecated_push_return_address.
4343
a2229c23
AJ
43442003-07-01 Andreas Jaeger <aj@suse.de>
4345
4346 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4347 before the call.
4348 Set %rax only to number of SSE registers used.
4349
3b3850e8
AC
43502003-07-01 Andrew Cagney <cagney@redhat.com>
4351
4352 * trad-frame.h: Update comments, a -1 .addr is reserved.
4353 (trad_frame_value_p, trad_frame_addr_p): Declare.
4354 (trad_frame_reg_p): Declare.
4355 (trad_frame_set_value): Rename trad_frame_register_value.
4356 (trad_frame_set_unknown): Declare.
4357 * trad-frame.c (trad_frame_realreg_p): New function.
4358 (trad_frame_addr_p, trad_frame_value_p): New function.
4359 (trad_frame_set_unknown): New function.
4360 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4361 (trad_frame_prev_register): Use trad_frame_realreg_p,
4362 trad_frame_addr_p and trad_frame_value_p.
4363 (trad_frame_set_value): Rename trad_frame_register_value.
4364 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4365 and trad_frame_set_value.
a2229c23 4366
4d819d0e
JB
43672003-06-30 Jim Blandy <jimb@redhat.com>
4368
4369 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4370 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4371 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4372 for 16 registers, and then 32 more bytes.
4373 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4374 New macros.
4375 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4376 Move up in the file, since it's now used by is_simple_arg.
4377 (is_simple_arg): Don't assume registers are four bytes long.
4378 Exclude all double arguments. Extended floats are not simple
4379 args.
4380 (is_power_of_two): New function.
4381 (pass_by_copy_ref): Call is_power_of_two, and check that the
4382 length fits in a register, rather than listing all the acceptable
4383 sizes. Extended floats are not passed by reference.
4384 (s390_push_arguments): Don't assume registers are four bytes long.
4385 Reserve an argument register to point to the buffer for structures
4386 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4387 S390_STACK_FRAME_OVERHEAD.
4388
1ad828f1
AS
43892003-06-30 Andreas Schwab <schwab@suse.de>
4390
4391 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4392 format error message.
4393
39b00981
JB
43942003-06-30 Joel Brobecker <brobecker@gnat.com>
4395
4396 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4397
b2a7f303
DC
43982003-06-30 David Carlton <carlton@kealia.com>
4399
4400 Band-aid for PR c++/1245.
4401 * Makefile.in (cp-support.o): Depend on complaints_h.
4402 * cp-support.c: Include complaints.h. Add declaration for
4403 find_last_component.
4404 (cp_find_first_component): Separate code into
4405 cp_find_first_component_aux.
4406 (cp_find_first_component_aux): Call demangled_name_complaint.
4407 (demangled_name_complaint): New.
4408
a257b5bb
AC
44092003-06-30 Andrew Cagney <cagney@redhat.com>
4410
4411 * remote.c (remote_write_bytes): Explicitly compute and then use
4412 the payload size. Update comments to reflect. Fixes problem of
4413 GDB not sending small packets as found by Fred Fish.
4414
0a2cfde4
AC
44152003-06-30 Andrew Cagney <cagney@redhat.com>
4416
4417 * remote.c (remote_async_wait): Fix -Wformat problem.
4418
3fcb8548
AC
44192003-06-29 Andrew Cagney <cagney@redhat.com>
4420
4421 * remote.c (remote_wait): Call error, and not warning, when the
4422 packet is corrupt.
4423 (remote_async_wait): Ditto.
4424
9f9970a3
DJ
44252003-06-29 Daniel Jacobowitz <drow@mvista.com>
4426
4427 * sparc-tdep.c (sparc_y_regnum): Make external again.
4428
83a8ccca
DJ
44292003-06-29 Daniel Jacobowitz <drow@mvista.com>
4430
4431 * cli/cli-logging.c (pop_output_files): Add void to function
4432 definition.
4433
d2cf594a
AC
44342003-06-29 Andrew Cagney <cagney@redhat.com>
4435
4436 * frame.c (frame_register_unwind): Use unsigned char when dumping
4437 the buffer contents.
4438
0fac0b41
DJ
44392003-06-28 Daniel Jacobowitz <drow@mvista.com>
4440
4441 * cli/cli-logging.c: New file.
4442 * cli-out.c (struct ui_out_data): Add original_stream.
4443 (cli_redirect): New function.
4444 (cli_ui_out_impl): Add cli_redirect.
4445 (cli_out_new): Initialize original_stream.
4446 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4447 (uo_redirect, ui_out_redirect): New.
4448 * ui-out.h (struct ui_out_impl): Add redirect member.
4449 (redirect_ftype): New.
4450 (ui_out_redirect): Add prototype.
4451 * Makefile.in: Add rules for cli-logging.c.
4452 * NEWS: Mention "set logging".
4453
88a07d7c
EZ
44542003-06-27 Elena Zannoni <ezannoni@redhat.com>
4455
4456 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4457
4eb58876
AC
44582003-06-27 Andrew Cagney <cagney@redhat.com>
4459
4460 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4461 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4462 * avr-tdep.c (avr_call_dummy_address): Delete function.
4463 (avr_gdbarch_init): Do not set call_dummy_address.
4464
1549f619
EZ
44652003-06-27 Elena Zannoni <ezannoni@redhat.com>
4466
4467 * symfile.c (syms_from_objfile): Move variables to inner block.
4468 Move the checks for the non-mainline case a bit earlier to avoid
4469 doing some useless computations.
4470
3cb3398d
EZ
44712003-06-27 Elena Zannoni <ezannoni@redhat.com>
4472
4473 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4474
3799ccc6
EZ
44752003-06-26 Elena Zannoni <ezannoni@redhat.com>
4476
4477 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4478 sections.
4479
ce1f6491
MC
44802003-06-26 Michael Chastain <mec@shout.net>
4481
4482 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4483 gdb/testsuite/gdb.c++/pr-1210.exp.
4484
d958dfd0
AC
44852003-06-26 Andrew Cagney <cagney@redhat.com>
4486
4487 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4488 altivec_expression.h and altivec_registers.h.
4489
d31431ed
AC
44902003-06-26 Andrew Cagney <cagney@redhat.com>
4491
4492 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4493 info->mach when MIPS16. Patch suggested by Fred Fish.
4494
714b1282
AC
44952003-06-26 Andrew Cagney <cagney@redhat.com>
4496
4497 * utils.c (internal_vproblem): Print the problem to a reason
4498 buffer and then pass to query. Make the msg variable more local.
4499
42efa47a
AC
45002003-06-26 Andrew Cagney <cagney@redhat.com>
4501
4502 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4503 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4504 * gdbarch.h, gdbarch.c: Re-generate.
4505 * frame-base.c (default_frame_args_address): Update. Use
4506 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4507 not available.
4508 (default_frame_locals_address): Ditto for
4509 DEPRECATED_FRAME_LOCALS_ADDRESS.
4510 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4511 (vax_frame_num_args): Update.
4512 (vax_gdbarch_init): Update.
4513 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4514 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4515 * mcore-tdep.c (mcore_gdbarch_init): Update.
4516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4517 * ia64-tdep.c (ia64_gdbarch_init): Update.
4518 * symtab.h (address_class): Update comments.
4519 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4520 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4521 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4522 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4523 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4524 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4525 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4526 * alpha-mdebug-tdep.c: Update.
4527 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4528
8ffd9b1b
AJ
45292003-06-26 Andreas Jaeger <aj@suse.de>
4530
4531 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4532 of SSE registers so that varargs functions work. Rework handling
4533 of passing arguments on the stack.
4534 (x86_64_store_return_value): Return double and float values in SSE
4535 register.
4536
e8ac10a6
MC
45372003-06-24 Michael Chastain <mec@shout.net>
4538
4539 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4540 the "constructor breakpoints ignored" bug.
4541
986af8e6
DC
45422003-06-25 David Carlton <carlton@kealia.com>
4543
4544 * MAINTAINERS: Update e-mail address.
4545
d64558a5
JB
45462003-06-24 Jim Blandy <jimb@redhat.com>
4547
e538d2d7
JB
4548 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4549
02631ec0
JB
4550 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4551 function.
4552 (ppc_linux_init_abi): Register it as the
4553 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4554
e716d87a
JB
4555 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4556 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4557 method.
4558
d64558a5
JB
4559 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4560 (ppc64_standard_linkage_target): Use it.
4561
449a5da4
AC
45622003-06-23 Andrew Cagney <cagney@redhat.com>
4563
4564 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4565 for 0 "int0" and 4 "int32" sized registers.
4566 * gdbtypes.c (builtin_type_int0): Define.
4567 (build_gdbtypes): Initialize builtin_type_int0.
4568 * gdbtypes.h (builtin_type_int0): Declare.
4569
b2a02dda
SC
45702003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4571
4572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4573 as characters are unsigned.
4574
fba3138e
DJ
45752003-06-22 Daniel Jacobowitz <drow@mvista.com>
4576
4577 PR gdb/1179
4578 * dwarfread.c (struct_type): Skip static fields without crashing.
4579
f6c8180b
AC
45802003-06-22 Andrew Cagney <cagney@redhat.com>
4581
4582 GDB 6.0 branch created.
f2c06f52
AC
4583 * README: Update.
4584 * PROBLEMS: Update. Empty.
4585 * NEWS: Update.
f6c8180b 4586
ae822768
DJ
45872003-06-22 Daniel Jacobowitz <drow@mvista.com>
4588
4589 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4590 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4591
261de166
AC
45922003-06-22 Andrew Cagney <cagney@redhat.com>
4593
4594 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4595 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4596 Velikov.
4597
30e94205
DJ
45982003-06-22 Daniel Jacobowitz <drow@mvista.com>
4599
4600 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4601 compilers.
4602
9e14d721
DJ
46032003-06-21 Daniel Jacobowitz <drow@mvista.com>
4604
4605 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4606 argument of val_print.
4607 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4608 to the address argument of baseclass_offset or target_read_memory.
4609 Do add it to the argument of cp_print_value_fields.
4610
a4b8ebc8
AC
46112003-06-21 Andrew Cagney <cagney@redhat.com>
4612
4613 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4614 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4615 instead of 0..NUM_REGS.
4616 (mips_register_reggroup_p): New function.
4617 (mips_pseudo_register_write): New function.
4618 (mips_pseudo_register_read): New function.
4619 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4620 based on the register's type.
4621 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4622 cooked.
4623 (mips_get_saved_register): Simplify. Assert that REGNO is a
4624 pseudo / cooked.
4625 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4626 (mips_register_type): Replace mips_register_virtual_type. Map
4627 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4628 when available.
4629 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4630 that the register is cooked / virtual.
4631 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4632 Only get the extra info when needed.
4633 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4634 (mips32_heuristic_proc_desc): Fetch the cooked register.
4635 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4636 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4637 (mips_print_register): Use gdbarch_register_type, instead of
4638 REGISTER_VIRTUAL_TYPE.
4639 (print_gp_register_row): Use gdbarch_register_type, instead of
4640 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4641 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4642 Print the pseudo / cooked registers.
4643 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4644 Print the pseudo / cooked registers.
4645 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4646 REG_NUM is pseudo / cooked.
4647 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4648 (mips_n32n64_xfer_return_value): Ditto.
4649 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4650 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4651 (mips_register_sim_regno): New function.
4652 (mips_gdbarch_init): Set deprecated_register_byte,
4653 register_group_p, pseudo_register_write, pseudo_register_read,
4654 register_sim_regno, and num_pseudo_regs. Set register_type,
4655 instead of register_virtual_type.
4656 * Makefile.in (mips-tdep.o): Update dependencies.
4657 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4658 REGISTER_VIRTUAL_TYPE.
4659 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4660 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4661 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4662 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4663 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4664
325ed089
DJ
46652003-06-21 Daniel Jacobowitz <drow@mvista.com>
4666
4667 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4668 * cli/cli-cmds.c: Include "gdb_vfork.h".
4669 (shell_escape): Use vfork.
4670
f0e7d0e8
AC
46712003-06-21 Andrew Cagney <cagney@redhat.com>
4672
c57bb9fa
AC
4673 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4674 32 bit floating-point register saves.
4675
6e51443a
AC
4676 * frame.h (deprecated_unwind_get_saved_register): Delete.
4677 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4678 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4679 and deprecated_get_next_frame_hack instead of
4680 deprecated_unwind_get_saved_register.
4681
ed183c7c
AC
4682 * mips-tdep.c (mips_dump_tdep): Do not print
4683 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4684
f0e7d0e8
AC
4685 * frame.c (get_frame_register): New function.
4686 (frame_unwind_register_signed): New function.
4687 (get_frame_register_signed): New function.
4688 (frame_unwind_register_unsigned): New function.
4689 (get_frame_register_unsigned): New function.
4690 * frame.h: Add comments on naming schema.
4691 (get_frame_register, frame_unwind_register_signed): Declare.
4692 (get_frame_register_signed, get_frame_register_signed): Declare.
4693 (frame_unwind_register_unsigned): Declare.
4694 (get_frame_register_unsigned): Declare.
4695
2224d941
TR
46962003-06-20 Theodore A. Roth <troth@openavr.org>
4697
4698 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4699
8619218d
TR
47002003-06-20 Theodore A. Roth <troth@openavr.org>
4701
4702 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4703 (avr_read_sp): Ditto.
4704
0b1b50c0
DJ
47052003-06-20 Daniel Jacobowitz <drow@mvista.com>
4706
4707 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4708 * config/arm/nm-linux.h: Likewise.
4709 * config/arm/tm-linux.h: Likewise.
4710 * config/ia64/nm-linux.h: Likewise.
4711 * config/ia64/tm-ia64.h: Likewise.
4712 * config/s390/tm-linux.h: Likewise.
4713 * config/s390/tm-s390.h: Likewise.
4714 * s390-nat.c: Likewise.
4715 * s390-tdep.c: Likewise.
4716
4717 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4718 * config/ia64/linux.mt: Likewise.
4719 * config/m68k/linux.mh: Likewise.
4720 * config/mips/linux.mt: Likewise.
4721 * config/powerpc/linux.mh: Likewise.
4722 * config/sh/linux.mt: Likewise.
4723
c8c18e65
KW
47242003-06-19 Kris Warkentin <kewarken@qnx.com>
4725
4726 * solib.c (solib_open): Change tests for whether to search
4727 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4728 comments.
4729
dcccef2e
TR
47302003-06-19 Theodore A. Roth <troth@openavr.org>
4731
4732 * avr-tdep.c (avr_frame_address): Delete function.
4733 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4734 set_gdbarch_frame_args_address.
4735
5861a190
AC
47362003-06-19 Andrew Cagney <cagney@redhat.com>
4737
4738 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4739 (REGISTER_CONVERT_FROM_TYPE): Delete.
4740 (mips_register_convert_to_type): Delete declaration.
4741 (mips_register_convert_from_type): Delete declaration.
4742 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4743 kernel/.
4744
0274a8ce
MS
47452003-06-19 Michael Snyder <msnyder@redhat.com>
4746
4747 * linux-nat.h: New file.
4748 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4749 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4750 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4751 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4752 (linux_make_note_section): Iterate over lwps instead of threads.
4753 (linux_do_thread_registers): Use lwp instead of merged pid.
4754 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4755 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4756 Add dependency on linux_nat_h.
4757
adf5f719
TR
47582003-06-19 Theodore A. Roth <troth@openavr.org>
4759
4760 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4761
6766a268
DJ
47622003-06-19 Daniel Jacobowitz <drow@mvista.com>
4763
4764 * varobj.c (get_type, get_target_type): Use check_typedef.
4765
1171114a
DJ
47662003-06-19 Daniel Jacobowitz <drow@mvista.com>
4767
4768 * breakpoint.c (insert_catchpoint): Call internal_error.
4769
adcf68a2
TR
47702003-06-19 Theodore A. Roth <troth@openavr.org>
4771
4772 * avr-tdep.c (avr_push_dummy_code): Delete function.
4773 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4774
ea67f13b
DJ
47752003-06-19 Daniel Jacobowitz <drow@mvista.com>
4776
4777 * arch-utils.c (default_prepare_to_proceed): Remove.
4778 (generic_prepare_to_proceed): Remove.
4779 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4780 (generic_prepare_to_proceed): Remove prototype.
4781 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4782 * gdbarch.c: Regenerate.
4783 * gdbarch.h: Regenerate.
4784 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4785 * hppah-nat.c (hppa_switched_threads): Remove.
4786 * infrun.c (prepare_to_proceed): New static function, copied from
4787 generic_prepare_to_proceed. Remove select_it argument.
4788 (proceed): Call prepare_to_proceed.
4789 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4790 variables.
4791 (ptrace_wait): Don't set the removed variables.
4792 (hppa_switched_threads): Remove.
4793 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4794 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4795 (lin_lwp_prepare_to_proceed): Remove prototype.
4796 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4797 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4798
4add8633
TR
47992003-06-18 Theodore A. Roth <troth@openavr.org>
4800
4801 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4802 trad-frame.h.
4803 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4804 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4805 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4806 (AVR_PROLOGUE_*): Enumerate prologue types.
4807 (struct frame_extra_info): Remove.
4808 (struct avr_unwind_cache): Define.
4809 (avr_write_sp): Delete function.
4810 (avr_read_fp): Ditto.
4811 (avr_init_extra_frame_info): Ditto.
4812 (avr_pop_frame): Ditto.
4813 (avr_frame_saved_pc): Ditto.
4814 (avr_saved_pc_after_call): Ditto.
4815 (avr_push_return_address): Ditto.
4816 (avr_frame_chain): Ditto.
4817 (avr_store_struct_return): Ditto.
4818 (avr_push_arguments): Ditto.
4819 (avr_scan_prologue): Update comments. Changed to set up the info for
4820 cache unwinding. Now returns end of prologue PC.
4821 (avr_skip_prologue): Better handling of functions lacking a prologue
4822 by using avr_scan_prologue.
4823 (avr_scan_arg_moves): New function.
4824 (avr_saved_regs_unwinder): Ditto.
4825 (avr_frame_unwind_cache): Ditto.
4826 (avr_unwind_pc): Ditto.
4827 (avr_frame_this_id): Ditto.
4828 (avr_frame_prev_register): Ditto.
4829 (avr_frame_p): Ditto.
4830 (avr_frame_base_address ): Ditto.
4831 (avr_unwind_dummy_id): Ditto.
4832 (avr_push_dummy_code): Ditto.
4833 (push_stack_item): Ditto.
4834 (pop_stack_item): Ditto.
4835 (avr_push_dummy_call): Ditto.
4836 (struct stack_item): Define.
4837 (avr_frame_unwind): Declare structure.
4838 (avr_frame_base): Ditto.
4839 (avr_gdbarch_init): Remove calls to
4840 set_gdbarch_deprecated_init_frame_pc,
4841 set_gdbarch_deprecated_target_read_fp,
4842 set_gdbarch_deprecated_dummy_write_sp,
4843 set_gdbarch_deprecated_fp_regnum,
4844 set_gdbarch_deprecated_push_arguments,
4845 set_gdbarch_deprecated_push_return_address,
4846 set_gdbarch_deprecated_pop_frame,
4847 set_gdbarch_deprecated_store_struct_return,
4848 set_gdbarch_deprecated_frame_init_saved_regs,
4849 set_gdbarch_deprecated_init_extra_frame_info,
4850 set_gdbarch_deprecated_frame_chain,
4851 set_gdbarch_deprecated_frame_saved_pc,
4852 set_gdbarch_deprecated_saved_pc_after_call.
4853 Add calls to set_gdbarch_push_dummy_call,
4854 set_gdbarch_push_dummy_code,
4855 frame_unwind_append_predicate,
4856 frame_base_set_default,
4857 set_gdbarch_unwind_dummy_id,
4858 set_gdbarch_unwind_pc.
4859 Wrap a long line.
4860
7be04a68
MS
48612003-06-18 Corinna Vinschen <vinschen@redhat.com>
4862
4863 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4864 registers for H8/300S.
4865 (h8300_print_registers_info): Ditto.
8ffd9b1b 4866 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4867
ae087d01
DJ
48682003-06-18 Daniel Jacobowitz <drow@mvista.com>
4869
4870 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4871 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4872 (lin_lwp_wait): Likewise. Update comments.
4873 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4874 (pull_pid_from_list, linux_record_stopped_pid): New.
4875
07d8f827
SC
48762003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4877
4878 * ada-lang.c (scan_discrim_bound): Name first argument.
4879 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4880 declared by ALL_BLOCK_SYMBOLS.
4881
7cb47b14
SC
48822003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4883
4884 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4885 ("regcache.h"): Include it.
4886 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4887
6ad8ae5c
DJ
48882003-06-17 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * NEWS: Mention gdbserver detach change and "disconnect" command.
4891 * infcmd.c (disconnect_command): New function.
4892 (_initialize_infcmd): Add ``disconnect'' command.
4893 * remote.c (remote_async_detach): Delete.
4894 (remote_detach): Merge remote_async_detach.
4895 (remote_disconnect): New.
4896 (init_remote_ops): Set to_disconnect.
4897 (init_remote_cisco_ops): Likewise.
4898 (init_remote_async_ops): Likewise. Use remote_detach.
4899 * target.c (cleanup_target): Default to_disconnect.
4900 (update_current_target): Inherit to_disconnect.
4901 (target_disconnect, debug_to_disconnect): New functions.
4902 (setup_target_debug): Set to_disconnect.
4903 * target.h (struct target_ops): Add to_disconnect.
4904 (target_disconnect): Add prototype.
4905
687595f9
DJ
49062003-06-17 Daniel Jacobowitz <drow@mvista.com>
4907
4908 * breakpoint.c (insert_catchpoint): New function.
4909 (insert_breakpoints): Use catch_exceptions to call
4910 insert_catchpoint. Disable catchpoints if they fail to insert.
4911
29239a8f
DJ
49122003-06-17 Daniel Jacobowitz <drow@mvista.com>
4913
4914 * symfile.c (reread_symbols): Clear sym_private.
4915
2cdf3c63
AC
49162003-06-17 Andrew Cagney <cagney@redhat.com>
4917
4918 * trad-frame.h (struct frame_info): Add opaque declaration.
4919 * remote-fileio.h (struct cmd_list_element): Add opaque
4920 declaration.
4921 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4922 comments.
4923
cf0e1e0d
DJ
49242003-06-17 Daniel Jacobowitz <drow@mvista.com>
4925
4926 * remote.c (remote_prepare_to_store): Replace call to
4927 deprecated_read_register_bytes with multiple regcache_raw_read
4928 calls.
4929
192cdb19
KW
49302003-06-17 Kris Warkentin <kewarken@qnx.com>
4931
4932 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4933 (nto_find_and_open_solib): Likewise.
4934 (nto_init_solib_absolute_prefix): Likewise.
4935 (_initialize_nto_tdep): Fix indentation.
4936
89929b45
KW
49372003-06-17 Kris Warkentin <kewarken@qnx.com>
4938
4939 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4940
46019f27
KW
49412003-06-17 Kris Warkentin <kewarken@qnx.com>
4942
4943 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4944
1a38736e
JB
49452003-06-17 Jim Blandy <jimb@redhat.com>
4946
4947 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4948
3605c34a
TR
49492003-06-16 Theodore A. Roth <troth@openavr.org>
4950
4951 * avr-tdep.c (avr_extract_return_value): New function.
4952 (avr_gdbarch_init): Set extract_return_value method.
4953
870b3035
AC
49542003-06-16 Andrew Cagney <cagney@redhat.com>
4955
4956 * frame.h (deprecated_get_next_frame_hack): Declare.
4957 * frame.c (legacy_saved_regs_prev_register): Only require
4958 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4959 there are always saved regs.
4960 (deprecated_generic_get_saved_register): Do not require
4961 DEPRECATED_FRAME_INIT_SAVED_REGS.
4962 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4963 use frame ID unwind instead.
4964 (deprecated_get_next_frame_hack): New function.
4965
63d47a7d
CV
49662003-06-16 Corinna Vinschen <vinschen@redhat.com>
4967
4968 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4969 (h8300_push_dummy_call): ...this function. Some minor optimization.
4970 (h8300_push_return_address): Remove.
4971 (h8300_gdbarch_init): Remove calls to
4972 set_gdbarch_deprecated_dummy_write_sp,
4973 set_gdbarch_deprecated_push_arguments and
4974 set_gdbarch_deprecated_push_return_address.
4975 Add call to set_gdbarch_push_dummy_call.
4976
4bb1dc5e
CV
49772003-06-16 Corinna Vinschen <vinschen@redhat.com>
4978
4979 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4980 (E_PSEUDO_EXR_REGNUM): Ditto.
4981 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4982 registers into safe registers.
4bb1dc5e
CV
4983 (h8300_skip_prologue): Check for stm instruction to push registers
4984 used for register variables onto stack.
4985 (gdb_print_insn_h8300): Remove.
4986 (h8300_examine_prologue): Add a comment.
4987 (h8300_register_name): Take pseudo registers into account.
4988 (h8300s_register_name): Ditto.
4989 (h8300sx_register_name): Ditto.
4990 (h8300_print_register): Ditto.
4991 (h8300_print_registers_info): Define "nice" printing order.
4992 (h8300_saved_pc_after_call): Take pseudo registers into account.
4993 (h8300_register_type): Ditto. Return type used for remote connection
4994 when requesting real CCR or EXR register, return actual type when
4995 requesting pseudo CCR or EXR.
4996 (h8300_pseudo_register_read): New function.
4997 (h8300_pseudo_register_write): Ditto.
4998 (h8300_dbg_reg_to_regnum): Ditto.
4999 (h8300s_dbg_reg_to_regnum): Ditto.
5000 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5001 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5002 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5003 set_gdbarch_print_insn architecture dependent.
5004 Call set_gdbarch_pseudo_register_read and
5005 set_gdbarch_pseudo_register_write.
5006 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5007
a59fe496
AC
50082003-06-16 Andrew Cagney <cagney@redhat.com>
5009
5010 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5011 * gdbarch.h, gdbarch.c: Re-generate.
5012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5013 * s390-tdep.c (s390_gdbarch_init): Update.
5014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5015 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5016 * mips-tdep.c (mips_gdbarch_init): Update.
5017 * mcore-tdep.c (mcore_gdbarch_init): Update.
5018 * cris-tdep.c (cris_gdbarch_init): Update.
5019 * infcall.c (call_function_by_hand): Update.
5020 * ia64-tdep.c (ia64_push_arguments): Update comment.
5021 * frame.c (legacy_get_prev_frame): Do not assume
5022 SAVE_DUMMY_FRAME_TOS_P.
5023 * dummy-frame.c (find_dummy_frame): Update comment.
5024
6f4e5a41
AC
50252003-06-16 Andrew Cagney <cagney@redhat.com>
5026
5027 * regcache.c (do_cooked_read): Do not use register_valid_p.
5028
72fab697
TR
50292003-06-15 Theodore A. Roth <troth@openavr.org>
5030
5031 * avr-tdep.c (avr_register_type): Remove a blank line.
5032 (avr_scan_prologue): Correct some comments.
5033
e3d8b004
TR
50342003-06-15 Theodore A. Roth <troth@openavr.org>
5035
5036 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5037 prologue types.
8ffd9b1b 5038 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5039 option.
5040 Add code to scan -mcall-prologues for mega devices.
5041
866b76ea
TR
50422003-06-15 Theodore A. Roth <troth@openavr.org>
5043
5044 * avr-tdep.c (avr_register_byte): Delete function.
5045 (avr_register_raw_size): Delete function.
5046 (avr_register_virtual_size): Delete function.
5047 (avr_register_virtual_type): Delete function.
5048 (avr_register_type): New function.
5049 (avr_address_to_pointer): Remove unused code.
5050 (avr_read_fp): Need to read FP as two separate bytes due to change to
5051 avr_register_type() usage.
5052 (avr_gdbarch_init): Don't set deprecated_register_size.
5053 Don't set deprecated_register_bytes.
5054 Don't set deprecated_register_byte.
5055 Don't set deprecated_register_raw_size.
5056 Don't set deprecated_max_register_raw_size.
5057 Don't set deprecated_register_virtual_size.
5058 Don't set deprecated_max_register_virtual_size.
5059 Don't set deprecated_register_virtual_type.
5060 Set register_type method.
5061
3993f6b1
DJ
50622003-06-15 Daniel Jacobowitz <drow@mvista.com>
5063
5064 * Makefile.in (linux-nat.o): Add rule.
5065 * linux-nat.c: New file.
5066 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5067 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5068 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5069 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5070 * config/arm/linux.mh (NATDEPFILES): Likewise.
5071 * config/i386/linux.mh (NATDEPFILES): Likewise.
5072 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5073 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5074 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5075 * config/mips/linux.mh (NATDEPFILES): Likewise.
5076 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5077 * config/s390/s390.mh (NATDEPFILES): Likewise.
5078 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5079
786a90bb
MK
50802003-06-15 Mark Kettenis <kettenis@gnu.org>
5081
5082 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5083 replace out-of-date comment.
5084
3bd3f01e
AC
50852003-06-15 Andrew Cagney <cagney@redhat.com>
5086
5087 * rdi-share/host.h (Fail): Change to a varargs function.
5088 * remote-rdi.c (Fail): Update.
8ffd9b1b 5089
de5b9bb9
MK
50902003-06-15 Mark Kettenis <kettenis@gnu.org>
5091
5092 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5093 (i386_convert_register_p, i386_register_to_value,
5094 i386_register_from_value): Handle types longer than 8 bytes.
5095
d532c08f
MK
50962003-06-15 Mark Kettenis <kettenis@gnu.org>
5097
5098 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5099 Move floating-point code to new function in i387-tdep.c.
5100 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5101 New functions containing code moved here from i386-tdep.c.
5102 * i387-tdep.h: Add opaque declaration for `struct type'.
5103 (i387_register_to_value, i387_value_to_register): New prototypes.
5104 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5105 (x86_64_init_abi): Set convert_register_p, register_to_value and
5106 value_to_register here.
8ffd9b1b 5107
42c466d7
AC
51082003-06-14 Andrew Cagney <cagney@redhat.com>
5109
5110 * mips-tdep.c (mips_register_to_value): Make static.
5111 (mips_value_to_register): Make static.
5112 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5113 * ia64-tdep.c (ia64_register_raw_size): Make static.
5114 (ia64_register_virtual_size): Make static.
5115 (ia64_register_byte): Make static.
5116 * i387-tdep.c: Include "i387-tdep.h".
5117 (print_387_control_word): Delete function.
5118 (print_387_status_word): Delete function.
5119 (print_387_status_bits): Delete function.
5120 (print_387_control_bits): Delete function.
5121 * Makefile.in (i387-tdep.o): Update dependencies.
5122 * rdi-share/host.h (Fail): Declare.
5123 * remote-rdi.c (Fail): Update to match declaration.
5124
2a9cda49
AC
51252003-06-14 Andrew Cagney <cagney@redhat.com>
5126
5127 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5128 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5129 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5130 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5131 * README: Delete reference to remote-array.
5132 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5133 (remote-array.o): Delete target.
5134 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5135 * remote-array.c: Delete file.
5136
ff2e87ac
AC
51372003-06-14 Andrew Cagney <cagney@redhat.com>
5138 Mark Kettenis <kettenis@gnu.org>
5139
5140 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5141 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5142 parameter with "frame".
5143 * gdbarch.h, gdbarch.c: Re-generate.
5144 * frame.h (put_frame_register): Declare.
5145 * frame.c (put_frame_register): New function.
5146 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5147 (legacy_register_to_value): Rewrite, use "frame" to get the
5148 register value.
5149 (legacy_value_to_register): Rewrite, use "frame" to find the
5150 register's location before storing.
5151 * arch-utils.h (legacy_convert_register_p): Update.
5152 (legacy_register_to_value, legacy_value_to_register): Update.
5153 * findvar.c (value_from_register): Rewrite, eliminate use of
5154 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5155 "frame" to REGISTER_TO_VALUE.
5156 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5157 lval_reg_frame_relative + lval_register branch of the switch. Do
5158 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5159 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5160 I386_EDI_REGNUM): New defines.
5161 (i386_next_regnum, i386_convert_register_p,
5162 i386_register_to_value, i386_value_to_register): New functions.
5163 (i386_register_convertible, i386_register_convert_to_virtual,
5164 i386_convert_to_raw): Remove functions.
5165 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5166 value_to_register instead of register_convertible,
5167 register_convert_to_virtual and register_convert_to_raw.
5168 * mips-tdep.c (mips_convert_register_p): New function.
5169 (mips_value_to_register): Replace mips_register_convert_from_type.
5170 (mips_register_to_value): Replace mips_register_convert_to_type.
5171 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5172 register_to_value.
5173 * alpha-tdep.c (alpha_convert_register_p): Update.
5174 (alpha_value_to_register): Update, store the register.
5175 (alpha_register_to_value): Update, fetch the register.
5176
98be1e77
TR
51772003-06-14 Theodore A. Roth <troth@openavr.org>
5178
5179 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5180 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5181 Don't set deprecated_call_dummy_words.
5182 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5183 Don't set remote_translate_xfer_address.
5184 (avr_io_reg_read_command): Remove commented out debug printf.
5185 Wrap a long line.
5186
57bc6122
TR
51872003-06-14 Theodore A. Roth <troth@openavr.org>
5188
5189 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5190 causes gdb to seg fault.
5191
eb01fc62
DJ
51922003-06-14 Daniel Jacobowitz <drow@mvista.com>
5193
5194 * sparc-nat.c (fetch_inferior_registers): Correct
5195 a reference to "registers".
5196
3b3e6bee
DJ
51972003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5198
5199 * Makefile.in (exc_request_U_h): Define
5200 (exc_request_S_h): Likewise.
5201 (msg_reply_S_h): Likewise.
5202 (msg_U_h): Likewise.
5203 (notify_S_h): Likewise.
5204 (process_reply_S_h): Likewise.
5205 (gnu-nat.o): Depend on gdb_obstack_h
5206 * gnu-nat.c: Include "gdb_obstack.h".
5207
b8de8283
AC
52082003-06-13 Andrew Cagney <cagney@redhat.com>
5209
5210 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5211 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5212
f3be58bc
AC
52132003-06-13 Andrew Cagney <cagney@redhat.com>
5214
5215 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5216 when deprecated REGISTER macros can be deleted.
5217 * gdbarch.h, gdbarch.c: Re-generate.
5218
4c0122c8
JB
52192003-06-13 Jim Blandy <jimb@redhat.com>
5220
5221 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5222 Linux entry point symbols for _dl_debug_state, too.
5223
3e210248
AC
52242003-06-13 Andrew Cagney <cagney@redhat.com>
5225
5226 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5227 available, do not use the FP register, and always save the TOS.
5228 * dummy-frame.c (dummy_frame_this_id): Do not assert
5229 SAVE_DUMMY_FRAME_TOS.
5230 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5231 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5232 (i386_push_dummy_call): Add 8 to the returned SP.
5233 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5234 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5235 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5236 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5237 (x86_64_push_dummy_call): Return "sp + 16".
5238 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5239 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5240 save_dummy_frame_tos.
5241
0b65af49
JB
52422003-06-13 Jim Blandy <jimb@redhat.com>
5243
5244 * frv-tdep.c (frv_use_struct_convention): Delete static
5245 declaration for function deleted in my change of 2003-06-12.
5246
4ea2465e
TR
52472003-06-13 Theodore A. Roth <troth@openavr.org>
5248
5249 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5250 (avr_pointer_to_address): Shift code addrs left 1 bit.
5251 (avr_convert_from_func_ptr_addr): Delete function since operation is
5252 better handled by avr_address_to_pointer and avr_pointer_to_address.
5253 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5254
1581182a
MK
52552003-06-13 Mark Kettenis <kettenis@gnu.org>
5256
5257 From Kelley Cook <kelleycook@wideopenwest.com>:
5258 * configure.host: Accept i[34567]86 variants.
5259 * configure.tgt: Likewise.
5260 * nlm/configure.in: Likewise.
5261 * nlm/configure: Regenerated.
5262
7aa1783e
RE
52632003-06-13 Richard Earnshaw <rearnsha@arm.com>
5264
5265 * arm-tdep.c (solib-svr4.h): Dont' include it.
5266 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5267 * arm-linux-tdep.c: ... here. Make static.
5268 (arm_linux_init_abi): Register it.
5269 (solib-svr4.h): Include it.
5270 * Makefile.in: Update dependencies.
5271 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5272 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5273
0261a0d0
CV
52742003-06-13 Corinna Vinschen <vinschen@redhat.com>
5275
5276 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5277 indicate registers used for return values.
5278 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5279 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5280 members.
5281 (h8300_init_extra_frame_info): Ditto.
5282 (h8300_frame_locals_address): Removed.
5283 (h8300_frame_args_address): Removed.
5284 (h8300_extract_return_value): Use new regcache structure. Only care
5285 for 16 bit CPUs.
5286 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5287 (h8300_store_return_value): Use new regcache structure. Only care
5288 for 16 bit CPUs.
5289 (h8300h_store_return_value): Same function for 32 bit CPUs.
5290 (h8300_store_struct_return): Removed.
5291 (h8300_extract_struct_value_address): Use new regcache structure.
5292 (h8300h_extract_struct_value_address): Removed.
5293 (h8300_push_dummy_code): New function.
5294 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5295 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5296 set_gdbarch_store_return_value architecture dependent.
5297 Call set_gdbarch_push_dummy_code and
5298 set_gdbarch_extract_struct_value_address.
5299 Remove calls to set_gdbarch_frame_args_address,
5300 set_gdbarch_frame_locals_address,
5301 set_gdbarch_deprecated_store_struct_return,
5302 set_gdbarch_deprecated_extract_return_value,
5303 set_gdbarch_deprecated_extract_struct_value_address,
5304 set_gdbarch_deprecated_call_dummy_words and
5305 set_gdbarch_deprecated_sizeof_call_dummy_words.
5306
055c394a
CV
53072003-06-13 Corinna Vinschen <vinschen@redhat.com>
5308
5309 * h8300-tdep.c (h8300_register_byte): Remove.
5310 (h8300h_register_byte): Remove.
5311 (h8300_register_virtual_type): Remove. Substitute by...
5312 (h8300_register_type): New function.
5313 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5314 (h8300h_extract_struct_value_address): Ditto.
5315 (h8300_gdbarch_init): Drop calls to
5316 set_gdbarch_deprecated_register_byte and
5317 set_gdbarch_deprecated_register_virtual_type.
5318 Add call to set_gdbarch_register_type.
5319
9c04cab7
AC
53202003-06-13 Andrew Cagney <cagney@redhat.com>
5321
5322 * gdbarch.sh: Update comments on registers.
5323 (deprecated_register_byte): Rename register_byte.
5324 (deprecated_register_raw_size): Rename register_raw_size.
5325 (deprecated_register_virtual_size): Rename register_virtual_size.
5326 (deprecated_register_virtual_type): Rename register_virtual_type.
5327 * gdbarch.h, gdbarch.c: Re-generate.
5328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5329 * vax-tdep.c (vax_gdbarch_init): Update.
5330 * v850-tdep.c (v850_gdbarch_init): Update.
5331 * sparc-tdep.c (sparc_gdbarch_init): Update.
5332 * sh-tdep.c (sh_gdbarch_init): Update.
5333 * s390-tdep.c (s390_gdbarch_init): Update.
5334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5335 * ns32k-tdep.c: Update.
5336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5337 * mips-tdep.c (mips_gdbarch_init): Update.
5338 * mcore-tdep.c (mcore_gdbarch_init): Update.
5339 * m68k-tdep.c (m68k_gdbarch_init): Update.
5340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5341 * ia64-tdep.c (ia64_gdbarch_init): Update.
5342 * hppa-tdep.c (hppa_gdbarch_init): Update.
5343 * h8300-tdep.c (h8300_gdbarch_init): Update.
5344 * frv-tdep.c (frv_gdbarch_init): Update.
5345 * cris-tdep.c (cris_gdbarch_init): Update.
5346 * avr-tdep.c (avr_gdbarch_init): Update.
5347 * alpha-tdep.c (alpha_gdbarch_init): Update.
5348 * arm-tdep.c (arm_gdbarch_init): Update.
5349
b060cbea
AC
53502003-06-13 Andrew Cagney <cagney@redhat.com>
5351
5352 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5353 mips_o32_use_struct_convention with always_use_struct_convention.
5354
0fc9922a
DC
53552003-06-12 David Carlton <carlton@kealia.com>
5356
5357 * cp-namespace.c (cp_set_block_scope): Comment out
5358 processing_has_namespace_info branch.
5359
1fd35568
JB
53602003-06-12 Jim Blandy <jimb@redhat.com>
5361
f470a70a
JB
5362 Recognize and skip 64-bit PowerPC Linux linkage functions.
5363 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5364 insn_pattern, insns_match_pattern, d_field, ds_field): New
5365 functions, macros, and types for working with PPC instructions.
5366 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5367 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5368 ppc64_skip_trampoline_code): New functions, variables, and macros
5369 for recognizing and skipping linkage functions.
5370 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5371 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5372
49ff75ad
JB
5373 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5374 register offsets for both the 32- and 64-bit interfaces.
5375
bd918c83
JB
5376 Actually finish the job started by my change of 2003-05-29.
5377 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5378 other #definition of this.
5379 (ppc_linux_skip_trampoline_code): Remove declaration.
5380 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5381 static.
5382 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5383 method for GDBARCH.
5384
5385 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5386 'long' on ppc64-*-linux*.
5387
f8c59253
JB
5388 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5389 isn't #defined, assume the register doesn't exist: act as if
5390 tdep->ppc_mq_regnum were -1.
5391
8fbb30b1
JB
5392 * configure.host, configure.tgt: Add entries for
5393 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5394 powerpc/linux.mt.
5395 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5396 New files.
5397
1fd35568
JB
5398 * arch-utils.c (always_use_struct_convention): New function.
5399 * arch-utils.h (always_use_struct_convention): New prototype.
5400 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5401 (alpha_gdbarch_init): Register always_use_struct_convention,
5402 instead of alpha_use_struct_convention.
5403 * cris-tdep.c (cris_use_struct_convention): Delete.
5404 (cris_gdbarch_init): Register always_use_struct_convention,
5405 instead of cris_use_struct_convention.
5406 * frv-tdep.c (frv_use_struct_convention): Delete.
5407 (frv_gdbarch_init): Register always_use_struct_convention,
5408 instead of frv_use_struct_convention.
5409 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5410 (h8300_gdbarch_init): Register always_use_struct_convention,
5411 instead of h8300_use_struct_convention.
e3305dd9 5412 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5413 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5414 instead of mips_o32_use_struct_convention.
5415
e14e6e9c
AC
54162003-06-12 Andrew Cagney <cagney@redhat.com>
5417
5418 * wince.c: Include "mips-tdep.h".
5419 * mips-tdep.h (mips_next_pc): Declare.
5420 * mcore-tdep.c: Make more local functions static.
5421 * Makefile.in (wince.o): Update dependencies.
5422
2335f48e
DC
54232003-06-12 David Carlton <carlton@kealia.com>
5424
5425 * symtab.c (lookup_symbol_aux_minsyms): Replace
5426 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5427 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5428 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5429 SYMBOL_NATURAL_NAME.
5430
f70a7d61
AS
54312003-06-12 Andreas Schwab <schwab@suse.de>
5432
5433 * Makefile.in (tuiDisassem.o): Update dependencies.
5434
b6429628
DC
54352003-06-12 David Carlton <carlton@bactrian.org>
5436
5437 * symtab.h: Delete declaration of make_symbol_overload_list.
5438 Add declaration of lookup_partial_symbol.
5439 * symtab.c (remove_params): Move to cp-support.c.
5440 (overload_list_add_symbol, make_symbol_overload_list)
5441 (sym_return_val_size, sym_return_val_index): Ditto.
5442 (lookup_partial_symbol): Make extern.
5443 * cp-support.h: Add declaration of make_symbol_overload_list.
5444 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5445 symtab.h, and block.h.
5446 (remove_params): Move here from symtab.c.
5447 (overload_list_add_symbol, make_symbol_overload_list)
5448 (sym_return_val_size, sym_return_val_index): Ditto.
5449 * valops.c: Include cp-support.h.
5450 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5451 frame_h, and block_h.
5452 (valops.o): Depend on cp_support_h.
5453
084edea5
CV
54542003-06-12 Corinna Vinschen <vinschen@redhat.com>
5455
5456 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5457 substitute by NUM_REGS throughout.
5458 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5459 (h8300s_register_name): New function for H8S registers.
5460 (h8300sx_register_name): Ditto for H8SX registers.
5461 (h8300_print_register): Revise register printing, avoid depending
5462 on 32 bit long.
0261a0d0 5463 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5464 (h8300h_register_byte): New function for any other architecture.
5465 (h8300_register_raw_size): Remove.
5466 (h8300_register_virtual_type): Revise to return actually useful
5467 type.
5468 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5469 (h8300h_extract_struct_value_address): New function for any other
5470 architecture.
5471 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5472 set_gdbarch_register_name, set_gdbarch_register_byte,
5473 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5474 Remove calls to set_gdbarch_deprecated_register_size,
5475 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5476 set_gdbarch_deprecated_max_register_raw_size,
5477 set_gdbarch_register_virtual_size and
5478 set_gdbarch_deprecated_max_register_virtual_size entirely.
5479 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5480 set_gdbarch_long_double_bit.
5481
06194148
JJ
54822003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5483
8ffd9b1b
AJ
5484 * doublest.c (convert_doublest_to_floatformat): When dealing
5485 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5486 processing a full 32 bits of mantissa.
5487
de4f826b
DC
54882003-06-11 David Carlton <carlton@bactrian.org>
5489
5490 * dictionary.h: New.
5491 * dictionary.c: New.
5492 * block.h: Add opaque declaration for struct dictionary.
5493 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5494 'sym' members.
5495 (BLOCK_DICT): New macro.
5496 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5497 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5498 BLOCK_SHOULD_SORT.
5499 (ALL_BLOCK_SYMBOLS): Update definition.
5500 * Makefile.in (SFILES): Add dictionary.c.
5501 (dictionary_h): New.
5502 (COMMON_OBS): Add dictionary.o.
5503 (dictionary.o): New.
5504 (ada-lang.o): Depend on dictionary_h.
5505 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5506 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5507 (mi-cmd-stack.o): Ditto.
5508 (gdbtk-cmds.o): Update dependencies.
5509 (gdbtk-stack.o): Ditto.
5510 * ada-lang.c: Include dictionary.h.
5511 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5512 (fill_in_ada_prototype, debug_print_block): Ditto.
5513 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5514 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5515 'is_sorted'.
5516 * mdebugread.c: Include dictionary.h.
5517 (struct parse_stack): Delete 'maxsyms' member.
5518 (parse_symbol): Update calls to new_block. Delete calls to
5519 shrink_block. Use dictionary methods.
5520 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5521 Update calls to new_symtab. Don't maintain maxsyms data.
5522 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5523 (add_symbol): Just call dict_add_symbol.
5524 (new_symtab): Delete 'maxsyms' argument.
5525 (new_symtab): Update calls to new_block.
5526 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5527 (shrink_block): Delete function.
5528 (fixup_sigtramp): Update call to new_block. Add symbol via
5529 dict_add_symbol.
5530 * jv-lang.c: Include dictionary.h.
5531 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5532 appropriately. Set class_symtab->free_func. Make sure the
5533 blockvector is big enough to hold two blocks.
5534 (add_class_symtab_symbol): Use dictionary methods.
5535 (free_class_block): New function.
5536 (type_from_class): Replace explicit iteration by
5537 ALL_BLOCK_SYMBOLS.
5538 * symtab.h (struct symtab): Replace 'free_ptr' method by
5539 'free_func'.
5540 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5541 sort_symtab_syms.
5542 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5543 sort_symtab_syms.
5544 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5545 Include dictionary.h.
5546 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5547 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5548 sort_symtab_syms.
5549 * objfiles.c: Include dictionary.h.
5550 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5551 * buildsym.c: Include dictionary.h.
5552 (finish_block): Use dictionary methods.
5553 (end_symtab): Set free_func to NULL, not free_ptr.
5554 * tracepoint.c: Include dictionary.h.
5555 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5556 (scope_info): Ditto.
5557 * stack.c: Include dictionary.h.
5558 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5559 (print_block_frame_labels, print_frame_arg_vars)
5560 (print_frame_args): Ditto.
5561 * symmisc.c (free_symtab_block): Use dictionary methods.
5562 (dump_symtab): Ditto.
5563 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5564 Include dictionary.h.
5565 * symfile.h: Delete declarations of sort_block_syms,
5566 sort_symtab_syms.
5567 * symfile.c (sort_block_syms): Delete.
5568 (sort_symtab_syms): Delete.
5569 * symtab.c: Include dictionary.h.
5570 (lookup_block_symbol): Use dictionary iterators.
5571 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5572 (search_symbols, make_symbol_completion_list): Ditto.
5573 (make_symbol_overload_list): Ditto.
5574 * valops.c (value_of_local): Use dict_empty.
5575 Include dictionary.h.
5576
a31f978c
JB
55772003-06-11 J. Brobecker <brobecker@gnat.com>
5578
5579 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5580
526e70c0
DC
55812003-06-11 David Carlton <carlton@bactrian.org>
5582
5583 * block.h (BLOCK_SHOULD_SORT): Delete.
5584 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5585 blocks.
5586 * ada-lang.c (ada_add_block_symbols): Ditto.
5587 * symfile.c (sort_block_syms): Delete.
5588 (sort_symtab_syms): Ditto.
5589 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5590 declarations.
5591 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5592 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5593 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5594 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5595 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5596 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5597 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5598
33c08150
JJ
55992003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5600
8ffd9b1b 5601 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5602 bits to 128.
5603
781a750d
AC
56042003-06-11 Andrew Cagney <cagney@redhat.com>
5605
5606 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5607 REGISTER_CONVERTIBLE.
5608 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5609 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5610 * gdbarch.h, gdbarch.c: Re-generate.
5611 * arch-utils.h (deprecated_register_convertible_not): Rename
5612 generic_register_convertible_not.
5613 * arch-utils.c (deprecated_register_convertible_not): Rename
5614 generic_register_convertible.
5615 (legacy_convert_register_p, legacy_register_to_value): Update.
5616 * sh-tdep.c (sh64_push_arguments): Update.
5617 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5618 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5619 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5620 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5621 * arch-utils.c (legacy_value_to_register): Update.
5622 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5623 (rs6000_register_convert_to_raw): Make parameter "from" const.
5624 * mips-tdep.c (mips_gdbarch_init): Update.
5625 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5626 * infcmd.c (default_print_registers_info): Update.
5627 * ia64-tdep.c (ia64_gdbarch_init): Update.
5628 (ia64_register_convert_to_raw): Make parameter "from" const.
5629 * i386-tdep.c (i386_gdbarch_init): Update.
5630 (i386_register_convert_to_raw): Update.
5631
cd90e54f
AC
56322003-06-11 Andrew Cagney <cagney@redhat.com>
5633
5634 * remote-fileio.c: Include "remote-fileio.h".
5635 * Makefile.in (remote-fileio.o): Update dependencies.
5636 (remote_fileio_h): Fix typo.
5637
a78f21af
AC
56382003-06-11 Andrew Cagney <cagney@redhat.com>
5639
5640 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5641 (xstormy16_save_dummy_frame_tos): Make static.
5642 (_initialize_xstormy16_tdep): Add declaration.
5643 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5644 * v850-tdep.c: Make local functions static.
5645 (_initialize_v850_tdep): Add declaration.
5646 * sparc-tdep.c: Make local functions static.
5647 (_initialize_sparc_tdep): Add declaration.
5648 * sh-tdep.c: Make local functions static.
5649 (_initialize_sh_tdep): Add declaration.
5650 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5651 * s390-tdep.c: Make local functions static.
5652 (_initialize_s390_tdep): Add declaration.
5653 * dbxread.c (find_stab_function_addr): Make static.
5654 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5655 * ocd.c (_initialize_remote_ocd): Add declaration.
5656 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5657 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5658 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5659 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5660 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5661 * remote-array.c (_initialize_array): Add declaration.
5662 (_initialize_remote_monitors): Add declaration.
5663 * remote-mips.c: Make local functions static.
5664 (_initialize_remote_mips): Add declaration.
5665 * mcore-tdep.c: Make all local functions static.
5666 (_initialize_mcore_tdep): Add declaration.
5667 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5668 * abug-rom.c (_initialize_abug_rom): Add declaration.
5669 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5670 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5671 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5672 * remote-est.c (_initialize_est): Add declaration.
5673 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5674 (m68hc11_call_dummy_address): Make static.
5675 * ia64-tdep.c: Make local functions static.
5676 (_initialize_ia64_tdep): Add declaration.
5677 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5678 * monitor.c (monitor_wait_filter): Make static.
5679 (_initialize_remote_monitors): Add declaration.
5680 * remote-hms.c (_initialize_remote_hms): Add declaration.
5681 * remote-e7000.c (fetch_regs_from_dump): Make static.
5682 (expect_n): Make static.
5683 (_initialize_remote_e7000): Add declaration.
5684 * ser-e7kpc.c: Always include "defs.h".
5685 (_initialize_ser_e7000pc): Add declaration.
5686 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5687 * cris-tdep.c: Make all but one function static.
5688 (_initialize_cris_tdep): Add declaration.
5689 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5690 * solib.c (update_solib_list): Make static.
5691 (_initialize_solib): Add declaration.
5692 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5693 (_initialize_avr_tdep): Add declaration.
5694 * remote-rdi.c (voiddummy): Make static.
5695 (_initialize_remote_rdi): Add declaration.
5696 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5697 * remote-rdp.c (send_rdp): Make static.
5698 (_initialize_remote_rdp): Add declaration.
5699 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5700
cbcdb1f5
CV
57012003-06-11 Corinna Vinschen <vinschen@redhat.com>
5702
5703 * remote-fileio.c: Make ari happy.
5704
a191ea8d
JB
57052003-06-10 J. Brobecker <brobecker@gnat.com>
5706
5707 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5708 fetching the trailing bytes of the buffer we are about to write.
5709
0ef75e11
AC
57102003-06-10 Andrew Cagney <cagney@redhat.com>
5711
5712 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5713 * Makefile.in (remote-fileio.o): Update dependencies.
5714 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5715 include <setjmp.h>, or <sys/types.h> conditional on USG.
5716 (remote_fio_jmp_buf): Delete global variable.
5717
449092f6 57182003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5719 Martin M. Hunt <hunt@redhat.com>
449092f6 5720
559fa028
AC
5721 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5722 (SFILES): Add remote-fileio.c.
5723 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5724 dependencies for building remote.o.
449092f6
CV
5725 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5726 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5727 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5728 static storage class.
5729 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5730 'F' packet.
5731 (_initialize_remote): Call initialize_remote_fileio().
5732 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5733 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5734 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5735 (captured_main): Initialize new ui_files.
5736 * ui-file.c: Add read and fgets input functions.
5737 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5738 (null_file_read): New function.
5739 (ui_file_read): New function.
5740 (set_ui_file_read): New function.
5741 (stdio_file_read): New function.
5742 * ui-file.h: New type ui_file_read_ftype.
5743 (set_ui_file_read): Declare.
5744 (ui_file_read): Declare.
5745
248de703
AC
57462003-06-09 Andrew Cagney <cagney@redhat.com>
5747
5748 * frame.h (deprecated_unwind_get_saved_register): Rename
5749 generic_unwind_get_saved_register, update comments.
5750 * mips-tdep.c (mips_get_saved_register): Update.
5751 * frame.c (deprecated_unwind_get_saved_register): Update.
5752
0ed8aa57
AC
57532003-06-09 Andrew Cagney <cagney@redhat.com>
5754
5755 * vax-tdep.c (vax_frame_locals_address): Delete function.
5756 (vax_gdbarch_init): Do not set frame_locals_address.
5757 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5758 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5759 * s390-tdep.c (s390_frame_args_address): Delete function.
5760 (s390_gdbarch_init): Do not set frame_args_address or
5761 frame_locals_address.
5762 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5763 (ns32k_gdbarch_init): Do not set frame_locals_address.
5764 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5765 (hppa_frame_locals_address): Delete function.
5766 (hppa_gdbarch_init): Do not set frame_args_address, or
5767 frame_locals_address.
5768 * arm-tdep.c (arm_frame_args_address): Delete.
5769 (arm_frame_locals_address): Delete.
5770 (arm_gdbarch_init): Do not set frame_args_address, or
5771 frame_locals_address.
5772
983a287a
AC
57732003-06-09 Andrew Cagney <cagney@redhat.com>
5774
5775 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5776 * gdbarch.h, gdbarch.c: Re-generate.
5777 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5778 * arch-utils.c (frame_num_args_unknown): Delete function.
5779 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5780 (frame_info): Use FRAME_NUM_ARGS_P.
5781 * arm-tdep.c (arm_frame_num_args): Delete function.
5782 (arm_gdbarch_init): Do not set frame_num_args.
5783 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5784 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5785 (hppa_gdbarch_init): Do not set frame_num_args.
5786 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5788 frame_num_args to default frame_num_args_unknown.
5789 * v850-tdep.c (v850_gdbarch_init): Ditto.
5790 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5791 * sh-tdep.c (sh_gdbarch_init): Ditto.
5792 * s390-tdep.c (s390_gdbarch_init): Ditto.
5793 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5794 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5795 * mips-tdep.c (mips_gdbarch_init): Ditto.
5796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5797 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5800 * i386-tdep.c (i386_gdbarch_init): Ditto.
5801 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5802 * frv-tdep.c (frv_gdbarch_init): Ditto.
5803 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5804 * cris-tdep.c (cris_gdbarch_init): Ditto.
5805 * avr-tdep.c (avr_gdbarch_init): Ditto.
5806 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5807
8d3b0994
AC
58082003-06-09 Andrew Cagney <cagney@redhat.com>
5809
5810 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5811 (print_frame_args): Moved to "stack.c".
5812 * stack.c: Include "gdb_assert.h".
5813 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5814 (print_frame_args): Moved from "printcmd.c".
5815 * frame.h (print_frame_args): Delete declaration.
5816 * Makefile.in (stack.o): Update dependencies.
5817
25e3a86b
AC
58182003-06-08 Andrew Cagney <cagney@redhat.com>
5819
5820 * frame.c (get_prev_frame): Remove reference to
5821 frame_args_address_correct in comments.
5822 * frame-base.c (default_frame_args_address): Delete code
5823 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5824 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5825 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5826 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5827 (vax_frame_args_address_correct): Delete declaration.
5828
a9e5fdc2
AC
58292003-06-08 Andrew Cagney <cagney@redhat.com>
5830
5831 * gdbarch.sh (UNWIND_SP): Add.
5832 * gdbarch.h, gdbarch.c: Re-generate.
5833 * frame.c (frame_sp_unwind): New function.
5834 (get_frame_sp): New function.
5835 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5836 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5837 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5838 value.
5839 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5840 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5841
8983bd83
AC
58422003-06-08 Andrew Cagney <cagney@redhat.com>
5843
7fec2c59
AC
5844 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5845 REMOTE_BREAKPOINT.
5846 * remote.c: Update.
5847 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5848 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5849 * config/m68k/tm-sun3.h: Update.
5850 * config/m68k/tm-m68klynx.h: Update.
5851 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5852
8983bd83
AC
5853 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5854 trad_frame". Update comments.
5855 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5856 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5857 (trad_frame_register_value, trad_frame_prev_register): Update.
5858
b9362cc7
AC
58592003-06-08 Andrew Cagney <cagney@redhat.com>
5860
5861 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5862 from GCC's acinclude.m4.
5863 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5864 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5865 * main.c (error_init): Delete declaration.
5866 * defs.h (error_init): Declare.
5867 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5868 (rs6000_convert_from_func_ptr_addr): Make static.
5869 (_initialize_rs6000_tdep): Add declaration.
5870 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5871 (show_commands, set_verbose, show_history): Delete declaration.
5872 * top.h (set_verbose): Add declaration.
5873 (show_history, set_history, show_commands): Add declaration.
5874 (do_restore_instream_cleanup): Add declaration.
5875 * objc-lang.c (specialcmp): Make static.
5876 (print_object_command): Make static.
5877 (find_objc_msgsend): Make static.
5878 (find_objc_msgcall_submethod_helper): Make static.
5879 (find_objc_msgcall_submethod): Make static.
5880 (_initialize_objc_language): Add declaration.
5881 (find_implementation_from_class): Make static.
5882 (find_implementation): Make static.
5883 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5884 * objc-lang.h (lookup_struct_typedef): Add declaration.
5885 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5886 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5887 (do_restore_user_call_depth): Make static.
5888 (do_restore_instream_cleanup): Delete declaration.
5889 (dont_repeat): Delete declaration.
5890 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5891 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5892 * reggroups.c (_initialize_reggroup): Add declaration.
5893 * cp-support.c (_initialize_cp_support): Add declaration.
5894 * cp-abi.c (_initialize_cp_abi): Add declaration.
5895 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5896 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5897 (_initialize_gnu_v3_abi): Add declaration.
5898 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5899 (_initialize_gnu_v2_abi): Add declaration.
5900 * frame-base.c (_initialize_frame_base): Add declaration.
5901 * doublest.c (floatformat_from_length): Make static.
5902 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5903 * frame.c (create_sentinel_frame): Make static.
5904 (_initialize_frame): Add declaration.
5905 * top.c (do_catch_errors): Make static.
5906 (gdb_rl_operate_and_get_next_completion): Make static.
5907 * typeprint.c: Include "typeprint.h".
5908 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5909 (sentinel_frame_this_id): Make static.
5910 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5911 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5912 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5913 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5914 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5915 * maint.c (maintenance_print_architecture): Make static.
5916 * signals/signals.c (_initialize_signals): Add declaration.
5917 * std-regs.c (_initialize_frame_reg): Add declaration.
5918 * jv-exp.y (push_variable): ISO C definition.
5919 (push_qualified_expression_name): Ditto.
5920 * memattr.c (_initialize_mem): Add declaration.
5921 * remote.c (remote_check_watch_resources): Make static.
5922 (remote_stopped_by_watchpoint): Make static.
5923 (remote_stopped_data_address): Make static.
5924 * d10v-tdep.c (nr_dmap_regs): Make static.
5925 (a0_regnum): Make static.
5926 (d10v_frame_unwind_cache): Make static.
5927 (d10v_frame_p): Make static.
5928 * osabi.c (show_osabi): Make static.
5929 (_initialize_gdb_osabi): Add extern declaration.
5930 * gdbtypes.c (make_qualified_type): Make static.
5931 (safe_parse_type): Make static.
5932 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5933 * macrotab.c (macro_bcache_free): Make static.
5934 * interps.c (interp_set_quiet): Make static.
5935 (interpreter_exec_cmd): Make static.
5936 * stack.h (select_frame_command): New file.
5937 * stack.c: Include "stack.h".
5938 (select_frame_command_wrapper): Delete function.
5939 (select_frame_command): Make global.
5940 * infcall.c: Include "infcall.h".
5941 * linespec.c: Include "linespec.h".
5942 * symfile.c (sections_overlap): Make static.
5943 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5944 * charset.c (_initialize_charset): Add missing prototype.
5945 * regcache.c (init_legacy_regcache_descr): Make static.
5946 (do_regcache_xfree): Make static.
5947 (regcache_xfer_part): Make static.
5948 (_initialize_regcache): Add missing prototype.
5949 * breakpoint.c (parse_breakpoint_sals): Make static.
5950 (breakpoint_sals_to_pc): Make static.
5951 * interps.h (clear_interpreter_hooks): ISO C declaration.
5952 * Makefile.in (stack_h): Define.
5953 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5954 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5955
a0f267c7
AC
59562003-06-08 Andrew Cagney <cagney@redhat.com>
5957
5958 * Makefile.in (d10v-tdep.o): Update dependencies.
5959 (SFILES): Add trad-frame.c.
5960 (trad_frame_h): Define.
5961 (COMMON_OBS): Add trad-frame.o.
5962 (trad-frame.o): Specify dependencies.
5963 * d10v-tdep.c: Include "trad-frame.h".
5964 (saved_regs_unwinder): Delete function.
5965 (d10v_frame_prev_register): Use trad_frame_prev_register.
5966 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5967 trad_frame", delete "regs" and "prev_sp".
5968 (prologue_find_regs): Use trad-frame.
5969 * trad-frame.h, trad-frame.c: New files.
5970
4538b4f4
MK
59712003-06-08 Mark Kettenis <kettenis@gnu.org>
5972
5973 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5974
a0273b2f
AF
59752003-06-07 Adam Fedor <fedor@gnu.org>
5976
5977 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5978 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5979 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5980 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5981 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5982 Use it.
5983
3a6c3343
AC
59842003-06-07 Andrew Cagney <cagney@redhat.com>
5985
5986 * symfile.h: Re-indent, clean up comments.
5987
b46e02f6
AC
59882003-06-07 Andrew Cagney <cagney@redhat.com>
5989
5990 * inferior.h (deprecated_write_sp): Replace
5991 generic_target_write_sp.
5992 * regcache.c (deprecated_write_sp): Replace
5993 generic_target_write_sp.
5994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5995 * vax-tdep.c (vax_gdbarch_init): Update.
5996 * v850-tdep.c (v850_gdbarch_init): Update.
5997 * sparc-tdep.c (sparc_gdbarch_init): Update.
5998 * sh-tdep.c (sh_gdbarch_init): Update.
5999 * s390-tdep.c (s390_gdbarch_init): Update.
6000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6001 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6002 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6003 * mcore-tdep.c (mcore_gdbarch_init): Update.
6004 * m68k-tdep.c (m68k_gdbarch_init): Update.
6005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6006 * ia64-tdep.c (ia64_gdbarch_init): Update.
6007 * h8300-tdep.c (h8300_gdbarch_init): Update.
6008 * frv-tdep.c (frv_gdbarch_init): Update.
6009 * cris-tdep.c (cris_gdbarch_init): Update.
6010 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6011
a42e117c
AC
60122003-06-07 Andrew Cagney <cagney@redhat.com>
6013
6014 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6015 Assert that PC_REGNUM is valid.
6016 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6017
bd1ce8ba
AC
60182003-06-07 Andrew Cagney <cagney@redhat.com>
6019
6020 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6021 * gdbarch.h, gdbarch.c: Regenerate.
6022 * mn10300-tdep.c: Include "gdb_assert.h".
6023 (mn10300_read_fp): New function.
6024 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6025 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6026 * ia64-tdep.c: Include "gdb_assert.h".
6027 (ia64_read_fp): New function.
6028 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6029 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6030 * regcache.c (generic_target_read_sp): Delete function.
6031 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6032 * inferior.h (generic_target_read_sp): Delete declaration.
6033 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6034 generic_target_read_sp.
6035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6036 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6037 * sh-tdep.c (sh_gdbarch_init): Ditto.
6038 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6039 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6040
ec5cbaec
AC
60412003-06-07 Andrew Cagney <cagney@redhat.com>
6042
6043 * gdbarch.sh: Comment each field of startup_gdbarch.
6044 * gdbarch.h, gdbarch.c: Re-generate.
6045
cde9ea48
AC
60462003-06-07 Andrew Cagney <cagney@redhat.com>
6047
6048 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6049 * gdbarch.h, gdbarch.c: Re-generate.
6050 * regcache.c: Update comments on read_pc et.al.
6051 (generic_target_read_pc): Delete function.
6052 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6053 * inferior.h (generic_target_read_pc): Delete declaration.
6054 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6055 generic_target_read_pc.
6056 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6057 * sh-tdep.c (sh_gdbarch_init): Ditto.
6058 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6060
9a90a780
AC
60612003-06-07 Andrew Cagney <cagney@redhat.com>
6062
6063 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6064 "index" with "special_local_sect". Use strcmp instead of STREQ.
6065 Append period to coments.
6066
a39a16c4
MM
60672003-06-06 Mark Mitchell <mark@codesourcery.com>
6068
6069 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6070 (elfstab_offset_sections): Likewise.
6071 * gdb-stabs.h (stab_section_info): Likewise.
6072 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6073 * objfiles.c (objfile_relocate): Likewise.
6074 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6075 * remote.c (get_offsets): Likewise.
6076 (remote_cisco_objfile_relocate): Likewise.
6077 * somread.c (som_symfile_offsets): Likewise.
6078 * symfile.c (alloc_section_addr_info): New function.
6079 (build_section_addr_info_from_section_tab): Use it.
6080 (free_section_addr_info): Adjust.
6081 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6082 (syms_from_objfile): Allocate local_addr dynamically.
6083 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6084 dynamically.
6085 (add_symbol_file_command): Allocate sect_opts dynamically.
6086 (reread_symbols): Avoid use of SECT_OFF_MAX.
6087 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6088 (alloc_section_addr_info): Declare it.
6089 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6090 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6091 dynamically.
6092 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6093
20c6c2f8
AC
60942003-06-06 Andrew Cagney <cagney@redhat.com>
6095
6096 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6097 (d10v_frame_unwind_cache): Do not set "return_pc".
6098
884a26c8
MS
60992003-06-06 Michael Snyder <msnyder@redhat.com>
6100
6101 * h8300-tdep.c: Make tidy (long lines).
6102
088ce440
ML
61032003-06-06 Michal Ludvig <mludvig@suse.cz>
6104
8ffd9b1b 6105 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6106 to regcache_collect().
6107
7d773d96
JB
61082003-06-05 J. Brobecker <brobecker@gnat.com>
6109
6110 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6111 pc_in_sigtramp multiarch method.
6112 (hppa_hpux_som_init_abi): Use it.
6113 (hppa_hpux_elf_init_abi): Likewise.
6114 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6115 macro has been multiarched.
6116 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6117 macro here, as hppa64 isn't multiarched yet.
6118
1df6926e
AC
61192003-06-05 Andrew Cagney <cagney@redhat.com>
6120
6121 * Makefile.in (value_h): Add $(frame_h).
6122 * value.h: Include "frame.h".
6123 (struct value): Replace "frame_addr" with "frame_id".
6124 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6125 * values.c (allocate_value): Use VALUE_FRAME_ID.
6126 (value_copy): Use VALUE_FRAME_ID.
6127 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6128 * valops.c (value_assign): Update. Use frame_find_by_id.
6129
6b53acc6
ML
61302003-06-05 Michal Ludvig <mludvig@suse.cz>
6131
6132 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6133 in each pass.
6134
4d9850d3
JJ
61352003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6136
6137 * thread-db.c (check_event): For create/death event breakpoints,
6138 loop through all messages to ensure that we read the message
6139 corresponding to the breakpoint we are at.
6140
8efca6ba
MS
61412003-06-04 Michael Snyder <msnyder@redhat.com>
6142
6143 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6144
0912c7f2
MK
61452003-06-04 Mark Kettenis <kettenis@gnu.org>
6146
6147 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6148 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6149 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6150 when handling .eh_frame sections.
6151
4e370325
JB
61522003-06-04 J. Brobecker <brobecker@gnat.com>
6153
6154 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6155 prepare_to_proceed procedure instead of the hppa-specific one.
6156 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6157
b757528f 61582003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6159
b757528f
JJ
6160 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6161 * config.in: Regenerated.
6162 * configure.in: Add test for syscall function and check for
6163 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6164 * configure: Regenerated.
6165 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6166 <sys/syscall.h>.
6167 (kill_lwp): New function that uses tkill syscall or
6168 uses kill, depending on whether threading model is nptl or not.
6169 All callers of kill() changed to use kill_lwp().
6170 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6171 see if all threads have already exited in the nptl model.
6172 (stop_and_resume_callback): New callback function used by the
6173 lin_lwp_wait thread exit handling code.
6174 (stop_wait_callback): Check for threads already having exited and
6175 delete such threads fromt the lwp list when discovered.
6176 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6177
b757528f
JJ
6178 Roland McGrath <roland@redhat.com>
6179 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6180 nptl libthread_db.
6181
087779b1
RH
61822003-06-03 Richard Henderson <rth@redhat.com>
6183
b21fd293
RH
6184 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6185 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6186 (alpha_sigtramp_frame_prev_register): Likewise.
6187 (alpha_heuristic_frame_prev_register): Likewise.
6188 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6189
8ffd9b1b 6190 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6191 alpha-specific register id names.
6192 (alpha_mdebug_frame_unwind_cache): Likewise.
6193 (alpha_mdebug_frame_prev_register): Likewise.
6194
baa490c4
RH
61952003-06-03 Richard Henderson <rth@redhat.com>
6196
6197 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6198 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6199 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6200 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6201 unwind routines.
6202 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6203 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6204 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6205
6206 * alpha-linux-tdep.c: Remove unnecessary includes.
6207 * Makefile.in (alpha-linux-tdep.o): Update.
6208
62092003-06-03 Richard Henderson <rth@redhat.com>
6210
6211 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6212 (alphabsd_fill_fpreg): Likewise.
6213
f534e522
JB
62142003-06-03 J. Brobecker <brobecker@gnat.com>
6215
6216 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6217 references to struct frame_info fields by calls to the equivalent
6218 accessors. Necessary now that frame_info is opaque.
6219
4035536b
JB
62202003-06-03 J. Brobecker <brobecker@gnat.com>
6221
6222 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6223 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6224 structure, field no longer exists.
6225
0bd79c5c
JB
62262003-06-03 J. Brobecker <brobecker@gnat.com>
6227
6228 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6229 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6230
37bb6d9f
JB
62312003-06-03 J. Brobecker <brobecker@gnat.com>
6232
6233 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6234 references to struct frame_info fields by calls to the equivalent
6235 accessors. Necessary now that frame_info is opaque.
6236
852ee05c
JB
62372003-06-03 J. Brobecker <brobecker@gnat.com>
6238
6239 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6240 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6241 structure, field no longer exists.
6242
7d58c67d
TR
62432003-06-03 Theodore A. Roth <troth@openavr.org>
6244
8ffd9b1b 6245 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6246 accumulation of the size of all registers instead of blindly using
6247 DEPRECATED_REGISTER_BYTES.
6248
0a48e7e8
MS
62492003-06-03 Michael Snyder <msnyder@redhat.com>
6250
6251 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6252 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6253 for h8300sx.
6254
9798ab0d
JB
62552003-06-03 J. Brobecker <brobecker@gnat.com>
6256
6257 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6258 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6259
00b037e2
AC
62602003-06-03 Andrew Cagney <cagney@redhat.com>
6261
6262 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6263 (sparc_convert_to_raw): Delete function.
6264 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6265 register_convert_to_virtual.
6266
043b2f77
JJ
62672003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6268
6269 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6270 layer if not dealing with a statically-linked threaded program.
6271
f43caff8
KW
62722003-06-03 Kris Warkentin <kewarken@qnx.com>
6273
6274 * solib.c (solib_open): Update comment to reflect actual search order.
6275
ae1e7417
AC
62762003-06-03 Andrew Cagney <cagney@redhat.com>
6277
6278 * frame.c (get_frame_memory_signed): New function.
6279 (get_frame_memory, get_frame_memory_unsigned): New function.
6280 (get_frame_arch): New function.
6281 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6282 (get_frame_memory, get_frame_unsigned_memory): Declare.
6283 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6284 get_frame_memory_unsigned and get_frame_arch.
6285 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6286
cb123844
RG
62872003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6288
6289 * MAINTAINERS (write after approval): Add myself.
6290
1bb792e9
JB
62912003-06-03 Jim Blandy <jimb@redhat.com>
6292
6293 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6294 elements of gregset_t are 64 bits each, but access registers
6295 are still 32 bits, so they're packed two per gregset_t
6296 element. Unpack/pack them properly.
6297
aee8d8ba
DC
62982003-06-02 David Carlton <carlton@bactrian.org>
6299
6300 * linespec.c (find_methods): Break out code into
6301 add_matching_methods and add_constructors.
6302 (add_matching_methods): New.
6303 (add_constructors): Ditto.
6304
bf7488d2
AC
63052003-06-02 Andrew Cagney <cagney@redhat.com>
6306
bf7488d2
AC
6307 * sparc-tdep.c (sparc_print_registers): Delete call to
6308 REGISTER_CONVERTIBLE.
6309 (sparc_gdbarch_init): Do not set register_convertible.
6310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6311 * frv-tdep.c (frv_gdbarch_init): Ditto.
6312 * cris-tdep.c (cris_gdbarch_init): Ditto.
6313
adedef68
EZ
63142003-06-02 Elena Zannoni <ezannoni@redhat.com>
6315
8ffd9b1b 6316 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6317 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6318 (syms_from_objfile): Ditto.
6319
650fcc91
AS
63202003-06-03 Andreas Schwab <schwab@suse.de>
6321
6322 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6323 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6324
df4a182b
RH
63252003-06-02 Richard Henderson <rth@redhat.com>
6326
6327 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6328 a member of all_reggroup.
6329
c483c494
RH
63302003-06-02 Richard Henderson <rth@redhat.com>
6331
6332 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6333 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6334 (alpha_lds, alpha_sts): New.
6335 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6336 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6337 restructure and fail for type sizes other than 4 or 8.
6338 (alpha_value_to_register): Similarly.
6339 (alpha_extract_return_value): Use alpha_sts.
6340 (alpha_store_return_value): Use alpha_lds.
6341 (alpha_gdbarch_init): Update hooks.
6342
b38b6be2
RH
63432003-06-02 Richard Henderson <rth@redhat.com>
6344
6345 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6346 regnum identifiers.
6347 (alpha_sigtramp_register_address): Likewise.
6348
98a8e1e5
RH
63492003-06-02 Richard Henderson <rth@redhat.com>
6350
6351 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6352 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6353 * alpha-tdep.h: Declare them.
6354
6355 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6356 Remove zerobuf. Don't error on UNIQUE.
6357 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6358 (ALPHA_REGSET_UNIQUE): Provide default.
6359 (supply_gregset): Use alpha_supply_int_regs.
6360 (fill_gregset): Use alpha_fill_int_regs.
6361 (supply_fpregset): Use alpha_supply_fp_regs.
6362 (fill_fpregset): Use alpha_fill_fp_regs.
6363 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6364 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6365 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6366 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6367 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6368 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6369
67dfac52
RH
63702003-06-02 Richard Henderson <rth@redhat.com>
6371
f75d70cc
RH
6372 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6373
67dfac52
RH
6374 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6375 (alpha_store_return_value): Likewise.
6376
0cf566ec
DC
63772003-06-02 David Carlton <carlton@math.stanford.edu>
6378
6379 * block.c (contained_in): Add 'const' to arguments.
6380 (block_function): Ditto.
6381 * block.h: Update declarations for block_function and
6382 contained_in.
6383
cdef89d0
DC
63842003-06-02 David Carlton <carlton@math.stanford.edu>
6385
6386 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6387 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6388 * p-valprint.c (pascal_val_print): Ditto.
6389 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6390
72667056
RH
63912003-06-02 Richard Henderson <rth@redhat.com>
6392
98a8e1e5
RH
6393 * alpha-tdep.c (alpha_push_dummy_call): Use
6394 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6395
8ffd9b1b 6396 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6397 sign-extension of 32-bit values.
6398 (alpha_store_return_value): Similarly.
0ede8eca 6399
98a8e1e5
RH
6400 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6401 (alpha_extract_return_value): Likewise.
6402 (alpha_store_return_value): Likewise.
7b5e1cb3 6403
98a8e1e5
RH
6404 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6405 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6406
98a8e1e5
RH
6407 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6408 (alpha_extract_struct_value_address): Likewise.
6409 (alpha_store_return_value): Likewise.
6410 (alpha_store_struct_return): Remove.
6411 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6412
98a8e1e5
RH
6413 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6414 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6415 macros where appropriate.
6416 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6417 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6418
98a8e1e5
RH
6419 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6420 for SP, GP; void_func_ptr for PC; non-language-specific types
6421 for all others.
6422 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6423
6dd77b81
RH
64242003-06-02 Richard Henderson <rth@redhat.com>
6425
6426 * top.h (lim_at_start): Declare.
6427 * main.c (captured_main): Set it.
6428 * top.c (lim_at_start): Define.
6429 (command_loop): Use it instead of &environ.
6430 * event-top.c (command_handler): Likewise.
6431
f4dbdb54
JT
64322003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6433
6434 * mipsnbsd-tdep.c: Update copyright years.
6435 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6436
8f285956
RH
64372003-06-01 Richard Henderson <rth@redhat.com>
6438
98a8e1e5
RH
6439 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6440 (alpha-linux-tdep.o): Update dependencies.
6441 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6442 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6443
615967cb
RH
64442003-06-01 Richard Henderson <rth@redhat.com>
6445
98a8e1e5
RH
6446 * alpha-tdep.c (alpha_register_reggroup_p): New.
6447 (alpha_gdbarch_init): Register it.
615967cb 6448
b59661bd
AC
64492003-06-02 Andrew Cagney <cagney@redhat.com>
6450
6451 * dwarfread.c: Eliminate "register"
6452 (decode_die_type): Eliminate assignment within "if".
6453 (struct_type, decode_array_element_type): Ditto.
6454 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6455 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6456 (decode_modified_type, completedieinfo): Ditto.
6457 * block.c: Eliminate "register".
6458 (blockvector_for_pc_sect): Eliminate assignment within "if".
6459 * cp-support.h (struct symbol): Opaque declaration.
6460 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6461
5ef165c2
RH
64622003-06-01 Richard Henderson <rth@redhat.com>
6463
98a8e1e5
RH
6464 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6465 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6466
143985b7
AF
64672003-06-01 Adam Fedor <fedor@gnu.org>
6468
6469 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6470 * gdbarch.[ch]: Regenerate.
6471 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6472 (hppa_gdbarch_init): Set it in the gdbarch vector.
6473 * i386-tdep.c (i386_fetch_pointer_argument): New
6474 (i386_gdbarch_init): Set it into gdbarch.
6475 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6476 (rs6000_gdbarch_init): Set it in gdbarch.
6477 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6478 (sparc_gdbarch_init): Set it in gdbarch.
6479
ae0167b9
AC
64802003-06-01 Andrew Cagney <cagney@redhat.com>
6481
7c0b4a20
AC
6482 * defs.h (extract_address): Delete declaration.
6483 * findvar.c (extract_address): Delete function.
6484 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6485 extract_address with the inline equivalent,
6486 extract_unsigned_integer.
6487 (xstormy16_extract_struct_value_address): Ditto.
6488 (xstormy16_pointer_to_address): Ditto.
6489 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6490 * v850-tdep.c (v850_push_arguments): Ditto.
6491 (v850_extract_return_value): Ditto.
6492 (v850_extract_struct_value_address): Ditto.
6493 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6494 (sparcnbsd_get_longjmp_target_64): Ditto.
6495 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6496 (get_longjmp_target): Ditto.
6497 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6498 (sh64_extract_struct_value_address): Ditto.
6499 (sh_push_arguments): Ditto.
6500 (sh64_push_arguments): Ditto.
6501 * remote-vxsparc.c (vx_read_register): Ditto.
6502 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6503 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6504 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6505 * mipsv4-nat.c (get_longjmp_target): Ditto.
6506 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6507 * mips-nat.c (get_longjmp_target): Ditto.
6508 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6509 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6510 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6511 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6512 * irix5-nat.c (get_longjmp_target): Ditto.
6513 * irix4-nat.c (get_longjmp_target): Ditto.
6514 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6515 (ia64_push_arguments): Ditto.
6516 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6517 * h8300-tdep.c (h8300_push_arguments): Ditto.
6518 (h8300_store_return_value): Ditto.
6519 (h8300_extract_struct_value_address): Ditto.
6520 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6521 (frv_push_arguments): Ditto.
6522 * avr-tdep.c (avr_pointer_to_address): Ditto.
6523 (avr_push_arguments): Ditto.
6524 * arm-tdep.c (arm_push_dummy_call): Ditto.
6525 (arm_get_longjmp_target): Ditto.
6526 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6527 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6528 (alpha_get_longjmp_target): Ditto.
6529
ae0167b9
AC
6530 * solib-irix.c (extract_mips_address): Inline extract_address,
6531 replacing it with extract_signed_integer.
6532 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6533 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6534 (first_link_map_member, open_symbol_file_object): Ditto.
6535 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6536 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6537 (LM_NEXT, LM_NAME): Ditto.
6538
44d88583
RH
65392003-06-01 Richard Henderson <rth@redhat.com>
6540
98a8e1e5
RH
6541 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6542 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6543 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6544 (alpha_cannot_store_register): Likewise.
6545 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6546 * alpha-nat.c (supply_gregset): Likewise.
6547 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6548
310e9b6a
AC
65492003-06-01 Andrew Cagney <cagney@redhat.com>
6550
6551 * infcall.c (call_function_by_hand): Update comment on
6552 DEPRECATED_DUMMY_WRITE_SP.
6553
6554 * mips-tdep.c (mips_gdbarch_init): Do not set
6555 deprecated_dummy_write_sp.
6556 (mips_eabi_push_dummy_call): Set the SP register.
6557 (mips_o64_push_dummy_call): Set the SP register.
6558 (mips_o32_push_dummy_call): Set the SP register.
6559 (mips_n32n64_push_dummy_call): Set the SP register.
6560
5ab84872
RH
65612003-06-01 Richard Henderson <rth@redhat.com>
6562
98a8e1e5
RH
6563 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6564 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6565 (supply_gregset): Likewise.
6566 * alpha-tdep.c (alpha_store_return_value): Likewise.
6567 (alpha_get_longjmp_target): Likewise.
6568 (alpha_register_name): Constify array.
6569 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6570 deprecated_register_size, deprecated_register_bytes,
6571 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6572 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6573 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6574
09cc52fd
RH
65752003-06-01 Richard Henderson <rth@redhat.com>
6576
6577 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6578 from arg_reg_buffer to regcache to avoid double conversion.
6579
c7f16359
MK
65802003-06-01 Mark Kettenis <kettenis@gnu.org>
6581
6582 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6583 SP_REGNUM.
6584 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6585 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6586
7131cb6e
RH
65872003-06-01 Richard Henderson <rth@redhat.com>
6588
98a8e1e5
RH
6589 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6590 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6591
f3e0f90b
RH
65922003-06-01 Richard Henderson <rth@redhat.com>
6593
98a8e1e5
RH
6594 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6595 not overlapping PC_REGNUM.
f3e0f90b 6596
c88e30c0
RH
65972003-06-01 Richard Henderson <rth@redhat.com>
6598
98a8e1e5
RH
6599 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6600 alpha_push_arguments. Don't dump argument register data to
6601 the target stack. Fix float and 128-bit long double semantics.
6602 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6603 (alpha_fix_call_dummy): Remove.
6604 (alpha_call_dummy_words): Remove.
6605 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6606
f1a559ae
RH
66072003-06-01 Richard Henderson <rth@redhat.com>
6608
6609 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6610
5e045346
AC
66112003-06-01 Andrew Cagney <cagney@redhat.com>
6612
95404a3e
AC
6613 * mips-tdep.c (is_mips16_addr): New function.
6614 (make_mips16_addr, unmake_mips16_addr): New functions.
6615 (pc_is_mips16, mips_fetch_instruction): Use.
6616 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6617 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6618 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6619 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6620 TARGET_MIPS.
6621 * config/mips/tm-mips.h: Update copyright.
6622 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6623 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6624 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6625 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6626 (TM_PRINT_INSN_MACH): Delete.
6627 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6628
5e045346
AC
6629 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6630 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6631 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6632 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6633 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6634 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6635 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6636 mips*-*-riscos* and mips*-*-sysv* onto mips.
6637 * config/mips/mips64.mt: New file.
6638 * config/mips/mips.mt: New file.
6639 * config/mips/littlemips.mt: Delete file.
6640 * config/mips/decstation.mt: Delete file.
6641 * config/mips/vr4300el.mt: Delete file.
6642 * config/mips/vr5000el.mt: Delete file.
6643 * config/mips/vr5000.mt: Delete file.
6644 * config/mips/vr4100.mt: Delete file.
6645 * config/mips/vr4xxxel.mt: Delete file.
6646 * config/mips/vr4300.mt: Delete file.
6647 * config/mips/vr4xxx.mt: Delete file.
6648 * config/mips/bigmips.mt: Delete file.
6649 * config/mips/bigmips64.mt: Delete file.
6650 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6651 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6652 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6653 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6654 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6655 "tm-bigmips.h".
6656 * config/mips/tm-irix3.h: Ditto.
6657 * config/mips/tm-mipsv4.h: Ditto.
6658 * config/mips/tm-embed.h: Ditto.
6659 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6660 "tm-bigmips64.h".
6661 * config/mips/tm-vr5000el.h: Delete file.
6662 * config/mips/tm-tx39l.h: Delete file.
6663 * config/mips/tm-vr4300el.h: Delete file.
6664 * config/mips/tm-vr4xxxel.h: Delete file.
6665 * config/mips/tm-vr4300.h: Delete file.
6666 * config/mips/tm-vr4100.h: Delete file.
6667 * config/mips/tm-vr4xxx.h: Delete file.
6668 * config/mips/tm-vr5000.h: Delete file.
6669 * config/mips/tm-embedl64.h: Delete file.
6670 * config/mips/tm-embedl.h: Delete file.
6671 * config/mips/tm-embed64.h: Delete file.
6672 * config/mips/tm-bigmips64.h: Delete file.
6673 * config/mips/tm-bigmips.h: Delete file.
6674
2473a4a9
MK
66752003-06-01 Mark Kettenis <kettenis@gnu.org>
6676
97a5b208
MK
6677 Fix gdb/1216.
6678 * shnbsd-nat.c: Include "sh-tdep.h".
6679
2473a4a9
MK
6680 From Richard Henderson <rth@redhat.com>:
6681 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6682
e0f7ec59
AC
66832003-05-31 Andrew Cagney <cagney@redhat.com>
6684
6685 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6686 forward declaration.
6687 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6688 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6689 (mips_find_saved_regs): Use set_reg_offset.
6690 (mips_frame_init_saved_regs): Delete function.
6691 (mips_pop_frame): Call mips_find_saved_regs instead of
6692 DEPRECATED_FRAME_INIT_SAVED_REGS.
6693
68dcc709
AC
66942003-05-31 Andrew Cagney <cagney@redhat.com>
6695
6696 * mips-tdep.c (mips_gdbarch_init): Do not set
6697 deprecated_max_register_raw_size, register_virtual_size, and
6698 deprecated_max_register_virtual_size.
6699
cfc14b3a
MK
67002003-05-31 Mark Kettenis <kettenis@gnu.org>
6701
6405b0a6
MK
6702 * i386-tdep.c: Include "dwarf2-frame.h".
6703 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6704 * Makefile.in (i386-tdep.o): Update dependencies.
6705
cfc14b3a
MK
6706 * dwarf2-frame.c, dwarf2-frame.h: New files.
6707 * Makefile.in (SFILES): Add dwarf2-frame.c.
6708 (dwarf2_frame_h): Define.
6709 (COMMON_OBS): Add dwarf2-frame.o.
6710 (dwarf2-frame.o): Add dependencies.
6711
6a2751d2
AJ
67122003-05-31 Andreas Jaeger <aj@suse.de>
6713
6714 * x86-64-linux-nat.c: Fix comment.
6715
1c3545ae
MK
67162003-05-31 Mark Kettenis <kettenis@gnu.org>
6717
10f93086
MK
6718 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6719 function signature.
6720
1c3545ae
MK
6721 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6722 have a sigcontext_addr handler.
6723 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6724 sigcontext_addr handler.
6725
e11c53d2
AC
67262003-05-31 Andrew Cagney <cagney@redhat.com>
6727
6728 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6729 (print_fp_register_row): Replace do_fp_register_row.
6730 (mips_print_fp_register): Add "file" and "frame" parameters.
6731 (mips_print_register): Add "file" and "frame" parameters.
6732 (mips_print_registers_info): Replace mips_do_registers_info.
6733 (mips_gdbarch_init): Set print_registers_info instead of
6734 deprecated_do_registers_info.
6735 (mips_read_fp_register_single): Add "frame" parameter.
6736 (mips_read_fp_register_double): Add "frame" parameter.
6737
a3386186
MK
67382003-05-31 Mark Kettenis <kettenis@gnu.org>
6739
70913449
MK
6740 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6741 Fixes a bug where GDB would print the wrong register names for
6742 targets without SSE.
6743
2b5e0749
MK
6744 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6745 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6746 registers.
6747
6748 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6749 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6750 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6751 TDEP->sc_sp_offset.
6752
a3386186
MK
6753 From Michal Ludvig <mludvig@suse.cz>:
6754 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6755 and `sc_num_regs'.
6756 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6757 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6758 I386_ST0_REGNUM): Move here from...
6759 * i386-tdep.c: ... here.
6760 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6761 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6762 registers if possible.
6763 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6764 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6765 Remove variables.
6766 (i386bsd_sc_reg_offset): New variable.
6767 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6768 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6769 TDEP->sc_sp_offset.
6770 (i386fbsd_sc_reg_offset): New variable.
6771 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6772 TDEP->sc_num_regs.
6773 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6774 variables.
6775 (i386fbsd4_sc_reg_offset): New variable.
6776 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6777 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6778 TDEP->sc_sp_offset.
6779 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6780 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6781 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6782 Remove variables.
6783 (i386nbsd_sc_reg_offset): New variable.
6784 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6785 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6786 TDEP->sc_sp_offset.
6787 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6788 Remove variables.
6789 (i386obsd_sc_reg_offset): New variable.
6790 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6791 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6792 TDEP->sc_sp_offset.
6793 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6794 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6795 for frame pointer offset in `struct sigcontext'.
6796
25ab4790
AC
67972003-05-31 Andrew Cagney <cagney@redhat.com>
6798
6799 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6800 architecture methods call_dummy_words, sizeof_call_dummy_words,
6801 push_return_address, store_struct_return, and fix_call_dummy. Set
6802 push_dummy_call instead of deprecated_push_arguments.
6803 (mips_store_struct_return): Delete function.
6804 (mips_fix_call_dummy): Delete function.
6805 (mips_push_return_address): Delete function.
6806 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6807 RA_REGNUM and T9_REGNUM.
6808 (mips_n32n64_push_dummy_call): Ditto for
6809 mips_n32n64_push_arguments.
6810 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6811 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6812
6a65450a
AC
68132003-05-31 Andrew Cagney <cagney@redhat.com>
6814
6815 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6816 "dummy_addr" to "bp_addr".
6817 * infcall.c (call_function_by_hand): Pass "funaddr" to
6818 gdbarch_push_dummy_call.
6819 * gdbarch.h, gdbarch.c: Re-generate.
6820 * i386-tdep.c (i386_push_dummy_call): Update.
6821 * arm-tdep.c (arm_push_dummy_call): Update.
6822 * d10v-tdep.c (d10v_push_dummy_call): Update.
6823
c4f35dd8
MK
68242003-05-31 Mark Kettenis <kettenis@gnu.org>
6825
6826 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6827 variable declarations.
6828 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6829 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6830 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6831 x86_64_init_frame_pc, x86_64_init_frame_pc,
6832 x86_64_function_has_prologue): Remove prototypes.
6833 (X86_64_NUM_GREGS): New define.
6834 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6835 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6836 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6837 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6838 XMM1_REGNUM): Remove defines.
6839 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6840 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6841 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6842 X86_64_XMM1_REGNUM): New defines.
6843 (struct x86_64_register_info): Renamed from `struct
6844 register_info'. Remove `size' member.
6845 (x86_64_register_info_table): Remove variable.
6846 (x86_64_register_info): New variable.
6847 (X86_64_NUM_REGS): New define.
6848 (X86_64_NUM_GREGS): Remove define.
6849 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6850 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6851 Remove variables.
6852 (x86_54_dwarf2_reg_to_regnum): Remove function.
6853 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6854 (x86_64_dwarf_reg_to_regnum): New function.
6855 (x86_64_register_name): Rewrite.
6856 (x86_64_register_raw_size): Remove function.
6857 (x86_64_register_byte_table): Remove variable.
6858 (x86_64_register_byte): Remove function.
6859 (x86_64_register_virtual_type): Remove function.
6860 (x86_64_register_type): New function.
6861 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6862 x86_64_register_convert_to_raw): Remove functions.
6863 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6864 (x86_64_use_struct_convention): Make static. Adjust for renamed
6865 defines.
6866 (x86_64_frame_init_saved_regs): Remove function.
6867 (x86_64_push_arguments): Make static. Change to accept a regcache
6868 as argument.
6869 (x86_64_store_return_value, x86_64_extract_return_value): Make
6870 static. Rewrite based on i386 counterparts.
6871 (x86_64_push_dummy_call): New function.
6872 (X86_64_NUM_SAVED_REGS): New define.
6873 (x86_64_register_number): Remove function.
6874 (x86_64_store_struct_return): Remove function.
6875 (x86_64_frameless_function_invocation,
6876 x86_64_function_has_prologue): Remove functions.
6877 (PROLOG_BUFSIZE): Remove define.
6878 (struct x86_64_frame_cache): New structure.
6879 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6880 x86_64_frame_cache, x86_64_frame_this_id,
6881 x86_64_frame_prev_register, x86_64_frame_p,
6882 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6883 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6884 functions.
6885 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6886 variables.
6887 (x86_64_skip_prologue): Rewrite in terms of
6888 x86_64_analyze_prologue.
6889 (x86_64_frame_base_address): New function.
6890 (x86_64_frame_base): New variable.
6891 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6892 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6893 set deprecated_fp_regnum, deprecated_register_size,
6894 deprecated_register_bytes, register_raw_size, register_byte,
6895 register_virtual_type, register_convertiable,
6896 register_convert_to_virtual, convert_to_raw,
6897 deprecated_get_saved_register, deprecated_target_read_fp,
6898 deprecated_push_arguments, deprecated_push_return_address,
6899 deprecated_pop_frame, deprecated_store_struct_return,
6900 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6901 frameless_function_invocation, deprecated_frame_saved_pc,
6902 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6903 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6904 deprecated_init_frame_pc and virtual_frame_pointer. Call
6905 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6906 and x86_64_frame_p. Call frame_base_set_default to register
6907 x86_64_frame_base.
6908 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6909 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6910 (_initialize_x86_64_tdep): Remove function.
6911 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6912 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6913 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6914 define.
6915 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6916 (x86_64_linux_sigcontext_addr): Rewrite.
6917 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6918 x86_64_linux_frame_saved_pc): Remove functions.
6919 (x86_64_linux_pc_in_sigtramp): Renamed from
6920 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6921 trampoline.
6922 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6923 Remove_functions.
6924 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6925 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6926 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6927 (x86_64_regmap): Rename to regmap.
6928 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6929 x86_64_num_gregs.
6930 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6931 x86_64_regmap.
6932 (x86_64_fxsave_offset): Remove function.
6933 (supply_fpregset): Simply call x86_64_supply_fxsave.
6934 (fill_fpregset): Simply call x86_64_fill_fxsave.
6935 (fetch_inferior_registers, store_inferior_registers): Avoid
6936 asignment in if-statement.
6937 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6938 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6939 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6940 (fetch_core_registers): Remove function.
6941 (linux_elf_core_fns): Remove.
6942 (offsetoff): Don't define.
6943 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6944 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6945 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6946 add core-regset.o.
6947 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6948 protection against multiple includes instead of NM_X86_64_h. Add
6949 various comments. Include "config/nm-linux.h". Don't include
6950 <signal.h>.
6951 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6952 GET_THREAD_SIGNALS): Remove defines.
6953 (x86_64_register_u_addr, kernel_u_size,
6954 lin_thread_get_thread_signals): Remove prototypes.
6955 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6956 [HAVE_LINK_H]: Don't include "solib.h".
6957 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6958 * config/i386/tm-x86-64linux.h: Fix comments.
6959 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6960 x86-64-tdep.o): Update dependencies.
6961
c25083af
AC
69622003-05-30 Andrew Cagney <cagney@redhat.com>
6963
c8f55a7b
AC
6964 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6965 Change parameter type to a "struct regcache *".
6966
c25083af
AC
6967 * gdbarch.sh: Regardless of the multi-arch level, always define
6968 the macro when not already defined.
6969 * gdbarch.h, gdbarch.c: Re-generate.
6970
fbe586ae
RH
69712003-05-30 Richard Henderson <rth@redhat.com>
6972
6973 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6974 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6975 (alpha_mdebug_frame_this_id): Likewise.
6976 (alpha_mdebug_frame_prev_register): Likewise.
6977 (alpha_mdebug_frame_base_address): Likewise.
6978 (alpha_mdebug_frame_locals_address): Likewise.
6979 (alpha_mdebug_frame_args_address): Likewise.
6980 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6981 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6982 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6983 loop increment.
6984 (alpha_heuristic_frame_this_id): Make static.
6985 (alpha_heuristic_frame_prev_register): Likewise.
6986 (alpha_heuristic_frame_base_address): Likewise.
6987 * alpha-tdep.h: Update.
6988
acd5c798
MK
69892003-05-30 Mark Kettenis <kettenis@gnu.org>
6990
6991 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6992 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6993 defenitions.
6994 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6995 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6996 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6997 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6998 I386_ST0_REGNUM): New defines.
6999 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7000 codestream_get): Remove define.
7001 (codestream_next_addr, condestream_addr, condestream_buf,
7002 codestream_off, codestream_cnt): Remove variables.
7003 (codestream_fill, codestream_seek, codestream_read): Remove
7004 functions.
7005 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7006 functionality.
7007 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7008 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7009 i386_frame_saved_pc, i386_saved_pc_after_call,
7010 i386_frame_num_args, i386_frame_init_saved_regs,
7011 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7012 i386_push_arguments): Remove functions.
7013 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7014 functionality. Use i386_analyze_prologue instead of
7015 i386_get_frame_setup.
7016 (I386_NUM_SAVED_REGS): New define.
7017 (struct i386_frame_cache): New structure.
7018 (i386_alloc_frame_cache, i386_analyze_struct_return,
7019 i386_skip_probe, i386_analyze_frame_setup,
7020 i386_analyze_register_saves, i386_analyze_prologue,
7021 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7022 i386_frame_prev_register, i386_sigtramp_frame_cache,
7023 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7024 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7025 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7026 New functions.
7027 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7028 New variables.
7029 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7030 I386_EAX_REGNUM and I386_EDX_REGNUM.
7031 (i386_extract_return_value, i386_store_return_value): Use
7032 I386_ST0_REGNUM where appropriate.
7033 (i386_extract_struct_value_address): Rewrite to use extract_address.
7034 (i386_svr4_pc_in_sigtramp): Add comment.
7035 (i386_svr4_sigcontext_addr): Rewrite.
7036 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7037 TDEP->sc_sp_offset.
7038 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7039 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7040 of new defines. Set push_dummy_call, don't set
7041 deprecated_push_arguments, deprecated_push_return_address,
7042 deprecated_pop_frame. Don't set parm_boundary. Don't set
7043 deprecated_frame_chain, deprecated_frame_saved_pc,
7044 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7045 save_dummy_frame_tos, unwind_pc. Call
7046 frame_unwind_append_predicate and frame_base_set_default. Don't
7047 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7048 Don't set frameless_function_invocation. Don't set
7049 deprecated_register_bytes, deprecated_register_size,
7050 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7051 * i386-linux-tdep.c: Fix formatting in some comments.
7052 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7053 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7054 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7055 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7056 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7057 redundant parentheses.
7058 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7059 (i386_linux_sigcontext_addr): Use it. Rewrite.
7060 (find_minsym_and_objfile): Change name of second argument.
7061 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7062 changed. Use frame_pc_unwind instead of
7063 DEPRECATED_SAVED_PC_AFTER_CALL.
7064 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7065 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7066 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7067 unwinder.
7068 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7069 "dummy-frame.h".
7070 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7071 (_initialize_i386_cygwin_tdep): New prototype.
7072 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7073 deprecated_frame_chain_valid.
7074 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7075 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7076 Rely on the SVR4 defaults.
7077 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7078 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7079
c89b70f1
AC
70802003-05-30 Andrew Cagney <cagney@redhat.com>
7081
7082 * infcall.c (call_function_by_hand): Always call
7083 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7084
85b32d22
RH
70852003-05-30 Richard Henderson <rth@redhat.com>
7086
c89b70f1
AC
7087 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7088 increment.
85b32d22 7089
bfe51b1e
JB
70902003-05-29 Jim Blandy <jimb@redhat.com>
7091
7092 Use gdbarch methods for solib stuff on PowerPC Linux.
7093 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7094 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7095 show through.
7096 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7097 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7098 giving the same effect as the #definitions above.
7099
1abf022c
AF
71002003-05-29 Adam Fedor <fedor@gnu.org>
7101
7102 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7103 (find_implementation_from_class): Replace it with the standard
7104 case i.e. do nothing.
7105
d2427a71
RH
71062003-05-29 Richard Henderson <rth@redhat.com>
7107
7108 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7109 (alpha_linux_sigtramp_offset): Use it. Make static.
7110 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7111 update for new frame model.
7112 * alpha-mdebug-tdep.c: New file.
7113 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7114 (alpha_osf1_init_abi): Install it.
7115 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7116 (linked_proc_desc_table): Remove.
7117 (alpha_frame_past_sigtramp_frame): Remove.
7118 (alpha_dynamic_sigtramp_offset): Remove.
7119 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7120 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7121 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7122 (push_sigtramp_desc): Remove.
7123 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7124 (alpha_cannot_store_register): Likewise.
7125 (alpha_sigcontext_addr): Remove.
7126 (alpha_find_saved_regs): Remove.
7127 (alpha_frame_init_saved_regs): Remove.
7128 (alpha_init_frame_pc_first): Remove.
7129 (read_next_frame_reg): Remove.
7130 (alpha_frame_saved_pc): Remove.
7131 (alpha_saved_pc_after_call): Remove.
7132 (temp_proc_desc, temp_saved_regs): Remove.
7133 (alpha_about_to_return): Remove.
7134 (cached_proc_desc): Remove.
7135 (alpha_frame_chain): Remove.
7136 (alpha_print_extra_frame_info): Remove.
7137 (alpha_init_extra_frame_info): Remove.
7138 (alpha_frame_locals_address): Remove.
7139 (alpha_frame_args_address): Remove.
7140 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7141 (alpha_push_dummy_frame): Remove.
7142 (alpha_pop_frame): Remove.
7143 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7144 (alpha_read_insn): New.
7145 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7146 for different insn encodings.
7147 (alpha_in_lenient_prologue): Remove.
7148 (struct alpha_sigtramp_unwind_cache): New.
7149 (alpha_sigtramp_frame_unwind_cache): New.
7150 (alpha_sigtramp_register_address): New.
7151 (alpha_sigtramp_frame_this_id): New.
7152 (alpha_sigtramp_frame_prev_register): New.
7153 (alpha_sigtramp_frame_unwind): New.
7154 (alpha_sigtramp_frame_p): New.
7155 (struct alpha_heuristic_unwind_cache): New.
7156 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7157 don't count nop insns that occur between functions.
7158 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7159 heuristic_proc_desc, but without the mdebug wrapping.
7160 (alpha_heuristic_frame_this_id): New.
7161 (alpha_heuristic_frame_prev_register): New.
7162 (alpha_heuristic_frame_unwind): New.
7163 (alpha_heuristic_frame_p): New.
7164 (alpha_heuristic_frame_base_address): New.
7165 (alpha_heuristic_frame_base): New.
7166 (alpha_unwind_dummy_id): New.
7167 (alpha_unwind_pc): New.
7168 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7169 frame related deprecated initializations; install replacements.
7170 (alpha_dump_tdep): Remove.
7171 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7172 (alpha_read_insn, alpha_after_prologue,
7173 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7174 alpha_heuristic_frame_prev_register,
7175 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7176 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7177 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7178 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7179
93ec1121
AC
71802003-05-29 Andrew Cagney <cagney@redhat.com>
7181
7182 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7183 dependant on the availability of ASSERT_FUNCTION.
7184 (ASSERT_FUNCTION): Do not define when there is no function name.
7185
98f08d3d
KB
71862003-05-29 Kevin Buettner <kevinb@redhat.com>
7187
7188 From Jimi X <jimix@watson.ibm.com>:
7189 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7190
0897f59b
JB
71912003-05-28 Jim Blandy <jimb@redhat.com>
7192
7193 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7194 argument to ptrace to int; the system headers should give it the
7195 right type, and pointers don't fit in ints on powerpc64-*-*.
7196
14898363
L
71972003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7198
7199 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7200 DW_TAG_catch_block.
7201
a7a48797
EZ
72022003-05-26 Elena Zannoni <ezannoni@redhat.com>
7203
7204 * stabsread.c (dbx_lookup_type): Make static.
7205 (read_type): Ditto.
7206 (add_undefined_type): Ditto.
7207 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7208 not export.
7209
f5479e9c
EZ
72102003-05-26 Elena Zannoni <ezannoni@redhat.com>
7211
7212 * hpread.c (hpread_has_name): Make static.
7213 (hpread_psymtab_to_symtab): Ditto.
7214 (file_exists): Ditto.
7215 (hpread_call_pxdb): Ditto.
7216 (hpread_pxdb_needed): Ditto.
7217 (hpread_quick_traverse): Ditto.
7218 (hpread_get_header): Ditto.
7219 (hpread_get_lntt): Ditto.
7220 (hpread_get_slt): Ditto.
7221 (class_of): Ditto.
7222
eb2e12d7
AS
72232003-05-25 Andreas Schwab <schwab@suse.de>
7224
78bf922a
AS
7225 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7226 stack_align and deprecated_extra_stack_alignment_needed.
7227 (m68k_stack_align): Delete.
7228
eb2e12d7
AS
7229 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7230 (m68k_register_virtual_size): Likewise.
7231 (altos_skip_prologue): Remove obsolete function.
7232 (isi_frame_num_args): Likewise.
7233 (news_frame_num_args): Likewise.
7234 (m68k_fix_call_dummy): Make static.
7235 (m68k_push_dummy_frame): Likewise.
7236 (m68k_pop_frame): Likewise.
7237 (m68k_skip_prologue): Likewise.
7238 (m68k_frame_init_saved_regs): Likewise.
7239 (m68k_saved_pc_after_call): Likewise.
7240 (m68k_get_longjmp_target): Make multi-arch.
7241 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7242 structure. Register m68k_get_longjmp_target if enabled.
7243 * m68k-tdep.h (struct gdbarch_tdep): Define.
7244 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7245
7246 * Makefile.in (config.status): Also depend on configure.tgt
7247 and configure.host.
7248 (m68klinux-tdep.o): Update dependencies.
7249 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7250 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7251 (M68K_LINUX_JB_PC): Define.
7252 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7253 and take additional parameter.
7254 (m68k_linux_sigtramp_saved_pc): Update.
7255 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7256 m68k_linux_pc_in_sigtramp, in_plt_section,
7257 find_solib_trampoline_target.
7258 * config/m68k/tm-linux.h: Don't include any tm headers.
7259 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7260 (JB_ELEMENT_SIZE): Likewise.
7261 (JB_PC): Likewise.
7262 (GET_LONGJMP_TARGET): Likewise.
7263 (IN_SIGTRAMP): Likewise.
7264 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7265
eb2c22dc
MK
72662003-05-25 Mark Kettenis <kettenis@gnu.org>
7267
7268 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7269 (sparc32_push_arguments): Re-implement by calling
7270 sparc32_do_push_arguments.
7271
44b7b84e
MK
72722003-05-25 Mark Kettenis <kettenis@gnu.org>
7273
7274 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7275 SPARC_O1_REGNUM): New defines.
7276 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7277 (sparc32_store_return_value): New function.
7278 (sparc_extract_struct_value_address): Rewrite to operate on a
7279 regcache.
7280 (sparc_gdbarch_init): Don't set
7281 deprecated_extract_struct_value_address. Set
7282 extract_struct_value_address instead. Don't set
7283 deprecated_extract_return_value and deprecated_store_return_value
7284 for 32-bit targets. Set extract_return_value and
7285 store_return_value instead.
7286 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7287 DEPRECTAED_EXTRACT_RETURN_VALUE,
7288 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7289 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7290 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7291 (sparc_store_return_value): Remove prototype.
7292 (sparc32_store_return_value): New prototype.
7293 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7294 Adjust prototypes.
7295
f6ad61e3
MK
72962003-05-24 Mark Kettenis <kettenis@gnu.org>
7297
7298 * sparcnbsd-tdep.c: Include "gdb_string.h".
7299
b276f1bb
AC
73002003-05-23 Andrew Cagney <cagney@redhat.com>
7301
7302 * p-valprint.c (pascal_val_print): Replace extract_address with
7303 the inline equivalent extract_unsigned_integer.
7304 * jv-valprint.c (java_value_print): Ditto.
7305 * ada-valprint.c (ada_val_print_1): Ditto.
7306 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7307
e76c5fcc
TR
73082003-05-23 Theodore A. Roth <troth@openavr.org>
7309
7310 * blockframe.c (frameless_look_for_prologue): Remove unused
7311 after_prologue variable.
7312
2cdd89cb
MK
73132003-05-23 Mark Kettenis <kettenis@gnu.org>
7314
7315 * blockframe.c (get_pc_function_start): Rewrite to avoid
7316 asignments in if-statements.
7317
182d43bc
EZ
73182003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7319
7320 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7321 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7322 files, don't relocate absolute symbols (and do use mst_abs).
7323
e8f3fcdd
AC
73242003-05-23 Andrew Cagney <cagney@redhat.com>
7325
7326 * objc-lang.c: Include "gdb_assert.h".
7327 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7328 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7329 (gdb_check, gdb_check_fatal): Delete functions.
7330 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7331 gdb_assert.
7332 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7333 * Makefile.in (objc-lang.o): Update dependencies.
7334
3c23e6fb
ILT
73352003-05-22 Ian Lance Taylor <ian@airs.com>
7336
7337 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7338 with fprintf_filtered, not fprintf_unfiltered.
7339
af1342ab
AC
73402003-05-22 Andrew Cagney <cagney@redhat.com>
7341
7342 * stack.c (frame_info): Inline extract_address, replacing it with
7343 extract_unsigned_integer.
7344 * findvar.c (unsigned_pointer_to_address): Ditto.
7345 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7346 * dwarf2expr.c (dwarf2_read_address): Ditto.
7347 * frame.c (frame_pc_unwind): Update comment.
7348 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7349
47e242ec
JJ
73502003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7351
7352 * infptrace.c (detach): Call print_sys_errmsg rather than
7353 perror_with_name to issue warning message when errno is non-zero
7354 after calling ptrace detach.
7355
e2ac8128
JB
73562003-05-21 J. Brobecker <brobecker@gnat.com>
7357
7358 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7359 macro definitions from here...
7360 * hppa-tdep.c: ...to there.
7361
92b3541e
KB
73622003-05-20 Kevin Buettner <kevinb@redhat.com>
7363
7364 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7365 register_ptrace_addr(). Fix all callers.
7366
55809acb
AS
73672003-05-21 Andreas Schwab <schwab@suse.de>
7368
7369 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7370 dependencies.
7371 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7372 end.
7373 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7374 (_initialize_m68k_linux_tdep): New function.
7375 (m68k_linux_frame_saved_pc): Make static.
7376 (m68k_linux_extract_return_value): Likewise.
7377 (m68k_linux_store_return_value): Likewise.
7378 (m68k_linux_extract_struct_value_address): Likewise.
7379 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7380 Remove.
7381 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7382 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7383 (DEPRECATED_FRAME_SAVED_PC): Remove.
7384
0fbc10f7
KW
73852003-05-20 Kris Warkentin <kewarken@qnx.com>
7386
7387 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7388 regset numbering rather than our own.
7389
58da2eb2
DC
73902003-05-19 David Carlton <carlton@bactrian.org>
7391
7392 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7393
1fcb5155
DC
73942003-05-19 David Carlton <carlton@bactrian.org>
7395
7396 Partial fix for PR c++/827.
7397 * cp-support.h: Include symtab.h.
7398 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7399 * cp-namespace.c: Update contributors.
7400 (cp_lookup_symbol_nonlocal): New.
7401 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7402 (lookup_symbol_file): Ditto.
7403 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7404 * block.h: Declare block_scope, block_using, block_global_block.
7405 * block.c (block_scope): New.
7406 (block_using, block_global_block): Ditto.
7407 * Makefile.in (cp_support_h): Depend on symtab_h.
7408 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7409
5f9a71c3
DC
74102003-05-19 David Carlton <carlton@bactrian.org>
7411
7412 * language.h (struct language_defn): Add 'la_value_of_this'
7413 and 'la_lookup_symbol_nonlocal' members.
7414 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7415 lookup_symbol_static, lookup_symbol_global,
7416 lookup_symbol_aux_block.
7417 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7418 if we should search fields of this and how to do static/global
7419 lookup.
7420 (lookup_symbol_aux_block): Make extern.
7421 (basic_lookup_symbol_nonlocal): New.
7422 (lookup_symbol_static, lookup_symbol_global): Ditto.
7423 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7424 'la_lookup_symbol_nonlocal' members.
7425 * c-lang.c (c_language_defn, cplus_language_defn)
7426 (asm_language_defn, minimal_language_defn): Ditto.
7427 * jv-lang.c (java_language_defn): Ditto.
7428 * language.c (unknown_language_defn, auto_language_defn)
7429 (local_language_defn): Ditto.
7430 * m2-lang.c (m2_language_defn): Ditto.
7431 * objc-lang.c (objc_language_defn): Ditto.
7432 * scm-lang.c (scm_language_defn): Ditto.
7433 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7434 * p-lang.c (pascal_language_defn): Ditto for both.
7435 * Makefile.in (f-lang.o): Depend on value_h.
7436 (p-lang.o): Ditto.
7437
89a9d1b1
DC
74382003-05-19 David Carlton <carlton@bactrian.org>
7439
7440 * block.h: Declare block_static_block.
7441 * block.c (block_static_block): New.
7442 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7443 lookup_symbol_aux_local, calling block_static_block instead.
7444 (lookup_symbol_aux_local): Delete 'static_block' argument.
7445
eed3f8ab
DC
74462003-05-19 David Carlton <carlton@bactrian.org>
7447
7448 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7449
a09d8bda
ML
74502003-05-19 Michal Ludvig <mludvig@suse.cz>
7451
7452 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7453 register numbers mapping.
7454
69636828
AF
74552003-05-18 Adam Fedor <fedor@gnu.org>
7456
7457 * symtab.c (completion_list_objc_symbol): New function.
7458 (make_symbol_completion_list): Use it to add ObjC symbols
7459 when looking though the list.
7460 (language_search_unquoted_string): New function.
7461 (make_file_symbol_completion_list): Use it.
7462
55baeb84
AS
74632003-05-18 Andreas Schwab <schwab@suse.de>
7464
d0b45d99
AS
7465 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7466 dependencies.
7467 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7468 as m68k_linux_extract_return_value.
7469 (DEPRECATED_STORE_RETURN_VALUE): Define as
7470 m68k_linux_store_return_value.
7471 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7472 m68k_linux_extract_struct_value_address.
7473 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7474 get_next_frame, get_frame_base, get_frame_pc.
7475 (m68k_linux_frame_saved_pc): Use get_frame_base.
7476 (m68k_linux_extract_return_value): New function.
7477 (m68k_linux_store_return_value): New function.
7478 (m68k_linux_extract_struct_value_address): New function.
7479 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7480
55baeb84
AS
7481 * c-exp.y (typebase): Remove duplicate occurence of
7482 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7483 of lookup_signed_typename.
55baeb84 7484
b6b08ebf
MK
74852003-05-18 Mark Kettenis <kettenis@gnu.org>
7486
7487 * dwarf2loc.c (find_location_expression): Change type of second
7488 argument to `size_t *'.
7489 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7490 for size variable.
7491
5ad1c190
DC
74922003-05-18 David Carlton <carlton@bactrian.org>
7493
7494 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7495 'linkage_name'. Add comment.
7496 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7497 'linkage_name'.
7498 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7499 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7500 (lookup_block_symbol): Ditto.
7501
b8b527c5
AC
75022003-05-16 Andrew Cagney <cagney@redhat.com>
7503
7504 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7505 * gdbarch.h, gdbarch.c: Re-generate.
7506 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7507 * TODO (REGISTER_BYTES): Delete reference.
7508 * alpha-tdep.c (alpha_gdbarch_init): Update.
7509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7510 * x86-64-tdep.c (x86_64_init_abi): Update.
7511 * vax-tdep.c (vax_gdbarch_init): Update.
7512 * v850-tdep.c (v850_gdbarch_init): Update.
7513 * sparc-tdep.c (sparc_gdbarch_init): Update.
7514 * sh-tdep.c (sh_gdbarch_init): Update.
7515 * s390-tdep.c (s390_gdbarch_init): Update.
7516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7517 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7518 (ns32k_gdbarch_init_32382): Update.
7519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7520 * mcore-tdep.c (mcore_gdbarch_init): Update.
7521 * m68k-tdep.c (m68k_gdbarch_init): Update.
7522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7523 * ia64-tdep.c (ia64_gdbarch_init): Update.
7524 * i386-tdep.c (i386_gdbarch_init): Update.
7525 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7526 * hppa-tdep.c (hppa_gdbarch_init): Update.
7527 * h8300-tdep.c (h8300_gdbarch_init): Update.
7528 * frv-tdep.c (frv_gdbarch_init): Update.
7529 * cris-tdep.c (cris_gdbarch_init): Update.
7530 * avr-tdep.c (avr_gdbarch_init): Update.
7531 * arm-tdep.c (arm_gdbarch_init): Update.
7532 * sparc-tdep.c (sparc_pop_frame): Update.
7533 * rs6000-tdep.c (rs6000_pop_frame): Update.
7534 * remote.c (init_remote_state): Update.
7535 (remote_prepare_to_store): Update.
7536 * remote-vx.c (vx_prepare_to_store): Update.
7537 * remote-sds.c (sds_fetch_registers): Update.
7538 (sds_prepare_to_store): Update.
7539 * remote-array.c: Update.
7540 * regcache.c (init_legacy_regcache_descr): Update.
7541 (init_regcache_descr): Update.
7542 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7543 (mips_o64_extract_return_value): Update.
7544 * irix5-nat.c (fetch_core_registers): Update.
7545 * irix4-nat.c (fetch_core_registers): Update.
7546 * i386-tdep.h: Update.
7547 * hppa-tdep.c (pa_do_registers_info): Update.
7548 (pa_do_strcat_registers_info): Update.
7549 * cris-tdep.c (cris_register_bytes_ok): Update.
7550 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7551 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7552 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7553 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7554 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7555 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7556 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7557 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7558 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7559 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7560 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7561 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7562 (REGISTER_BYTES_OK): Update.
7563 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7564 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7565
ee2842e2
ILT
75662003-05-16 Ian Lance Taylor <ian@airs.com>
7567
7568 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7569 (vax_print_insn, print_insn_arg): Remove static functions.
7570 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7571 print_insn_vax from opcodes library.
7572 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7573
973177d3
AC
75742003-05-15 Andrew Cagney <cagney@redhat.com>
7575
aaab4dba
AC
7576 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7577 * target.h (memory_breakpoint_from_pc): Delete declaration.
7578 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7579 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7580 * monitor.c (monitor_insert_breakpoint): Use
7581 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7582 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7583 * gdbarch.h, gdbarch.c: Re-generate.
7584 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7585 (sparc_gdbarch_init): Set breakpoint_from_pc to
7586 sparc_breakpoint_from_pc.
7587 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7588 (BREAKPOINT_FROM_PC): Define.
7589 (sparc_breakpoint_from_pc): Declare.
7590 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7591 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7592 (BREAKPOINT_FROM_PC): Define.
7593 (BREAKPOINT): Delete macro.
7594 * target.h: Update comment.
7595 * s390-tdep.c (s390_gdbarch_init): Update comments.
7596 * remote.c: Update comments.
7597 * remote-mips.c: Update comments.
7598 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7599 * mem-break.c: Update comment.
7600 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7601 (ia64_memory_insert_breakpoint): Update.
7602 * config/sparc/tm-sparc.h: Update comment.
7603 * config/pa/tm-hppa64.h: Update comment.
7604 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7605 (rs6000_breakpoint_from_pc): Update.
7606 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7607 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7608 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7609 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7610 (mips_breakpoint_from_pc): Update.
7611 (mips_dump_tdep): Update.
7612
e06963ff
AC
7613 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7614 * minsyms.c (lookup_minimal_symbol): Inline
7615 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7616
973177d3
AC
7617 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7618 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7619 * p-lang.c (pascal_printstr): Ditto.
7620 * objc-lang.c (objc_printstr): Ditto.
7621 * m2-lang.c (m2_printstr): Ditto.
7622 * jv-valprint.c (java_print_value_fields): Ditto.
7623 * f-lang.c (f_printstr): Ditto.
7624 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7625 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7626 for repeat_count_threshold.
7627 * Makefile.in (cp-valprint.o): Update dependencies.
7628
5ea2bd7f 76292003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7630
5ea2bd7f
JJ
7631 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7632 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7633 they start with mov r2,r12. Support skipping over indirect stores
7634 of the input registers. Upon hitting a non-nop branch instruction
7635 or predicated instruction, bail out by setting lim_pc to the current
7636 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7637 beyond our calculated value and we have trust_limit set,
7638 use the lim_pc value.
7639
cc8c88f3
AC
76402003-05-15 Andrew Cagney <cagney@redhat.com>
7641
7642 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7643 generic_find_dummy_frame.
7644 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7645 (deprecated_generic_find_dummy_frame): Update.
7646 (deprecated_read_register_dummy): Update.
7647 * frame.c (deprecated_generic_get_saved_register): Update.
7648
909cd28e
TR
76492003-05-15 Theodore A. Roth <troth@openavr.org>
7650
7651 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7652 (avr_gdbarch_init): Set breakpoint_from_pc method.
7653
b923b08d
AC
76542003-05-15 Andrew Cagney <cagney@redhat.com>
7655
7656 * regcache.c (build_regcache): Set deprecated_register_valid
7657 directly.
7658 (deprecated_grub_regcache_for_register_valid): Delete function.
7659 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7660 declaration.
7661
ae2f03ac 76622003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7663
7664 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7665 * symtab.c (lookup_symbol_aux): Delete calls to
7666 lookup_symbol_aux_minsyms.
7667 (lookup_symbol_aux_minsyms): Comment out function and
7668 prototype. Delete lookup by mangled name.
ae2f03ac 7669
18ec9831
KB
76702003-05-14 Kevin Buettner <kevinb@redhat.com>
7671
7672 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7673 correctly indicate an empty stack and ``stack_allocated'' to the
7674 indicate the number of elements initially allocated.
7675 (dwarf_expr_grow_stack): Simplify method for computing new
7676 stack size. Don't loop infinitely if ``stack_len'' is zero.
7677 (execute_stack_op): Move ``ctx->in_reg'' initialization
7678 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7679 be used in conjuction with DW_OP_piece. Revise error message
7680 accordingly.
7681
de18ac1f
TR
76822003-05-14 Theodore A. Roth <troth@openavr.org>
7683
7684 * MAINTAINERS: Update my email address.
7685 * avr-tdep.c: Ditto.
7686
176620f1
EZ
76872003-05-14 Elena Zannoni <ezannoni@redhat.com>
7688
7689 * symtab.h (enum domain_enum): Rename from namespace_enum.
7690 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7691 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7692 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7693 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7694 TYPES_NAMESPACE, METHODS_NAMESPACE.
7695 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7696 (struct symbol, struct partial_symbol): Rename field
7697 'namespace_enum namespace' to 'domain_enum domain'.
7698 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7699 Delete old define kludge for namespace.
7700
7701 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7702 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7703 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7704 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7705 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7706 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7707 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7708 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7709 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7710 occurrences of the above.
7711
b7f31508
ILT
77122003-05-14 Ian Lance Taylor <ian@airs.com>
7713
7714 * Makefile.in (install-only): Use $(SHELL) when running
7715 mkinstalldirs.
7716
2fdbdd39
ILT
77172003-05-13 Ian Lance Taylor <ian@airs.com>
7718
a208d82c
ILT
7719 * MAINTAINERS (write after approval): Add myself.
7720
2fdbdd39
ILT
7721 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7722 second and third arguments.
7723 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7724 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7725
fbd9dcd3
AC
77262003-05-13 Andrew Cagney <cagney@redhat.com>
7727
7728 * defs.h (store_address): Delete declaration.
7729 findvar.c (store_address): Delete function.
7730 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7731 store_unsigned_integer.
7732 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7733 * v850-tdep.c (v850_push_arguments): Ditto.
7734 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7735 * sh-tdep.c (sh64_get_saved_register): Ditto.
7736 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7737 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7738 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7739 (mips_get_saved_register): Ditto.
7740 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7741 (find_func_descr, ia64_push_arguments): Ditto.
7742 * i386-tdep.c (i386_push_arguments): Ditto.
7743 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7744 * frv-tdep.c (frv_push_arguments): Ditto.
7745 * frame.c (legacy_saved_regs_prev_register): Ditto.
7746 (deprecated_generic_get_saved_register): Ditto.
7747 * findvar.c (unsigned_address_to_pointer): Ditto.
7748 * dwarf2read.c (dwarf2_const_value): Ditto.
7749 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7750 * alpha-tdep.c (alpha_push_arguments): Ditto.
7751
6760f9e6
JB
77522003-05-12 J. Brobecker <brobecker@gnat.com>
7753
7754 * NEWS: Mention that the hppa-hpux port has been partially
7755 multiarched (32bit ABIT only, so far).
7756
30e221b4
AC
77572003-05-11 Andrew Cagney <cagney@redhat.com>
7758
7759 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7760 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7761 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7762 sim/testsuite/sim/arm/misaligned2.ms, and
7763 sim/testsuite/sim/arm/misaligned3.ms.
7764 * disasm.h (struct ui_file): Add opaque struct declaration.
7765 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7766 * frame.h (struct ui_file): Ditto.
7767
dea7f9ba
MK
77682003-05-11 Mark Kettenis <kettenis@gnu.org>
7769
7770 * value.h: Pretty print.
7771
01986c48
MK
77722003-05-10 Mark Kettenis <kettenis@gnu.org>
7773
7774 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7775
123a958e
AC
77762003-05-08 Andrew Cagney <cagney@redhat.com>
7777
7778 * regcache.h (max_register_size): Delete declaration.
7779 * regcache.c (max_register_size): Delete function.
7780 (struct regcache_descr): Delete field "max_register_size".
7781 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7782 registers fit in MAX_REGISTER_SIZE.
7783 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7784 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7785 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7786 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7787 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7788 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7789 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7790 * dve3900-rom.c, hppa-tdep.c: Ditto.
7791
eb294659
DC
77922003-05-08 David Carlton <carlton@math.stanford.edu>
7793
7794 * valops.c (push_word): Fix typo.
7795
d9d9c31f
AC
77962003-05-08 Andrew Cagney <cagney@redhat.com>
7797
7798 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7799 * gdbarch.h: Re-generate.
7800 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7801 (legacy_max_register_raw_size): Delete declaration.
7802 * regcache.c (legacy_max_register_raw_size): Delete function.
7803 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7804 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7805 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7806 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7807 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7808 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7809 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7810 * findvar.c, dwarf2cfi.c: Ditto.
7811
22540ece
AC
78122003-05-08 Andrew Cagney <cagney@redhat.com>
7813
7814 * mips-tdep.c (read_signed_register): New function, moved to here
7815 from "regcache.c".
7816 (read_signed_register_pid): Ditto.
7817 * regcache.c (read_signed_register_pid): Delete function, moved to
7818 "mips-tdep.c".
7819 (read_signed_register): Ditto.
7820 * regcache.h (read_signed_register): Delete declaration.
7821 (read_signed_register_pid): Delete declaration.
7822
0c92afe8
AC
78232003-05-08 Andrew Cagney <cagney@redhat.com>
7824
7825 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7826 * gdbarch.h: Re-generate.
7827 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7828 (legacy_max_register_virtual_size): Delete declaration.
7829 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7830 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7831 * tracepoint.c (memrange_sortmerge): Ditto.
7832 * sparc-tdep.c (sparc_print_registers): Ditto.
7833 * regcache.c (legacy_max_register_virtual_size): Delete function.
7834
6037b830
JB
78352002-05-08 J. Brobecker <brobecker@gnat.com>
7836
7837 * fork-child.c (escape_bang_in_quoted_argument): New function.
7838 (fork_inferior): Escape '!' characters in quoted arguments
7839 only when needed.
7840
5d62c8b1
JB
78412003-05-08 J. Brobecker <brobecker@gnat.com>
7842
7843 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7844 the language of the CU is not currently supported by GDB.
7845
20a0e81d
JB
78462003-05-08 J. Brobecker <brobecker@gnat.com>
7847
7848 * defs.h (language): Add language_minimal enum value.
7849 * c-lang.c (minimal_language_defn): New language definition.
7850 (_initialize_c_language): Add the new minimal language to the list
7851 of languages known to GDB.
7852
710ee10a
KB
78532003-05-08 Kevin Buettner <kevinb@redhat.com>
7854
7855 * frame.c (get_frame_type): Don't attempt to lazily initialize
7856 frame's unwinder for legacy frames.
7857
1750fa04
AC
78582003-05-07 Andrew Cagney <cagney@redhat.com>
7859
7860 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7861 and "regcache" parameters.
7862 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7863
ddf9f258 78642003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7865
7866 * dwarf2read.c (dwarf_decode_lines): Only use output of
7867 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7868 the current address.
7869
87767c29
AC
78702003-05-07 Andrew Cagney <cagney@redhat.com>
7871
7872 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7873 code.
7874
5e7b2f39
JB
78752003-05-07 Jim Blandy <jimb@redhat.com>
7876
7877 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7878 'maint info symtabs' and 'maint info psymtabs'.
7879 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7880 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7881 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7882 Declarations updated.
7883 * maint.c (maintenance_list_command): Delete.
7884 (_initialize_maint_cmds): Update calls to add_cmd.
7885 * gdbcmd.h (maintenancelistlist): Delete declaration.
7886 * cli/cli-cmds.c (maintenancelistlist): Delete.
7887 (init_cmd_lists): Don't initialize it.
7888 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7889
f6684c31
AC
78902003-05-07 Andrew Cagney <cagney@redhat.com>
7891
7892 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7893 "regcache".
7894 (d10v_print_registers_info): Update.
7895 (d10v_dmap_register, d10v_imap_register): Delete functions.
7896 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7897 and "imap_register".
7898 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7899 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7900 * arch-utils.c (generic_remote_translate_xfer_address): Add
7901 "regcache" and "gdbarch" parameters.
7902 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7903 parameter. Change class to multi-arch.
7904 * gdbarch.h, gdbarch.c: Re-generate.
7905 * remote.c (remote_xfer_memory): Use
7906 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7907
e4846b08
JJ
79082003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7909
7910 * infrun.c (prev_pc): Move declaration ahead of proceed().
7911 (proceed): Refresh prev_pc value before resuming.
7912 (stop_stepping): Remove code to refresh prev_pc.
7913
6b71b8ac
KW
79142003-05-06 Kris Warkentin <kewarken@qnx.com>
7915
7916 * nto-tdep.c: Removed stray comment.
7917
47979a4b
KW
79182003-05-06 Kris Warkentin <kewarken@qnx.com>
7919
7920 * i386-nto-tdep.c: Fix old K&R function definitions.
7921 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7922 Also change add_show_from_set() call to add_setshow_cmd().
7923 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7924
00905d52
AC
79252003-05-05 Andrew Cagney <cagney@redhat.com>
7926
7927 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7928 (fprint_dummy_frames): New function.
7929 (maintenance_print_dummy_frames): New function.
7930 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7931 * frame.c (fprint_frame_id): Make global.
7932 * frame.h (fprint_frame_id): Declare.
7933 * Makefile.in (dummy-frame.o): Update dependencies.
7934
b1e29e33
AC
79352003-05-05 Andrew Cagney <cagney@redhat.com>
7936
7937 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7938 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7939 SIZEOF_CALL_DUMMY_WORDS.
7940 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7941 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7942 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7943 CALL_DUMMY_BREAKPOINT_OFFSET.
7944 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7945 CALL_DUMMY_START_OFFSET.
7946 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7947 * gdbarch.h, gdbarch.c: Re-generate.
7948 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7949 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7950 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7951 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7952 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7953 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7954 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7955 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7956 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7957 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7958 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7959 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7960 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7961 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7962 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7963
79642003-05-05 Kris Warkentin <kewarken@qnx.com>
7965
7966 * configure.tgt: Add i[3456]86-*-nto*.
7967 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7968 * nto-tdep.c: New file. Neutrino target support routines.
7969 * nto-tdep.h: New file. Neutrino target header.
7970 * config/tm-qnxnto.h: New file.
7971 * config/i386/i386nto.mt: New file.
7972 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7973
0ce3d317
AC
79742003-05-04 Andrew Cagney <cagney@redhat.com>
7975
7976 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7977 (load_infrun_state): Ditto.
7978 (struct thread_info): Drop "prev_func_name" field.
7979 * thread.c (load_infrun_state): Update.
7980 (save_infrun_state): Update.
7981 * infrun.c (prev_func_name): Delete variable.
7982 (init_wait_for_inferior): Do not clear prev_func_name.
7983 (stop_stepping, keep_going, context_switch): Do not swap
7984 prev_func_name.
7985 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7986 instead of PC_IN_SIGTRAMP.
7987
46654a5b
AC
79882003-05-04 Andrew Cagney <cagney@redhat.com>
7989
7990 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7991 REGISTER_BYTE with register_offset_hack.
7992 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7993 that REGISTER_BYTE is consistent with the regcache.
7994 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7995 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7996
14b08c1b
MK
79972003-05-04 Mark Kettenis <kettenis@gnu.org>
7998
04c8243f
MK
7999 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8000 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8001
14b08c1b
MK
8002 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8003
c7a11e01
JB
80042003-05-03 J. Brobecker <brobecker@gnat.com>
8005
8006 From Thierry Schneider <tpschneider1@yahoo.com>
8007 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8008 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8009 (mi-cmd-symbol.o): Add rule.
8010
7043d8dc
AC
80112003-05-03 Andrew Cagney <cagney@redhat.com>
8012
8013 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8014 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8015 * gdbarch.h, gdbarch.c: Re-generate.
8016 * d10v-tdep.c (d10v_push_dummy_code): New function.
8017 (d10v_gdbarch_init): Set push_dummy_code.
8018 * infcall.c (legacy_push_dummy_code): New function.
8019 (generic_push_dummy_code): New function.
8020 (push_dummy_code): New function.
8021 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8022 instead of dummy_addr, to push_dummy_call. Move call to
8023 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8024 switch.
8025 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8026
92bf2b80
AC
80272003-05-03 Andrew Cagney <cagney@redhat.com>
8028
8029 * disasm.h (print_insn): Declare.
8030 * disasm.c (init_gdb_disassemble_info): New function.
8031 (gdb_disassembly): Call init_gdb_disassemble_info.
8032 (gdb_print_insn): New function.
8033 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8034 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8035 * mcore-tdep.c: Include "disasm.h"
8036 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8037 * d10v-tdep.c: Include "disasm.h".
8038 (display_trace): Call gdb_print_insn, instead of print_insn.
8039 (print_insn): Delete function.
8040 * printcmd.c: Include "disasm.h".
8041 (print_insn): Delete function.
8042 (print_formatted): Call gdb_print_insn, instead of print_insn.
8043 * Makefile.in (printcmd.o): Update dependencies.
8044 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8045
27d94c49
AC
80462003-05-02 Andrew Cagney <cagney@redhat.com>
8047
82de1e5b
AC
8048 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8049 PC_REGNUM, re-indent.
8050 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8051 PC_REGNUM isn't set.
8052
27d94c49
AC
8053 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8054 * gdbarch.h, gdbarch.c: Re-generate.
8055 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8056 register_virtual_size, pc_regnum, or register_bytes.
8057 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8058 (d10v_register_type): Use D10V_PC_REGNUM.
8059 (d10v_print_registers_info, d10v_read_pc): Ditto.
8060 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8061 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8062
a9c0dc7f
DC
80632003-05-02 David Carlton <carlton@bactrian.org>
8064
8065 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8066 the name with mstrsave.
8067
e33d66ec
EZ
80682003-05-02 Elena Zannoni <ezannoni@redhat.com>
8069
8070 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8071 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8072 (host_charset_name, target_charset_name): New vars for use by
8073 set/show commands.
8074 (host_charset_enum, target_charset_enum): New enums for set/show
8075 commands.
8076 (set_charset_sfunc, set_host_charset_sfunc,
8077 set_target_charset_sfunc): New functions.
8078 (set_host_charset, set_target_charset): Make static.
8079 (list_charsets, set_host_charset_command,
8080 set_target_charset_command): Delete functions.
8081 (show_charset_command): Rewrite as....
8082 (show_charset): Hook this up with the set/show command mechanism.
8083 (_initialize_charset): Change names of charsets to match the
8084 set/show enums. Use host_charset_name and target_charset_name.
8085 Use set/show mechanism for charset, host-charset, target-charset
8086 commands. Do not make 'show host-charset' and 'show
8087 target-charset' be aliases of 'show charset'.
8088
8089 * charset.h (set_host_charset, set_target_charset): Don't export,
8090 they are not used outside the file.
8091
2b6fd0d8
AC
80922003-05-01 Andrew Cagney <cagney@redhat.com>
8093
8094 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8095 (gdb_disassembly): Make "di" non static, always initialize and
8096 cleanup. Always use dis_asm_read_memory.
8097 (gdb_dis_asm_read_memory): Delete function.
8098
6ae2f580
AC
80992003-05-01 Andrew Cagney <cagney@redhat.com>
8100
8101 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8102 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8103
810ecf9f
AC
81042003-04-30 Andrew Cagney <cagney@redhat.com>
8105
8106 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8107 "tm_print_insn_info".
8108 (TARGET_PRINT_INSN_INFO): Delete macro.
8109 (dis_asm_read_memory): Delete function declaration.
8110 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8111 (tm_print_insn_info): Delete variable definition.
8112 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8113 * gdbarch.h, gdbarch.c: Re-generate.
8114 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8115 "deprecated_tm_print_insn_info".
8116 * mcore-tdep.c (mcore_dump_insn): Ditto.
8117 * mips-tdep.c (mips_gdbarch_init): Ditto.
8118 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8119 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8120 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8121 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8122 instead of TARGET_PRINT_INSN_INFO, add comment.
8123 * s390-tdep.c (s390_get_frame_info): Instead of
8124 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8125 (s390_check_function_end, s390_is_sigreturn): Ditto.
8126 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8127 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8128 * disasm.c: Include "gdbcore.h".
8129 (_initialize_disasm): New function, initialize
8130 "deprecated_tm_print_insn_info".
8131 (deprecated_tm_print_insn_info): New variable.
8132 (dis_asm_read_memory): Moved from "corefile.c", made static.
8133 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8134 * Makefile.in (disasm.o): Update dependencies.
8135
07020390
AC
81362003-04-30 Andrew Cagney <cagney@redhat.com>
8137
8138 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8139
a9fa03de
AF
81402003-04-29 Adam Fedor <fedor@gnu.org>
8141
8142 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8143 * infcall.c (find_function_addr): Make non-static.
8144 * infcall.h (find_function_addr): Declare.
8145 * Makefile.in (eval.o): Update dependencies.
8146
1bae87b9
AF
81472003-04-28 Adam Fedor <fedor@gnu.org>
8148
8149 * symtab.c (symbol_find_demangled_name): Check for and demangle
8150 ObjC symbols.
8151 (symbol_init_demangled_name): Init for language_objc as well.
8152
0ba6dca9
AC
81532003-04-28 Andrew Cagney <cagney@redhat.com>
8154
8155 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8156 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8157 * gdbarch.h, gdbarch.c: Re-generate.
8158 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8159 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8160 * inferior.h (deprecated_read_fp): Rename read_fp.
8161 (generic_target_read_fp): Delete declaration.
8162 * regcache.c (generic_target_read_fp): Delete function.
8163 (deprecated_read_fp): Replace read_fp, use
8164 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8165 * d10v-tdep.c (d10v_read_fp): Delete function.
8166 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8167
8168 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8169 deprecated_target_read_fp to generic_target_read_fp.
8170 * sh-tdep.c (sh_gdbarch_init): Ditto.
8171 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8173 * frv-tdep.c (frv_gdbarch_init): Ditto.
8174
8175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8176 deprecated_fp_regnum.
8177 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8178 * vax-tdep.c (vax_gdbarch_init): Ditto.
8179 * v850-tdep.c (v850_gdbarch_init): Ditto.
8180 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8181 * sh-tdep.c (sh_gdbarch_init): Ditto.
8182 * s390-tdep.c (s390_gdbarch_init): Ditto.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8186 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8188 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8189 * i386-tdep.c (i386_gdbarch_init): Ditto.
8190 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8191 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8192 * frv-tdep.c (frv_gdbarch_init): Ditto.
8193 * cris-tdep.c (cris_gdbarch_init): Ditto.
8194 * avr-tdep.c (avr_gdbarch_init): Ditto.
8195 * arm-tdep.c (arm_gdbarch_init): Ditto.
8196 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8197
8198 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8199 * v850-tdep.c (v850_gdbarch_init): Ditto.
8200 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8201 * sh-tdep.c (sh_gdbarch_init): Ditto.
8202 * s390-tdep.c (s390_gdbarch_init): Ditto.
8203 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8205 * mips-tdep.c (mips_gdbarch_init): Ditto.
8206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8208 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8209 * frv-tdep.c (frv_gdbarch_init): Ditto.
8210 * avr-tdep.c (avr_gdbarch_init): Ditto.
8211 * arm-tdep.c (arm_gdbarch_init): Ditto.
8212
8213 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8214 DEPRECATED_FP_REGNUM.
8215 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8216 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8217 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8218 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8219 (sparc32_register_virtual_type): Ditto.
8220 * sh-tdep.c (sh64_frame_chain): Ditto.
8221 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8222 (sh_nofp_frame_init_saved_regs): Ditto.
8223 (sh64_nofp_frame_init_saved_regs): Ditto.
8224 (sh_fp_frame_init_saved_regs): Ditto.
8225 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8226 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8227 * procfs.c (procfs_fetch_registers): Ditto.
8228 (procfs_store_registers): Ditto.
8229 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8230 (store_inferior_registers, fetch_core_registers): Ditto.
8231 (fetch_kcore_registers, clear_regs): Ditto.
8232 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8233 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8234 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8235 * nlm/i386.c (do_status): Ditto.
8236 * mipsv4-nat.c (supply_gregset): Ditto.
8237 * mips-tdep.c: Ditto for comments.
8238 * mips-nat.c (fetch_inferior_registers): Ditto.
8239 (store_inferior_registers, fetch_core_registers): Ditto.
8240 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8241 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8242 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8243 (i386_do_pop_frame, i386_register_type): Ditto.
8244 * hppa-tdep.c (hppa_frame_chain): Ditto.
8245 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8246 (hppa_pop_frame, hppa_read_fp): Ditto.
8247 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8248 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8249 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8250 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8251 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8252 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8253 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8254 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8255 * blockframe.c: Ditto for comments.
8256 * arch-utils.h: Ditto for comments.
8257 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8258 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8259 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8260 * alpha-tdep.h: Ditto for comments.
8261 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8262 (alpha_cannot_store_register): Ditto.
8263 (alpha_push_dummy_frame): Ditto.
8264 * alpha-nat.c (supply_gregset): Ditto.
8265
8266 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8267 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8268 * config/sparc/tm-sparc.h: Update comment.
8269
8270 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8271 deprecated_read_fp instead of TARGET_READ_FP.
8272 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8273 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8274 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8275 deprecated_read_fp instead of read_fp.
8276 * s390-tdep.c (s390_push_arguments): Ditto.
8277 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8278 * frame.h: Ditto in comments.
8279 * frame.c (legacy_get_prev_frame): Ditto.
8280 * dummy-frame.c (dummy_frame_this_id): Ditto.
8281 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8282
d7a27068
AC
82832003-04-28 Andrew Cagney <cagney@redhat.com>
8284
8285 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8286 * gdbarch.h, gdbarch.c: Re-generate.
8287 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8288 * vax-tdep.c (_initialize_vax_tdep): Update.
8289 * v850-tdep.c (_initialize_v850_tdep): Update.
8290 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8291 * s390-tdep.c (_initialize_s390_tdep): Update.
8292 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8293 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8294 * mips-tdep.c (_initialize_mips_tdep): Update.
8295 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8296 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8297 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8298 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8299 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8300 * frv-tdep.c (_initialize_frv_tdep): Update.
8301 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8302 (_initialize_cris_tdep): Update.
8303 * arch-utils.c (legacy_print_insn): Update.
8304 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8305
d2630e69
AF
83062003-04-26 Adam Fedor <fedor@gnu.org>
8307
8308 * linespec.c (decode_objc): New function to decode ObjC calls
8309 (decode_line_1): Check for ObjC calls (using decode_objc)
8310 * Makefile (linespec.o): Update dependencies.
8311
3086aeae
DJ
83122003-04-26 Daniel Jacobowitz <drow@mvista.com>
8313
8314 * breakpoint.h (struct breakpoint_ops): New.
8315 (struct breakpoint): Add ops member.
8316
8317 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8318 (mention): Use new breakpoint ops member.
8319 (set_raw_breakpoint): Initialize ops field to NULL.
8320 (print_exception_catchpoint, print_one_exception_catchpoint)
8321 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8322 (gnu_v3_exception_catchpoint_ops): New.
8323 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8324
1fbec6c3
AF
83252003-04-25 Adam Fedor <fedor@gnu.org>
8326
8327 * Makefile.in (COMMON_OBS): Add objc-lang.o
8328
0ef21242
AC
83292003-04-25 Andrew Cagney <cagney@redhat.com>
8330
8331 * d10v-tdep.c (print_insn): Delete function.
8332 (display_trace): Use TARGET_PRINT_INSN.
8333 (_initialize_d10v_tdep): Do not set tm_print_insn.
8334 (d10v_gdbarch_init): Set print_insn.
8335
f75493ed
AC
83362003-04-25 Andrew Cagney <cagney@redhat.com>
8337
8338 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8339 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8340 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8341 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8342 (nr_dmap_regs, a0_regnum): ... new functions.
8343 (d10v_print_registers_info): Use a0_regnum, use register_size.
8344 (d10v_register_byte): Delete function.
8345 (d10v_register_raw_size): Delete function.
8346 (d10v_register_type): Use a0_regnum.
8347 (d10v_print_registers_info): Use a0_regnum.
8348 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8349 (d10v_gdbarch_init): Do not set register_byte or
8350 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8351 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8352 extract_address.
8353 (trace_command): Use XCALLOC.
8354 (print_insn): Delete reference to tm_print_insn.
8355 (saved_regs_unwinder): Use store_unsigned_integer instead of
8356 store_address.
8357 * frame.h (FRAME_OBSTACK_CALLOC): Define
8358
2202b100
DC
83592003-04-25 David Carlton <carlton@bactrian.org>
8360
8361 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8362
4e45ca2e
AF
83632003-04-24 Adam Fedor <fedor@gnu.org>
8364
8365 * objc-lang.c: Include "valprint.h"
8366 * Makefile.in (objc-lang.o): Update dependencies.
8367
93de3e7f
AF
83682003-04-24 Adam Fedor <fedor@gnu.org>
8369
8ffd9b1b 8370 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8371 architecture dependant compilation and mark as unimplemented
8372 (until they get put in the gdbarch vector).
8373
0f20eeea
DC
83742003-04-23 David Carlton <carlton@bactrian.org>
8375
8376 * cp-support.c (cp_find_first_component): Accept 'operator' in
8377 more locations.
8378
74cfe982
AC
83792003-04-23 Andrew Cagney <cagney@redhat.com>
8380
8381 * infcall.c (call_function_by_hand): Eliminate redundant
8382 indentation. Move "saved_async" and "old_cleanups" to where they
8383 are needed.
8ffd9b1b 8384
52557533
AC
83852003-04-23 Andrew Cagney <cagney@redhat.com>
8386
8387 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8388 and "buffer". Move the "name" code to where it is needed.
8389
158775de
AC
83902003-04-23 Andrew Cagney <cagney@redhat.com>
8391
8392 * infcall.c (call_function_by_hand): Move variables "start_sp",
8393 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8394 code to ON_STACK switch branch.
8ffd9b1b 8395
ebc7896c
AC
83962003-04-23 Andrew Cagney <cagney@redhat.com>
8397
8398 * infcall.c (call_function_by_hand): Make declaration of "i",
8399 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8400 lint.
8401
d727590f
AC
84022003-04-23 Andrew Cagney <cagney@redhat.com>
8403
8404 * infcall.c (call_function_by_hand): Delete variable
8405 "n_method_args". Localize "param_type"'s declaration to the loop
8406 that it is used. Reinstate code assigning to said variable -
8407 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8408 Rationalize code using "param_type".
8409
d585e13a
AC
84102003-04-22 Andrew Cagney <cagney@redhat.com>
8411
8412 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8413 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8414 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8415 to DEPRECATED_PUSH_RETURN_ADDRESS.
8416
051caad9
KB
84172003-04-22 Kevin Buettner <kevinb@redhat.com>
8418
8419 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8420 on the DWARF2 register number prior to fetching a register.
8421
77296879
JB
84222003-04-22 J. Brobecker <brobecker@gnat.com>
8423
8424 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8425 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8426 this macro was always set to 0.
77296879
JB
8427 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8428 considering the fact that this macro was always set to 0.
8429 * hppa-tdep.h (hppa_store_return_value): Likewise.
8430 (hppa_extract_return_value): Likewise.
8431
4252f1df
JB
84322003-04-22 J. Brobecker <brobecker@gnat.com>
8433
8434 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8435 the hppa-pro target only.
8436
14604c6b
JB
84372003-04-21 J. Brobecker <brobecker@gnat.com>
8438
8439 Ongoing multi-arch conversion effort for HP/UX:
8440 * config/pa/tm-hppa.h: Move all macro that are no longer
8441 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8442 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8443
77eb01d1
JB
84442003-04-21 J. Brobecker <brobecker@gnat.com>
8445
8446 * config/pa/tm-hppa.h: Obsolete a section that was only used
8447 for hppa-pro.
8448
61995b3b
JB
84492003-04-21 J. Brobecker <brobecker@gnat.com>
8450
8451 Ongoing multi-arch conversion for HP/UX.
8452 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8453 if already defined (allows hppa64 to stay non-multiarched for now).
8454 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8455
4aa79dcc
AC
84562003-04-21 Andrew Cagney <cagney@redhat.com>
8457
8458 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8459
0f751ff2
AC
84602003-04-21 Andrew Cagney <cagney@redhat.com>
8461
8462 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8463 "i386_num_mmx_regs".
8464
04714b91
AC
84652003-04-21 Andrew Cagney <cagney@redhat.com>
8466
8467 * infcall.c: New file.
8468 * infcall.h: New file.
8469 * valarith.c: Include "infcall.h".
8470 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8471 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8472 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8473 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8474 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8475 (SFILES): Add "infcall.c"
8476 (COMMON_OBS): Add "infcall.o".
8477 (infcall.o): Specify dependencies.
8478 * value.h (call_function_by_hand): Delete declaration.
8479 * inferior.h (run_stack_dummy): Delete declaration.
8480 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8481 (run_stack_dummy): Move to "infcall.c", merged into
8482 call_function_by_hand.
8483 * valops.c (call_function_by_hand): Moved to "infcall.c".
8484 (find_function_addr, value_arg_coerce): Ditto.
8485 (unwindonsignal_p, coerce_float_to_double): Ditto.
8486 (_initialize_valops): Move "set/show coerce-float-to-double", and
8487 "set/show unwindonsignal" commands to "infcall.c".
8488 * v850-tdep.c, target.h: Update comments.
8489 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8490 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8491 (sh64_init_extra_frame_info): Update comments.
8492 * mn10300-tdep.c: Update comments.
8493 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8494 * config/sparc/tm-sparc.h: Update comments.
8495 * breakpoint.h: Update comments.
8496 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8497 * arm-tdep.c: Update comment.
8498
f9d3c2a8
MK
84992003-04-19 Mark Kettenis <kettenis@gnu.org>
8500
c40e1eab
MK
8501 * i386-tdep.c (i386_num_register_names): New variable.
8502 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8503 (MM0_REGNUM): Remove redundant parentheses in define.
8504 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8505 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8506 i386_mxcsr_regnum_p): Remove redundant parentheses.
8507 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8508
94ea66b3
MK
8509 * i386-tdep.c (i386_extract_return_value,
8510 i386_store_return_value): Correct check for availability of
8511 floating-point registers.
8512
54299a1d
MK
8513 * i386-tdep.c (i386_frame_num_args): Remove function.
8514 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8515
c86c27af
MK
8516 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8517 mmx_regnum_to_fp_regnum. Adjust all callers.
8518
f9d3c2a8
MK
8519 * i386-tdep.c (i386_get_longjmp_target): Use
8520 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8521 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8522 extract_address.
8523
94ba74a9
MK
85242003-04-19 Mark Kettenis <kettenis@gnu.org>
8525
8526 * core-regset.c: Update comments to reflect reality. Re-order
8527 includes.
8528 (fetch_core_registers): Use switch instead of if. Remove
8529 redundant prototype.
8530
4074e13c
JB
85312003-04-18 Jim Blandy <jimb@redhat.com>
8532
8533 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8534 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8535
e3ab4aba
RH
85362003-04-17 Richard Henderson <rth@redhat.com>
8537
8538 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8539
627bf7c1
EZ
85402003-04-17 Michael Snyder <msnyder@redhat.com>
8541 Karen Bennet <bennet@redhat.com>
8542
8543 Committed by Elena Zannoni <ezannoni@redhat.com>
8544 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8545
514621a9
EZ
85462003-04-17 Elena Zannoni <ezannoni@redhat.com>
8547
8548 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8549 value if the return type is void.
514621a9 8550
b4acd559
JJ
85512003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8552
8553 * thread-db.c: Reindented.
8ffd9b1b 8554
530b167e 85552003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8556
8557 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8558 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8559 as types.
8560
0a48e7e8
MS
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8ffd9b1b 8584
ab9fe00e
KB
85852003-04-16 Kevin Buettner <kevinb@redhat.com>
8586
610a3745 8587 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8588 the size of ``long double'' to 16, instead of 8.
8589
e64a344c
MK
85902003-04-16 Mark Kettenis <kettenis@gnu.org>
8591
8592 * i386-linux-nat.c: Add some whitespace to make things more
8593 readable.
8594 (fetch_register, store_register, fetch_inferior_registers,
8595 store_inferior_registers): Get rid of assignment in if-statement.
8596 (store_register): Fix typo in error message.
8597
25d41031
AC
85982003-04-16 Andrew Cagney <cagney@redhat.com>
8599
8600 * utils.c (xmmalloc): Always allocate something, matches
8601 libiberty/xmalloc's semantics.
8602 (xmrealloc, xmcalloc): Ditto.
8603
c50901fd
AC
86042003-04-16 Andrew Cagney <cagney@redhat.com>
8605
8606 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8607 update comments.
8608 (get_frame_type): Initialize unwind and type when needed.
8609 (get_frame_id, frame_register_unwind): Ditto.
8610
f81824a9
AC
86112003-04-16 Andrew Cagney <cagney@redhat.com>
8612
8613 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8614 obsolete.
8615 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8616 * sparcl-stub.c: Obsolete file.
8617 * config/sparc/tm-sparclet.h: Obsolete file.
8618 * sparclet-stub.c: Obsolete file.
8619 * sparclet-rom.c: Obsolete file.
8620 * sparcl-tdep.c: Obsolete file.
8621 * config/sparc/tm-sparclite.h: Obsolete file.
8622 * config/sparc/sparclite.mt: Obsolete file.
8623 * config/sparc/sparclet.mt: Obsolete file.
8624 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8625 sparc86x-*-* obsolete.
8626
9219021c
DC
86272003-04-15 David Carlton <carlton@math.stanford.edu>
8628
8629 * Makefile.in (SFILES): Add cp-namespace.c.
8630 (COMMON_OBS): Add cp-namespace.o.
8631 (block.o): Depend on gdb_obstack_h and cp_support_h.
8632 (buildsym.o): Depend on cp_support_h.
8633 (cp-namespace.o): New.
8634 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8635 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8636 (dwarf2read.o): Depend on cp_support_h.
8637 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8638 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8639 processing_current_namespace.
8640 (read_namespace): Update processing_current_namespace; check for
8641 anonymous namespaces.
8642 (dwarf2_name): New function.
8643 (dwarf2_extension): Ditto.
8644 * cp-support.h: Update copyright, contributors.
8645 Add inclusion guards.
8646 Add opaque declaration for structs obstack, block, symbol.
8647 (struct using_direct): New struct.
8648 Add declarations for cp_find_first_component,
8649 cp_entire_prefix_len, processing_has_namespace_info,
8650 processing_current_namespace, cp_is_anonymous,
8651 cp_add_using_directive, cp_initialize_namespace,
8652 cp_finalize_namespace, cp_set_block_scope,
8653 cp_scan_for_anonymous_namespaces.
8654 * cp-namespace.c: New file.
8655 * cp-support.c: Update copyright.
8656 Include ctype.h, gdb_assert.h, gdbcmd.h.
8657 New variable maint_cplus_cmd_list.
8658 (cp_find_first_component): New function.
8659 (cp_entire_prefix_len, maint_cplus_command)
8660 (first_component_command, _initialize_cp_support): Ditto.
8661 * buildsym.c: Include cp-support.h.
8662 New variable using_list.
8663 (add_symbol_to_list): Check for anonymous namespaces.
8664 (finish_block): Set block's scope.
8665 (start_symtab): Initialize C++ namespace support.
8666 (end_symtab): Finalize C++ namespace support.
8667 * block.h: Add opaque declarations for structs
8668 block_namespace_info, using_direct, and obstack.
8669 Add declarations for block_set_scope and block_set_using.
8670 (struct block): Add 'language_specific' member.
8671 (BLOCK_NAMESPACE): New macro.
8672 * block.c: Include gdb_obstack.h and cp-support.h.
8673 (struct block_namespace_info): New struct.
8674 (block_set_scope): New function.
8675 (block_set_using, block_initialize_namespace): Ditto.
8676
d5a921c9
KB
86772003-04-14 Kevin Buettner <kevinb@redhat.com>
8678
8679 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8680 (locate_base): Return early if there aren't any link map offsets.
8681 (svr4_solib_create_inferior_hook): Warn if shared library support
8682 is unavailable.
8683
d2a52b27
DC
86842003-04-14 David Carlton <carlton@math.stanford.edu>
8685
8686 * symtab.c (symbol_set_names): Add prefix when storing Java names
8687 in hash table. Fix for PR java/1039.
8688
980cae7a
DC
86892003-04-14 David Carlton <carlton@math.stanford.edu>
8690
8691 * symtab.c (symbol_set_names): Rename 'name' arg to
8692 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8693 * symtab.h: Change 'name' argument in declaration of
8694 symbol_set_names to 'linkage_name'.
8695 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8696
e227b13c
AC
86972003-04-14 Andrew Cagney <cagney@redhat.com>
8698
8699 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8700 return the fully sign-extended register value.
8701 (get_frame_pointer): Ditto.
8702 (mips_pop_frame): Initialize "proc_desc" after checking for a
8703 dummy frame.
8704
36712a20
AC
87052003-04-14 Andrew Cagney <cagney@redhat.com>
8706
8707 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8708 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8709 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8710 (mips_push_register): Delete function.
8711 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8712 PUSH_FP_REGNUM.
8713
44ea7b70
JB
87142003-04-14 Jim Blandy <jimb@redhat.com>
8715
8716 * symmisc.c: #include "gdb_regex.h".
8717 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8718 functions.
8719 * maint.c (maintenance_list_command): New function.
8720 (_initialize_maint_cmds): Register the above as commands.
8721 * symtab.h (maintenance_list_symtabs,
8722 maintenance_list_psymtabs): New declarations.
8723 * cli/cli-cmds.c (maintenancelistlist): New variable.
8724 (init_cmd_lists): Initialize it.
8725 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8726 * gdbcmd.h (maintenancelistlist): New declaration.
8727 * Makefile.in (symmisc.o): Update dependencies.
8728
2d0c7962
EZ
87292003-04-14 Elena Zannoni <ezannoni@redhat.com>
8730
8731 * s390-nat.c: Include asm/types.h for addr_t.
8732
1947a811
CV
87332003-04-14 Corinna Vinschen <vinschen@redhat.com>
8734
8735 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8736 actually incoming type.
8737
adb616d7
AC
87382003-04-13 Andrew Cagney <cagney@redhat.com>
8739
8740 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8741 get_next_frame and get_frame_saved_regs.
8742
9b5e151c
AC
87432003-04-13 Andrew Cagney <cagney@redhat.com>
8744
8745 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8746 of gdbarch_num_regs.
8747
ef6e7e13
AC
87482003-04-13 Andrew Cagney <cagney@redhat.com>
8749
8750 * frame.h: Mention what replaced what in "struct frame_info".
8751 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8752 deprecated_update_frame_base_hack and
8753 deprecated_update_frame_pc_hack.
8754 * hppa-tdep.c: Ditto.
8755
61fbb938
DJ
87562003-04-13 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8759 to read_reg and update its comment. Remove regnum member.
8760 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8761 Don't call read_reg when setting in_reg. Call read_reg to get
8762 the frame base if it's in a register. Return the register number
8763 on the stack instead of in the context. Remove extra arguments
8764 to read_reg.
8765 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8766 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8767 the register number on the expression stack.
8768 (needs_frame_read_reg): Remove extra arguments.
8769
0d53c4c4
DJ
87702003-04-13 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8773 made non-static.
8774 (execute_stack_op): All callers updated.
8775 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8776 * dwarf2loc.c (find_location_expression): New function.
8777 (dwarf_expr_frame_base): Call it.
8778 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8779 (dwarf2_tracepoint_var_ref): New function, broken out from
8780 locexpr_tracepoint_var_ref.
8781 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8782 Make static.
8783 (loclist_read_variable, loclist_read_needs_frame): New functions.
8784 (loclist_describe_location, loclist_tracepoint_var_ref): New
8785 functions.
8786 (dwarf2_loclist_funcs): New struct location_funcs.
8787 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8788 (struct dwarf2_locexpr_baton): Add comments.
8789 (dwarf2_loclist_funcs): New extern.
8790 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8791 base_address and base_known.
8792 (dwarf_loc_buffer): New variable.
8793 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8794 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8795 (dwarf2_has_info): Initialize dwarf_loc_offset.
8796 (dwarf2_build_psymtabs): Read in .debug_loc.
8797 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8798 DWARF_LOC_SIZE.
8799 (psymtab_to_symtab_1): Likewise. Move base address calculation
8800 here, from...
8801 (dwarf2_get_pc_bounds): ... here. Use the base address from
8802 cu_header.
8803 (dwarf2_symbol_mark_computed): Handle location lists.
8804
6aca59a3
DJ
88052003-04-13 Daniel Jacobowitz <drow@mvista.com>
8806
8807 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8808 if the linkage name demangled successfully.
8809
aca1fcd0
MK
88102003-04-13 Mark Kettenis <kettenis@gnu.org>
8811
97095916
MK
8812 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8813 disassmbly_flavour): Removed.
8814
aca1fcd0
MK
8815 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8816
562a961f
MK
88172003-04-13 Mark Kettenis <kettenis@gnu.org>
8818
8819 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8820
bd013d54
AC
88212003-04-12 Andrew Cagney <cagney@redhat.com>
8822
8823 * frame.h (struct frame_info): Move definition from here ...
8824 * frame.c (struct frame_info): ... to here.
8825
167ef8b1
AC
88262003-04-12 Andrew Cagney <cagney@redhat.com>
8827
8828 * gdbthread.h (save_infrun_state): Delete parameter
8829 "prev_func_start".
8830 (struct thread_info): Delete field "prev_func_start".
8831 (load_infrun_state): Ditto.
8832 * thread.c (load_infrun_state, save_infrun_state): Update.
8833 * infrun.c (prev_func_start): Delete variable.
8834 (context_switch, init_wait_for_inferior): Update.
8835 (stop_stepping, keep_going): Update.
8836
da3331ec
AC
88372003-04-12 Andrew Cagney <cagney@redhat.com>
8838
8839 * gdbarch.sh: Add missing opaque declarations.
8840 * gdbarch.h: Regnerate.
8841 * symtab.h: Add missing opaque declarations.
8842 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8843 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8844 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8845 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8846 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8847 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8848 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8849 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8850 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8851 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8852 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8853 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8854 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8855
18adea3f
AC
88562003-04-11 Andrew Cagney <cagney@redhat.com>
8857
8858 * frame.c (get_frame_id): Return this frame's "id".
8859 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8860 function start.
8861 (legacy_saved_regs_this_id): Replace function body with
8862 internal-error.
8863 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8864 FRAME_OBSTACK_ZALLOC.
8865 (create_new_frame): Mark the frame ID as valid.
8866
2252e863
AO
88672003-04-11 Alexandre Oliva <aoliva@redhat.com>
8868
8869 * Makefile.in (libbfd_h): Added missing setting.
8870 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8871 according to the selected ABI.
8872
a8245ab8
JJ
88732003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8874
8875 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8876
6913c89a
AC
88772003-04-11 Andrew Cagney <cagney@redhat.com>
8878
8879 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8880 SAVED_PC_AFTER_CALL.
8881 * gdbarch.h, gdbarch.c: Regenerate.
8882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8883 * x86-64-tdep.c (x86_64_init_abi): Update.
8884 * vax-tdep.c (vax_gdbarch_init): Update.
8885 * v850-tdep.c (v850_gdbarch_init): Update.
8886 * sparc-tdep.c (sparc_gdbarch_init): Update.
8887 * sh-tdep.c (sh_gdbarch_init): Update.
8888 * s390-tdep.c (s390_gdbarch_init): Update.
8889 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8890 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8891 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8892 * mips-tdep.c (mips_gdbarch_init): Update.
8893 * mcore-tdep.c (mcore_gdbarch_init): Update.
8894 * m68k-tdep.c (m68k_gdbarch_init): Update.
8895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8896 * ia64-tdep.c (ia64_gdbarch_init): Update.
8897 (ia64_saved_pc_after_call): Update declaration.
8898 * i386ly-tdep.c (i386lynx_init_abi): Update.
8899 * i386-tdep.c (i386_gdbarch_init): Update.
8900 * hppa-tdep.c (hppa_gdbarch_init): Update.
8901 * h8300-tdep.c (h8300_gdbarch_init): Update.
8902 * frv-tdep.c (frv_gdbarch_init): Update.
8903 * cris-tdep.c (cris_gdbarch_init): Update.
8904 * avr-tdep.c (avr_gdbarch_init): Update.
8905 * arm-tdep.c (arm_gdbarch_init): Update.
8906 * alpha-tdep.c (alpha_gdbarch_init): Update.
8907 * ns32knbsd-nat.c (frame_num_args): Update.
8908 * ns32k-tdep.c (umax_frame_num_args): Update.
8909 * mips-tdep.c (mips_init_frame_pc_first): Update.
8910 * infrun.c (step_over_function): Update.
8911 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8912 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8913 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8914 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8915 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8916 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8917 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8918 * arch-utils.c (init_frame_pc_default): Update.
8919 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8920 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8921 declaration.
8ffd9b1b 8922
38edeab8
AC
89232003-04-11 Andrew Cagney <cagney@redhat.com>
8924
8925 * i387-tdep.c: Update copyright.
8926 (i387_to_double): Delete function.
8927 (double_to_i387): Delete function.
8928
81f8a206
AC
89292003-04-10 Andrew Cagney <cagney@redhat.com>
8930
8931 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8932 frame's function's address. Simplify.
8933 (d10v_frame_unwind_cache): Check that the frame's function is
8934 non-zero.
8935
6e691f7a
JB
89362003-04-10 Jim Blandy <jimb@redhat.com>
8937
8938 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8939 call to set_gdbarch_deprecated_push_arguments.
8940
7f78e237
AC
89412003-04-10 Andrew Cagney <cagney@redhat.com>
8942
8943 * frame.c (fprint_frame_id): New function.
8944 (fprint_frame_type, fprint_frame): New function.
8945 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8946 (create_sentinel_frame, get_frame_id): Ditto.
8947 (frame_id_p, frame_id_eq): Ditto.
8948 (frame_id_inner, create_new_frame): Ditto.
8949 (legacy_get_prev_frame, get_prev_frame): Ditto.
8950 (deprecated_update_frame_pc_hack): Ditto.
8951 (frame_register_unwind): Ditto.
8952 (deprecated_update_frame_base_hack): Ditto.
8953
f870b49b
CV
89542003-04-10 Corinna Vinschen <vinschen@redhat.com>
8955
8956 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8957 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8958 frame_chain function.
8959 * Makefile.in: Add dependencies due to above change.
8960
7c86889b
CV
89612003-04-10 Corinna Vinschen <vinschen@redhat.com>
8962
8963 * blockframe.c (legacy_frame_chain_valid): Move call to
8964 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8965 inside_entry_file.
8966
d0a55772
AC
89672003-04-09 Andrew Cagney <cagney@redhat.com>
8968
8969 * frame.h (struct frame_id): Replace "pc" and "base" with
8970 "stack_addr" and "code_addr". Update comments.
8971 (frame_id_build): Update parameter names and comment.
8972 (struct frame_info): Replace "id_p" and "id" with "this_id".
8973 * dummy-frame.c (dummy_frame_this_id): Update.
8974 * breakpoint.c (print_one_breakpoint): Update.
8975 * frame.c (get_frame_id): Update.
8976 (get_frame_base, frame_id_build): Update.
8977 (create_sentinel_frame, legacy_get_prev_frame): Update.
8978 (deprecated_update_frame_base_hack): Update.
8979 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8980 (frame_id_inner): Ditto.
8981
ac16bf07
AC
89822003-04-09 Andrew Cagney <cagney@redhat.com>
8983
8984 * defs.h (gdb_print_host_address): Make "addr" parameter a
8985 pointer constant.
8986 * utils.c (gdb_print_host_address): Update.
8987
366cfc9e
KB
89882003-04-09 Kevin Buettner <kevinb@redhat.com>
8989
8990 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8991 register number for R0 is 0.
8992
cd983b5c
JB
89932003-04-09 J. Brobecker <brobecker@gnat.com>
8994
8995 * frame.h (struct gdbarch): Add opaque structure definition
8996 to avoid a compilation warning on LynxOS 4.0.
8997
d1340264
AC
89982003-04-09 Andrew Cagney <cagney@redhat.com>
8999
9000 * frame.h (struct frame_info): Delete field "pc". Replace
9001 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9002 structure.
9003 * frame.c (frame_pc_unwind): Update.
9004 (create_sentinel_frame): Do not set "pc".
9005 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9006 (get_frame_pc): Call frame_pc_unwind.
9007 (deprecated_update_frame_pc_hack): Update.
9008 (create_new_frame): Use "pc" not "->pc".
9009
90a6fffb
AC
90102003-04-09 Andrew Cagney <cagney@redhat.com>
9011
9012 * frame.c (get_frame_id): Eliminate code updating "frame".
9013 (legacy_get_prev_frame): Ditto.
9014 (get_frame_base): Return id.base directly.
9015 (deprecated_update_frame_base_hack): Update "id.base".
9016 * frame.h (struct frame_info): Delete field "frame".
9017
2fbce691
AC
90182003-04-09 Andrew Cagney <cagney@redhat.com>
9019
9020 * NEWS: Mention that the "Sequent family" is obsolete.
9021 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9022 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9023 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9024 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9025 * config/i386/tm-ptx4.h: Obsolete file.
9026 * config/i386/tm-ptx.h: Obsolete file.
9027 * symm-tdep.c: Obsolete file.
9028 * config/i386/symmetry.mt: Obsolete file.
9029 * config/i386/tm-symmetry.h: Obsolete file.
9030 * symm-nat.c: Obsolete file.
9031 * config/i386/nm-symmetry.h: Obsolete file.
9032 * config/i386/xm-symmetry.h: Obsolete file.
9033 * config/i386/symmetry.mh: Obsolete file.
9034 * config/i386/nm-ptx4.h: Obsolete file.
9035 * config/i386/ptx4.mh: Obsolete file.
9036 * config/i386/ptx.mt: Obsolete file.
9037 * config/i386/ptx.mh: Obsolete file.
9038 * config/i386/xm-ptx4.h: Obsolete file.
9039 * config/i386/xm-ptx.h: Obsolete file.
9040
78c43945
AC
90412003-04-09 Andrew Cagney <cagney@redhat.com>
9042
9043 Obsolete mips*-*-mach3*.
9044 * NEWS: Mention that mips*-*-mach3* is obsolete.
9045 * m3-nat.c: Obsolete file.
9046 * config/nm-m3.h: Obsolete file.
9047 * config/mips/tm-mipsm3.h: Obsolete file.
9048 * config/mips/mipsm3.mt: Obsolete file.
9049 * config/mips/mipsm3.mh: Obsolete file.
9050 * config/mips/xm-mipsm3.h: Obsolete file.
9051 * mipsm3-nat.c: Obsolete file.
9052 * configure.host: Obsolete mips-dec-mach3*.
9053 * configure.tgt: Obsolete mips*-*-mach3*.
9054
f1908289
AC
90552003-04-09 Andrew Cagney <cagney@redhat.com>
9056
9057 * doublest.h: Update copyright.
9058 (deprecated_store_floating, deprecated_extract_floating): Rename
9059 store_floating and extract_floating. Update comments.
9060 * doublest.c: Update copyright.
9061 (extract_floating_by_length): Replace extract_floating.
9062 (store_floating_by_length): Replace store_floating.
9063 (deprecated_extract_floating): New function.
9064 (deprecated_store_floating): New function.
9065 (extract_typed_floating): Call extract_floating_by_length.
9066 (store_typed_floating): Call store_floating_by_length.
9067 * x86-64-tdep.c (x86_64_store_return_value): Update.
9068 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9069 (sh64_extract_return_value): Update.
9070 (sh_sh4_register_convert_to_virtual): Update.
9071 (sh_sh64_register_convert_to_virtual): Update.
9072 (sh_sh4_register_convert_to_raw): Update.
9073 (sh_sh64_register_convert_to_raw): Update.
9074 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9075 (rs6000_register_convert_to_raw): Update.
9076 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9077 (ia64_register_convert_to_raw): Update.
9078 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9079 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9080 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9081 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9082 (alpha_register_convert_to_raw): Update.
9083
4443bd83
AC
90842003-04-08 Andrew Cagney <cagney@redhat.com>
9085
9086 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9087 * gdbarch.h, gdbarch.c: Re-generate.
9088 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9089 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9090 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9091 conditionally, use frame_pc_unwind as an alternative. Add
9092 comments.
9093 * arch-utils.c (init_frame_pc_default): Only call
9094 SAVED_PC_AFTER_CALL when available.
9095
c0236d92
EZ
90962003-04-08 Elena Zannoni <ezannoni@redhat.com>
9097
fbe586ae 9098 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9099 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9100 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9101 (start_remote): Ditto.
9102 (handle_inferior_event): Ditto.
9103 (save_inferior_status): Ditto.
9104 (restore_inferior_status): Ditto.
9105 * infcmd.c (attach_command): Ditto.
9106 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9107 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9108 * alpha-tdep.c (heuristic_proc_start): Ditto.
9109 * mips-tdep.c (heuristic_proc_start): Ditto.
9110 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9111 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9112 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9113 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9114 * remote-vx.c (vx_create_inferior): Ditto.
9115
91162003-04-08 Elena Zannoni <ezannoni@redhat.com>
9117
9118 * infrun.c (stop_soon_quietly): Make it an enum, to better
9119 override the default behavior of handle_inferior_event.
9120 (clear_proceed_status): Update uses of stop_soon_quietly to
9121 reflect that it is now an enum.
9122 (start_remote): Ditto.
9123 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9124 is set to handle the new GNU/Linux kernel behavior for
9125 attach/sigstop. Update uses of stop_soon_quietly.
9126 * inferior.h (enum stop_kind): New enum.
9127 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9128 Reset normal handle_inferior_event behavior, afterwards.
9129 * fork-child.c (startup_inferior): Update.
9130 * alpha-tdep.c (heuristic_proc_start): Update.
9131 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9132 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9133 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9134 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9135 * remote-vx.c (vx_create_inferior): Update.
9136 * mips-tdep.c (heuristic_proc_start): Update.
9137
1211bce3
EZ
91382003-04-07 Elena Zannoni <ezannoni@redhat.com>
9139
9140 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9141 be freed more than once, causing wild memory corruptions.
1211bce3 9142 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9143 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9144 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9145 with the "core" target.
1211bce3 9146
f0ef6b29
KB
91472003-04-07 Kevin Buettner <kevinb@redhat.com>
9148
9149 * mips-tdep.c (mips_print_fp_register): New function, created from
9150 do_fp_register_row(). Registers are now (also) printed as hex.
9151 Only one register is printed per row.
9152 (mips_print_register, do_fp_register_row): Print floating point
9153 registers with mips_print_fp_register().
9154
8cf71652
AC
91552003-04-06 Andrew Cagney <cagney@redhat.com>
9156
5e488a7b
AC
9157 * valprint.h (inspect_it): Add extern declaration.
9158 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9159 (selectors_info, classes_info): Ditto.
9160 (find_objc_msgcall): Fix indentation.
9161 (objc_printstr): Delete extern declarations.
9162
8cf71652
AC
9163 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9164
e6ba3bc9
AC
91652003-04-06 Andrew Cagney <cagney@redhat.com>
9166
9167 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9168 Update comment.
9169 * frame.c (legacy_saved_regs_this_id): Update.
9170 (legacy_get_prev_frame): Update.
9171 * xstormy16-tdep.c: Update comment.
9172 * sparc-tdep.c (sparc_frame_chain): Update comment.
9173 * blockframe.c (legacy_frame_chain_valid): Update.
9174
55e1d7e7
AC
91752003-04-06 Andrew Cagney <cagney@redhat.com>
9176
996179ee
AC
9177 * valprint.c (val_print_type_code_int): Delete #ifdef
9178 PRINT_TYPELESS_INTEGER code.
9179
55e1d7e7
AC
9180 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9181 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9182 multi-arch definition.
9183 * gdbarch.h: Re-generate.
9184
43bd9a9e
AC
91852003-04-05 Andrew Cagney <cagney@redhat.com>
9186
9187 Eliminate FRAME_FIND_SAVED_REGS.
9188 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9189 Change FSR parameter to a pointer.
9190 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9191 Assume FSR parameter is a pointer.
9192 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9193 Make fsr a pointer.
9194 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9195 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9196 saved_regs a pointer.
9197 (hppa_frame_saved_pc): Ditto.
9198 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9199 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9200 pointer.
9201 (restore_pc_queue): Make fsr a pointer.
9202 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9203 (hppa_frame_chain): Make saved_regs a pointer, call
9204 hppa_frame_init_saved_regs.
9205 * sparc-tdep.c: Include "gdb_assert.h".
9206 (sparc_frame_find_saved_regs): Replace internal_error with
9207 gdb_assert.
9208 * remote-vxsparc.c (vx_read_register): Delete reference to
9209 FRAME_FIND_SAVED_REGS.
9210 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9211 * gdbarch.h: Regenerate.
9212 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9213 (deprecated_get_frame_saved_regs): Delete declaration.
9214 (struct frame_saved_regs): Delete definition.
9215 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9216 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9217 (hppa_frame_find_saved_regs): Delete declaration.
9218 (FRAME_FIND_SAVED_REGS): Delete macro.
9219 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9220 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9221 FRAME_FIND_SAVED_REGS in comment.
9222
be41e9f4
AC
92232003-04-05 Andrew Cagney <cagney@redhat.com>
9224
9225 * frame.c (frame_func_unwind, get_frame_func): New functions.
9226 * frame.h (get_frame_func, frame_func_unwind): Declare.
9227 (struct frame_info): Add field "prev_func" for caching the
9228 previous frame's function address.
9229 * arm-tdep.c (arm_frameless_function_invocation): Combine
9230 get_pc_function_start and get_frame_pc into get_frame_func.
9231 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9232 (sh64_nofp_frame_init_saved_regs): Ditto.
9233 * s390-tdep.c (s390_function_start): Ditto.
9234 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9235 (rs6000_frameless_function_invocation): Ditto.
9236 (rs6000_frame_saved_pc): Ditto.
9237 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9238 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9239 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9240 (i386_frame_init_saved_regs): Ditto.
9241 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9242 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9243 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9244 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9245 * blockframe.c (frameless_look_for_prologue): Ditto.
9246
a01dd7cc
AC
92472003-04-05 Andrew Cagney <cagney@redhat.com>
9248
9249 * frame.c (legacy_get_prev_frame): Link prev to next at the
9250 function start. Update comments.
9251
5e5592e6
AC
92522003-04-05 Andrew Cagney <cagney@redhat.com>
9253
9254 * frame.c (get_frame_id): Update comment.
9255 (legacy_get_prev_frame): Update comment.
9256 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9257 * gdbarch.h: Regenerate.
9258 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9259 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9260
6fba5002
AC
92612003-04-05 Andrew Cagney <cagney@redhat.com>
9262
9263 * stack.c (print_frame_info): Use get_frame_pc.
9264
7df05f2b
AC
92652003-04-04 Andrew Cagney <cagney@redhat.com>
9266
9267 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9268 the frame's type from the unwinder.
9269 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9270 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9271 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9272 (get_frame_base_address): Use get_frame_type.
9273 (get_frame_locals_address, get_frame_args_address): Ditto.
9274 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9275 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9276 (struct frame_info): Add comment explaining why the frame contains
9277 a "type" field.
9278 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9279 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9280 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9281 NORMAL_FRAME.
9282 * frame-unwind.h: Include "frame.h".
9283 (struct frame_unwind): Add "type" field.
9284 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9285
11889732
AC
92862003-04-04 Andrew Cagney <cagney@redhat.com>
9287
9288 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9289 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9290 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9291 get_frame_base.
9292 (d10v_unwind_dummy_id): Use frame_id_build.
9293 * frame.c (find_frame_sal): Use get_frame_pc.
9294 (create_new_frame): Use deprecated_update_frame_pc_hack and
9295 deprecated_update_frame_base_hack.
9296 (create_sentinel_frame): Add comment about ->pc going away.
9297 (get_prev_frame): Add comment about ->pc going away.
9298 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9299 frame_id_build, deprecated_update_frame_pc_hack and
9300 deprecated_update_frame_base_hack.
9301 (select_frame): Use get_frame_pc.
9302 (legacy_saved_regs_this_id): Use frame_id_build.
9303
50c46a0d
EZ
93042003-04-04 Elena Zannoni <ezannoni@redhat.com>
9305
fbe586ae
RH
9306 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9307 signed integer case.
9308 (classify_argument): Handle enumerations and references.
50c46a0d 9309
50bbdbd9
AC
93102003-04-04 Andrew Cagney <cagney@redhat.com>
9311
9312 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9313 ID to NULL.
9314
36018d2e
AF
93152003-04-01 Adam Fedor <fedor@gnu.org>
9316
9317 * gdb/objc-lang.c (selectors_info): Replace calls to
9318 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9319 SYMBOL_NATURAL_NAME.
9320 (classes_info, find_methods): Likewise.
9321
35cec841
KB
93222003-04-03 Kevin Buettner <kevinb@redhat.com>
9323
9324 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9325 ``mach'' to the value determined by bfd_default_set_arch_mach().
9326
43136899
BR
93272003-04-02 Bob Rossi <bob_rossi@cox.net>
9328
9329 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9330 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9331 (mi-cmd-file.o): Update dependencies.
9332
040b99fd
KB
93332003-04-01 Kevin Buettner <kevinb@redhat.com>
9334
9335 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9336 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9337
9a3d7dfd
AF
93382003-04-01 Adam Fedor <fedor@gnu.org>
9339
9340 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9341 * language.h (struct language_defn): Add la_demangle.
9342 (language_demangle): Declare.
9343 * language.c (language_demangle): New function.
9344 (unk_lang_demangle): Likewise.
9345 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9346 Add ukn_lang_demangle.
9a3d7dfd 9347 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9348 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9349 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9350 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9351 * jv-lang.c (java_demangle): New function
9352 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9353 * objc-lang.c (objc_demangle): Add options argument
9354 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9355 * maint.c (maintenance_demangle): Replace switch with
9356 call to language_demangle.
9357 * utils.c (fprintf_symbol_filtered): Likewise.
9358
5e074003
AC
93592003-04-01 Andrew Cagney <cagney@redhat.com>
9360
9361 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9362 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9363 PRINT_TYPELESS_INTEGER.
9364 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9365 PUSH_RETURN_ADDRESS.
9366
270cb5d6
AC
93672003-04-01 Andrew Cagney <cagney@redhat.com>
9368
9369 * Makefile.in (d10v-tdep.o): Update dependencies.
9370 * d10v-tdep.c: Include "frame-base.h".
9371 (d10v_frame_unwind): Make constant.
9372 (d10v_frame_base_address): New function.
9373 (d10v_frame_base): New variable.
9374 (d10v_gdbarch_init): Set frame_base default.
9375 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9376 comment for base.
9377 (d10v_frame_unwind_cache): Set and use "prev_sp".
9378 (d10v_frame_this_id): Use the previous frame's inner most stack
9379 address and this frame's func address for the frame ID. Use
9380 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9381
6bfb3e36
AC
93822003-04-01 Andrew Cagney <cagney@redhat.com>
9383
9384 * frame.h (get_frame_locals_address, get_frame_args_address):
9385 Refer to the base address, instead of the address of the first
9386 local or parameter.
8ffd9b1b 9387
da62e633
AC
93882003-04-01 Andrew Cagney <cagney@redhat.com>
9389
9390 Add frame debug info addresses:
9391 * frame-base.c: New file.
9392 * frame-base.h: New file.
9393 * frame.h (struct frame_base): Add opaque declaration.
9394 (get_frame_base): Update comment.
9395 (get_frame_base_address): Declare.
9396 (get_frame_locals_address): Declare.
9397 (get_frame_args_address): Declare.
9398 (struct frame_info): Add "base" and "base_cache". Update
9399 comments on the unwinder.
9400 * frame.c: Include "frame-base.h".
9401 (get_frame_locals_address): New function.
9402 (get_frame_base_address): New function.
9403 (get_frame_args_address): New function.
9404 * findvar.c (read_var_value): Use get_frame_locals_address and
9405 get_frame_args_address.
9406 * stack.c (frame_info): Use get_frame_locals_address and
9407 get_frame_args_address.
9408 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9409 moved to "frame-base.c".
9410 * printcmd.c (print_frame_nameless_args): Ditto.
9411 * symtab.h (address_class): Update comments.
9412 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9413 get_frame_base_address.
9414 * dwarf2expr.c (execute_stack_op): Ditto.
9415 * Makefile.in (frame_base_h): Define.
9416 (frame.o): Update dependencies.
9417 (frame-base.o): Add dependencies.
9418 (SFILES): Add frame-base.c.
9419 (COMMON_OBS): Add frame-base.o.
9420
3d30e9c2
AC
94212003-04-01 Andrew Cagney <cagney@redhat.com>
9422
9423 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9424 CALL_DUMMY_LENGTH): Ditto.
9425 * gdbarch.c: Re-generate.
9426 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9427 (CALL_DUMMY_LENGTH): Delete macro.
9428 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9429 * arm-tdep.c (arm_gdbarch_init): Ditto.
9430 * avr-tdep.c (avr_gdbarch_init): Ditto.
9431 * cris-tdep.c (cris_gdbarch_init): Ditto.
9432 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9433 * frv-tdep.c (frv_gdbarch_init): Ditto.
9434 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9435 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9436 * i386-tdep.c (i386_gdbarch_init): Ditto.
9437 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9439 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9440 * mips-tdep.c (mips_gdbarch_init): Ditto.
9441 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9442 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9443 * s390-tdep.c (s390_gdbarch_init): Ditto.
9444 * sh-tdep.c (sh_gdbarch_init): Ditto.
9445 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9446 * v850-tdep.c (v850_gdbarch_init): Ditto.
9447 * vax-tdep.c (vax_gdbarch_init): Ditto.
9448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9449
ce0c7262
CV
94502003-04-01 Corinna Vinschen <vinschen@redhat.com>
9451
9452 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9453
73dd234f
AC
94542003-04-01 Andrew Cagney <cagney@redhat.com>
9455
9456 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9457 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9458 * gdbarch.h, gdbarch.c: Re-generate.
9459 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9460 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9461 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9462 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9463 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9464 * infcmd.c (run_stack_dummy): Simplify assuming
9465 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9466 * infrun.c (handle_inferior_event): Ditto.
9467 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9468 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9469 * arm-tdep.c (arm_gdbarch_init): Ditto.
9470 * avr-tdep.c (avr_gdbarch_init): Ditto.
9471 * cris-tdep.c (cris_gdbarch_init): Ditto.
9472 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9473 * frv-tdep.c (frv_gdbarch_init): Ditto.
9474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9475 * i386-tdep.c (i386_gdbarch_init): Ditto.
9476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9478 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9480 * mips-tdep.c (mips_gdbarch_init): Ditto.
9481 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9482 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9483 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9484 * s390-tdep.c (s390_gdbarch_init): Ditto.
9485 * sh-tdep.c (sh_gdbarch_init): Ditto.
9486 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9487 * v850-tdep.c (v850_gdbarch_init): Ditto.
9488 * vax-tdep.c (vax_gdbarch_init): Ditto.
9489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9490
97606a13
DJ
94912003-04-01 Daniel Jacobowitz <drow@mvista.com>
9492
9493 * symfile.c (symfile_relocate_debug_section): Update call to
9494 bfd_simple_get_relocated_section_contents.
9495
e8ab51f7
AC
94962003-03-31 Andrew Cagney <cagney@redhat.com>
9497
9498 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9499 * gdbarch.h, gdbarch.c: Regenerate.
9500 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9501 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9502 available.
9503 * frame.h (generic_fix_call_dummy): Delete declaration.
9504 * dummy-frame.h: Update comment.
9505 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9507 fix_call_dummy.
9508 * sh-tdep.c (sh_gdbarch_init): Ditto.
9509 * s390-tdep.c (s390_gdbarch_init): Ditto.
9510 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9513 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9514 * i386-tdep.c (i386_gdbarch_init): Ditto.
9515 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9516 * frv-tdep.c (frv_gdbarch_init): Ditto.
9517 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9518 * cris-tdep.c (cris_gdbarch_init): Ditto.
9519 * avr-tdep.c (avr_gdbarch_init): Ditto.
9520 * arm-tdep.c (arm_gdbarch_init): Ditto.
9521
018d1b48
JB
95222003-03-31 J. Brobecker <brobecker@gnat.com>
9523
9524 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9525 (INIT_FRAME_AP): Likewise.
9526 (EXTRA_FRAME_INFO): Likewise.
9527
e9a2674e
AC
95282003-03-31 Andrew Cagney <cagney@redhat.com>
9529
9530 * gdbarch.sh: Include "symfile.h".
9531 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9532 * gdbarch.h, gdbarch.c: Re-generate.
9533 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9535 call_dummy_address, the default is at entry_point_address.
9536 * v850-tdep.c (v850_gdbarch_init): Ditto.
9537 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9538 * sh-tdep.c (sh_gdbarch_init): Ditto.
9539 * s390-tdep.c (s390_gdbarch_init): Ditto.
9540 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9541 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9542 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9544 * i386-tdep.c (i386_gdbarch_init): Ditto.
9545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9546 * frv-tdep.c (frv_gdbarch_init): Ditto.
9547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9548 * cris-tdep.c (cris_gdbarch_init): Ditto.
9549 * arm-tdep.c (arm_gdbarch_init): Ditto.
9550
e8a8712a
AC
95512003-03-31 Andrew Cagney <cagney@redhat.com>
9552
9553 * gdbarch.sh (CALL_DUMMY_P): Delete.
9554 * gdbarch.h, gdbarch.c: Re-generate.
9555 * inferior.h (CALL_DUMMY_P): Delete macro.
9556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9557 * vax-tdep.c (vax_gdbarch_init): Update.
9558 * v850-tdep.c (v850_gdbarch_init): Update.
9559 * sparc-tdep.c (sparc_gdbarch_init): Update.
9560 * sh-tdep.c (sh_gdbarch_init): Update.
9561 * s390-tdep.c (s390_gdbarch_init): Update.
9562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9563 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9565 * mips-tdep.c (mips_gdbarch_init): Update.
9566 * mcore-tdep.c (mcore_gdbarch_init): Update.
9567 * m68k-tdep.c (m68k_gdbarch_init): Update.
9568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9569 * ia64-tdep.c (ia64_gdbarch_init): Update.
9570 * i386-tdep.c (i386_gdbarch_init): Update.
9571 * h8300-tdep.c (h8300_gdbarch_init): Update.
9572 * frv-tdep.c (frv_gdbarch_init): Update.
9573 * d10v-tdep.c (d10v_gdbarch_init): Update.
9574 * cris-tdep.c (cris_gdbarch_init): Update.
9575 * breakpoint.c (deprecated_frame_in_dummy): Update.
9576 * avr-tdep.c (avr_gdbarch_init): Update.
9577 * alpha-tdep.c (alpha_gdbarch_init): Update.
9578 * arm-tdep.c (arm_gdbarch_init): Update.
9579 * dummy-frame.c (dummy_frame_this_id): Update comments.
9580 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9581 * frame.c (legacy_get_prev_frame): Ditto.
9582 * valops.c (call_function_by_hand): Delete function.
9583 (hand_function_call): Rename to call_function_by_hand
9584
ed234cf8
AC
95852003-03-30 Andrew Cagney <cagney@redhat.com>
9586
9587 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9588 * value.h (struct value): Update comment.
ed234cf8 9589
06c77151
AC
95902003-03-30 Andrew Cagney <cagney@redhat.com>
9591
6c2b5168
AC
9592 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9593 D10V_FP_REGNUM.
9594 (d10v_gdbarch_init): Do not set fp_regnum.
9595
06c77151
AC
9596 * frame.c (get_frame_base): Force ID initialization.
9597 (get_prev_frame): Move computation of the frame ID from here ...
9598 (get_frame_id): ... to here.
9599 (legacy_get_prev_frame): Mark the frame ID as valid.
9600 * frame.h (struct frame_info): Add field "id_p".
9601
97a1a11c
MK
96022003-03-30 Mark Kettenis <kettenis@gnu.org>
9603
9604 * i386-tdep.c (i386_store_struct_return): Removed.
9605 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9606
6c0e89ed
AC
96072003-03-30 Andrew Cagney <cagney@redhat.com>
9608
9609 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9610 * gdbarch.h, gdbarch.c: Regenerate.
9611 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9613 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9614 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9615 * i386-tdep.c (i386_gdbarch_init): Ditto.
9616 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9617 * cris-tdep.c (cris_gdbarch_init): Ditto.
9618 * vax-tdep.c (vax_gdbarch_init): Ditto.
9619 * s390-tdep.c (s390_gdbarch_init): Ditto.
9620 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9622 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9623 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9624 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9625 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9626 * sparc-tdep.c (sparc_gdbarch_init): Update.
9627 * sh-tdep.c (sh_gdbarch_init): Update.
9628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9629 * mips-tdep.c (mips_gdbarch_init): Update.
9630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9631 * ia64-tdep.c (ia64_gdbarch_init): Update.
9632 * frv-tdep.c (frv_gdbarch_init): Update.
9633 * avr-tdep.c (avr_gdbarch_init): Update.
9634 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9635 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9636 instead of when push_dummy_call is not available.
8ffd9b1b 9637
f7dd6af2
AC
96382003-03-30 Andrew Cagney <cagney@redhat.com>
9639
9640 * infttrace.c: Include "gdbthread.h".
9641 (parent_attach_all): Fix function signature.
9642 (call_ptrace): Update call.
9643 * Makefile.in (infttrace.o): Update dependencies.
9644
28f617b3
AC
96452003-03-30 Andrew Cagney <cagney@redhat.com>
9646
9647 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9648 PUSH_RETURN_ADDRESS.
9649 * gdbarch.h, gdbarch.c: Regenerate.
9650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9651 * x86-64-tdep.c (x86_64_init_abi): Update.
9652 * v850-tdep.c (v850_gdbarch_init): Update.
9653 * sparc-tdep.c (sparc_gdbarch_init): Update.
9654 * sh-tdep.c (sh_gdbarch_init): Update.
9655 * s390-tdep.c (s390_gdbarch_init): Update.
9656 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9658 * mips-tdep.c (mips_gdbarch_init): Update.
9659 * mcore-tdep.c (mcore_gdbarch_init): Update.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9661 * ia64-tdep.c (ia64_gdbarch_init): Update.
9662 * i386-tdep.c (i386_gdbarch_init): Update.
9663 * h8300-tdep.c (h8300_gdbarch_init): Update.
9664 * frv-tdep.c (frv_gdbarch_init): Update.
9665 * cris-tdep.c (cris_gdbarch_init): Update.
9666 * avr-tdep.c (avr_gdbarch_init): Update.
9667 * arm-tdep.c (arm_gdbarch_init): Update.
9668 * valops.c (hand_function_call): Update.
9669
4d628cd7
AC
96702003-03-29 Andrew Cagney <cagney@redhat.com>
9671
9672 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9673 sizeof_call_dummy_words.
9674 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9675 define.
9676 * gdbarch.h: Regenerate.
8ffd9b1b 9677
65e82032
AC
96782003-03-29 Andrew Cagney <cagney@redhat.com>
9679
9680 * infttrace.h: New file.
9681 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9682 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9683 (hpread_read_doc_function_type): Detect an initialized type1.
9684 (hpread_quick_traverse): Initialize mod_name_string.
9685 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9686 (som_solib_get_solib_by_pc): Declare.
9687 (so_lib_thread_start_addr): Declare.
9688 (no_shared_libraries): Declare.
9689 * somread.c (init_import_symbols): Make static. Add forward
9690 declaration.
9691 * config/pa/nm-hppah.h: Include "infttrace.h" for
9692 parent_attach_all.
9693 (hppa_insert_hw_watchpoint): Declare.
9694 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9695 * hppah-nat.c: Include "gdb_string.h".
9696 (parent_attach_all): Delete extern declaration, moved to
9697 "infttrace.h".
9698 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9699 int.
9700 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9701 * Makefile.in (infttrace_h): Define.
9702 (hpread.o): Update dependencies.
9703 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9704 * hppa-hpux-tdep.c: Include "gdb_string.h".
9705 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9706 * infrun.c (handle_inferior_event): Always initialize
9707 stepped_after_stopped_by_watchpoint. Add default and remove
9708 fallthrough in switch statement.
9709 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9710 parameter to int.
9711 (hppa_remove_hw_watchpoint): Ditto.
9712
2c3bbe77
AC
97132003-03-29 Andrew Cagney <cagney@redhat.com>
9714
9715 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9716 offset.
9717
2dd604e7
RE
97182003-03-29 Richard Earnshaw <rearnsha@arm.com>
9719
9720 * arm-tdep.c (arm_push_arguments): Delete.
9721 (struct stack_item): New type.
9722 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9723 (arm_store_struct_return): Delte.
9724 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9725 arm_push_arguments or arm_store_struct_return.
9726
e8933a55
AC
97272003-03-28 Andrew Cagney <cagney@redhat.com>
9728
9729 * Makefile.in (d10v-tdep.o): Update dependencies.
9730 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9731 * d10v-tdep.c: Include "remote.h".
9732 (target_resume_hook): Delete extern declaration.
9733 (target_wait_loop_hook): Ditto.
9734 (tdisassemble_command): Eliminate assignment in "if" conditional.
9735 (d10v_ts2_register_sim_regno): Eliminate call to
9736 legacy_register_sim_regno.
9737 (d10v_ts3_register_sim_regno): Ditto.
9738
6949171e
JJ
97392003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9740
9741 * thread.c: Reindented.
9742 * lin-lwp.c: Ditto.
9743 * linux-proc.c: Ditto.
9744
98c7071f
BR
97452003-03-28 Bob Rossi <bob_rossi@cox.net>
9746
fbe586ae 9747 * MAINTAINERS (write after approval): Add myself.
98c7071f 9748
5edc9ca6
TR
97492003-03-27 Theodore A. Roth <troth@openavr.org>
9750
9751 * objc-exp.y: Add missing semi-colons.
9752
378bfd1b
AC
97532003-03-27 Andrew Cagney <cagney@redhat.com>
9754
9755 * regcache.c (write_sp): Delete function and references.
9756 * inferior.h (write_sp): Delete declaration.
9757 * valops.c (hand_function_call): Replace write_sp with
9758 TARGET_WRITE_SP.
9759 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9760 (sparc_pop_frame): Ditto.
8ffd9b1b 9761
56056df7
AC
97622003-03-27 Andrew Cagney <cagney@redhat.com>
9763
9764 * NEWS: Mention removal of support for hppa*-*-bsd* and
9765 hppa*-*-osf* natives, and hppa*-*-pro* target.
9766 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9767 * config/pa/xm-pa.h: Obsolete file.
9768 * config/pa/xm-hppab.h: Obsolete file.
9769 * config/pa/nm-hppab.h: Obsolete file.
9770 * config/pa/tm-hppab.h: Obsolete file.
9771 * config/pa/tm-hppao.h: Obsolete file.
9772 * config/pa/nm-hppao.h: Obsolete file.
9773 * config/pa/tm-pro.h: Obsolete file.
9774 * config/pa/hppaosf.mt: Obsolete file.
9775 * config/pa/hppaosf.mh: Obsolete file.
9776 * config/pa/hppapro.mt: Obsolete file.
9777 * config/pa/hppabsd.mt: Obsolete file.
9778 * config/pa/hppabsd.mh: Obsolete file.
9779 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9780 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9781 hppa*-*-osf*.
9782
5873a88d
AC
97832003-03-27 Andrew Cagney <cagney@redhat.com>
9784
9785 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9786 push_arguments. Don't set push_return_address or write_sp.
9787 (d10v_push_dummy_call): Replace d10v_push_arguments.
9788 (d10v_push_return_address, d10v_write_sp): Delete function,
9789 handled by push_dummy_call.
9790
b81774d8
AC
97912003-03-26 Andrew Cagney <cagney@redhat.com>
9792
9793 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9794 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9795 regcache and dummy_addr parameters.
9796 * gdbarch.h, gdbarch.c: Re-generate.
9797 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9798 available; assume it will handle stack alignment and return
9799 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9800 legacy_push_arguments.
9801 (legacy_push_arguments): Rename default_push_arguments.
9802 * value.h (legacy_push_arguments): Rename default_push_arguments.
9803 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9804 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9805 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9806 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9807 * config/i386/tm-symmetry.h: Update.
9808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9809 * x86-64-tdep.c (x86_64_init_abi): Update.
9810 * v850-tdep.c (v850_gdbarch_init): Update.
9811 * sparc-tdep.c (sparc_gdbarch_init): Update.
9812 * sh-tdep.c (sh_gdbarch_init): Update.
9813 * s390-tdep.c (s390_gdbarch_init): Update.
9814 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9815 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9816 * mips-tdep.c (mips_gdbarch_init): Update.
9817 * mcore-tdep.c (mcore_gdbarch_init): Update.
9818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9819 * ia64-tdep.c (ia64_gdbarch_init): Update.
9820 * i386-tdep.c (i386_gdbarch_init): Update.
9821 * hppa-tdep.c (hppa_gdbarch_init): Update.
9822 * h8300-tdep.c (h8300_gdbarch_init): Update.
9823 * frv-tdep.c (frv_gdbarch_init): Update.
9824 * d10v-tdep.c (d10v_gdbarch_init): Update.
9825 * cris-tdep.c (cris_gdbarch_init): Update.
9826 * avr-tdep.c (avr_gdbarch_init): Update.
9827 * arm-tdep.c (arm_gdbarch_init): Update.
9828 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9829 * alpha-tdep.c (alpha_gdbarch_init): Update.
9830
f541410f
DJ
98312003-03-26 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * signals/signals.c (do_target_signal_to_host): Correct realtime
9834 signal range test.
9835
69f567ae
DJ
98362003-03-26 Daniel Jacobowitz <drow@mvista.com>
9837
9838 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9839 (struct sal_chain, map_catch_names): Remove.
9840 (catch_exception_command_1): Don't call
9841 handle_gnu_4_16_catch_command.
9842
d5d14a5a
DJ
98432003-03-26 Daniel Jacobowitz <drow@mvista.com>
9844
9845 From Mark Dettinger <dettinge@de.ibm.com>:
9846 * dwarf2cfi.c (read_2u): Increment pointer by two.
9847
bdd73e22
DJ
98482003-03-26 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * signals/signals.c: Fix typos in last change.
9851
960cb555
DJ
98522003-03-26 Daniel Jacobowitz <drow@mvista.com>
9853
9854 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9855 not already defined. Use __SIGRTMIN if available.
9856 (target_signal_from_host): Remove SIGRTMIN block.
9857 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9858 the signal is within the realtime range.
9859
f636b87d
AF
98602003-03-25 Adam Fedor <fedor@gnu.org>
9861
9862 * Makefile.in (infrun.o): Add $(language_h)
9863 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9864 for language specific trampolines.
9865 * language.h (struct language_defn): Add skip_trampoline.
9866 (skip_language_trampoline): Declare.
9867 * language.c (unk_lang_trampoline, skip_language_trampoline):
9868 New functions.
9869 (unknown_language_defn, auto_language_defn, local_language_defn):
9870 Add ukn_lang_trampoline.
9871 * ada-lang.c (ada_language_defn): Add NULL for language
9872 specific skip_trampoline.
9873 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9874 scm-lang.c: Likewise.
9875 * objc-lang.c (objc_skip_trampoline): New function.
9876 (objc_language_defn): Add objc_skip_trampoline.
9877
28f617b3 98782003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9879
9880 * frame.c (get_prev_frame): Delay validating a frame's ID -
9881 non-NULL, didn't go backwards - until an attempt to unwind it to
9882 the previous frame.
9883
f933a9c5
AC
98842003-03-25 Andrew Cagney <cagney@redhat.com>
9885
9886 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9887 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9888 * gdbarch.h, gdbarch.c: Re-generate.
9889 * config/sparc/tm-sparc.h
9890 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9891 * sparc-tdep.c (sparc_gdbarch_init): Set
9892 deprecated_extra_stack_alignment_needed.
9893 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9895 extra_stack_alignment_needed.
9896 * v850-tdep.c (v850_gdbarch_init): Ditto.
9897 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9898 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9899 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9900 * cris-tdep.c (cris_gdbarch_init): Ditto.
9901 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9903
4183d812
AC
99042003-03-25 Andrew Cagney <cagney@redhat.com>
9905
9906 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9907 STORE_STRUCT_RETURN.
9908 * gdbarch.h, gdbarch.c: Regenerate.
9909 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9910 (d10v_push_arguments): Set the struct return register.
9911 (d10v_gdbarch_init): Update.
9912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9913 * x86-64-tdep.c (x86_64_init_abi): Update.
9914 * vax-tdep.c (vax_gdbarch_init): Update.
9915 * v850-tdep.c (v850_gdbarch_init): Update.
9916 * sparc-tdep.c (sparc_gdbarch_init): Update.
9917 * sh-tdep.c (sh_gdbarch_init): Update.
9918 * s390-tdep.c (s390_gdbarch_init): Update.
9919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9922 * mips-tdep.c (mips_gdbarch_init): Update.
9923 * mcore-tdep.c (mcore_gdbarch_init): Update.
9924 * m68k-tdep.c (m68k_gdbarch_init): Update.
9925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9926 * ia64-tdep.c (ia64_gdbarch_init): Update.
9927 * i386-tdep.c (i386_gdbarch_init): Update.
9928 * hppa-tdep.c (hppa_gdbarch_init): Update.
9929 * h8300-tdep.c (h8300_gdbarch_init): Update.
9930 * frv-tdep.c (frv_gdbarch_init): Update.
9931 * cris-tdep.c (cris_gdbarch_init): Update.
9932 * avr-tdep.c (avr_gdbarch_init): Update.
9933 * arm-tdep.c (arm_gdbarch_init): Update.
9934 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9935
1bf6d5cc
AC
99362003-03-25 Andrew Cagney <cagney@redhat.com>
9937
9938 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9939 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9940 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9941 * gdbarch.h, gdbarch.c: Regenerate.
9942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9943 call_dummy_stack_adjust_p.
9944 * vax-tdep.c (vax_gdbarch_init): Ditto.
9945 * v850-tdep.c (v850_gdbarch_init): Ditto.
9946 * sh-tdep.c (sh_gdbarch_init): Ditto.
9947 * s390-tdep.c (s390_gdbarch_init): Ditto.
9948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9949 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9951 * mips-tdep.c (mips_gdbarch_init): Ditto.
9952 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9953 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9955 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9956 * i386-tdep.c (i386_gdbarch_init): Ditto.
9957 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9958 * frv-tdep.c (frv_gdbarch_init): Ditto.
9959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9960 * cris-tdep.c (cris_gdbarch_init): Ditto.
9961 * avr-tdep.c (avr_gdbarch_init): Ditto.
9962 * arm-tdep.c (arm_gdbarch_init): Ditto.
9963 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9964 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9965 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9966 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9967 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9968 call_dummy_stack_adjust_p.
9969 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9970 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9971 * sparc-tdep.c (sparc32_push_arguments): Update.
9972 * valops.c (hand_function_call): Update.
9973
71c08af0
CV
99742003-03-25 Corinna Vinschen <vinschen@redhat.com>
9975
9976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9977 set_gdbarch_char_signed.
9978
30757f90
RE
99792003-03-25 Richard Earnshaw <rearnsha@arm.com>
9980
9981 PR cli/548
9982 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9983
03d48a7d
RE
99842003-03-25 Richard Earnshaw <rearnsha@arm.com>
9985
9986 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9987 (_initialize_arm_tdep): Don't set tm_print_insn.
9988
2cf6873c
AF
99892003-03-24 Adam Fedor <fedor@gnu.org>
9990
9991 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9992 * objc-lang.h: Add multiple inclusion protection.
9993 (start_msglist, add_msglist, end_msglist): Additional declarations.
9994
17c0759e
RE
99952003-03-24 Richard Earnshaw <rearnsha@arm.com>
9996
9997 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9998 value was renamed to ARM_FLOAT_SOFT_FPA.
9999
618ce49f
AC
100002003-03-23 Andrew Cagney <cagney@redhat.com>
10001
10002 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10003 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10004 * gdbarch.h, gdbarch.c: Regenerate.
10005 * valops.c (hand_function_call): Update.
10006 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10007 * frame.c (legacy_saved_regs_this_id): Update.
10008 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10009 * dummy-frame.h: Update.
10010 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10011 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10012 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10013 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10014 * config/m68k/tm-sun3.h: Update.
10015 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10017 * x86-64-tdep.c (x86_64_init_abi): Update.
10018 * vax-tdep.c (vax_gdbarch_init): Update.
10019 * v850-tdep.c (v850_gdbarch_init): Update.
10020 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10021 * sh-tdep.c (sh_gdbarch_init): Update.
10022 * s390-tdep.c (s390_gdbarch_init): Update.
10023 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10024 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10025 (frame_get_saved_regs): Update.
10026 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10029 * mips-tdep.c (mips_gdbarch_init): Update.
10030 * mcore-tdep.c (mcore_gdbarch_init): Update.
10031 * m68k-tdep.c (m68k_gdbarch_init): Update.
10032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10033 * ia64-tdep.c (ia64_gdbarch_init): Update.
10034 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10035 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10036 (i386_interix_back_one_frame): Update.
10037 * hppa-tdep.c (hppa_gdbarch_init): Update.
10038 (hppa_init_extra_frame_info): Update.
10039 * h8300-tdep.c (h8300_gdbarch_init): Update.
10040 * frv-tdep.c (frv_gdbarch_init): Update.
10041 * cris-tdep.c (cris_gdbarch_init): Update.
10042 * avr-tdep.c (avr_gdbarch_init): Update.
10043 * arm-tdep.c (arm_gdbarch_init): Update.
10044 * alpha-tdep.c (alpha_gdbarch_init): Update.
10045
fd50bc42
RE
100462003-03-22 Richard Earnshaw <rearnsha@arm.com>
10047
10048 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10049 (arm_get_fp_model): Declare.
10050 * arm-tdep.c (fp_model_strings): New string array.
10051 (arm_fp_model, current_fp_model): New variables.
10052 (arm_get_fp_model): New function.
10053 (arm_set_fp): New function.
10054 (set_fp_model_sfunc): New function.
10055 (show_fp_model): New function.
10056 (_initialize_arm_tdep): Add new command to set/show the FPU.
10057 (arm_extract_return_value): Use arm_get_fp_model.
10058 (arm_store_return_value): Likewise.
10059 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10060 to initialize the floating-point data types.
10061 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10062 model is FPA.
10063
26304000
RE
100642003-03-22 Richard Earnshaw <rearnsha@arm.com>
10065
10066 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10067 the current setting of each value.
10068 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10069 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10070 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10071 commands and add new version as subcommands of "set/show arm".
10072
afd7eef0
RE
100732003-03-22 Richard Earnshaw <rearnsha@arm.com>
10074
10075 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10076 (set_arm_command, show_arm_command): New functions.
10077 (_initialize_arm_tdep): Add them.
10078 (num_disassembly_options): Renamed from num_flavor_options.
10079 (valid_disassembly_styles): Renamed from valid_flavors.
10080 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10081 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10082 set_disassembly_flavor_sfunc.
10083 (set_disassembly_style): Renamed from set_disassembly_flavor.
10084 (arm_othernames): Updated.
10085 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10086 command. Add "set/show arm disassembly" commands. Deprecate
10087 "othernames" command.
10088
299a7944
RE
100892003-03-22 Richard Earnshaw <rearnsha@arm.com>
10090
10091 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10092 (arm-tdep.o): Depend on elf_arm_h.
10093
c1dac9e6
RE
100942003-03-22 Richard Earnshaw <rearnsha@arm.com>
10095
10096 * Makefile.in (coff_internal_h): Define.
10097 (arm-tdep.o): Update dependencies.
10098
2702d96c
RE
100992003-03-22 Richard Earnshaw <rearnsha@arm.com>
10100
10101 * arm-tdep.c (prologue_cache): Delete.
10102 (check_prologue_cache, save_prologue_cache): Delete.
10103 (arm_scan_prologue): Don't check or update the prologue_cache.
10104 (arm_gdb_arch_init): Don't initialize it.
10105 (_initialize_arm_tdep): Likewise.
10106
27d5d74b
SC
101072003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10108
10109 * MAINTAINERS (tui): Maintainer of tui code.
10110
1762d96d
CV
101112003-03-21 Corinna Vinschen <vinschen@redhat.com>
10112
10113 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10114 (i386-cygwin-tdep.o): Add dependencies.
10115 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10116 * i386-cygwin-tdep.c: New file.
10117 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10118 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10119
4c2e2391
AC
101202003-03-20 Andrew Cagney <cagney@redhat.com>
10121
f20d38b7
AC
10122 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10123 (handle_inferior_event): Remove code calling
10124 DYNAMIC_TRAMPOLINE_NEXTPC.
10125
0022b738
AC
10126 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10127 already has a full path.
10128
864dbc90
AC
10129 * main.c (gdb_main): Return 1.
10130 (captured_main): Call error to report an invalid interpreter.
10131
4c2e2391
AC
10132 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10133 * alpha-osf1-tdep.c: Include "gdb_string.h".
10134
5ef7553b
JB
101352003-03-19 J. Brobecker <brobecker@gnat.com>
10136
10137 Continuing work to convert the hppa targets to multiarch partial.
10138
10139 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10140 method, now that hppa_push_dummy_frame has a conformant prototype.
10141 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10142 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10143 for the switch to multiarch partial.
10144
7bde8967
KB
101452003-03-19 Kevin Buettner <kevinb@redhat.com>
10146
10147 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10148 when iss is issNull.
10149
b006a9e9
KB
101502003-03-18 Kevin Buettner <kevinb@redhat.com>
10151
10152 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10153 NUM_REGS bounds check.
10154
5e2e9765
KB
101552003-03-18 Kevin Buettner <kevinb@redhat.com>
10156
10157 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10158 * mips-tdep.c (gdb_assert.h): Include.
10159 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10160 (mips_register_name): Handle integer registers explicitly. Add
10161 bounds checking.
10162 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10163 (mips_lsi33k_reg_names): Don't list integer registers; they're
10164 handled by mips_register_name() now.
10165 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10166 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10167 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10168 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10169 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10170
a2867626
AC
101712003-03-18 Andrew Cagney <cagney@redhat.com>
10172
10173 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10174 a void pointer.
10175 * gdbtypes.h (print_scalar_formatted): Update declaration.
10176 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10177
06600e06
JB
101782003-03-18 J. Brobecker <brobecker@gnat.com>
10179
10180 * infrun.c (observer.h): Add #include.
10181 (normal_stop): Add call to observer_notify_normal_stop.
10182 * Makefile.in (infrun.o): Add dependency on observer.h.
10183
7daf4f5b
JB
101842003-03-18 J. Brobecker <brobecker@gnat.com>
10185
10186 Continuing work to convert the hppa targets to multiarch partial.
10187 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10188 parameter. Reformat comment.
10189 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10190 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10191 to match new profile.
10192
3371ccc0
JB
101932003-03-18 J. Brobecker <brobecker@gnat.com>
10194
10195 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10196 appear to be working in any case.
10197
4fbe891e
JB
101982003-03-18 J. Brobecker <brobecker@gnat.com>
10199
10200 * observer.c (observer_test_first_observer): New static variable.
10201 (observer_test_second_observer): Likewise.
10202 (observer_test_third_observer): Likewise.
10203 (observer_test_first_notification_function): New static function.
10204 (observer_test_second_notification_function): Likewise.
10205 (observer_test_third_notification_function): Likewise.
10206
a7ff40e7
JB
102072003-03-17 J. Brobecker <brobecker@gnat.com>
10208
10209 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10210 * somsolib.c (gdb_assert.h): Likewise.
10211 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10212 (somsolib.o): Likewise.
10213
26ca4152
AC
102142003-03-17 Andrew Cagney <cagney@redhat.com>
10215
10216 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10217 BFD. Simplify setting of di.endian.
10218
0a613259
AC
102192003-03-17 Andrew Cagney <cagney@redhat.com>
10220
10221 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10222 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10223
10224 From Elena Zannoni <ezannoni@redhat.com>
10225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10226 vector and floating-point parameters.
10227 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10228 convention.
10229 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10230
1132738f
FN
102312003-03-17 Fernando Nasser <fnasser@redhat.com>
10232
10233 * MAINTAINERS: Remove my name from several maintainership roles.
10234
6dc42492
AC
102352003-03-17 Andrew Cagney <cagney@redhat.com>
10236
10237 Fix frame off-by-one bug.
10238 * frame-unwind.h (frame_this_id_ftype): Replace
10239 frame_unwind_id_ftype.
10240 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10241 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10242 with "prev_register".
10243 * frame-unwind.c (frame_unwind_find_by_pc): Return
10244 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10245 comment.
10246 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10247 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10248 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10249 (dummy_frame_unwind): Update.
10250 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10251 sentinel_frame_register_unwind.
10252 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10253 (sentinel_frame_unwinder): Update.
10254 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10255 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10256 * frame.c (create_sentinel_frame): Update. Initialize
10257 "prologue_cache" instead of "unwind_cache".
10258 (frame_register_unwind): Call this frame's prev_register with the
10259 next frame and this frame's prologue cache.
10260 (get_prev_frame): Simplify. Always call prev frame's this_id with
10261 this frame and prev frame's prologue cache. Document that this
10262 call is shifted one to the left when compared to the
10263 frame_register_unwind call.
10264 (legacy_saved_regs_prev_register): Replace
10265 frame_saved_regs_register_unwind.
10266 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10267 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10268 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10269 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10270 (d10v_frame_unwind): Update.
10271 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10272 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10273 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10274 "saved_regs" with "this_saved_regs".
10275
efd710d6
AC
102762003-03-16 Andrew Cagney <cagney@redhat.com>
10277
10278 * frame.c (frame_pop): Don't call target_store_registers. Fix
10279 problem reported by Mark Kettenis.
10280
4e259f09
MK
102812003-03-16 Mark Kettenis <kettenis@gnu.org>
10282
10283 * i386-tdep.c (i386_register_type): Renamed from
10284 i386_register_virtual_type. Adjust function signature.
10285 (i386_gdbarch_init): Set register_type instead of
10286 deprecated_max_register_raw_size,
10287 deprecated_max_register_virtual_size and register_virtual_type.
10288
055bb976
AC
102892003-03-14 Andrew Cagney <cagney@redhat.com>
10290
10291 * frame.c (get_prev_frame): When a legacy frame, always call
10292 legacy_get_prev_frame. Simplify unwind code using assumption that
10293 the unwinder is new.
10294 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10295 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10296 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10297
ac2adee5
AC
102982003-03-14 Andrew Cagney <cagney@redhat.com>
10299
10300 * frame.c (get_saved_register): Delete function.
10301 * frame.h (get_saved_register): Delete declaration.
10302 * xstormy16-tdep.c: Update comment.
10303 * regcache.h: Update comments.
10304 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10305 get_saved_register and extract_address, use
10306 frame_read_unsigned_register.
10307 (sparc_frame_saved_pc): Ditto.
10308 (sparc_get_saved_register): Instead of get_saved_register, use
10309 frame_register.
10310 (sparc_pop_frame): Ditto.
10311 * findvar.c: Update comments.
10312 (value_of_register): Call frame_register instead of
10313 get_saved_register.
10314 (value_from_register): Ditto.
10315 * config/sparc/tm-sparc.h: Update comment.
10316 * breakpoint.c: Update comment.
10317
129c1cd6
AC
103182003-03-14 Andrew Cagney <cagney@redhat.com>
10319
10320 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10321 GET_SAVED_REGISTER.
10322 * gdbarch.h, gdbarch.c: Re-generate.
10323 * frame.h: Update comments.
10324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10325 * x86-64-tdep.c (x86_64_init_abi): Update.
10326 * sparc-tdep.c (sparc_gdbarch_init): Update.
10327 * sh-tdep.c (sh_gdbarch_init): Update.
10328 * mips-tdep.c (mips_gdbarch_init): Update.
10329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10330 * cris-tdep.c (cris_gdbarch_init): Update.
10331 * ia64-tdep.c (ia64_gdbarch_init): Update.
10332 * frame.c (frame_register): Update.
10333 (get_saved_register): Update.
10334 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10335
749b82f6
AC
103362003-03-13 Andrew Cagney <cagney@redhat.com>
10337
10338 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10339 * gdbarch.h, gdbarch.c: Regenerate.
10340 * valops.c (hand_function_call): Update comment.
10341 * stack.c (return_command): Update comment.
10342 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10343 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10345 * x86-64-tdep.c (x86_64_init_abi): Update.
10346 * vax-tdep.c (vax_gdbarch_init): Update.
10347 * v850-tdep.c (v850_gdbarch_init): Update.
10348 * sparc-tdep.c (sparc_gdbarch_init): Update.
10349 * sh-tdep.c (sh_gdbarch_init): Update.
10350 * s390-tdep.c (s390_gdbarch_init): Update.
10351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10352 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10354 * mips-tdep.c (mips_gdbarch_init): Update.
10355 * mcore-tdep.c (mcore_gdbarch_init): Update.
10356 * m68k-tdep.c (m68k_gdbarch_init): Update.
10357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10358 * ia64-tdep.c (ia64_gdbarch_init): Update.
10359 * i386-tdep.c (i386_gdbarch_init): Update.
10360 * hppa-tdep.c (hppa_gdbarch_init): Update.
10361 * h8300-tdep.c (h8300_gdbarch_init): Update.
10362 * frv-tdep.c (frv_gdbarch_init): Update.
10363 * cris-tdep.c (cris_gdbarch_init): Update.
10364 * avr-tdep.c (avr_gdbarch_init): Update.
10365 * arm-tdep.c (arm_gdbarch_init): Update.
10366 * alpha-tdep.c (alpha_gdbarch_init): Update.
10367
1594fa56
AC
103682003-03-13 Andrew Cagney <cagney@redhat.com>
10369
10370 * frame.c (legacy_frame_p): New function.
10371 (get_prev_frame): Use legacy_frame_p.
10372 * frame.h (legacy_frame_p): Declare.
10373
7717fda3
V
103742003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10375
fbe586ae 10376 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10377 listing corrected.
10378
0c67cbe9
V
103792003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10380
fbe586ae 10381 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10382
03febf99
AC
103832003-03-12 Andrew Cagney <cagney@redhat.com>
10384
10385 * frame.c (get_prev_frame): Rename the frame parameter to
10386 "this_frame".
10387 (get_next_frame, legacy_get_prev_frame): Ditto.
10388
0a1e1ca1
AC
103892003-03-12 Andrew Cagney <cagney@redhat.com>
10390
10391 * frame.c (get_current_frame): Check target_has_registers before
10392 checking target_has_stack.
10393 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10394 instead of deprecated_selected_frame.
10395 * findvar.c (value_of_register): Pass "frame", not
10396 deprecated_selected_frame, to value_of_builtin_reg.
10397
a66a9c23
AC
103982003-03-12 Andrew Cagney <cagney@redhat.com>
10399
10400 * regcache.c (regcache_cooked_write_signed): New function.
10401 (regcache_cooked_write_unsigned): New function.
10402 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10403 (regcache_cooked_read_signed): Fix regnum in range assertion.
10404 * regcache.h (regcache_cooked_write_signed): Declare.
10405 (regcache_cooked_write_unsigned): Declare.
10406
8bedc050
AC
104072003-03-12 Andrew Cagney <cagney@redhat.com>
10408
10409 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10410 * gdbarch.h, gdbarch.c: Re-generate.
10411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10412 * x86-64-tdep.h: Update.
10413 * x86-64-tdep.c (x86_64_init_abi): Update.
10414 * v850-tdep.c (v850_gdbarch_init): Update.
10415 * sparc-tdep.c (sparc_gdbarch_init): Update.
10416 * sh-tdep.c (sh_gdbarch_init): Update.
10417 * s390-tdep.c (s390_gdbarch_init): Update.
10418 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10419 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10420 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10421 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10422 * mips-tdep.c (mips_gdbarch_init): Update.
10423 * mcore-tdep.c (mcore_gdbarch_init): Update.
10424 * m68k-tdep.c (m68k_gdbarch_init): Update.
10425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10426 * ia64-tdep.c (ia64_gdbarch_init): Update.
10427 * i386-tdep.c (i386_gdbarch_init): Update.
10428 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10429 * hppa-tdep.c (hppa_gdbarch_init): Update.
10430 * h8300-tdep.c (h8300_gdbarch_init): Update.
10431 * frv-tdep.c (frv_gdbarch_init): Update.
10432 * cris-tdep.c (cris_gdbarch_init): Update.
10433 * avr-tdep.c (avr_gdbarch_init): Update.
10434 * arm-tdep.c (arm_gdbarch_init): Update.
10435 * alpha-tdep.c (alpha_gdbarch_init): Update.
10436 * sh-tdep.c (sh_init_extra_frame_info): Update.
10437 (sh64_init_extra_frame_info): Update.
10438 * ns32knbsd-nat.c (frame_num_args): Update.
10439 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10440 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10441 (xstormy16_frame_chain_valid): Update.
10442 * vax-tdep.c (vax_saved_pc_after_call): Update.
10443 * v850-tdep.c (v850_frame_chain): Update.
10444 (v850_pop_frame): Update.
10445 (v850_init_extra_frame_info): Update.
10446 * sparc-tdep.c (setup_arbitrary_frame): Update.
10447 * ns32k-tdep.c (umax_frame_num_args): Update.
10448 * s390-tdep.c (s390_pop_frame_regular): Update.
10449 * mn10300-tdep.c (mn10300_frame_chain): Update.
10450 (mn10300_pop_frame_regular): Update.
10451 (mn10300_init_extra_frame_info): Update.
10452 * mips-tdep.c (mips_init_frame_pc_first): Update.
10453 (mips_frame_chain): Update.
10454 (mips_pop_frame): Update.
10455 * mcore-tdep.c (mcore_frame_chain): Update.
10456 (mcore_pop_frame): Update.
10457 (mcore_init_extra_frame_info): Update.
10458 * arch-utils.c (init_frame_pc_default): Update.
10459 * m68k-tdep.c (isi_frame_num_args): Update.
10460 (delta68_frame_num_args): Update.
10461 (news_frame_num_args): Update.
10462 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10463 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10464 (alpha_frame_chain): Update.
10465 (alpha_pop_frame): Update.
10466 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10467 (hppa_init_extra_frame_info): Update.
10468 (hppa_frame_chain): Update.
10469 (hppa_frame_chain_valid): Update.
10470 * cris-tdep.c (cris_init_extra_frame_info): Update.
10471 * avr-tdep.c (avr_init_extra_frame_info): Update.
10472 * arm-tdep.c (arm_frame_chain_valid): Update.
10473 (arm_init_extra_frame_info): Update.
10474 (arm_pop_frame): Update.
10475 * frame.c (frame_pc_unwind): Update.
10476 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10477 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10478 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10479 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10480 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10481 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10482
7a25a7c1
AC
104832003-03-12 Andrew Cagney <cagney@redhat.com>
10484
10485 Eliminate the need for POP_FRAME.
10486 * frame.c (do_frame_unwind_register): New function.
10487 (frame_pop): When no POP_FRAME, pop the frame using register
10488 unwind and a scratch regcache.
10489 (frame_saved_regs_pop): Delete function.
10490 (trad_frame_unwinder): Update.
10491 * d10v-tdep.c (d10v_frame_pop): Delete function.
10492 (d10v_frame_unwind): Update.
10493 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10494 (sentinel_frame_unwinder): Update.
10495 * dummy-frame.c (dummy_frame_pop): Delete function.
10496 (dummy_frame_unwind): Update.
10497 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10498 (struct frame_unwind): Update.
10499
2f38ef89
KB
105002003-03-11 Kevin Buettner <kevinb@redhat.com>
10501
10502 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10503 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10504 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10505 Do range checks on register number obtained from debugging info.
10506 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10507 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10508 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10509 mapping function.
10510 (do_fp_register_row): Fix typo which caused double type to be
10511 used when attempting to unpack a float.
10512
552f4abf
JB
105132003-03-11 J. Brobecker <brobecker@gnat.com>
10514
10515 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10516
e0d2ae16
AC
105172003-03-11 Andrew Cagney <cagney@redhat.com>
10518
10519 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10520 frame. Problem found by Corinna Vinschen.
10521
ddbfdd06
PM
105222003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10523
10524 * doublest.c (floatformat_from_length): Accept also
10525 the real size of 'long double' type.
10526
088b2ddc 105272003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10528
088b2ddc 10529 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10530 * breakpoint.c (bpstat_copy): Copy the command lines as well
10531 as the old value, to match what is freed in bpstat_clear.
10532
f56f77c1
DC
105332003-03-10 David Carlton <carlton@math.stanford.edu>
10534
10535 * minsyms.c (add_minsym_to_hash_table): Replace
10536 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10537 (compare_minimal_symbols, compact_minimal_symbols)
10538 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10539 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10540 of DEPRECATED_SYMBOL_MATCHES_NAME.
10541 (lookup_minimal_symbol_solib_trampoline): Ditto.
10542
5602984a
AC
105432003-03-10 Andrew Cagney <cagney@redhat.com>
10544
10545 * regcache.h (regcache_cooked_read_ftype): Define.
10546 (regcache_save, regcache_restore): Add a cooked_read parameter.
10547 * regcache.c (regcache_save, regcache_restore): Update.
10548 (do_cooked_read): New function.
10549 (regcache_cpy): Pass do_cooked_read to regcache_save and
10550 regcache_restore.
10551
8bedc050
AC
105522003-03-10 Andrew Cagney <cagney@redhat.com>
10553
10554 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10555 * gdbarch.h, gdbarch.c: Re-generate.
10556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10557 * x86-64-tdep.h: Update.
10558 * x86-64-tdep.c (x86_64_init_abi): Update.
10559 * v850-tdep.c (v850_gdbarch_init): Update.
10560 * sparc-tdep.c (sparc_gdbarch_init): Update.
10561 * sh-tdep.c (sh_gdbarch_init): Update.
10562 * s390-tdep.c (s390_gdbarch_init): Update.
10563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10564 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10565 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10566 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10567 * mips-tdep.c (mips_gdbarch_init): Update.
10568 * mcore-tdep.c (mcore_gdbarch_init): Update.
10569 * m68k-tdep.c (m68k_gdbarch_init): Update.
10570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10571 * ia64-tdep.c (ia64_gdbarch_init): Update.
10572 * i386-tdep.c (i386_gdbarch_init): Update.
10573 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10574 * hppa-tdep.c (hppa_gdbarch_init): Update.
10575 * h8300-tdep.c (h8300_gdbarch_init): Update.
10576 * frv-tdep.c (frv_gdbarch_init): Update.
10577 * cris-tdep.c (cris_gdbarch_init): Update.
10578 * avr-tdep.c (avr_gdbarch_init): Update.
10579 * arm-tdep.c (arm_gdbarch_init): Update.
10580 * alpha-tdep.c (alpha_gdbarch_init): Update.
10581 * sh-tdep.c (sh_init_extra_frame_info): Update.
10582 (sh64_init_extra_frame_info): Update.
10583 * ns32knbsd-nat.c (frame_num_args): Update.
10584 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10585 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10586 (xstormy16_frame_chain_valid): Update.
10587 * vax-tdep.c (vax_saved_pc_after_call): Update.
10588 * v850-tdep.c (v850_frame_chain): Update.
10589 (v850_pop_frame): Update.
10590 (v850_init_extra_frame_info): Update.
10591 * sparc-tdep.c (setup_arbitrary_frame): Update.
10592 * ns32k-tdep.c (umax_frame_num_args): Update.
10593 * s390-tdep.c (s390_pop_frame_regular): Update.
10594 * mn10300-tdep.c (mn10300_frame_chain): Update.
10595 (mn10300_pop_frame_regular): Update.
10596 (mn10300_init_extra_frame_info): Update.
10597 * mips-tdep.c (mips_init_frame_pc_first): Update.
10598 (mips_frame_chain): Update.
10599 (mips_pop_frame): Update.
10600 * mcore-tdep.c (mcore_frame_chain): Update.
10601 (mcore_pop_frame): Update.
10602 (mcore_init_extra_frame_info): Update.
10603 * arch-utils.c (init_frame_pc_default): Update.
10604 * m68k-tdep.c (isi_frame_num_args): Update.
10605 (delta68_frame_num_args): Update.
10606 (news_frame_num_args): Update.
10607 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10608 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10609 (alpha_frame_chain): Update.
10610 (alpha_pop_frame): Update.
10611 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10612 (hppa_init_extra_frame_info): Update.
10613 (hppa_frame_chain): Update.
10614 (hppa_frame_chain_valid): Update.
10615 * cris-tdep.c (cris_init_extra_frame_info): Update.
10616 * avr-tdep.c (avr_init_extra_frame_info): Update.
10617 * arm-tdep.c (arm_frame_chain_valid): Update.
10618 (arm_init_extra_frame_info): Update.
10619 (arm_pop_frame): Update.
10620 * frame.c (frame_pc_unwind): Update.
10621 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10622 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10623 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10624 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10625 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10626 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10627
12cc2063
AC
106282003-03-10 Andrew Cagney <cagney@redhat.com>
10629
10630 * gdbarch.sh (gdbarch_unwind_pc): New method.
10631 * gdbarch.h, gdbarch.c: Regenerate.
10632 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10633 but use read_pc and FRAME_SAVED_PC as fall backs.
10634 (frame_saved_regs_pc_unwind): Delete function.
10635 (trad_frame_unwinder): Update.
10636 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10637 (struct frame_unwind): Update.
10638 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10639 (dummy_frame_unwind): Update.
10640 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10641 (sentinel_frame_unwinder): Update.
10642 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10643 (d10v_frame_unwind): Update.
10644 (d10v_unwind_pc): New function.
10645 (d10v_gdbarch_init): Set unwind_pc.
10646
ef840a37
AC
106472003-03-10 Andrew Cagney <cagney@redhat.com>
10648
a2ce2e56
AC
10649 * gdbarch.h: Re-generate.
10650
ef840a37
AC
10651 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10652 PC.
10653 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10654 the PC register.
10655
08f3424b
MK
106562003-03-08 Mark Kettenis <kettenis@gnu.org>
10657
10658 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10659
1248ede2
AC
106602003-03-08 Andrew Cagney <cagney@redhat.com>
10661
10662 * cli-out.c: Update copyright.
10663 (cli_out_data): Define typedef. Use instead of ui_out_data.
10664
f49bacc8
AC
106652003-03-08 Andrew Cagney <cagney@redhat.com>
10666
10667 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10668 the result.
10669
9b05f993
AC
106702003-03-07 Andrew Cagney <cagney@redhat.com>
10671
10672 * gdbarch.sh: Don't generate two macro definitions when an
10673 undefined macro taking no arguments.
10674 * gdbarch.h: Regenerate.
8ffd9b1b 10675
166f4c7b
ML
106762002-03-07 Michal Ludvig <mludvig@suse.cz>
10677
10678 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10679 (x86_64_unwind_dummy_id): New functions.
10680 (x86_64_init_abi): Register these two new functions.
10681
6d686a84
ML
106822003-03-07 Michal Ludvig <mludvig@suse.cz>
10683
10684 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10685 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10686 separate function.
10687 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10688
6314f104
AC
106892003-03-05 Andrew Cagney <cagney@redhat.com>
10690
10691 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10692 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10693 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10694 to use unwind_dummy_id when a dummy frame.
10695 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10696 predicate.
10697 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10698
ceea5145
AC
106992003-03-05 Andrew Cagney <cagney@redhat.com>
10700
10701 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10702 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10703 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10704 values.
10705
0d843116
AC
107062003-03-05 Andrew Cagney <cagney@redhat.com>
10707
10708 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10709 (struct d10v_unwind_cache): Delete field "frameless". Replace
10710 "next_addr" with "sp_offset". Add "r11_offset".
10711 (d10v_frame_unwind_cache): Update.
10712 (prologue_find_regs): Update. When "mv r11, sp", save the
10713 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10714 RN was saved in r11_offset.
10715
b2579786
AC
107162003-03-05 Andrew Cagney <cagney@redhat.com>
10717
10718 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10719 cached PC value in the next frame.
10720
218e5956
AC
107212003-03-05 Andrew Cagney <cagney@redhat.com>
10722
10723 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10724 "id_unwind_cache" with "id".
10725 (frame_id_unwind): Delete declaration.
10726 * frame.c (frame_id_unwind): Delete function.
10727 (get_prev_frame): Call the frame id unwind method directly. Store
10728 the returned next frame's ID value in NEXT_FRAME. Note that there
10729 is a problem with the wrong unwind ID being called with the wrong
10730 unwind cache.
10731
ed363b1b
DJ
107322003-03-05 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10735
fe1f4a5e
DJ
107362003-03-05 James Ingham <jingham@apple.com>
10737 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10740 (auto_cp_abi): New variable.
10741 (current_cp_abi, num_cp_abis): Make static.
10742 (CP_ABI_MAX): Define.
10743 (cp_abis): Turn into an array.
10744 (value_virtual_fn_field): Fix formatting.
10745 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10746 takes a pointer.
10747 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10748 (list_cp_abis, _initialize_cp_abi): New functions.
10749 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10750 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10751 switch_to_cp_abi. Update prototype for register_cp_abi.
10752 * Makefile.in (cp-abi.o): Update dependencies.
10753 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10754 instead of switch_to_cp_abi.
10755 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10756 register_cp_abi.
10757 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10758 register_cp_abi.
10759 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10760
e4adbba9
DJ
107612003-03-05 Daniel Jacobowitz <drow@mvista.com>
10762
10763 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10764 * dwarf2loc.c: Include "regcache.h".
10765 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10766 register_size.
10767 * Makefile.in (dwarf2loc.o): Update dependencies.
10768
91ccbfc1
TR
107692003-03-04 Theodore A. Roth <troth@openavr.org>
10770
10771 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10772 number of io registers reported by remote target is not a multiple of
10773 step.
10774
3d4e8fd2
DC
107752003-03-04 David Carlton <carlton@math.stanford.edu>
10776
10777 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10778 (lookup_symbol_aux_psymtabs): Update call to
10779 lookup_partial_symbol.
10780 (lookup_transparent_type, find_main_psymtab)
10781 (make_symbol_overload_list): Ditto.
10782
ed42d87b
KH
107832003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10784
10785 * MAINTAINERS (Write after approval): Update my email address.
10786
a0ed5532
AC
107872003-03-03 Andrew Cagney <cagney@redhat.com>
10788
10789 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10790 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10791 predicate. Replace MAX_REGISTER_RAW_SIZE.
10792 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10793 MAX_REGISTER_VIRTUAL_SIZE.
10794 * regcache.c (legacy_max_register_raw_size): New function.
10795 (legacy_max_register_virtual_size): New function.
10796 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10797 (MAX_REGISTER_RAW_SIZE): Define.
10798 (legacy_max_register_raw_size): Declare.
10799 (legacy_max_register_virtual_size): Declare.
10800 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10801 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10802 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10803 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10804 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10805 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10806 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10807 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10808 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10810 * vax-tdep.c (vax_gdbarch_init): Update.
10811 * v850-tdep.c (v850_gdbarch_init): Update.
10812 * sparc-tdep.c (sparc_gdbarch_init): Update.
10813 * sh-tdep.c (sh_gdbarch_init): Update.
10814 * s390-tdep.c (s390_gdbarch_init): Update.
10815 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10816 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10817 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10818 * mips-tdep.c (mips_gdbarch_init): Update.
10819 * mcore-tdep.c (mcore_gdbarch_init): Update.
10820 * m68k-tdep.c (m68k_gdbarch_init): Update.
10821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10822 * ia64-tdep.c (ia64_gdbarch_init): Update.
10823 * i386-tdep.c (i386_gdbarch_init): Update.
10824 * hppa-tdep.c (hppa_gdbarch_init): Update.
10825 * h8300-tdep.c (h8300_gdbarch_init): Update.
10826 * frv-tdep.c (frv_gdbarch_init): Update.
10827 * cris-tdep.c (cris_gdbarch_init): Update.
10828 * avr-tdep.c (avr_gdbarch_init): Update.
10829 * arm-tdep.c (arm_gdbarch_init): Update.
10830 * alpha-tdep.c (alpha_gdbarch_init): Update.
10831 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10832 max_register_raw_size or max_register_virtual_size.
10833
8e437497
DC
108342003-03-03 David Carlton <carlton@math.stanford.edu>
10835
10836 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10837 SYMBOL_MATCHES_NAME, add comment.
10838 (SYMBOL_MATCHES_NATURAL_NAME): New.
10839 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10840 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10841 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10842 * symtab.c (lookup_partial_symbol): Use
10843 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10844 unhelpful comment.
10845 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10846 SYMBOL_MATCHES_NAME.
10847 Fix for PR c++/33.
10848
25120b0d
DC
108492003-03-03 David Carlton <carlton@math.stanford.edu>
10850
10851 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10852 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10853 by regexp matching against SYMBOL_NATURAL_NAME.
10854
78a11fb4
DC
108552003-03-03 David Carlton <carlton@math.stanford.edu>
10856
10857 * linespec.c (find_method): Extract code into collect_methods.
10858 (collect_methods): New.
10859
645dd519
MK
108602003-03-02 Mark Kettenis <kettenis@gnu.org>
10861
b4700d91
MK
10862 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10863 get_frame_base.
10864
645dd519
MK
10865 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10866 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10867
0aa7e1aa
SC
108682003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10869
8ffd9b1b 10870 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10871 and not regnum when summing the size of all registers up to regnum.
10872
f30ee0bc
AC
108732003-03-01 Andrew Cagney <cagney@redhat.com>
10874
10875 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10876 FRAME_INIT_SAVED_REGS.
10877 * gdbarch.h, gdbarch.c: Regenerate.
10878 * stack.c (frame_info): Update.
10879 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10880 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10881 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10882 * ns32k-tdep.c (ns32k_pop_frame): Update.
10883 * mips-tdep.c (mips_pop_frame): Update.
10884 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10885 * ia64-tdep.c (ia64_frame_chain): Update.
10886 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10887 (ia64_frameless_function_invocation): Update.
10888 (ia64_init_extra_frame_info): Update.
10889 (ia64_pop_frame_regular): Update.
10890 * frame.h (struct frame_info): Update comment.
10891 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10892 * frame.c (frame_saved_regs_register_unwind): Update.
10893 (frame_saved_regs_register_unwind): Update.
10894 (deprecated_generic_get_saved_register): Update.
10895 * cris-tdep.c: Update comment.
10896 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10897 Rename macro.
10898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10899 * x86-64-tdep.c (x86_64_init_abi): Update.
10900 * vax-tdep.c (vax_gdbarch_init): Update.
10901 * v850-tdep.c (v850_gdbarch_init): Update.
10902 * sparc-tdep.c (sparc_gdbarch_init): Update.
10903 * sh-tdep.c (sh_gdbarch_init): Update.
10904 * s390-tdep.c (s390_gdbarch_init): Update.
10905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10906 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10907 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10908 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10909 * mips-tdep.c (mips_gdbarch_init): Update.
10910 * mcore-tdep.c (mcore_gdbarch_init): Update.
10911 * m68k-tdep.c (m68k_gdbarch_init): Update.
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10913 * ia64-tdep.c (ia64_gdbarch_init): Update.
10914 * i386-tdep.c (i386_gdbarch_init): Update.
10915 * frv-tdep.c (frv_gdbarch_init): Update.
10916 * avr-tdep.c (avr_gdbarch_init): Update.
10917 * arm-tdep.c (arm_gdbarch_init): Update.
10918 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10919
42fa7c0f
AC
109202003-03-01 Andrew Cagney <cagney@redhat.com>
10921
10922 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10923 option enum and switch. When no windows, set the interpreter to
10924 INTERP_CONSOLE.
8ffd9b1b 10925
49c7e338
AC
109262003-03-01 Andrew Cagney <cagney@redhat.com>
10927
10928 * main.c (captured_main): Replace magic option characters with an
10929 enum.
10930
e9582e71
AC
109312003-03-01 Andrew Cagney <cagney@redhat.com>
10932
10933 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10934 INIT_EXTRA_FRAME_INFO.
10935 * gdbarch.h, gdbarch.c: Regenerate.
10936 * arm-tdep.c: Update comments.
10937 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10938 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10939 * frame.h, avr-tdep.c: Ditto.
10940 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10941 (create_new_frame, legacy_get_prev_frame): Ditto.
10942 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10943 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10945 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10946 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10947 * v850-tdep.c (v850_gdbarch_init): Ditto.
10948 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10949 * sh-tdep.c (sh_gdbarch_init): Ditto.
10950 * s390-tdep.c (s390_gdbarch_init): Ditto.
10951 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10952 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10953 * mips-tdep.c (mips_gdbarch_init): Ditto.
10954 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10956 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10957 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10958 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10960 * frv-tdep.c (frv_gdbarch_init): Ditto.
10961 * cris-tdep.c (cris_gdbarch_init): Ditto.
10962 * avr-tdep.c (avr_gdbarch_init): Ditto.
10963 * arm-tdep.c (arm_gdbarch_init): Ditto.
10964 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10965 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10966
35cac7cf
AC
109672003-03-01 Andrew Cagney <cagney@redhat.com>
10968
10969 * gdbarch.sh (register_type): New function with predicate.
10970 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10971 * gdbarch.h, gdbarch.c: Re-generate.
10972 * arch-utils.c (generic_register_byte): Use generic_register_size.
10973 (generic_register_size): When available, use
10974 gdbarch_register_type.
10975 * regcache.c (init_regcache_descr): When available, initialize the
10976 register type array using gdbarch_register_type. If the
10977 architecture supplies gdbarch_register_type, do not use the legacy
10978 regcache layout.
10979 * d10v-tdep.c (d10v_register_type): Replace
10980 d10v_register_virtual_type.
10981 (d10v_gdbarch_init): Set register_type instead of
10982 register_virtual_type.
10983
7b83296f
AC
109842003-03-01 Andrew Cagney <cagney@redhat.com>
10985
10986 * Makefile.in (ax-gdb.o): Update dependencies.
10987 * ax-gdb.c: Include "regcache.h".
10988 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10989 * findvar.c (value_of_register): Ditto.
10990 * infcmd.c (default_print_registers_info): Ditto.
10991
eadc1c87
MK
109922003-03-01 Mark Kettenis <kettenis@gnu.org>
10993
10994 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10995 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10996
14143612
MK
109972003-03-01 Mark Kettenis <kettenis@gnu.org>
10998
10999 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11000 of STREQ.
11001
a55cc764
DJ
110022003-02-28 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * Makefile.in (dwarf2loc.o): Update dependencies.
11005 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11006 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11007 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11008 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11009 (locexpr_tracepoint_var_ref): New function.
11010 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11011
08a617da
AC
110122003-02-28 Andrew Cagney <cagney@redhat.com>
11013
11014 * regcache.c (register_size): New function.
11015 * regcache.h (register_size): Declare
11016 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11017 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11018
4224873a
DC
110192003-02-28 David Carlton <carlton@math.stanford.edu>
11020
11021 * linespec.c (decode_compound): Extract code into find_method.
11022 (find_method): New.
11023
ccdc5d7f
JB
110242003-02-28 J. Brobecker <brobecker@gnat.com>
11025
11026 * Makefile.in: Add rules to build and link in observer.o.
11027
974e8ced
JB
110282003-02-27 J. Brobecker <brobecker@gnat.com>
11029
11030 * observer.c: Minor comments edits.
11031
7a28f973
JB
110322003-02-27 J. Brobecker <brobecker@gnat.com>
11033
11034 * observer.h, observer.c: New file.
11035
27cddce2
AC
110362003-02-27 Andrew Cagney <cagney@redhat.com>
11037
11038 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11039
b94a41a1
SC
110402003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11041
11042 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11043 (M6812_OP_STS_EXT): Likewise.
11044 (m6811_prologue): Use the above to recognize prologue.
11045 (m6812_prologue): Likewise.
11046
c8be8951
DC
110472003-02-27 David Carlton <carlton@math.stanford.edu>
11048
11049 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11050 SYMBOL_PRINT_NAME.
11051 (compare_psymbols): Ditto.
11052 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11053
d05bb1fc
MS
110542003-02-27 Michael Snyder <msnyder@redhat.com>
11055
4e845cd3
MS
11056 * f-lang.c (build_fortran_types): New function.
11057 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11058 * doublest.c (extract_floating): Fix warning text.
11059
f3824013
AC
110602003-02-27 Andrew Cagney <cagney@redhat.com>
11061
11062 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11063 predicate. Replaces PUSH_DUMMY_FRAME.
11064 * gdbarch.h, gdbarch.c: Regnerate.
11065 * valops.c (hand_function_call): Update. Call
11066 generic_push_dummy_frame directly.
11067 * vax-tdep.c (vax_gdbarch_init): Update.
11068 * sparc-tdep.c (sparc_gdbarch_init): Update.
11069 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11070 * m68k-tdep.c (m68k_gdbarch_init): Update.
11071 * hppa-tdep.c (hppa_gdbarch_init): Update.
11072 * alpha-tdep.c (alpha_gdbarch_init): Update.
11073 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11074 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11075 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11077 push_dummy_frame to generic_push_dummy_frame.
11078 * v850-tdep.c (v850_gdbarch_init): Ditto.
11079 * sh-tdep.c (sh_gdbarch_init): Ditto.
11080 * s390-tdep.c (s390_gdbarch_init): Ditto.
11081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11082 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11083 * mips-tdep.c (mips_gdbarch_init): Ditto.
11084 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11087 * i386-tdep.c (i386_gdbarch_init): Ditto.
11088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11089 * frv-tdep.c (frv_gdbarch_init): Ditto.
11090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11091 * cris-tdep.c (cris_gdbarch_init): Ditto.
11092 * avr-tdep.c (avr_gdbarch_init): Ditto.
11093 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11094
ad188201
KB
110952003-02-26 Kevin Buettner <kevinb@redhat.com>
11096
11097 * mips-tdep.c (show_mips_abi): New function.
11098 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11099 command ``show mips abi''.
11100
6b37567a 111012003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11102
6b37567a 11103 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11104 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11105 more sline entries have been seen for the function.
11106
d3e0a5bf
MC
111072003-02-26 Michael Chastain <mec@shout.net>
11108
11109 * configure: Regenerate with autoconf 000227.
11110
18972eea
MC
111112003-02-26 Michael Chastain <mec@shout.net>
11112
11113 Close PR build/660.
11114 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11115 for old libc5/glibc.
11116 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11117
0bbde931
KW
111182003-02-26 Kris Warkentin <kewarken@qnx.com>
11119
11120 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11121 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11122
27ca5dad
MC
111232003-02-26 Michael Chastain <mec@shout.net>
11124
11125 * configure.in: New variable HAVE_UINTPTR_T.
11126 * configure, config.in: Regenerated.
11127
6f88d630
DJ
111282003-02-26 Daniel Jacobowitz <drow@mvista.com>
11129
11130 Fix PR build/1097.
11131 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11132
b14185ce
AC
111332003-02-25 Andrew Cagney <cagney@redhat.com>
11134
11135 * frame.c (get_prev_frame): Add comment on check for
11136 inside_entry_func. Only check for inside_entry_file when not a
11137 dummy and not a sentinel. Check that the new frame is not inner
11138 to the old frame.
11139
ac2bd0a9
AC
111402003-02-25 Andrew Cagney <cagney@redhat.com>
11141
11142 * frame.c (frame_debug): New variable.
11143 (_initialize_frame): Add "set/show debug frame" command.
11144 (get_prev_frame): When frame_debug, print reason why unwind
11145 failed.
11146
b18a0fd2
MC
111472003-02-25 Michael Chastain <mec@shout.net>
11148
11149 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11150 to avoid uintptr_t definition problems.
11151
22abf04a
DC
111522003-02-25 David Carlton <carlton@math.stanford.edu>
11153
11154 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11155 (SYMBOL_LINKAGE_NAME): Ditto.
11156 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11157 SYMBOL_LINKAGE_NAME.
11158 (struct general_symbol_info): Expand comment.
11159 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11160 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11161 (SYMBOL_MATCHES_REGEXP): Ditto.
11162 * symtab.c (symbol_natural_name): New function.
11163 * objfiles.h: Replace all uses of SYMBOL_NAME by
11164 DEPRECATED_SYMBOL_NAME.
11165 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11166 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11167 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11168 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11169 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11170 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11171 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11172 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11173 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11174 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11175 * ada-exp.y: Ditto.
11176 * ada-exp.y: Update copyright.
11177 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11178 * cp-valprint.c: Ditto.
11179
1a5848f6
JJ
111802003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11181
11182 * infptrace.c (detach): Do not flag error if ptrace detach fails
11183 and errno is set to ESRCH.
11184
7343d46a
AC
111852003-02-24 Andrew Cagney <cagney@redhat.com>
11186
11187 * infptrace.c (udot_info): Change type of udot_off to long. Use
11188 paddr when printing udot_off's value.
11189
49fa1dc2
DC
111902003-02-24 David Carlton <carlton@math.stanford.edu>
11191
11192 * symtab.c (make_symbol_overload_list): Only read in partial
11193 symtabs containing a matching partial symbol.
11194
0fe19209
DC
111952003-02-24 David Carlton <carlton@math.stanford.edu>
11196
11197 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11198 do the comparison, not strcmp.
11199 * symfile.c (compare_psymbols): Ditto.
11200 * defs.h: Declare strcmp_iw_ordered.
11201 * utils.c (strcmp_iw_ordered): New function.
11202
8e3ee7b5
JB
112032003-02-24 Jim Blandy <jimb@redhat.com>
11204
11205 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11206 support, shared libs): Remove my name from here, to better reflect
11207 reality.
11208
7df1a324
KW
112092003-02-24 Kris Warkentin <kewarken@qnx.com>
11210
11211 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11212 (target_ops): Add to_have_continuable_watchpoint.
11213 * target.c (update_current_target): Add INHERIT line for
11214 to_have_continuable_watchpoint.
11215 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11216 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11217 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11218 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11219
d1c76907
EZ
112202003-02-24 Elena Zannoni <ezannoni@redhat.com>
11221
11222 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11223 maintainership.
11224
2610b0bf
KW
112252003-02-24 Kris Warkentin <kewarken@qnx.com>
11226
f46169db
KW
11227 * solib.c (solib_open): Call target defined search function after
11228 failing with solib-search-path.
11229 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11230 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11231
9a3c34fe
KW
112322003-02-24 Kris Warkentin <kewarken@qnx.com>
11233
f46169db 11234 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11235
2417dd25
SC
112362003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11237
11238 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11239
b631436b
SC
112402003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11241
11242 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11243 (m68hc11_add_reggroups): New function.
11244 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11245 (m68hc11_gdbarch_init): Install the reggroups.
11246 (_initialize_m68hc11_tdep): Initialize them.
11247
0aa8c1e4
JW
112482003-02-21 James E Wilson <wilson@tuliptree.org>
11249
11250 * MAINTAINERS: Update my email address.
11251
50ceaba5
DC
112522003-02-21 David Carlton <carlton@math.stanford.edu>
11253
11254 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11255
4c2df51b
DJ
112562003-02-21 Daniel Jacobowitz <drow@mvista.com>
11257
11258 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11259 * symtab.h: Add opaque declarations of struct axs_value and
11260 struct agent_expr.
11261 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11262 (struct location_funcs): New type.
11263 (struct symbol): Add "loc" to aux_value.
11264 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11265 * dwarf2read.c: Include "dwarf2expr.h".
11266 (dwarf2_symbol_mark_computed): New function.
11267 (read_func_scope): Use it.
11268 (var_decode_location): New function.
11269 (new_symbol): Use it.
11270 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11271
11272 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11273 (dwarf2expr_h, dwarf2loc_h): New variables.
11274 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11275 (dwarf2expr.o, dwarf2loc.o): New rules.
11276 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11277 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11278 LOC_COMPUTED_ARG.
11279 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11280 * m2-exp.y (yylex): Likewise.
11281 * printcmd.c (address_info, print_frame_args): Likewise.
11282 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11283 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11284 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11285 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11286 * symtab.c (lookup_block_symbol): Likewise.
11287
5784d15e
AF
112882003-02-20 Adam Fedor <fedor@gnu.org>
11289
11290 * symtab.h: Remove objc_specific struct
11291 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11292 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11293 Have language_objc use cplus_specific struct.
11294
d4cad8db
TT
112952003-02-20 Tom Tromey <tromey@redhat.com>
11296
11297 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11298 TYPE_NAME, when printing a String value. PR java/1075.
11299
2f9a90b4
AF
113002003-02-20 Adam Fedor <fedor@gnu.org>
11301
d38074a8 11302 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11303 * objc-lang.c (find_methods): Make static.
2f9a90b4 11304
6f17862b
CF
113052003-02-20 Christopher Faylor <cgf@redhat.com>
11306
11307 * win32-nat.c (get_image_name): Check return value from
11308 ReadProcessMemory.
11309 (child_xfer_memory): Ditto.
11310
715d1656
AO
113112003-02-20 Alexandre Oliva <aoliva@redhat.com>
11312
11313 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11314 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11315 '${exec_prefix}' (in addition to the expansion thereof) as
11316 relocatable.
11317 * configure: Rebuilt.
11318
b1262a02
DC
113192003-02-20 David Carlton <carlton@math.stanford.edu>
11320
11321 * symtab.c (search_symbols): Revert the search_symbols part of my
11322 2002-12-23 patch. Add comment.
11323
7134143f
DJ
113242002-02-20 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11327 * dbxread.c (elfstab_build_psymtabs): Don't call
11328 install_minimal_symbols.
11329 (stabsect_build_psymtabs): Likewise.
11330 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11331 earlier.
11332 * somread.c (som_symfile_read): Call install_minimal_symbols
11333 and do_cleanups earlier.
11334 * nlmread.c (nlm_symfile_read): Likewise.
11335 * mdebugread.c (elfmdebug_build_psymtabs): Call
11336 install_minimal_symbols and make appropriate cleanups.
11337
cf466558
KB
113382003-02-20 Kevin Buettner <kevinb@redhat.com>
11339
11340 * solib.c (reload_shared_libraries): New function.
11341 (_initialize_solib): Add callbacks for ``set solib-search-path''
11342 and ``set solib-absolute-prefix''.
11343
de5ad195
DC
113442003-02-20 David Carlton <carlton@math.stanford.edu>
11345
11346 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11347 expand comment.
11348 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11349 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11350 * ada-typeprint.c (ada_typedef_print): Ditto.
11351 * ax-gdb.c (gen_var_ref): Ditto.
11352 * breakpoint.c (print_one_breakpoint): Ditto.
11353 * buildsym.c (finish_block): Ditto.
11354 * c-valprint.c (c_val_print): Ditto.
11355 * expprint.c (print_subexp): Ditto.
11356 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11357 * infcmd.c (jump_command): Ditto.
11358 * linespec.c (decode_line_2, decode_compound): Ditto.
11359 * maint.c (maintenance_translate_address): Ditto.
11360 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11361 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11362 Ditto.
8ffd9b1b
AJ
11363 * p-valprint.c (pascal_val_print): Ditto.
11364 * stabsread.c (define_symbol): Ditto.
de5ad195 11365 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11366 (print_frame_arg_vars, return_command): Ditto.
11367 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11368 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11369 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11370 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11371 (rbreak_command): Ditto.
11372 * tracepoint.c (tracepoints_info): Ditto.
11373 * typeprint.c (typedef_print): Ditto.
11374 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11375 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11376 * ada-typeprint.c: Update Copyright.
11377 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11378 * tracepoint.c, cli/cli-cmds.c: Ditto.
11379
f796e4be
KB
113802003-02-20 Kevin Buettner <kevinb@redhat.com>
11381
11382 * frame.c (generic_unwind_get_saved_register): Make non-static.
11383 * frame.h (generic_unwind_get_saved_register): Declare.
11384 * mips-tdep.c (read_next_frame_reg): Fetch register from
11385 current regcache when frame is NULL.
11386 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11387 that must be NULL.
11388 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11389 instead of frame_register_unwind().
11390
836cc9f4
AC
113912003-02-20 Andrew Cagney <ac131313@redhat.com>
11392
11393 * remote-sim.c (gdbsim_insert_breakpoint)
11394 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11395 code.
11396
501eef12
AC
113972003-02-20 Andrew Cagney <ac131313@redhat.com>
11398
11399 * remote.c (_initialize_remote): Add commands "set/show remote
11400 hardware-watchpoint-limit" and "set/show remote
11401 hardware-breakpoint-limit".
11402 (remote_hw_watchpoint_limit): Initialize to -1.
11403 (remote_hw_breakpoint_limit): Ditto.
11404 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11405
1b6bc7e0
CF
114062003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11407
11408 * coff-pe-read.c: New file - support reading of minimal symbols from a
11409 portable executable using the export table.
11410 * coff-pe-read.h: New file.
11411 * coffread.c: Include coff-pe-read.h.
11412 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11413 debugging symbols found.
11414 * Makefile.in (SFILES): Add coff-pe-read.o.
11415 (coff_pe_read_h): Define.
11416 (COMMON_OBS): Add coff-pe-read.o.
11417 (coffread.o): Add coff_pe_read_h dependency.
11418 (coff-pe-read.o): New target.
11419
fe898f56
DC
114202003-02-19 David Carlton <carlton@math.stanford.edu>
11421
11422 * Makefile.in (SFILES): Add block.c.
11423 (block_h): New.
11424 (COMMON_OBS): Add block.o.
11425 (block.o): New.
11426 (x86-64-tdep.o): Add $(block_h).
11427 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11428 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11429 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11430 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11431 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11432 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11433 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11434 * value.h: Add opaque declaration for struct block.
11435 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11436 * ada-lang.h: Ditto.
11437 * x86-64-tdep.c: #include "block.h"
11438 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11439 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11440 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11441 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11442 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11443 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11444 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11445 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11446 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11447 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11448 * symtab.c (block_function): Ditto.
11449 (contained_in): Ditto.
11450 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11451 block.h. Add opaque declaration for struct block.
11452 * symtab.h: Move block_function and contained_in declarations to
11453 block.h. Add opaque declarations for struct block, struct
11454 blockvector.
11455 (struct block): Move to block.h.
11456 (struct blockvector): Ditto.
11457 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11458 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11459 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11460 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11461 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11462 Ditto.
11463 * block.c: New file.
11464 * block.h: New file.
11465
173345b5
TR
114662003-02-19 Theodore A. Roth <troth@openavr.org>
11467
11468 * avr-tdep.c (avr_extract_return_value): Remove function.
11469 (avr_store_return_value): Remove function.
11470 (avr_extract_struct_value_address): Remove function.
11471 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11472
338ef23d
AC
114732003-02-19 Andrew Cagney <ac131313@redhat.com>
11474
11475 * rs6000-tdep.c: Include "gdb_assert.h".
11476 (registers_e500): Add "acc" and "spefscr".
11477 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11478 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11479 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11480 really is "r0".
11481 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11482
5412f5f3
KS
114832003-02-18 Keith Seitz <keiths@redhat.com>
11484
11485 * Makefile.in: Add gdbtk-interps.c.
11486
881324eb
KB
114872003-02-18 Kevin Buettner <kevinb@redhat.com>
11488
11489 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11490 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11491
6a2f5abf
AC
114922003-02-18 Andrew Cagney <cagney@redhat.com>
11493
11494 * symtab.h (struct objfile): Add opaque declaration.
11495
54c7009d
EZ
114962003-02-18 Elena Zannoni <ezannoni@redhat.com>
11497
11498 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11499 * dbxread.c (process_one_symbol): Use last_function_start rather
11500 than function_start_offset to find the real beginning of the
11501 current function. The latter is just the text section offset on
11502 some systems, the former is always the real function start.
54c7009d 11503
7ee6d7eb
AC
115042003-02-17 Andrew Cagney <cagney@redhat.com>
11505
11506 * configure.in: Revert ${target} != ${host}.
11507
2846da9b
AC
115082003-02-17 Andrew Cagney <ac131313@redhat.com>
11509
11510 * configure.in (Makefile): Use the test ${target} != ${host},
11511 instead of the absence of the "nm.h" file, to determine of the
11512 configuration non-native.
11513 * configure: Regenerate.
8ffd9b1b 11514
3b27aeea
EZ
115152003-02-14 Elena Zannoni <ezannoni@redhat.com>
11516
fbe586ae 11517 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11518
11519 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11520 conditionalize tui_active test.
11521 (lookup_cmd_1): Ditto.
11522
b0b1c2c0
MK
115232003-02-14 Mark Kettenis <kettenis@gnu.org>
11524
11525 * configure.in: Add check for _etext.
11526 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11527 available.
11528 * config.in, configure: regenerated.
11529
8f05cde5
DJ
115302003-02-14 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11533
021e7609
AC
115342003-02-14 Andrew Cagney <ac131313@redhat.com>
11535
11536 * main.c (tui_version): Delete variable.
11537 (captured_main): When --tui, set interpreter_p to "tui" instead of
11538 enabling tui_version.
11539 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11540 tui_version.
11541 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11542 * cli/cli-cmds.c (disassemble_command): Ditto.
11543 * defs.h (tui_version): Delete declaration.
11544 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11545 (tui-interp.o): Add rules.
11546 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11547
e325dcec
CF
115482003-02-14 Christopher Faylor <cgf@redhat.com>
11549
36ffb041 11550 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11551 just-loaded dll.
11552
c4f90d87
JM
115532003-02-12 Jason Molenda (jmolenda@apple.com)
11554
fbe586ae
RH
11555 * symmisc.c (print_objfile_statistics): Include information about
11556 the number of psymtabs and symtabs in each object file.
c4f90d87 11557
e46e5ccd
KS
115582003-02-13 Keith R Seitz <keiths@redhat.com>
11559
11560 * main.h (struct captured_main_args): Add interpreter_p.
11561 * main.c (captured_main): Initialize interpreter_p from context.
11562 * gdb.c (main): Set interpreter_p argument.
11563 * Makefile.in (gdb.o): Add dependency for interps.h.
11564
fe97fe9c
AC
115652003-02-12 Andrew Cagney <ac131313@redhat.com>
11566
11567 * event-top.c (cli_command_loop): Delete declaration.
11568 (_initialize_event_loop): Delete function setting event_loop_hook.
11569 * event-top.h (cli_command_loop): Declare. Update copyright.
11570 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11571 * interps.c (current_interp_command_loop): When event_loop_p, call
11572 cli_command_loop.
11573
1cdac4ef
AC
115742003-02-12 Andrew Cagney <ac131313@redhat.com>
11575
11576 * interps.h (interp_command_loop_ftype): Change return type to
11577 void.
11578
48037ead
ML
115792003-02-12 Michal Ludvig <mludvig@suse.cz>
11580
11581 * x86-64-tdep.c (x86_64_extract_return_value)
11582 (x86_64_store_return_value): Use regcache instead of regbuf.
11583 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11584 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11585
033afc63
AC
115862003-02-11 Andrew Cagney <ac131313@redhat.com>
11587
11588 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11589 * aclocal.m4: Regenerate.
11590 * configure: Regenerate.
11591
11592 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11593 TCL_LD_SEARCH_FLAGS.
11594
40d02bca
ML
115952003-02-10 Michal Ludvig <mludvig@suse.cz>
11596
11597 * dwarf2cfi.c: Reindented.
11598
11308a41
AC
115992003-02-09 Andrew Cagney <ac131313@redhat.com>
11600
11601 * interps.c (clear_interpreter_hooks): Convert function definition
11602 to ISO C.
11603
e1c1c0f6
DC
116042003-02-07 David Carlton <carlton@math.stanford.edu>
11605
11606 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11607
ab5d3da6
KB
116082003-02-07 Kevin Buettner <kevinb@redhat.com>
11609
11610 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11611 (struct type): ...to here.
11612 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11613 field.
11614 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11615 (replace_type): Set length on all type variants for a given type.
11616
b8a92b82
AC
116172003-02-07 Andrew Cagney <ac131313@redhat.com>
11618
11619 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11620 <sys/stat.h>.
11621 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11622
5cb316ef
AC
116232003-02-06 Andrew Cagney <ac131313@redhat.com>
11624
2555fe1a
AC
11625 * Makefile.in (symm-nat.o): Update dependencies.
11626 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11627 (lynx-nat.o, ia64-linux-nat.): Ditto.
11628 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11629 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11630 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11631
44270758
AC
11632 * Makefile.in (inflow_h): Define.
11633 (procfs.o, inflow.o, procfs.o): Update dependencies.
11634 * inftarg.c (child_stop): Delete extern declaration of
11635 inferior_process_group. Include "inflow.h".
11636 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11637 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11638 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11639 (our_process_group, inferior_process_group): Extern declarations.
11640
df8f7274
AC
11641 * procfs.c: Include "gdb_assert.h".
11642
5cb316ef
AC
11643 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11644 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11645 * jv-typeprint.c (java_type_print_base): Ditto.
11646 * typeprint.c (typedef_print): Eliminate STREQ.
11647 * cli/cli-script.c (define_command, define_command): Ditto.
11648 * main.c (captured_main): Ditto.
11649 * values.c (lookup_internalvar): Ditto.
11650 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11651 within `if' conditional.
11652 * linespec.c (decode_line_2): Ditto.
11653 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11654 (bfd_openw_with_cleanup): Ditto.
11655
2a28ccea
MK
116562003-02-07 Mark Kettenis <kettenis@gnu.org>
11657
11658 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11659 legacy_extract_return_value and store_return_value to
11660 legacy_return_value.
11661
786b8124
CF
116622003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11663
11664 * win32-nat.c (get_relocated_section_addrs): New function. Find
11665 section load addresses for symbol handling in relocated DLLs.
11666 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11667
b871e4ec
FF
116682003-02-05 Fred Fish <fnf@intrinsity.com>
11669
11670 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11671 '=' and '!='.
11672 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11673 with '&' and '=='.
11674 (angel_RDI_info): Ditto.
11675 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11676 with '&' and '!='.
11677 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11678
4389a95a 116792003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11680 Keith Seitz <keiths@redhat.com>
11681 Elena Zannoni <ezannoni@redhat.com>
11682 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11683
11684 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11685 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11686 (SUBDIR_MI_OBS): Add "mi-interp.o".
11687 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11688 (SFILES): Add "interps.c".
11689 (COMMON_OBS): Add "interps.o".
11690 (interps_h, mi_main_h): Define.
11691 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11692 (mi-main.o, main.o, event-top.o): Update dependencies.
11693 * cli/cli-interp.c: New file.
11694 * interps.h, interps.c: New files.
11695 * top.c: (gdb_init): Don't install the default interpreter, handed
11696 by captured_main.
11697 * main.c: Include "interps.h".
11698 (interpreter_p): Note that it should malloc'ed.
11699 (captured_command_loop): Call current_interp_command_loop.
11700 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11701 xfree and xstrdup when updating interpreter_p. Install the
11702 default interpreter. Add hack to stop mi1's copyright notice
11703 being encoded.
11704 * event-top.h (gdb_setup_readline): Declare.
11705 (gdb_disable_readline): Declare.
11706 * event-top.c: Include "interps.h".
11707 (display_gdb_prompt): Call current_interp_display_prompt_p.
11708 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11709 gdb_stdlog, and gdb_stdtarg.
11710 (_initialize_event_loop): Don't call gdb_setup_readline.
11711 * cli-out.c (cli_out_set_stream): New function.
11712 * cli-out.h (cli_out_set_stream): Declare.
11713
ff3b5810
MK
117142003-02-06 Mark Kettenis <kettenis@gnu.org>
11715
11716 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11717 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11718 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11719 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11720 config/i386/i386v42mp.mt: Removed.
11721
5b729aa5
MK
117222003-02-05 Mark Kettenis <kettenis@gnu.org>
11723
11724 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11725 GDB_OSABI_SOLARIS.
11726
8cc15142
MC
117272003-02-05 Michael Chastain <mec@shout.net>
11728
11729 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11730 2.12.1 and earlier versions.
11731
5aa5d4b9
AC
117322003-02-05 Andrew Cagney <ac131313@redhat.com>
11733
11734 Remove orphaned hosts, targets and files.
11735 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11736 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11737 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11738 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11739 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11740 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11741 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11742 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11743 * config/sparc/tm-sp64sim.h: Delete.
11744 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11745 hosts.
11746 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11747 mips*-dec-mach3* targets.
11748
b68767c1
MC
117492003-02-04 Michael Chastain <mec@shout.net>
11750
11751 * NEWS: Fix typo: sepcifying -> specifying.
11752
5ae7ca1d
MC
117532003-02-04 Michael Chastain <mec@shout.net>
11754
11755 * dwarfread.c: Add documentation on the state of dwarf-1,
11756 looking towards obsoletion.
11757
d08a4280
MC
117582003-02-03 Michael Chastain <mec@shout.net>
11759
11760 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11761 gdb/testsuite/gdb.c++/pr-1023.exp.
11762
e9be73e4
AC
117632003-02-04 Andrew Cagney <ac131313@redhat.com>
11764
11765 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11766 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11767
11768 * utils.c (init_page_info): Delete reference to MPW in comments.
11769 * main.c (captured_main): Delete #ifdef MPW.
11770
05d57f6f
AC
117712003-02-04 Andrew Cagney <ac131313@redhat.com>
11772
8ffd9b1b 11773 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11774 * monitor.c (monitor_expect): Obsolete reference to m32r.
11775 * configure.tgt: Mark m32r-*-elf* as obsolete.
11776 * MAINTAINERS: Mark m32k as obsolete.
11777 * m32r-rom.c: Obsolete file.
11778 * config/m32r/m32r.mt: Obsolete file.
11779 * config/m32r/tm-m32r.h: Obsolete file.
11780 * m32r-stub.c: Obsolete file.
11781 * m32r-tdep.c: Obsolete file.
11782
8b0e5691
AC
117832003-02-04 Andrew Cagney <ac131313@redhat.com>
11784
11785 * NEWS: Mention that the z8k-zilog-none is obsolete.
11786 * MAINTAINERS: Mark z8k as obsolete.
11787 * configure.tgt: Obsolete the z8k-*-coff* target.
11788 * config/z8k/z8k.mt: Obsolete file.
11789 * config/z8k/tm-z8k.h: Obsolete file.
11790 * z8k-tdep.c: Obsolete file.
11791
67f16606
AC
117922003-02-04 Andrew Cagney <ac131313@redhat.com>
11793
11794 * NEWS: Mention that the mn10200-elf is obsolete.
11795 * configure.tgt: Obsolete mn10200-*-* target.
11796 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11797 mention that the mn10200 is obsolete.
11798 * breakpoint.h: Ditto.
11799 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11800 * config/mn10200/mn10200.mt: Obsolete file.
11801 * config/mn10200/tm-mn10200.h: Obsolete file.
11802 * mn10200-tdep.c: Obsolete file.
11803
fd2299bd
AC
118042003-02-04 Andrew Cagney <ac131313@redhat.com>
11805
11806 * MAINTAINERS: Mark h8500 as obsolete.
11807 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11808 * findvar.c (value_from_register): Ditto.
11809 * h8500-tdep.c: Mark file as obsolete.
11810 * config/h8500/h8500.mt: Ditto.
11811 * config/h8500/tm-h8500.h: Ditto.
11812 * NEWS: Mention that h8500 is obsolete.
11813
eb9a305d
DC
118142003-02-04 David Carlton <carlton@math.stanford.edu>
11815
11816 * objfiles.c (allocate_objfile): Always set name. Add comment at
11817 start of function.
11818 * jv-lang.c (get_dynamics_objfile): Add comment.
11819
406fc7fb
DC
118202003-02-04 David Carlton <carlton@math.stanford.edu>
11821
11822 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11823 * printcmd.c (build_address_symbolic): Replace uses of
11824 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11825 SYMBOL_NAME, and asm_demangle.
11826 Update copyright.
11827
93d91629
DC
118282003-02-04 David Carlton <carlton@math.stanford.edu>
11829
11830 * linespec.c (decode_compound): Extract code into
11831 lookup_prefix_sym.
11832 (lookup_prefix_sym): New function.
11833
1c5cb38e
DC
118342003-02-04 David Carlton <carlton@math.stanford.edu>
11835
11836 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11837 FLOAT_COERCION_BADNESS.
11838 * gdbtypes.c (rank_one_type): Replace all uses of
11839 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11840
0cf824c9
JB
118412003-02-04 Jim Blandy <jimb@redhat.com>
11842
11843 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11844 section, let dwarf_macinfo_section point to it, not
11845 dwarf_loc_section.
11846
a2d356b0
DJ
118472003-02-04 Daniel Jacobowitz <drow@mvista.com>
11848
11849 Pointed out by Anton Blanchard <anton@samba.org>.
11850 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11851 (ppc_linux_at_sigtramp_return_path): Use it.
11852
2de7ced7
DJ
118532003-02-04 Daniel Jacobowitz <drow@mvista.com>
11854
11855 * defs.h (streq): Add prototype.
11856 * utils.c (streq): New function.
11857
11858 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11859 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11860 * mdebugread.c (new_symbol): Likewise.
11861 * stabsread.c (define_symbol): Likewise.
11862 * coffread.c (process_coff_symbol): Likewise.
11863 * dwarfread.c (new_symbol): Likewise.
11864
11865 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11866 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11867 here.
11868 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11869 SYMBOL_INIT_DEMANGLED_NAME.
11870 * objfiles.c: Include "hashtab.h".
11871 (allocate_objfile): Call htab_set_functions_ex for the
11872 demangled_names_hash.
11873 (free_objfile): Call htab_delete for the demangled_names_hash.
11874 * objfiles.h (struct htab): Add declaration.
11875 (struct objfile): Add demangled_names_hash.
11876 * symfile.c: Include "hashtab.h".
11877 (reread_symbols): Call htab_delete for the demangled_names_hash.
11878 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11879 SYMBOL_NAME in the bcache.
11880 * symtab.c: Include "hashtab.h". Update comments.
11881 (create_demangled_names_hash, symbol_set_names): New functions.
11882 (symbol_find_demangled_name): New function, broken out from
11883 symbol_init_demangled_names.
11884 (symbol_init_demangled_names): Use it.
11885 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11886 (SYMBOL_SET_NAMES): New macro.
11887 (symbol_set_names): Add prototype.
11888
15831452
JB
118892003-02-03 Jim Blandy <jimb@redhat.com>
11890
11891 Use a single, consistent representation for an empty minimal
11892 symbol table in an objfile.
11893 * objfiles.c (terminate_minimal_symbol_table): New function.
11894 (allocate_objfile): Call it.
11895 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11896 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11897 non-NULL.
15831452
JB
11898 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11899 objfile has minimal symbols, compare minimal_symbol_count to zero,
11900 instead of comparing msymbols with NULL.
11901 * objfiles.c (have_minimal_symbols): Same.
11902 * solib-sunos.c (solib_add_common_symbols): Call
11903 terminate_minimal_symbol_table.
11904 * symfile.c (reread_symbols): Same.
8ffd9b1b 11905
ffc65945
KB
119062003-02-03 Kevin Buettner <kevinb@redhat.com>
11907
11908 * s390-tdep.c (s390_address_class_type_flags)
11909 (s390_address_class_type_flags_to_name)
11910 (s390_address_class_name_to_type_flags): New functions.
11911 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11912 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11913
f211c6d4
MS
119142003-02-03 Michael Snyder <msnyder@redhat.com>
11915
11916 * arm-tdep.c: Fix spell-o in comment.
11917
659b0389
ML
119182003-02-03 Michal Ludvig <mludvig@suse.cz>
11919
11920 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11921 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11922 error messages to contain BFD filename.
659b0389 11923
3b31d625
EZ
119242003-02-02 Elena Zannoni <ezannoni@redhat.com>
11925
997b089a 11926 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11927 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11928 (do_mixed_source_and_assembly): Use
11929 make_cleanup_ui_out_tuple_begin_end and
11930 make_cleanup_ui_out_tuple_begin_end.
11931 (do_mixed_source_and_assembly): Ditto.
11932 * thread.c (do_captured_list_thread_ids): Ditto.
11933 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11934 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11935 ui_out_tuple_end): Delete prototypes.
11936 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11937 ui_out_list_end, ui_out_tuple_end): Delete.
11938
11939 From Kevin Buettner <kevinb@redhat.com>:
11940 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11941 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11942 (do_cleanup_table_end): New functions.
11943 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11944 Use cleanups to invoke_ui_out_tuple_end().
11945 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11946 * cli/cli-setshow.c (cmd_show_list): Use
11947 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11948
5b181d62
AC
119492003-02-02 Andrew Cagney <ac131313@redhat.com>
11950
11951 * frame.c (frame_unwind_register): New function.
11952 (frame_unwind_unsigned_register): Use.
11953 (frame_unwind_signed_register): Use.
11954 (frame_read_register): New function.
11955 * frame.h (frame_unwind_register): Declare.
11956 (frame_read_register): Declare.
11957
11958 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11959 and frame_unwind_register instead of read_memory, write_register
11960 and deprecated_write_register_bytes.
11961
5f601589
AC
119622003-02-02 Andrew Cagney <ac131313@redhat.com>
11963
11964 * frame.h: Note that namelen can be negative.
11965 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11966 NAME's length.
11967
11968 * NEWS: Mention that the d10v's `regs' command is deprecated.
11969 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11970 (d10v_print_registers_info): New function.
11971 (show_regs): Call d10v_print_registers_info.
11972 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11973
6a3fe0a4
MK
119742003-02-02 Mark Kettenis <kettenis@gnu.org>
11975
11976 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11977 lost in the previous patch.
11978
075559bc
AC
119792003-02-01 Andrew Cagney <ac131313@redhat.com>
11980
11981 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11982 * stack.c (print_frame_info_base): Output complete FRAME tuple
11983 for synthesized frames.
075559bc 11984
6789195b
AC
119852003-02-02 Andrew Cagney <ac131313@redhat.com>
11986
11987 * mips-nat.c (zerobuf): Delete.
11988 (fetch_inferior_registers): Alloc local zerobuf.
11989 (fetch_core_registers): Alloc local zerobuf.
11990 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11991 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11992 * thread-db.c (thread_db_store_registers): Ditto.
11993 * sh-tdep.c (sh_do_register): Ditto.
11994 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11995 * remote-sim.c (gdbsim_store_register): Ditto.
11996 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11997 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11998 * monitor.c (monitor_supply_register): Ditto.
11999 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12000 * mips-nat.c (fetch_inferior_registers): Ditto.
12001 * m68klinux-nat.c (fetch_register): Ditto.
12002 * lynx-nat.c (fetch_inferior_registers): Ditto.
12003 (fetch_inferior_registers): Ditto.
12004 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12005 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12006 (hpux_thread_store_registers): Ditto.
12007 * hppah-nat.c (fetch_register): Ditto.
12008 * hppab-nat.c (fetch_register): Ditto.
12009 * hppa-tdep.c (pa_register_look_aside): Ditto.
12010 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12011 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12012
e669114a
AC
120132003-02-01 Andrew Cagney <ac131313@redhat.com>
12014
12015 * gdbarch.sh: Explictly specify all method levels. When a
12016 variable with an empty level, provide a non-multi-arch default.
12017 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12018 * gdbarch.h: Re-generate.
12019 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12020 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12021
9a043c1d
AC
120222003-02-01 Andrew Cagney <ac131313@redhat.com>
12023
12024 * defs.h (host_pointer_to_address): Delete declaration.
12025 (address_to_host_pointer): Delete declaration.
12026 * utils.c (host_pointer_to_address): Delete function.
12027 (address_to_host_pointer): Delete function.
12028 * procfs.c (procfs_address_to_host_pointer): New function.
12029 * procfs.c (proc_set_watchpoint): Use.
12030 (procfs_can_use_hw_breakpoint): Update comments.
12031 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12032 (som_solib_add): Use.
12033 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12034 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12035
7ca9f392
AC
120362003-02-01 Andrew Cagney <ac131313@redhat.com>
12037
94bbfd30
AC
12038 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12039 strlen d_name.
12040
7ca9f392
AC
12041 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12042 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12043 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12044 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12045 (define_symbol): Update.
12046 * symfile.c (generic_load): Remove references to nindy.
12047 * symtab.c: Remove references to nindy.
12048
31a85ea2
AC
120492003-02-01 Andrew Cagney <ac131313@redhat.com>
12050
12051 * infcmd.c (print_float_info): Delete code conditional on
12052 FLOAT_INFO.
12053 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12054 * config/m68k/nm-apollo68b.h: Ditto.
12055 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12056 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12057 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12058
f6e85fc8
MK
120592003-02-01 Mark Kettenis <kettenis@gnu.org>
12060
6015b6a0
MK
12061 * config/i386/tm-i386os9k.h: Removed.
12062
f7a30bdf
MK
12063 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12064 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12065 they're identical to i[3456]86-*-sysv* now.
12066 * config/i386/i386v32.mh: Removed.
12067 * config/i386/xm-i386v32.h: Removed.
12068 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12069
28d52111
MK
12070 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12071
4d3f6bce
MK
12072 * config/i386/i386dgux.mh: Removed.
12073 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12074
f6e85fc8
MK
12075 * configure.in: Fix typo.
12076 * configure: Regenerated.
12077
53955967
DC
120782003-01-31 David Carlton <carlton@math.stanford.edu>
12079
12080 * dwarf2read.c (dwarf2_locate_sections): Set
12081 dwarf_ranges_section.
12082
b1364885
AC
120832003-01-31 Andrew Cagney <ac131313@redhat.com>
12084
8dbb1c65
AC
12085 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12086 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12087
8731e58e
AC
12088 * utils.c: Re-indent.
12089
b1364885
AC
12090 * config/djgpp/fnchange.lst: Delete nindy files.
12091 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12092 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12093 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12094 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12095 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12096 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12097 * Makefile.in (init.c): Remove nindy references.
12098 (saber_gdb): Delete rule.
12099 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12100 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12101 and a68v-nat.c.
12102 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12103 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12104 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12105 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12106 nindy-share/stop.h.
12107 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12108 * saber.suppress: Delete file.
12109
086df311
DJ
121102003-01-31 Daniel Jacobowitz <drow@mvista.com>
12111
12112 * dbxread.c (stabs_data): New static variable.
12113 (fill_symbuf): Support an in-memory buffer for stabs data.
12114 (stabs_seek): New function.
12115 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12116 (read_ofile_symtab): Use stabs_seek.
12117 (elfstab_build_psymtabs): Take an asection* instead of
12118 an offset and size. Relocate the stabs data if necessary.
12119 Save the section* for dbx_psymtab_to_symtab.
12120 * dwarf2read.c: Add section variables for each debug section.
12121 (dwarf2_locate_sections): Fill them in.
12122 (dwarf2_read_section): Take an asection* argument.
12123 Relocate the section contents if necessary.
12124 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12125 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12126 it to dwarf2_read_section.
12127 (dwarf2_build_frame_info): Update callers.
12128 * elfread.c (elf_symfile_read): Update call to
12129 elfstab_build_psymtabs.
12130 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12131 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12132 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12133 * symfile.c (symfile_dummy_outputs): New function.
12134 (symfile_relocate_debug_section): New function.
12135 * symfile.h (symfile_relocate_debug_section): Add prototype.
12136
87d1b352
RH
121372003-01-31 Richard Henderson <rth@redhat.com>
12138
12139 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12140 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12141 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12142 * alpha-tdep.c (alpha_register_name): Add "unique".
12143 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12144 (ALPHA_UNIQUE_REGNUM): New.
12145 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12146
c48861fb
AC
121472003-01-31 Andrew Cagney <ac131313@redhat.com>
12148
12149 * README: Remove reference to Ericsson 1800 monitor.
12150 * Makefile.in (remote-es.o): Delete rule.
12151 (ALLDEPFILES): Delete remote-es.c.
12152 * remote-es.c: Delete file.
12153 * config/m68k/es1800.mt: Delete file.
12154 * config/djgpp/fnchange.lst: Update.
12155 * configure.tgt: Delete m68*-ericsson-* target.
12156
d764a824
AF
121572003-01-31 Adam Fedor <fedor@gnu.org>
12158
12159 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12160 Remove duplicate/shadowing variable of same name.
12161
fe36c4f4
JB
121622003-01-30 Jim Blandy <jimb@redhat.com>
12163
12164 * symfile.c (find_separate_debug_file): Assert that the objfile's
12165 directory name we compute ends with a slash, and then assume that
12166 that's so everywhere we use it.
12167
cb741690
DJ
121682003-01-30 Daniel Jacobowitz <drow@mvista.com>
12169
12170 * valops.c (value_assign): Flush frame cache after stores to memory
12171 also.
12172
96ee5227
AC
121732003-01-30 Andrew Cagney <ac131313@redhat.com>
12174
12175 * Makefile.in (mon960-rom.o): Delete rule.
12176 * mon960-rom.c: Delete file.
12177
7f6104a9
AC
121782003-01-30 Andrew Cagney <ac131313@redhat.com>
12179
12180 * d10v-tdep.c: Include "frame-unwind.h".
12181 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12182 list.
12183 (next_addr, uses_frame): Delete.
12184 (struct d10v_unwind_cache): Define.
12185 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12186 Use info instead of next_addr and uses_frame globals.
12187 (d10v_frame_init_saved_regs): Delete function.
12188 (d10v_init_extra_frame_info): Delete function.
12189 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12190 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12191 init_frame_pc or frame_saved_pc.
12192 (d10v_pop_frame): Delete function.
12193 (do_d10v_pop_frame): Delete function.
12194 (d10v_frame_chain): Delete function.
12195 (d10v_frame_chain_valid): Delete function.
12196 (d10v_frame_pc_unwind): New function.
12197 (d10v_frame_id_unwind): New function.
12198 (saved_regs_unwinder): New function.
12199 (d10v_frame_register_unwind): New function.
12200 (d10v_frame_pop): New function.
12201 (d10v_frame_unwind): New variable.
12202 (d10v_frame_p): New function.
12203 (d10v_frame_saved_pc): Delete function.
12204 * Makefile.in (d10v-tdep.o): Update dependencies.
12205
cad2e848
JB
122062003-01-30 J. Brobecker <brobecker@gnat.com>
12207
12208 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12209 causing some regressions due to a change in the default value
12210 for this macro.
12211
af34e669
DJ
122122003-01-29 Richard Henderson <rth@redhat.com>
12213 Elena Zannoni <ezannoni@redhat.com>
12214 Daniel Jacobowitz <drow@mvista.com>
12215
12216 Fix PR gdb/961.
8ffd9b1b 12217 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12218 variables.
12219 (RANGES_SECTION): New.
12220 (dwarf_ranges_buffer): New variable.
12221 (struct comp_unit_head): Add member "die".
12222 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12223 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12224 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12225 (dwarf2_locate_sections): Likewise.
12226 (dwarf2_build_psymtabs): Read .debug_ranges.
12227 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12228 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12229 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12230 Look for DW_AT_ranges and return the bounding box.
12231
baa93fa6
CF
122322003-01-29 Brian Ford <ford@vss.fsi.com>
12233
12234 * win32-nat.c (cygwin_pid): Removed as unused.
12235 (child_attach): Try fall back to Cygwin pid.
12236
c63f977f
JB
122372003-01-29 Jim Blandy <jimb@redhat.com>
12238
12239 * objfiles.h (struct objfile): Doc fix.
12240
d62d1979
AC
122412003-01-29 Andrew Cagney <ac131313@redhat.com>
12242
12243 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12244 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12245 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12246 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12247 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12248 (FRAME_SAVED_PC): Change to a function with predicate.
12249 * gdbarch.h, gdbarch.c: Re-generate.
12250
1ae18a04
AC
122512003-01-28 Andrew Cagney <ac131313@redhat.com>
12252
52287340
AC
12253 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12254
1ae18a04
AC
12255 * complaints.c (complain): Delete function.
12256 * complaints.h (struct deprecated_complaint): Delete definition.
12257 (complain): Delete declaration.
12258
f2c16bd6
KB
122592003-01-28 Kevin Buettner <kevinb@redhat.com>
12260
12261 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12262 dummy frames.
12263
a94dd1fd
AC
122642003-01-27 Andrew Cagney <ac131313@redhat.com>
12265
12266 * sentinel-frame.h, sentinel-frame.c: New files.
12267 * Makefile.in (frame.o): Update dependencies.
12268 (SFILES): Add sentinel-frame.c.
12269 (sentinel_frame_h): Define.
12270 (COMMON_OBS): Add sentinel-frame.o.
12271 (sentinel-frame.o): Specify dependencies.
12272 * frame.c: Include "sentinel-frame.h".
12273 (frame_register_unwind): Rewrite assuming that there is always a a
12274 ->next frame.
12275 (frame_register, generic_unwind_get_saved_register): Ditto.
12276 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12277 (create_sentinel_frame, unwind_to_current_frame): New functions.
12278 (get_current_frame): Rewrite using create_sentinel_frame and
12279 unwind_to_current_frame. When possible, always create a frame.
12280 (create_new_frame): Set next to the sentinel frame.
12281 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12282 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12283 ID cache when necessary.
12284 (frame_saved_regs_id_unwind): Use frame_relative_level.
12285 (deprecated_generic_get_saved_register): Use frame_relative_level,
12286 get_frame_saved_regs, get_frame_pc, get_frame_base and
12287 get_next_frame.
12288 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12289 frame_register.
12290
5378adc4
DJ
122912003-01-27 Daniel Jacobowitz <drow@mvista.com>
12292
12293 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12294
51ee2ddc
DJ
122952003-01-27 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12298 (maintenance_set_profile_cmd): Use error () instead of warning ().
12299
d9feb4e7
DJ
123002003-01-27 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * configure.in: Check that -pg works if using --enable-profiling.
12303 Check for monstartup and _mcleanup regardless of --enable-profiling.
12304 * maint.c: Check for monstartup and _mcleanup before using them.
12305 * config.in: Regenerated.
12306 * configure: Regenerated.
12307
2d188dd3
NC
123082003-01-24 Nick Clifton <nickc@redhat.com>
12309
12310 * Add sh2e support:
12311
12312 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12313
12314 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12315 (sh2e_show_regs): New.
12316 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12317 * config/sh/tm-sh.h: Added sh2e to comments.
12318
cb3c37b2
JB
123192003-01-23 Jim Blandy <jimb@redhat.com>
12320
12321 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12322 symbols found)" message here; we haven't checked for a separate
12323 debug info file yet, so we don't know yet.
12324 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12325 we've looked everywhere. Also, there's no need to print a special
12326 message when we're loading the separate debug info file: the one
12327 symbol_file_add prints is fine.
12328
5b5d99cf
JB
123292003-01-23 Alexander Larsson <alexl@redhat.com>
12330 Jim Blandy <jimb@redhat.com>
12331
12332 Add support for executables whose debug info has been separated
12333 out into a separate file, leaving only a link behind.
12334 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12335 and separate_debug_objfile_backlink.
12336 (put_objfile_before): New declaration.
12337 * symfile.c: #include "filenames.h".
12338 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12339 debug info in a separate file, read that, too. Save the addrs
12340 argument, so we can use it again to read the separated debug info;
12341 syms_from_objfile modifies the table we pass it.
12342 (reread_symbols): After re-reading an objfile, call
12343 reread_separate_symbols to refresh its separate debug info
12344 objfile, if it has one.
12345 (reread_separate_symbols, find_separate_debug_file,
12346 get_debug_link_info, separate_debug_file_exists): New functions.
12347 (debug_file_directory): New global var.
12348 (_initialize_symfile): Initialize debug_file_directory, and
12349 provide the new `set debug-file-directory' command to let the user
12350 change it.
12351 * objfiles.c (free_objfile): If this objfile has its debug info in
12352 a separate objfile, free that one too. If this is itself a
12353 separate debug info objfile, clear our parent's backlink.
12354 (put_objfile_before): New function.
12355 * utils.c (gnu_debuglink_crc32): New function.
12356 * defs.h (gnu_debuglink_crc32): New declaration.
12357 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12358 * configure.in: Handle --with-separate-debug-dir config option.
12359 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12360 * acconfig.h (DEBUGDIR): New macro.
12361 * configure, aclocal.m4, config.in: Regenerated.
12362
7e8580c1
JB
123632003-01-22 Jim Blandy <jimb@redhat.com>
12364
7904e09f
JB
12365 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12366 like the old symbol_file_add, but taking new arguments: you can
12367 now pass in either a `struct section_addr_info' list to say where
12368 each section is loaded, or a `struct section_offsets' table. Pass
12369 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12370 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12371 with the appropriate quiescent values for the new arguments.
12372
7e8580c1
JB
12373 * symfile.c: #include "gdb_assert.h".
12374 (syms_from_objfile): Add the ability to pass in a section offset
12375 table directly, as an alternative to the section_addr_info table.
12376 Document arguments better.
12377 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12378 * symfile.h (syms_from_objfile): Update declaration.
12379 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12380 syms_from_objfile.
12381 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12382
d28f9cdf
DJ
123832003-01-22 Daniel Jacobowitz <drow@mvista.com>
12384
12385 Original patch by Tom Tromey <tromey@cygnus.com> and
12386 Jason Molenda <jmolenda@apple.com>.
12387 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12388 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12389 * NEWS: Mention profiling.
12390 * configure.in (--enable-gdbtk): Fix typo.
12391 (--enable-profiling): New. Set PROFILE_CFLAGS.
12392 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12393 Fill in function.
12394 (profiling_state): New variable.
12395 (mcleanup_wrapper): New function.
12396 (_initialize_maint): Remove NOTYET, fix call to
12397 add_setshow_boolean_cmd for "maint set profile".
12398 * configure: Regenerated.
12399
df21e465
MH
124002003-01-21 Martin M. Hunt <hunt@redhat.com>
12401
12402 * Makefile.in (install-gdbtk): Install PNG images too.
12403
73c1f219
AC
124042003-01-21 Andrew Cagney <ac131313@redhat.com>
12405
12406 * exec.c (text_start): Delete global variable.
12407 (exec_file_attach): Make text_start local to the function.
12408 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12409 * valops.c (hand_function_call): Delete code that handles
12410 BEFORE_TEXT_END and AFTER_TEXT_END.
12411 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12412 of CALL_DUMMY_LOCATION.
12413 * gdbarch.c: Regenerate.
12414 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12415 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12416 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12417 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12418 (text_end): Delete extern declaration.
12419
eb4f72c5
AC
124202003-01-21 Andrew Cagney <ac131313@redhat.com>
12421
12422 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12423 * blockframe.c (backtrace_below_main): Move to "frame.c".
12424 (frame_chain_valid): Delete check for backtrace_below_main.
12425 (_initialize_blockframe): Delete initialization, move ``set
12426 backtrace-below-main'' command to "frame.c".
12427 (do_flush_frames_sfunc): Delete function.
12428 * frame.c: Include "command.h" and "gdbcmd.h".
12429 (frame_type_from_pc): New function.
12430 (create_new_frame): Use frame_type_from_pc.
12431 (legacy_get_prev_frame): New function.
12432 (get_prev_frame): Rewrite. When an old style frame, call
12433 legacy_get_prev_frame. Otherwize, unwind the PC first.
12434 (_initialize_frame): Add ``set backtrace-below-main'' command.
12435 * Makefile.in (frame.o): Update dependencies.
12436
778ce8cc
AC
124372003-01-19 Andrew Cagney <ac131313@redhat.com>
12438
12439 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12440 DEPRECATED_REGISTERS_INFO.
12441
01c193c8
AC
124422003-01-19 Andrew Cagney <ac131313@redhat.com>
12443
12444 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12445 Maintainers'. Update `Various Maintainers'.
12446
dedc2a2b
AC
124472003-01-19 Andrew Cagney <ac131313@redhat.com>
12448
12449 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12450 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12451 Suppress actual parameters when `-'.
12452 * gdbarch.h, gdbarch.c: Regenerate.
12453
b7261c70
AC
124542003-01-19 Andrew Cagney <ac131313@redhat.com>
12455
12456 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12457 code handling dummy frames.
12458
dbe9fe58
AC
124592003-01-19 Andrew Cagney <ac131313@redhat.com>
12460
12461 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12462 (struct frame_unwind): Add field pop.
12463 * frame.h (frame_pop): Declare.
12464 * frame.c (frame_saved_regs_pop): New function.
12465 (trad_frame_unwinder): Add frame_saved_regs_pop.
12466 (frame_pop): New function.
12467 * dummy-frame.c (dummy_frame_pop): New function.
12468 (discard_innermost_dummy): New function.
12469 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12470 (dummy_frame_unwind): Add dummy_frame_pop.
12471 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12472 * valops.c (hand_function_call): Ditto.
12473 * stack.c (return_command): Ditto.
12474
570b8f7c
AC
124752003-01-18 Andrew Cagney <ac131313@redhat.com>
12476
12477 * cris-tdep.c: Fix function declaration indentation.
12478 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12479 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12480 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12481 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12482 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12483 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12484
124852003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12486
12487 * README (Unpacking and Installation -- quick overview):
12488 Warn against ".../gdb-5.3/gdb/configure".
12489
494cca16
AC
124902003-01-18 Andrew Cagney <ac131313@redhat.com>
12491
12492 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12493 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12494 (struct frame_unwind): Declare opaque.
12495 (dummy_frame_p): Declare function.
12496 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12497 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12498 * dummy-frame.c: Include "frame-unwind.h".
12499 (dummy_frame_p): New function.
12500 (dummy_frame_unwind): New variable.
12501 * frame.c: Include "frame-unwind.h".
12502 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12503 to use the new unwind field.
12504 (set_unwind_by_pc): Delete function.
12505 (create_new_frame, get_prev_frame): Set unwind field using
12506 frame_unwind_find_by_pc.
12507 (trad_frame_unwind, trad_frame_unwinder): New variables.
12508 * frame.h (trad_frame_unwind): Declare variable.
12509 (frame_id_unwind_ftype): Delete declaration.
12510 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12511 (struct frame_unwind): Declare opaque.
12512 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12513 register_unwind with a single unwind pointer.
12514 * frame-unwind.h, frame-unwind.c: New files.
12515 * Makefile.in (SFILES): Add frame-unwind.c.
12516 (frame_unwind_h): Define.
12517 (COMMON_OBS): Add frame-unwind.o.
12518 (frame-unwind.o): Specify dependencies.
12519 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12520
4efb68b1
AC
125212003-01-18 Andrew Cagney <ac131313@redhat.com>
12522
12523 * ada-valprint.c: Eliminate PTR.
12524 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12525 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12526 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12527 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12528 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12529 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12530 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12531
a84d24ee
AC
125322003-01-17 Andrew Cagney <ac131313@redhat.com>
12533
762f08a3
AC
12534 * main.c (captured_main): Don't use PTR.
12535 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12536 * gdbtypes.c (lookup_primitive_typename): Ditto.
12537 (lookup_struct_elt_type): Ditto.
12538 * f-valprint.c (info_common_command): Ditto.
12539 (list_all_visible_commons): Ditto.
12540 * jv-typeprint.c (java_type_print_base): Ditto.
12541
a84d24ee
AC
12542 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12543 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12544 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12545 i386-interix-nat.c and i386-interix-tdep.c. Rename
12546 m68klinux-nat.c and m68klinux-tdep.c. Rename
12547 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12548 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12549 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12550 * main.c (captured_main): Use xfree, not free.
12551
c170fb60
AC
125522003-01-16 Andrew Cagney <ac131313@redhat.com>
12553
12554 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12555 ID back using a parameter.
12556 * frame.c (frame_id_unwind): Update call.
12557 (frame_saved_regs_id_unwind): Update.
12558 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12559 * dummy-frame.h (struct frame_id): Add opaque declaration.
12560 (dummy_frame_id_unwind): Update declaration.
12561
867f3898
AC
125622003-01-15 Andrew Cagney <ac131313@redhat.com>
12563
12564 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12565
40622be8 125662003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12567
40622be8 12568 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12569
ae66c1fc
EZ
125702003-01-14 Elena Zannoni <ezannoni@redhat.com>
12571
997b089a 12572 Fix PR gdb/898
ae66c1fc
EZ
12573 * breakpoint.c (until_break_command): Add new argument. Use it to
12574 decide whether to stop only at the current frame or not.
12575 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12576 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12577 call.
12578 (advance_command): New function.
12579 (_initialize_infcmd): Update help string for 'until' command.
12580 Add new 'advance' command.
12581
a04257e6
DC
125822003-01-14 David Carlton <carlton@math.stanford.edu>
12583
12584 * linespec.c (decode_line_1): Normalize comments.
12585 (set_flags): Ditto.
12586 (locate_first_half): Ditto.
12587 (decode_compound): Ditto.
12588 (symtab_from_filename): Ditto.
12589 (decode_all_digits): Ditto.
12590 (decode_dollar): Ditto.
12591 (find_methods): Ditto.
12592 (find_toplevel_char): Ditto.
12593
1bac305b
AC
125942003-01-13 Andrew Cagney <ac131313@redhat.com>
12595
12596 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12597 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12598 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12599 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12600 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12601 * language.c, language.h, m32r-tdep.c: Update copyright.
12602 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12603 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12604 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12605 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12606 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12607 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12608
25caa7a8
EZ
126092003-01-13 Elena Zannoni <ezannoni@redhat.com>
12610
12611 * stabsread.h (process_later, resolve_cfront_continuation):
12612 Obsolete.
12613 Update copyright years.
12614 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12615 Update copyright year.
12616 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12617 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12618 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12619 Update copyright year.
12620 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12621 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12622 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12623 (parse_partial_symbols): Obsolete cfront support.
12624 * stabsread.c
12625 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12626 macros.
12627 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12628 read_cfront_baseclasses, read_cfront_member_functions,
12629 resolve_cfront_continuation,read_cfront_static_fields,
12630 copy_cfront_struct_fields): Obsolete functions.
12631 (define_symbol, read_one_struct_field): Obsolete cfront support.
12632 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12633 Update Copyright year.
12634
7789c6f5
EZ
126352003-01-13 Elena Zannoni <ezannoni@redhat.com>
12636
12637 * stack.c (print_frame_info, print_stack_frame_base_stub,
12638 print_stack_frame_base, show_and_print_stack_frame_stub,
12639 show_and_print_stack_frame, print_only_stack_frame_stub,
12640 print_only_stack_frame): Delete functions.
12641 (print_stack_frame_stub): Call print_frame_info instead of
12642 print_frame_info_base.
12643 (print_frame_info_base): Rename to print_frame_info.
12644 (backtrace_command_1): Call print_frame_info, instead of
12645 print_frame_info_base.
12646 (current_frame_command): Call print_stack_frame, instead of
12647 print_only_stack_frame.
12648 (frame_command): Call print_stack_frame, instead of
12649 show_and_print_stack_frame.
12650 (up_command): Ditto.
12651 (down_command): Ditto.
12652 * frame.h (print_only_stack_frame): Delete prototype.
12653 * infrun.c (normal_stop): Call print_stack_frame, instead of
12654 show_and_print_stack_frame.
12655 * thread.c (info_threads_command): Call print_stack_frame, instead
12656 of print_only_stack_frame.
12657
3f5a3016
AC
126582003-01-13 Andrew Cagney <ac131313@redhat.com>
12659
d99ba314
AC
12660 * README (Graphical interface to GDB): Update URL. Point at
12661 gdb/links/.
12662
3f5a3016
AC
12663 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12664 version match.
12665
083ae935
DJ
126662003-01-13 Daniel Jacobowitz <drow@mvista.com>
12667
12668 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12669 lines.
12670
5365276c
DJ
126712003-01-13 Daniel Jacobowitz <drow@mvista.com>
12672
12673 * thread-db.c (attach_thread): Prototype.
12674 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12675 thread information (ti), and valid flags (th_valid, ti_valid).
12676 (attach_thread): Move target_pid_to_str call to after the thread
12677 is added to GDB's list. Initialize the cache.
12678 (thread_get_info_callback, thread_db_map_id2thr)
12679 (thread_db_get_info): New functions.
12680 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12681 (thread_db_store_registers, thread_db_thread_alive)
12682 (thread_db_get_thread_local_address): Use them.
12683 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12684 of calling error() for threads in unknown state.
12685
12686 (clear_lwpid_callback): New function.
12687 (thread_db_resume): Use it to clear the cache.
12688
9fc30b6b
DJ
126892003-01-13 Daniel Jacobowitz <drow@mvista.com>
12690
12691 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12692 (resume_callback): Remove dead code.
12693
8f871025
AC
126942003-01-13 Andrew Cagney <ac131313@redhat.com>
12695
12696 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12697 predicate.
12698 * gdbarch.h, gdbarch.c: Regenerate.
12699 * stack.c (frame_info): Only initialize the saved registers when
12700 FRAME_INIT_SAVED_REGS_P.
12701 * frame.c (frame_saved_regs_register_unwind): Assert
12702 FRAME_INIT_SAVED_REGS_P.
12703 (deprecated_generic_get_saved_register): Ditto.
12704
3f565f1e
DJ
127052003-01-13 Daniel Jacobowitz <drow@mvista.com>
12706
12707 * source.c (openp): Squelch warning about "filename".
12708
072b1022
DJ
127092003-01-13 Daniel Jacobowitz <drow@mvista.com>
12710
12711 * source.c (openp): If the file does not exist don't necessarily
12712 search the path.
12713
973ccf8b
DJ
127142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12715
12716 Fix PR gdb/872.
12717 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12718 (integer_types_same_name_p): New function.
12719 (rank_one_type): Use it.
12720 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12721
030292b7
DJ
127222003-01-13 Daniel Jacobowitz <drow@mvista.com>
12723
12724 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12725 variables.
12726 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12727 * configure.in: Add --with-sysroot.
12728 * configure: Regenerated.
12729 * main.c (gdb_sysroot): New variable.
12730 (captured_main): Initialize gdb_sysroot.
12731 * defs.h (gdb_sysroot): New extern declaration.
12732 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12733
afb5d334
MC
127342003-01-12 Michael Chastain <mec@shout.net>
12735
12736 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12737
751ceeb4
MC
127382003-01-12 Michael Chastain <mec@shout.net>
12739
12740 * top.c (print_gdb_version): Bump copyright year to 2003.
12741
94cd26f8
DC
127422003-01-12 David Carlton <carlton@bactrian.org>
12743
12744 * linespec.c (symtab_from_filename): Rename variable 's' to
12745 'file_symtab'.
12746
1ce79225
AC
127472003-01-12 Andrew Cagney <ac131313@redhat.com>
12748
12749 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12750 dummy frame.
12751 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12752
fa1fd571
AC
127532003-01-12 Andrew Cagney <ac131313@redhat.com>
12754
12755 * d10v-tdep.c: Include "gdb_assert.h".
12756 (d10v_store_return_value): Rewrite to match current interface.
12757 (d10v_extract_struct_value_address): Ditto.
12758 (d10v_extract_return_value): Ditto.
12759 (d10v_gdbarch_init): Set store_restore_value,
12760 extract_struct_value_address and extract_return_value.
12761
68b8d23e
JB
127622003-01-12 J. Brobecker <brobecker@gnat.com>
12763
12764 * hpread.c (set_namestring): New procedure replacing the
12765 SET_NAMESTRING macro.
12766 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12767 by calls to set_namestring.
12768
127692003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12770
12771 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12772 a compilation warning.
12773 (hpread_process_one_debug_symbol): Likewise.
12774
88d262ca
DC
127752003-01-10 David Carlton <carlton@math.stanford.edu>
12776
12777 * linespec.c (decode_line_1): Rename variable 's' to
12778 'file_symtab'.
12779 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12780 (decode_dollar): Ditto.
12781 (decode_variable): Ditto.
12782 (symbol_found): Ditto.
12783
86669319
MC
127842003-01-09 Michael Chastain <mec@shout.net>
12785
12786 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12787
616a9dc4
CV
127882003-01-07 Corinna Vinschen <vinschen@redhat.com>
12789
12790 * win32-nat.c (set_process_privilege): New function.
12791 (child_attach): Call set_process_privilege() to enable the
12792 SE_DEBUG_NAME user privilege if available in process token.
12793
3269bcfa
JB
127942003-01-10 J. Brobecker <brobecker@gnat.com>
12795
12796 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12797 compilation error in the previous revision.
12798
2b0ee454
DC
127992003-01-09 David Carlton <carlton@math.stanford.edu>
12800
12801 * linespec.c: Update copyright.
12802
b3ba1b44
DJ
128032003-01-09 Daniel Jacobowitz <drow@mvista.com>
12804
12805 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12806 than inferior_ptid.
12807 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12808
4ef3f3be
AC
128092003-01-09 Andrew Cagney <ac131313@redhat.com>
12810
479ab5a0
AC
12811 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12812 Update comments.
12813 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12814 (frame_saved_regs_zalloc): Update.
12815 (frame_saved_regs_register_unwind): Update.
12816 (create_new_frame): Update.
12817 (get_prev_frame): Update.
12818 (frame_extra_info_zalloc): Update.
12819 (deprecated_get_frame_saved_regs): Update.
12820 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12821 * cris-tdep.c: Update comment.
12822
bde58177
AC
12823 * somsolib.h: Fix function indentation.
12824 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12825 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12826 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12827 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12828 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12829
4ef3f3be
AC
12830 * infrun.c (follow_fork): Use ISO C definition.
12831 * expprint.c (print_subexp): Use xfree instead of free.
12832 * charset.c: Include "gdb_string.h" instead of <string.h>.
12833 (register_iconv_charsets): Use ISO C definition.
12834 (host_charset, target_charset): Ditto.
12835 * Makefile.in (charset.o): Update dependencies.
12836 (mi-cmd-env.o): Update dependencies.
12837
1c615f7a
AC
128382003-01-08 Andrew Cagney <cagney@redhat.com>
12839
12840 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12841 get_frame_base.
12842
c9a1dc08
AC
128432003-01-08 Andrew Cagney <ac131313@redhat.com>
12844
12845 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12846 build directories. Save edited gdb output in Mbuild.log. If a
12847 build fails, remove any final GDB executable.
12848
dbad9d94
AC
128492003-01-08 Andrew Cagney <ac131313@redhat.com>
12850
12851 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12852 replacing hex constants with function names and stripping leading
12853 file name directory prefixes.
12854
8d357cca
AC
128552003-01-08 Andrew Cagney <cagney@redhat.com>
12856
12857 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12858 get_frame_base.
12859
bca02a8a
DC
128602003-01-08 David Carlton <carlton@math.stanford.edu>
12861
12862 * linespec.c (decode_line_1): Move code into decode_variable.
12863 (decode_variable): New function.
12864
7f8ab3a0
AC
128652003-01-08 Andrew Cagney <ac131313@redhat.com>
12866
12867 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12868
7b5849cc
AC
128692003-01-08 Andrew Cagney <cagney@redhat.com>
12870
12871 * cris-tdep.c (cris_frame_init_saved_regs): Use
12872 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12873 saved_regs buffer.
12874 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12875 (sh64_nofp_frame_init_saved_regs): Ditto.
12876 (sh_fp_frame_init_saved_regs): Ditto.
12877 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12878 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12879 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12880 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12881
72a5efb3
DJ
128822003-01-08 Daniel Jacobowitz <drow@mvista.com>
12883
12884 * minsyms.c (lookup_minimal_symbol): Update comment.
12885 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12886 (lookup_minimal_symbol_solib_trampoline): Likewise.
12887
11c02a10
AC
128882003-01-08 Andrew Cagney <cagney@redhat.com>
12889
aab3ea25
AC
12890 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12891 frame_relative_level.
12892
da50a4b7
AC
12893 * alpha-tdep.c: Use get_frame_extra_info.
12894 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12895 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12896 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12897 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12898
11c02a10
AC
12899 * alpha-tdep.c: Use get_next_frame.
12900 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12901 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12902 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12903 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12904 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12905 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12906 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12907
1e2330ba
AC
129082003-01-07 Andrew Cagney <cagney@redhat.com>
12909
12910 * alpha-tdep.c: Use get_frame_base.
12911 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12912 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12913 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12914 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12915 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12916 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12917 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12918 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12919
2d75187b
AC
129202003-01-07 Andrew Cagney <cagney@redhat.com>
12921
12922 * frame.c (deprecated_get_frame_context): New function.
12923 (deprecated_set_frame_context): New function.
12924 * frame.h (deprecated_get_frame_context): Declare.
12925 (deprecated_set_frame_context): Declare.
12926 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12927 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12928
483d36b2
AC
129292003-01-07 Andrew Cagney <cagney@redhat.com>
12930
12931 * frame.c (deprecated_set_frame_next_hack): New function.
12932 (deprecated_set_frame_prev_hack): New function.
12933 * frame.h (deprecated_set_frame_next_hack): Declare.
12934 (deprecated_set_frame_prev_hack): Declare.
12935 * mcore-tdep.c (analyze_dummy_frame): Use
12936 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12937 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12938
14e91ac5
DC
129392003-01-07 David Carlton <carlton@math.stanford.edu>
12940
12941 * linespec.c (decode_line_1): Move code into decode_dollar.
12942 (decode_dollar): New function.
12943
b0c6b05c
AC
129442003-01-07 Andrew Cagney <cagney@redhat.com>
12945
12946 * arm-tdep.c (arm_init_extra_frame_info): Use
12947 deprecated_update_frame_base_hack.
12948 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12949 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12950 (fix_frame_pointer): Ditto.
12951 (mn10300_analyze_prologue): Ditto.
12952
a00a19e9
AC
129532003-01-07 Andrew Cagney <cagney@redhat.com>
12954
12955 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12956 extra_info using frame_extra_info_zalloc.
12957 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12958 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12959 (sh64_init_extra_frame_info): Ditto.
12960 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12961 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12962 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12963 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12964 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12965 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12966 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12967 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12968 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12969 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12970 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12971 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12972
12973 * mn10300-tdep.c (analyze_dummy_frame): Use
12974 deprecated_set_frame_extra_info_hack.
12975 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12976
1fb4c65b
JB
129772003-01-07 J. Brobecker <brobecker@gnat.com>
12978
12979 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12980 class is not scText. These do not define "real" procedures.
12981 (parse_partial_symbols): Likewise.
12982
9fe7d6bf
MS
129832003-01-06 Michael Snyder <msnyder@redhat.com>
12984
12985 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12986
f6c609c4
AC
129872003-01-06 Andrew Cagney <ac131313@redhat.com>
12988
12989 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12990 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12991 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12992 deprecated_frame_xmalloc_with_cleanup.
12993 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12994 deprecated_frame_xmalloc.
12995 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12996 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12997
d995ff4b
AC
129982003-01-06 Andrew Cagney <cagney@redhat.com>
12999
84dc46cb
AC
13000 * x86-64-linux-tdep.c: Include "osabi.h".
13001 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13002
d995ff4b
AC
13003 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13004
66140c26
AC
130052003-01-06 Andrew Cagney <cagney@redhat.com>
13006
13007 * MAINTAINERS (Target Instruction Set Architectures): Update
13008 arm-elf. Can be built with -Werror, has been multiarched.
13009
13010 * value.h (unpack_long): Make buffer parameter constant.
13011 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13012 * scm-lang.h (scm_parse): Ditto.
13013 * defs.h (extract_typed_address, extract_address): Ditto.
13014 (extract_long_unsigned_integer): Ditto.
13015 * inferior.h (unsigned_pointer_to_address): Ditto.
13016 (signed_pointer_to_address): Ditto.
13017 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13018 * gdbarch.h, gdbarch.c: Regenerate.
13019 * findvar.c (extract_long_unsigned_integer): Update.
13020 (extract_address): Update.
13021 (extract_typed_address): Update.
13022 (unsigned_pointer_to_address): Update.
13023 * values.c (unpack_long): Update.
13024 (unpack_double): Update.
13025 (unpack_pointer): Update.
13026 (unpack_field_as_long): Update.
13027 * d10v-tdep.c (d10v_pointer_to_address): Update.
13028 * avr-tdep.c (avr_pointer_to_address): Update.
13029 * scm-lang.c (scm_unpack): Update.
13030 * findvar.c (signed_pointer_to_address): Update.
13031
b089b3da
ML
130322003-01-06 Michal Ludvig <mludvig@suse.cz>
13033
8ffd9b1b 13034 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13035 since it is in i386-tdep.c.
13036
aff87235
JB
130372003-01-06 J. Brobecker <brobecker@gnat.com>
13038
13039 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13040 failure introduced in the previous change.
13041
34f5e845
MC
130422003-01-05 Michael Chastain <mec@shout.net>
13043
13044 * README: Remove references to deleted remote-*.c files:
13045 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13046 remote-nrom.c, remote-os9k.c, remote-udi.c.
13047
28bcfd30
MK
130482003-01-05 Mark Kettenis <kettenis@gnu.org>
13049
13050 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13051 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13052 i386_get_longjmp_target.
13053
15a5b3ee
AC
130542003-01-05 Andrew Cagney <ac131313@redhat.com>
13055
13056 * arm-tdep.c (prologue_cache): Change to a pointer.
13057 (_initialize_arm_tdep): Allocate prologue_cache.
13058 (check_prologue_cache): Update.
13059 (save_prologue_cache): Update.
13060 (arm_gdbarch_init): Update.
13061
c263362b
DJ
130622003-01-04 Daniel Jacobowitz <drow@mvista.com>
13063
13064 * stabsread.c (update_method_name_from_physname): Call complaint()
13065 instead of error.
13066
51603483
DJ
130672003-01-04 Daniel Jacobowitz <drow@mvista.com>
13068
13069 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13070 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13071 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13072
13073 * blockframe.c: Include "gdbcmd.h" and "command.h".
13074 (backtrace_below_main): New variable.
13075 (file_frame_chain_valid, func_frame_chain_valid)
13076 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13077 (generic_func_frame_chain_valid): Remove functions.
13078 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13079 (_initialize_blockframe): New function.
13080 * Makefile.in (blockframe.o): Update dependencies.
13081 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13082 comment. Call frame_chain_valid ().
13083 * frame.h: Remove old prototypes. Add prototype for
13084 frame_chain_valid and update comments to match.
13085 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13086 Remove old comment.
13087 * gdbarch.h: Regenerated.
13088 * gdbarch.c: Regenerated.
13089
13090 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13091 set_gdbarch_frame_chain_valid.
13092 * avr-tdep.c (avr_gdbarch_init): Likewise.
13093 * cris-tdep.c (cris_gdbarch_init): Likewise.
13094 * frv-tdep.c (frv_gdbarch_init): Likewise.
13095 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13096 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13097 (i386_nw_init_abi): Likewise.
13098 (i386_gdbarch_init): Likewise.
13099 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13101 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13102 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13103 * mips-tdep.c (mips_gdbarch_init): Likewise.
13104 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13105 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13106 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13107 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13108 * s390-tdep.c (s390_gdbarch_init): Likewise.
13109 * sh-tdep.c (sh_gdbarch_init): Likewise.
13110 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13111 * v850-tdep.c (v850_gdbarch_init): Likewise.
13112 * vax-tdep.c (vax_gdbarch_init): Likewise.
13113 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13114
13115 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13116 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13117 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13118 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13119 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13120 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13121 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13122 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13123
b00a8037
DJ
131242002-01-04 Daniel Jacobowitz <drow@mvista.com>
13125
13126 * Makefile.in (acconfig_h): Remove incorrect macro.
13127 (config_h): Define.
13128 (osabi.o): Update dependencies.
13129 * configure.tgt: Set gdb_osabi based on target triplet.
13130 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13131 * configure: Regenerated.
13132 * config.in: Regenerated.
13133 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13134 (GDB_OSABI_DEFAULT): Define if not already defined.
13135 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13136 (set_osabi_string): New variables.
13137 (gdbarch_register_osabi): Add new OS ABI to
13138 gdb_osabi_available_names.
13139 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13140 (set_osabi, show_osabi): New functions.
13141 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13142
4be87837
DJ
131432003-01-04 Daniel Jacobowitz <drow@mvista.com>
13144
13145 * arch-utils.c (gdbarch_info_init): Set osabi to
13146 GDB_OSABI_UNINITIALIZED.
13147 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13148 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13149 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13150 * gdbarch.c: Regenerated.
13151 * gdbarch.h: Regenerated.
13152 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13153 there's no BFD.
13154 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13155 * osabi.h (enum gdb_osabi): Move to defs.h.
13156 (gdbarch_init_osabi): Update prototype.
13157 * defs.h (enum gdb_osabi): Moved here.
13158 * Makefile.in: Update dependencies.
13159
13160 * alpha-tdep.h: Don't include "osabi.h".
13161 (struct gdbarch_tdep): Remove osabi member.
13162 * alpha-tdep.c: Include "osabi.h".
13163 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13164 iterate over arches. Update call to gdbarch_init_osabi.
13165 (alpha_dump_tdep): Don't dump osabi.
13166 * alpha-linux-tdep.c: Include "osabi.h".
13167 * alpha-osf1-tdep.c: Include "osabi.h".
13168 * alphafbsd-tdep.c: Include "osabi.h".
13169 * alphanbsd-tdep.c: Include "osabi.h".
13170
13171 * arm-tdep.h: Don't include "osabi.h".
13172 (struct gdbarch_tdep): Remove osabi member.
13173 * arm-tdep.c: Include "osabi.h".
13174 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13175 iterate over arches. Update call to gdbarch_init_osabi.
13176 (arm_dump_tdep): Don't dump osabi.
13177 * arm-linux-tdep.c: Include "osabi.h".
13178 * armnbsd-tdep.c: Include "osabi.h".
13179
13180 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13181 Update call to gdbarch_init_osabi.
13182
13183 * i386-tdep.h: Don't include "osabi.h".
13184 (struct gdbarch_tdep): Remove osabi member.
13185 * i386-tdep.c: Include "osabi.h".
13186 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13187 iterate over arches. Update call to gdbarch_init_osabi.
13188 (i386_dump_tdep): Don't dump osabi.
13189 * i386-linux-tdep.c: Include "osabi.h".
13190 * i386-sol2-tdep.c: Include "osabi.h".
13191 * i386bsd-tdep.c: Include "osabi.h".
13192 * i386gnu-tdep.c: Include "osabi.h".
13193 * i386ly-tdep.c: Include "osabi.h".
13194 * i386nbsd-tdep.c: Include "osabi.h".
13195 * i386obsd-tdep.c: Include "osabi.h".
13196
13197 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13198 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13199 check osabi when iterating over arches. Update call to
13200 gdbarch_init_osabi.
13201 (mips_dump_tdep): Don't dump osabi.
13202
13203 * ns32k-tdep.h: Don't include "osabi.h".
13204 (struct gdbarch_tdep): Remove.
13205 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13206 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13207 allocate tdep. Update call to gdbarch_init_osabi.
13208 (ns32k_dump_tdep): Remove.
13209 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13210 * ns32knbsd-tdep.c: Include "osabi.h".
13211
13212 * ppc-tdep.h: Don't include "osabi.h".
13213 (struct gdbarch_tdep): Remove osabi member.
13214 * rs6000-tdep.c: Include "osabi.h".
13215 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13216 osabi when iterating over arches. Update call to
13217 gdbarch_init_osabi.
13218 (rs6000_dump_tdep): Don't dump osabi.
13219 * ppc-linux-tdep.c: Include "osabi.h".
13220 * ppcnbsd-tdep.c: Include "osabi.h".
13221
13222 * sh-tdep.h: Don't include "osabi.h".
13223 (struct gdbarch_tdep): Remove osabi member.
13224 * sh-tdep.c: Include "osabi.h".
13225 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13226 iterate over arches. Update call to gdbarch_init_osabi.
13227 (sh_dump_tdep): Don't dump osabi.
13228 * shnbsd-tdep.c: Include "osabi.h".
13229
13230 * sparc-tdep.c: Include "osabi.h".
13231 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13232 iterate over arches. Update call to gdbarch_init_osabi.
13233 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13234 tdep structure.
13235
13236 * vax-tdep.h: Don't include "osabi.h".
13237 (struct gdbarch_tdep): Remove.
13238 * vax-tdep.c: Include "osabi.h".
13239 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13240 iterate over arches. Don't allocate tdep. Update call
13241 to gdbarch_init_osabi.
13242 (vax_dump_tdep): Remove.
13243 (_initialize_vax_tdep): Update call to gdbarch_register.
13244
a881cf8e
DJ
132452003-01-04 Daniel Jacobowitz <drow@mvista.com>
13246
13247 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13248 entirely.
13249 (breakpoint_re_set_one): Don't fetch the value for a disabled
13250 watchpoint.
13251
1e698235
DJ
132522003-01-04 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13255 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13256 (COERCE_FLOAT_TO_DOUBLE): Remove.
13257 * gdbarch.c: Regenerate.
13258 * gdbarch.h: Regenerate.
13259 * Makefile.in: Remove value_h from gdbarch_h.
13260 * valops.c (coerce_float_to_double): New variable.
13261 (default_coerce_float_to_double): Remove.
13262 (standard_coerce_float_to_double): Remove.
13263 (value_arg_coerce): Use coerce_float_to_double.
13264 (_initialize_valops): Add "set coerce-float-to-double".
13265 * value.h (default_coerce_float_to_double): Remove prototype.
13266 (standard_coerce_float_to_double): Remove prototype.
13267
13268 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13269 prototyped.
13270 * mdebugread.c (parse_symbol): Likewise.
13271 * stabsread.c (define_symbol): Mark all functions as prototyped.
13272
13273 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13274 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13275 set_gdbarch_coerce_float_to_double.
13276 * arm-tdep.c (arm_gdbarch_init): Likewise.
13277 * frv-tdep.c (frv_gdbarch_init): Likewise.
13278 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13279 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13280 * mips-tdep.c (mips_gdbarch_init): Likewise.
13281 (mips_coerce_float_to_double): Remove.
13282 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13283 (rs6000_coerce_float_to_double): Remove.
13284 * s390-tdep.c (s390_gdbarch_init): Likewise.
13285 * sh-tdep.c (sh_gdbarch_init): Likewise.
13286 (sh_coerce_float_to_double): Remove.
13287 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13288 (sparc_coerce_float_to_double): Remove.
13289 * v850-tdep.c (v850_gdbarch_init): Likewise.
13290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13291 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13292 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13293 (hppa_coerce_float_to_double): Remove prototype.
13294 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13295
f436a26a
DJ
132962003-01-04 Daniel Jacobowitz <drow@mvista.com>
13297
13298 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13299
248f8055
DJ
133002003-01-04 Daniel Jacobowitz <drow@mvista.com>
13301
13302 Suggested by Stewart Brown <sb24@avaya.com>:
13303 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13304 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13305 (c_type_print_varspec_suffix): Likewise.
13306
72cfdc76
MK
133072003-01-04 Mark Kettenis <kettenis@gnu.org>
13308
bfd260bb
MK
13309 * configure.in: Don't set and AC_SUBST SUBDIRS.
13310 * configure: Regenerated.
13311
72cfdc76
MK
13312 * configure.in: Remove code dealing with shared libraries.
13313 * Makefile.in: Remove HLDFLAGS and HLDENV.
13314 * configure: Regenerated.
13315
c8b8a898
AC
133162003-01-04 Andrew Cagney <ac131313@redhat.com>
13317
13318 * frame.c (deprecated_frame_xmalloc): New function.
13319 (deprecated_set_frame_saved_regs_hack): New function.
13320 (deprecated_set_frame_extra_info_hack): New function.
13321 * frame.h (deprecated_frame_xmalloc): Declare.
13322 (deprecated_set_frame_saved_regs_hack): Declare.
13323 (deprecated_set_frame_extra_info_hack): Declare.
13324
14abd0fb
MK
133252003-01-04 Mark Kettenis <kettenis@gnu.org>
13326
8ee53726
MK
13327 * configure.in: Move code that provides the --enable-gdbtk option
13328 right after the code that handles the --enable-tui option, and
13329 polish it somewhat.
13330 * configure: Regenerated.
13331
14abd0fb
MK
13332 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13333 AC_CHECK_FUNCS and remove the old check for pread64.
13334 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13335 * acconfig.h (_GNU_SOURCE): Add.
13336 (HAVE_PREAD64): Remove.
13337 * configure, aclocal.m4, config.in: Regenerated.
13338
b2fb4676
AC
133392003-01-03 Andrew Cagney <ac131313@redhat.com>
13340
13341 * alpha-tdep.c: Use get_frame_saved_regs.
13342 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13343 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13344 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13345 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13346 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13347
8dcde887
MK
133482003-01-03 Mark Kettenis <kettenis@gnu.org>
13349
13350 * configure.in: Remove all use of the SUBDIRS variable; add
13351 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13352 code providing the --enable-multi-ice option, and move it right in
13353 front of the code that checks whether gdbserver is supported.
13354 Polish that too.
13355 * configure: Regenerated.
13356 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13357 @SUBDIRS@.
13358
8ccd593b
AC
133592003-01-03 Andrew Cagney <cagney@redhat.com>
13360
13361 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13362 * avr-tdep.c, cris-tdep.c: Ditto.
13363 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13364 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13365
91151a06
MK
133662003-01-03 Mark Kettenis <kettenis@gnu.org>
13367
13368 * configure.in: Remove --enable-netrom option.
13369 * configure: Regenerated.
13370
8fe84d01
MK
133712003-01-03 Mark Kettenis <kettenis@gnu.org>
13372
13373 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13374 declaration for `struct re_pattern_buffer' instead.
13375 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13376
f0394be6
JB
133772003-01-03 J. Brobecker <brobecker@gnat.com>
13378
13379 * mdebugread.c (parse_symbol): Count until the stEnd matching
13380 the structure name.
13381
27e9bf90
MK
133822003-01-02 Mark Kettenis <kettenis@gnu.org>
13383
93d331ba
MK
13384 * configure.in: Remove --with-cpu option.
13385 subscripts. Remove evil changequotes here.
13386 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13387 * config.in, configure: Regenerated.
8ffd9b1b 13388
27e9bf90
MK
13389 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13390 * configure.in: Cleanup section that sources GDB and BFD configure
13391 subscripts. Remove evil changequotes here.
13392 * config.in, configure: Regenerated.
13393
50abf9e5
AC
133942003-01-02 Andrew Cagney <ac131313@redhat.com>
13395
13396 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13397 frame accessor methods.
13398 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13399 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13400 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13401 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13402 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13403 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13404 * z8k-tdep.c: Ditto.
8ffd9b1b 13405
287c1a40
MK
134062003-01-02 Mark Kettenis <kettenis@gnu.org>
13407
f5dbc56d
MK
13408 * configure.in: Remove UI_OUT configuration code.
13409 * ada-lang.c: Update assuming UI_OUT is always true.
13410 * Makefile.in (UIOUT_CFLAGS): Remove.
13411 * configure: Regenerated.
13412 * TODO: Remove blurb about elimination of -DUI_OUT.
13413
627af7ea
MK
13414 * configure.in: Move code that provides the --enable-gdbcli,
13415 --enable-gdbmi options right before the code that handles the
13416 --enable-tui option. Polish a bit.
13417 * configure: Regenerated.
13418
06825bd1
MK
13419 * configure.in: Rewrite check for GNU regex and the
13420 --without-included regex option, and move it into the "Checks for
13421 library functions" section. This makes us use the system regex
13422 again by default on systems with version 2 of the GNU C library.
13423 This was apparently broken.
13424 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13425 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13426 * config.in, configure: Regenerated.
13427
287c1a40
MK
13428 * configure.in: Move code that provides the --enable-tui option
13429 before the "Checks for libraries" section. Polish the code
13430 somewhat and set need_curses to yes if we build the TUI. Rewrite
13431 code that looks for a library providing termcap functionality to
13432 match more closely what's done in the Readline library, and move
13433 it into to the "Checks for libraries" section.
13434 * configure: Regenerated.
13435 * Makefile.in (TERMCAP): Remove variable.
13436 * config/i386/go32.mh (TERMCAP): Remove variable.
13437
684e56bf
AC
134382003-01-02 Andrew Cagney <ac131313@redhat.com>
13439
13440 * MAINTAINERS: Mention gdb_mbuild.sh.
13441 * gdb_mbuild.sh: Rewrite.
13442
e1ea1d75
MK
134432003-01-02 Mark Kettenis <kettenis@gnu.org>
13444
13445 * configure.in: Fix typo in last change.
13446 * config.in, configure: Regenerated.
13447
1b831c93
AC
134482003-01-02 Andrew Cagney <ac131313@redhat.com>
13449
13450 * valarith.c (value_binop): Delete obsolete code and comments.
13451 * configure.host: Ditto.
13452 * buildsym.h (make_blockvector): Ditto.
13453 * buildsym.c (make_blockvector): Ditto.
13454 * defs.h (enum language): Ditto.
13455 (chill_demangle): Ditto.
13456 * elfread.c (elf_symtab_read): Ditto.
13457 * dwarfread.c (CHILL_PRODUCER): Ditto.
13458 (set_cu_language): Ditto.
13459 (handle_producer): Ditto.
13460 * expprint.c (print_subexp): Ditto.
13461 * gdbtypes.c (chill_varying_type): Ditto.
13462 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13463 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13464 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13465 (chill_varying_type): Ditto.
13466 * language.h (_LANG_chill): Ditto.
13467 * language.c (binop_result_type, integral_type): Ditto.
13468 (character_type, string_type, structured_type): Ditto.
13469 (lang_bool_type, binop_type_check): Ditto.
13470 * stabsread.h (os9k_stabs): Ditto.
13471 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13472 (define_symbol, read_type, read_struct_fields): Ditto.
13473 (read_array_type, read_enum_type, read_huge_number): Ditto.
13474 (read_range_type, start_stabs): Ditto.
13475 * symfile.c (init_filename_language_table): Ditto.
13476 (add_psymbol_with_dem_name_to_list): Ditto.
13477 * symtab.c (symbol_init_language_specific): Ditto.
13478 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13479 * symtab.h (struct general_symbol_info): Ditto.
13480 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13481 * typeprint.c (typedef_print): Ditto.
13482 * utils.c (fprintf_symbol_filtered): Ditto.
13483 * valops.c (value_cast, search_struct_field, value_slice): Delete
13484 obsolete code.
13485 (varying_to_slice): Delete function.
13486 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13487 (varying_to_slice): Delete declaration.
13488 * MAINTAINERS: Update.
13489
8bb2c122
MK
134902003-01-02 Mark Kettenis <kettenis@gnu.org>
13491
97bf5e38
MK
13492 * configure.in: Reorganize "Checks for library functions section"
13493 a bit. Remove check for `btowc' and `isascii' functions.
13494 * configure: Regenerated.
13495
5ee754fc
MK
13496 * acconfig.h (_MSE_INT_H): Remove.
13497 * configure.in: Create "Checks for header files" section, and move
13498 appropriate tests there. Don't check for objlist.h, wchar.h,
13499 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13500 misdetection fix. Also add "Checks for types", "Checks for
13501 compiler characteristics" and "Checks for library functions"
13502 sections.
13503 * config.in, configure: Regenerated.
13504
8bb2c122
MK
13505 * configure.in: Create "Checks for programs" section, and move
13506 appropriate tests there.
13507
9a156167
MK
135082003-01-01 Mark Kettenis <kettenis@gnu.org>
13509
13510 * configure.in: Create "Checks for libraries" section, and move
13511 appropriate tests there. Cleanup check for wctype in libw. Use
13512 AC_SEARCH_LIBS to see whether we need libsocket.
13513 * configure: Regenerated.
13514
a80e2bcb 13515For older changes see ChangeLog-2002
c906108c
SS
13516\f
13517Local Variables:
13518mode: change-log
13519left-margin: 8
13520fill-column: 74
13521version-control: never
13522End:
This page took 1.096439 seconds and 4 git commands to generate.