* objfiles.h (clear_objfile_data): New prototype.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7b097ae3
MK
12003-10-29 Mark Kettenis <kettenis@gnu.org>
2
3 * objfiles.h (clear_objfile_data): New prototype.
4 * objfiles.c (clear_objfile_data): New function.
5 * symfile.c (reread_symbols): Clear per-objfile data.
6
46f45a4a
JJ
72003-10-28 Jeff Johnston <jjohnstn@redhat.com>
8
9 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
10 printf_unfiltered instead of printf_filtered for output messages.
11 (add_symbol_file_command): Ditto.
12 (reread_symbols): Ditto.
13 (overlay_auto_command): Ditto.
14 (overlay_manual_command): Ditto.
15 (overlay_off_command): Ditto.
16
2b026650
MK
172003-10-27 Mark Kettenis <kettenis@gnu.org>
18
19 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
20 (gdbarch_from_bfd): New function.
21 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
22 deprecated_select_gdbarch_hack.
23 * arch-utils.h (gdbarch_from_bfd): New prototype.
24
0bcad584 252003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
26
27 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
28 arch_info. Use warning instead of fprintf_filtered. Do not use
29 deprecated bfd_printable_arch_mach.
30
7f398216
KB
312003-10-26 Kevin Buettner <kevinb@redhat.com>
32
33 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
34 Delete.
35 (frv_register_type): Rename from frv_register_virtual_type. Add
36 ``struct gdbarch *'' parameter.
37 (frv_gdbarch_init): Delete calls to the following functions:
38 set_gdbarch_deprecated_size(),
39 set_gdbarch_deprecated_register_bytes(),
40 set_gdbarch_deprecated_register_raw_size(),
41 set_gdbarch_deprecated_max_register_raw_size(),
42 set_gdbarch_deprecated_register_virtual_size(),
43 set_gdbarch_deprecated_max_register_virtual_size(),
44 set_gdbarch_deprecated_register_virtual_size(),
45 set_gdbarch_deprecated_register_virtual_type().
46 Add call to function set_gdbarch_register_type().
47
bcf48cc7
MK
482003-10-26 Mark Kettenis <kettenis@gnu.org>
49
6c7de422
MK
50 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
51 FDOFF_REGNUM): Remove defines.
52 * win32-nat.c (do_child_fetch_inferior_registers): Include
53 "i387-tdep.h".
3e685d41 54 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
55 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
56 undefine I387_ST0_REGNUM.
57
f783586b
MK
58 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
59 * x86-64-tdep.c (x86_64_store_return_value): Use
60 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
61
bcf48cc7
MK
62 Change register numbers to enumartion values.
63 * i386-tdep.h (enum i386_regnum): New.
64 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
65 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
66 I386_ST0_REGNUM): Remove defines.
67 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
68 I386_EDI_REGNUM): Remove defines.
69
b6591e8b
AC
702003-10-24 Andrew Cagney <cagney@redhat.com>
71
72 * target.c: Include "gdbcore.h".
73 (get_target_memory, get_target_memory_unsigned): New functions.
74 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
75 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
76 Use get_target_memory_unsigned.
77 * Makefile.in (target.o): Update dependencies.
78
5f724446
AC
792003-10-24 Andrew Cagney <cagney@redhat.com>
80
ce2826aa
AC
81 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
82 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
83 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
84 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
85 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
86
5f724446
AC
87 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
88 (can_run_code_for): Use the OO term "singleton".
89
fc70c2a0
AC
902003-10-23 Andrew Cagney <cagney@redhat.com>
91
92 * Makefile.in (stack.o): Add $(regcache_h).
93 * stack.c: Include "regcache.h"
94 (return_command): Rewrite. Use get_frame_id and
95 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
96 about unhandled return-values.
97 * value.h (set_return_value): Delete declaration.
98 * values.c (set_return_value): Delete function.
99
4afcc598
JJ
1002003-10-23 Jeff Johnston <jjohnstn@redhat.com>
101
102 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
103 (pseudo_regs): Add comment regarding register stack registers.
104 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
105 (floatformat_valid): New static routine.
106 (floatformat_ia64_ext): Add name field and set up is_valid routine
107 to floatformat_valid().
108 (examine_prologue): For the previous cfm, use
109 frame_unwind_register()
110 if the cfm is not stored in a register-stack register. Save the
111 previous cfm value in the prev_cfm field. Add debug output.
112 (ia64_frame_this_id): Use frame_id_build_special() to also register
113 the bsp. Add debug output.
114 (ia64_sigtramp_frame_this_id): Ditto.
115 (ia64_frame_prev_register): Look at cache saved_regs for a few more
116 registers and also add some checks for framelessness before accepting
117 current register values for fields such as return address. For cfm,
118 use the cached prev_cfm field if available. Add comment to explain
119 PSR logic. Add debug output.
120 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
121 as part of initialization.
122 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
123 calculated. Cache the bsp and cfm values.
124 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
125 instead of using ia64_frame_prev_register() which doesn't expect most
126 registers to be saved. The saved values for bsp and sp
127 can be taken from the cache. Add debug output.
128 (ia64_push_dummy_call): Use frame_id_build_special() to also register
129 the bsp.
130
6cfae0bc
JB
1312003-10-23 Jim Blandy <jimb@redhat.com>
132
133 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
134 architecture the current arch can run code for --- but not if it's
135 a superset.
136 (can_run_code_for): New function.
137
fcd182f9
JW
1382003-10-22 James E Wilson <wilson@specifixinc.com>
139
140 * MAINTAINERS: Move myself from paper trail section back to write
141 after approval section.
142
4646aa9d
AC
1432003-10-22 Andrew Cagney <cagney@redhat.com>
144
145 * exec.h: New file.
146 * win32-nat.c: Include "exec.h".
147 * solib.c: Include "exec.h".
148 * target.h (build_section_table): Delete declaration.
149 * somsolib.c: Include "exec.h".
150 (exec_ops): Delete extern declaration.
151 * rs6000-nat.c: Update copyright. Include "exec.h".
152 (exec_ops): Delete extern declaration.
153 * pa64solib.c: Update copyright. Include "exec.h".
154 (exec_ops): Delete extern declaration.
155 * exec.c: Update copyright. Include "exec.h".
156 * corelow.c: Update dependencies. Include "exec.h".
157 * Makefile.in (exec_h): Define.
158 (exec.o, somsolib.o): Update dependencies.
159 (pa64solib.o, corelow.o): Update dependencies.
160
0088c768
AC
1612003-10-22 Andrew Cagney <cagney@redhat.com>
162
163 * target.c: Include "gdb_assert.h" (target_read): Call
164 "target_read_partial", not "target_write_partial".
165 (default_read_partial, default_write_partial): New function.
166 (target_read_partial, target_write_partial): Simplify, assume that
167 there is always a read/write method.
168 (update_current_target, add_target): Always set "to_read_partial"
169 and "to_write_partial".
170 (target_write, target_read): Fail on a zero byte transfer.
171 * Makefile.in (target.o): Update dependencies.
172 * target.h: Update copyright date.
173 (target_object): Fix typo.
174
e2d0e7eb
AC
1752003-10-22 Andrew Cagney <cagney@redhat.com>
176
177 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
178 multi-arch method, add "targ" parameter.
179 (struct target_ops): Declare.
180 * gdbarch.h, gdbarch.c: Re-generate.
181 * Makefile.in (c-valprint.o): Update dependencies.
182 * arch-utils.h: Update copyright.
183 (convert_from_func_ptr_addr_identity): Declare.
184 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
185 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
186 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
187 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
188 * infcall.c (find_function_addr, call_function_by_hand): Update.
189 * c-valprint.c: Include "target.h".
190 (print_function_pointer_address): Update.
191
f1c07ab0
AC
1922003-10-22 Andrew Cagney <cagney@redhat.com>
193
194 * target.c (target_close): New function.
195 (debug_to_close): Use "target_close".
196 (push_target): Use "target_close".
197 (unpush_target): Use "target_close".
198 (pop_target): Use "target_close".
199 * target.h (struct target_ops): Add "to_xclose".
200 (target_open): Delete macro. Move comment to "to_open".
201 (target_close): Replace macro with function that takes a target.
202 * top.c (quit_target): Pass "current_target" to "target_close".
203
5520a790
EZ
2042003-10-21 Elena Zannoni <ezannoni@redhat.com>
205
206 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
207 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
208 * symtab.h (lookup_minimal_symbol_text): Update.
209 * breakpoint.c (create_overlay_event_breakpoint,
210 create_longjmp_breakpoint): Update callers.
211 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
212 * symtab.c (find_pc_sect_line): Ditto.
213
caa92b73
AC
2142003-10-21 Andrew Cagney <cagney@redhat.com>
215
216 * target.c (errno): Delete extern declaration.
217
aa2a9a3c
JJ
2182003-10-20 Jeff Johnston <jjohnstn@redhat.com>
219
220 * ia64-tdep.c: Change all occurrences of
221 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
222 (ia64_frame_prev_register): Minor whitespace change.
223
4beec2b7
MC
2242003-10-20 Michael Chastain <mec@shout.net>
225
226 * config/djgpp/fnchange.lst: Add lines for:
227 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
228 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
229 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
230 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
231 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
232 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
233 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
234
92ad9cd9
AC
2352003-10-20 Andrew Cagney <cagney@redhat.com>
236
237 * values.c (register_value_being_returned): Update comments. Use
238 "gdbarch_return_value" when available.
239 (using_struct_return): Ditto.
240 (set_return_value): Ditto. Use "gdbarch_return_value" when
241 available.. Print a warning, and not an error, when an unhandled
242 return type is encountered.
243 * infcmd.c: Include "gdb_assert.h".
244 (print_return_value): When gdbarch_return_value_p, and using
245 struct return, assume that the value is not available.
246 * defs.h (return_value_convention): Define.
247 * gdbarch.sh (gdbarch_return_value): New predicate method.
248 * gdbarch.h, gdbarch.c: Re-generate
249 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
250
198beae2
AC
2512003-10-20 Andrew Cagney <cagney@redhat.com>
252
253 * symtab.c: Replace "struct sec" with "struct bfd_section".
254 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
255
24d693a6 2562003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
257
258 * config/djgpp/fnchange.lst: Add lines for:
259 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
260 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
261 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
262
21ad8dc3
MK
2632003-10-19 Mark Kettenis <kettenis@gnu.org>
264
265 * amd64fbsd-nat.c (fetch_inferior_registers,
266 store_inferior_registers): Remove functions.
267 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
268
cced5e27
MK
2692003-10-18 Mark Kettenis <kettenis@gnu.org>
270
271 Add NetBSD/amd64 native configuration:
272 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
273 * amd64nbsd-tdep.c: New file.
274 * amd64nbsd-nat.c: New file.
275 * amd64bsd-nat.c: New file.
276 * config/i386/nbsd64.mh: New file.
277 * config/i386/nbsd64.mt: New file.
278 * configure.host: Add x86_64-*-netbsd*.
279 * configure.tgt: Add x86_64-*-netbsd*.
280 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
281 New targets.
282 * NEWS (New native configurations): Mention NetBSD/amd64.
283
666de3fd
MC
2842003-10-17 Michael Chastain <mec@shout.net>
285
286 * config/djgpp/fnchange.lst: Remove dead lines for:
287 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
288 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
289 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
290 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
291 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
292 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
293 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
294 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
295 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
296 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
297 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
298 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
299 gdb/config/sparc/tm-sparclite.h,
300 gdb/gdbtk/generic/ChangeLog-2001,
301 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
302 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
303 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
304 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
305 gdb/testsuite/gdb.mi/mi0-var-block.exp,
306 gdb/testsuite/gdb.mi/mi0-var-child.exp,
307 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
308 gdb/testsuite/gdb.mi/mi0-var-display.exp,
309 itcl/iwidgets3.0.0/demos/extfileselectionbox,
310 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
311 itcl/iwidgets3.0.0/demos/fileselectionbox,
312 itcl/iwidgets3.0.0/demos/fileselectiondialog,
313 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
314 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
315 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
316 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
317 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
318 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
319 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
320 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
321 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
322 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
323 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
324 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
325 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
326 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
327 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
328 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
329 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
330 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
331 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
332 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
333 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
334 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
335 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
336 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
337 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
338 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
339 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
340 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
341 itcl/iwidgets3.0.0/demos/html/shell.n.html,
342 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
343 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
344 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
345 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
346 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
347 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
348 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
349 itcl/iwidgets3.0.0/demos/scrolledcanvas,
350 itcl/iwidgets3.0.0/demos/scrolledframe,
351 itcl/iwidgets3.0.0/demos/scrolledhtml,
352 itcl/iwidgets3.0.0/demos/scrolledlistbox,
353 itcl/iwidgets3.0.0/demos/scrolledtext,
354 itcl/iwidgets3.0.0/demos/selectionbox,
355 itcl/iwidgets3.0.0/demos/selectiondialog,
356 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
357 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
358 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
359 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
360 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
361 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
362 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
363 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
364 itcl/iwidgets3.0.0/doc/scrolledframe.n,
365 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
366 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
367 itcl/iwidgets3.0.0/doc/scrolledtext.n,
368 itcl/iwidgets3.0.0/doc/selectionbox.n,
369 itcl/iwidgets3.0.0/doc/selectiondialog.n,
370 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
371 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
372 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
373 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
374 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
375 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
376 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
377 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
378 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
379 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
380 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
381 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
382 itcl/iwidgets3.0.0/generic/selectionbox.itk,
383 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
384 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
385 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
386 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
387 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
388 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
389 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
390 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
391 itcl/iwidgets3.0.0/tests/scrolledframe.test,
392 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
393 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
394 itcl/iwidgets3.0.0/tests/scrolledtext.test,
395 itcl/iwidgets3.0.0/tests/selectionbox.test,
396 itcl/iwidgets3.0.0/tests/selectiondialog.test,
397 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
398 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
399 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
400 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
401 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
402 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
403 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
404 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
405 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
406 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
407 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
408 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
409 tk/mac/tkMacProjects.sit.hqx.
410
1e3ff5ad
AC
4112003-10-17 Andrew Cagney <cagney@redhat.com>
412
8db32d44
AC
413 * target.c (target_section_by_addr): New function.
414 (do_xfer_memory): Use "target_section_by_addr".
415 * target.h (target_section_by_addr): Declare.
416
1e3ff5ad
AC
417 * target.h (struct target_ops): Add "to_read_partial" and
418 "to_write_partial", delete "to_query".
419 (target_read_partial, target_write_partial): Declare.
420 (target_read, target_write): Declare.
421 (target_query): Delete macro.
422 * target.c (target_read_partial): New function.
423 (target_write_partial, target_read, target_write): New function.
424 (update_current_target): Delete inheritance of "to_query". Add
425 comments about "to_read_partial" and "to_write_partial".
426 (debug_to_partial_read, debug_to_partial_write): New functions.
427 (debug_to_query): Delete function.
428 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
429 instead of "to_query".
430 * remote.c (remote_read_partial): Replace "remote_query".
431 (init_remote_ops): Set "to_read_partial" instead of "to_query".
432 (init_remote_async_ops): Ditto.
433 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
434 "target_read_partial" instead of "target_query".
435 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
436 Use "target_read_partial" instead of "target_query".
437
48c66725
JJ
4382003-10-17 Jeff Johnston <jjohnstn@redhat.com>
439
440 * frame.h (struct frame_id): Add new field: special_addr.
441 (frame_id_build_special): New prototype.
442 * frame.c (frame_id_build_special): New function.
443 (frame_id_build): Change to call frame_id_build_special().
444 (frame_id_eq): Change to also test special_addr field.
445 (frame_id_inner): Update comment.
446
7998dfc3
AC
4472003-10-17 Andrew Cagney <cagney@redhat.com>
448
449 * target.c (update_current_target): Perform the target cleanup.
450 Put the target stack beneath the squashed "current_target".
451 (add_target): Delete disabled call to "cleanup_target".
452 (cleanup_target): Delete function.
453 (push_target, unpush_target): Do not call "cleanup_target".
454
9c04404e 4552003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
456
457 * target.c (target_stack): Change to a static target_ops.
458 (update_current_target): Walk the "struct target_ops" stack.
459 (pop_target, do_xfer_memory, target_info): Ditto.
460 (find_target_beneath): Ditto.
461 (push_target): Rewrite to use the "struct target_ops" stack.
462 (unpush_target): Ditto.
463 * target.h (struct target_stack_item): Delete definition.
464 (target_stack): Delete declaration.
465 (struct target_ops): Add field "beneath".
466
c98a2b49 4672003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
468
469 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
470 declaration.
471 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
472 (h8300_examine_prologue): Use h8300_normal_mode flag
473 (h8300_gdbarch_init): Set architecture info for normal mode
474
506fb367
DJ
4752003-10-16 Daniel Jacobowitz <drow@mvista.com>
476
477 * remote.c (remote_protocol_vcont): New variable.
478 (set_remote_protocol_vcont_packet_cmd): New function.
479 (show_remote_protocol_vcont_packet_cmd): New function.
480 (init_all_packet_configs): Handle remote_protocol_vcont.
481 (remote_vcont_probe): New function.
482 (remote_vcont_resume): New function.
483 (remote_resume): Use it.
484 (remote_async_resume): Call remote_resume.
485 (_initialize_remote): Add verbose-resume packet commands.
486
65815ea1
AC
4872003-10-16 Andrew Cagney <cagney@redhat.com>
488
489 * infrun.c (handle_inferior_event): Add comment about
490 "frame_id_inner" being too weak.
491
40324f1b
EZ
4922003-10-16 Elena Zannoni <ezannoni@redhat.com>
493
494 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
495 second parameter, which is always null. Remove
496 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
497 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
498 accordingly.
499 * somsolib.c (som_solib_create_inferior_hook,
500 som_solib_desire_dynamic_linker_symbols): Update callers.
501 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
502
5032003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
504
505 * remote-m32r-sdi.c : New file, interface to m32r on-chip
506 debug interface, SDI (Scalable Debug Interface).
507 * NEWS: Mention m32r SDI protocol was supported.
508 * Makefile.in (remote-m32r-sdi.o): Add build rule.
509 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
510
51931cbb
JJ
5112003-10-15 Jeff Johnston <jjohnstn@redhat.com>
512
513 * ia64-linux-tdep.c: Include gdbcore.h.
514 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
515 (ia64_linux_sigcontext_register_addr): Find the address of the
516 sigcontext area stored in the sigframe instead of using
517 a magic offset constant.
518
84e7fd53
AC
5192003-10-15 Andrew Cagney <cagney@redhat.com>
520
521 * remote.c (remote_search): Delete function.
522 * target.h (target_search): Delete disabled macro.
523 (struct target_ops): Delete disabled field "to_search".
524
0f4d7c52
KB
5252003-10-14 Kevin Buettner <kevinb@redhat.com>
526
527 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
528 instead of deprecated_inside_entry_file().
529
2e952408
CV
5302003-10-14 Corinna Vinschen <vinschen@redhat.com>
531
532 * sh-tdep.c: Fix copy/paste hangover in comment.
533 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
534 mode.
535 (sh3e_sh4_extract_return_value): Ditto.
536
7e86466e
RH
5372003-10-13 Richard Henderson <rth@redhat.com>
538
539 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
540 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
541 match c_val_print a bit closer.
542
46a16dba
KB
5432003-10-13 Kevin Buettner <kevinb@redhat.com>
544
545 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
546 (frv_gdbarch_adjust_breakpoint_address): New function.
547 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
548 method.
549
76897487
KB
5502003-10-13 Kevin Buettner <kevinb@redhat.com>
551
552 * breakpoint.h (struct breakpoint): Add new member
553 ``requested_address''.
554 * breakpoint.c (breakpoint_adjustment_warning)
555 (adjust_breakpoint_address): New static functions.
556 (print_it_typical): Issue warning if breakpoint's address is different
557 from its requested address.
558 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
559 (breakpoint_re_set_one): Set breakpoint's
560 ``requested_address'' field. Set ``address'' field to the
561 result of calling adjust_breakpoint_address() on the requested
562 address.
563
a1131521
KB
5642003-10-13 Kevin Buettner <kevinb@redhat.com>
565
566 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
567 * gdbarch.h, gdbarch.c: Regenerate.
568
6ce6d90f
MK
5692003-10-11 Mark Kettenis <kettenis@gnu.org>
570
155c1d33
MK
571 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
572 TDEP->sc_num_regs.
573
8a96bc77
MK
574 * i386fbsd-tdep.c: New file.
575 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
576 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
577 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
578 i386bsd-tdep.c.
579 (_initialize_i386fbsd_tdep): New function.
580 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
581 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
582 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
583 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
584 TDEP->sc_num_regs.
585 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
586 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
587 to initialize TDEP->sc_num_regs.
588 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
589 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
590 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
591 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
592 FreeBSD ELF OS/ABI's here.
593 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
594 (i386fbsd-tdep.o): New target.
595 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
596 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
597
477f40d1
MK
598 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
599 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
600 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
601 in initialization of TDEP->sc_num_regs.
602
c6b33596
MK
603 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
604 (x86_64_init_abi): Initialize regset_from_core_section if
605 appropriate.
606
8446b36a
MK
607 * i386-tdep.c (i386_regset_from_core_section): New function.
608 (i386_gdbarch_init): Initialize regset_from_core_section if
609 appropriate.
610 * i386-tdep.h (i386_regset_from_core_section): New declaration.
611
c783cbd6
MK
612 * i386-tdep.h (struct regset): Declare opaque.
613
6ce6d90f
MK
614 * gdbarch.sh (regset_from_core_section): New method.
615 (struct regset): Declare opaque.
616 * gdbarch.c, gdbarch.h: Regenerated.
617
b98ed7be
AM
6182003-10-11 Alan Modra <amodra@bigpond.net.au>
619
620 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
621 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
622 Correct test for pc within section.
623
f6214256
MK
6242003-10-11 Mark Kettenis <kettenis@gnu.org>
625
626 * gdbarch.sh: Remove trailing whitepsace from comments.
627
a8f4cde1
RM
6282003-10-08 Roland McGrath <roland@redhat.com>
629
630 * gcore.c (make_mem_sec): Function removed, folded into ...
631 (gcore_create_callback): ... here. To omit a section, clear its
632 SEC_LOAD bit rather than zeroing its size.
633 Omit read-only sections only if they correspond to a known disk file.
634 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
635
74276724
MS
6362003-10-10 Michael Snyder <msnyder@redhat.com>
637
638 * d10v-tdep.c: Fix typo in comment.
639
e754ae69
AC
6402003-10-10 Andrew Cagney <cagney@redhat.com>
641
642 * rs6000-tdep.c (e500_store_return_value): Delete function.
643 (e500_extract_return_value): Delete function.
644 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
645 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
646 "ppc_sysv_abi_restore_return_value" where applicable.
647 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
648 (ppc_sysv_abi_extract_return_value): Declare.
649 (ppc_sysv_abi_broken_store_return_value): Declare.
650 (ppc_sysv_abi_broken_extract_return_value): Declare.
651 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
652 * ppc-sysv-tdep.c (return_value_convention): Move definition to
653 start of file.
654 (do_ppc_sysv_return_value): New function.
655 (ppc_sysv_abi_extract_return_value): New function.
656 (ppc_sysv_abi_store_return_value): New function.
657 (ppc_sysv_abi_broken_extract_return_value): New function.
658 (ppc_sysv_abi_broken_store_return_value): New function.
659 (ppc_sysv_abi_use_struct_convention): Call
660 do_ppc_sysv_return_value.
661
8d4ce20a
JB
6622003-10-10 J. Brobecker <brobecker@gnat.com>
663
664 * blockframe.c (inside_main_func): No longer use symbol_lookup()
665 to lookup the main function symbol.
666
afce3d2a
CV
6672003-10-10 Corinna Vinschen <vinschen@redhat.com>
668
669 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
670 types correctly.
671 (sh_push_dummy_call_fpu): Fix argument passing rules.
672 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
673 float types.
674 (sh3e_sh4_store_return_value): Ditto.
675
7fe958be
EZ
6762003-10-10 Elena Zannoni <ezannoni@redhat.com>
677
678 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
679 comment.
680
3f997a97
CV
6812003-10-10 Corinna Vinschen <vinschen@redhat.com>
682
683 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
684 more readable code. Accomodate passing of bitfields.
685
8be9034a
AC
6862003-10-10 Andrew Cagney <cagney@redhat.com>
687
688 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
689 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
690 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
691 * ppc-sysv-tdep.c: Include "gdb_assert.h".
692 (ppc64_sysv_abi_push_dummy_call): New function.
693 (ppc64_sysv_abi_broken_push_dummy_call): New function.
694 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
695 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
696
85a453d5
KI
6972003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
698
699 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
700 * README: Ditto.
701 * d10v-tdep.c: Ditto.
702 * h8300-tdep.c: Ditto.
703 * remote-e7000.c: Ditto.
704 * remote-hms.c: Ditto.
705 * ser-e7kpc.c: Ditto.
706 * sh-stub.c: Ditto.
707 * sh-tdep.c: Ditto.
708 * sh-tdep.h: Ditto.
709 * sh3-rom.c: Ditto.
710 * sh64-tdep.c: Ditto.
711 * top.c: Ditto.
712 * wince.c: Ditto.
713 * config/d10v/d10v.mt: Ditto.
714 * config/sh/embed.mt: Ditto.
715 * config/sh/linux.mt: Ditto.
716 * config/sh/tm-linux.h: Ditto.
717 * config/sh/tm-sh.h: Ditto.
718 * config/sh/wince.mt: Ditto.
719
221c12ff
AC
7202003-10-09 Andrew Cagney <cagney@redhat.com>
721
722 * ppc-tdep.h (struct type): Declare opaque.
723 * x86-64-tdep.h (struct regcache): Declare opaque.
724 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
725 coding style.
726
ef5200c1
AC
7272003-10-09 Andrew Cagney <cagney@redhat.com>
728
729 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
730 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
731 (SOFTWARE_SINGLE_STEP_P): Ditto.
732 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
733 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
734 (SOFTWARE_SINGLE_STEP_P): Ditto.
735 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
736 software_single_step to rs6000_software_single_step.
a8f4cde1 737
9644bbdd
AC
7382003-10-09 Andrew Cagney <cagney@redhat.com>
739
740 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
741
db72fa6b
MS
7422003-10-09 Michael Snyder <msnyder@redhat.com>
743
f3efb16c
MS
744 * frame.h: Fix typo in comment.
745 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
746 * d10v-tdep.c: Random whitespace/comment tweaks.
747
9a5cef92
EZ
7482003-10-09 Elena Zannoni <ezannoni@redhat.com>
749
750 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 751 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 752 on stack.
a8f4cde1 753
9a5cef92
EZ
754 Based on input by Stephen Clarke (stephen.clarke@superh.com):
755 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
756 in detail.
a8f4cde1 757
0f317a0c
DJ
7582003-10-09 Daniel Jacobowitz <drow@mvista.com>
759
760 * remote-mips.c (mips_initialize): Remove unneeded call to
761 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
762
bbab2f46
DJ
7632003-10-09 Daniel Jacobowitz <drow@mvista.com>
764
765 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
766 a memory pointer.
767
550950b8
JJ
7682003-10-08 Jeff Johnston <jjohnstn@redhat.com>
769
770 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
771 for any lwp we resume.
772 (running_callback): Add lwps that have pending status events
773 against them to be considered running.
774
15c69bc7
KI
7752003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
776
777 * m32r-tdep.c : Include "dis-asm.h".
778 * Makefile.in (m32r-tdep.o): Update dependencies.
779
51065942
JB
7802003-10-06 J. Brobecker <brobecker@gnat.com>
781
782 * completer.h (get_gdb_completer_word_break_characters): Delete.
783 * completer.c: include language.h.
784 (gdb_completer_word_break_characters): Delete.
785 (get_gdb_completer_word_break_characters): Delete.
786 (location_completer): Use the word break characters of the current
787 language.
788 (complete_line): Likewise.
789 (line_completion_function): Likewise.
790 (skip_quoted_chars): Likewise.
791 * Makefile.in (completer.o): Add dependency on language.h.
792 * top.c (init_main): Set the readline word break characters
793 to GDB's default word break characters.
794
6084f43a
JB
7952003-10-06 J. Brobecker <brobecker@gnat.com>
796
797 * language.h (language_defn): new field, la_word_break_characters.
798 * language.c (unknown_language_defn): Set new field to
799 default_word_break_characters.
800 (auto_language_defn): Likewise.
801 (local_language_defn): Likewise.
802 * ada-lang.c (ada_language_defn): Likewise.
803 * c-lang.c (c_language_defn): Likewise.
804 (cplus_language_defn): Likewise.
805 (asm_language_defn): Likewise.
806 (minimal_language_defn): Likewise.
807 * f-lang.c (f_language_defn): Likewise.
808 * jv-lang.c (java_language_defn): Likewise.
809 * m2-lang.c (m2_language_defn): Likewise.
810 * objc-lang.c (objc_language_defn): Likewise.
811 * p-lang.c (pascal_language_defn): Likewise.
812 * scm-lang.c (scm_language_defn): Likewise.
813
944fcfab
AC
8142003-10-06 Andrew Cagney <cagney@redhat.com>
815
816 * ppc-sysv-tdep.c: Re-indent.
817
9f0a5303
JB
8182003-10-06 J. Brobecker <brobecker@gnat.com>
819
820 * language.h (default_word_break_characters): Add prototype.
821 * language.c (default_word_break_characters): New function.
822
7270b6ed
AS
8232003-10-06 Andreas Schwab <schwab@suse.de>
824
825 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
826 with %eax.
827
a5d61f66
AC
8282003-10-06 Andrew Cagney <cagney@redhat.com>
829
830 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
831 "h8500-tdep.c".
832 (z8k-tdep.o): Delete custom build rule.
833
28a86f5c
AC
8342003-10-06 Andrew Cagney <cagney@redhat.com>
835
1bfd8a83
AC
836 * Makefile.in: Update all dependencies.
837
17144ef8
AC
838 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
839 No longer list PA as as obsolete candidate. List m32r as
840 broken instead of obsolete.
a8f4cde1 841
a5679ae5
AC
842 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
843 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
844 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
845 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
846 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
847 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
848 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
849 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
850 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
851 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
852 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
853 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
854 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
855 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
856 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
857 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
858 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
859 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
860 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
861 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
862 * config/z8k/z8k.mt: Ditto.
863
4a8269c0
AC
864 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
865 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
866 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
867 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
868 sparclite were removed.
869 * configure.host, configure.tgt: Remove corresponding tuples.
870
41989fcd
AC
871 * breakpoint.c, breakpoint.h: Remove obsolete code.
872 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
873 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
874 * stabsread.h, xcoffread.c: Ditto.
875
28a86f5c
AC
876 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
877 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
878 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
879 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
880
4efdaa0d
DL
8812003-10-06 David Lecomber <dsl@sources.redhat.com>
882
883 * f-valprint.c: Reformatting
884
ae53de43
MK
8852003-10-06 Mark Kettenis <kettenis@gnu.org>
886
a8bb57e7
MK
887 * x86-64-tdep.c: Remove duplicate comment.
888
ae53de43
MK
889 * x86-64-tdep.c (x86_64_store_return_value): Don't use
890 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
891 names for return values. This fixes a bug since we looked at %rbx
892 instead of %rdx.
893
473f17b0
MK
8942003-10-05 Mark Kettenis <kettenis@gnu.org>
895
2c261fae
MK
896 * x86-64-tdep.c: Include "regset.h".
897
473f17b0
MK
898 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
899 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
900 sizeof_fpregset.
901 * i386-tdep.c: Include "regset.h".
902 (i386_supply_gregset): New function.
903 (i386_supply_fpregset): New function.
904 (i386_gdbarch_init): Initialze register set-related members of
905 TDEP.
906 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
907 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
908
afd48b75
AC
9092003-10-03 Andrew Cagney <cagney@redhat.com>
910
911 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
912 set extract_return_value, store_return_value and
913 use_struct_convention to ppc64_sysv_abi_extract_return_value,
914 ppc64_sysv_abi_store_return_value and
915 ppc64_sysv_abi_use_struct_convention.
916 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
917 (ppc64_sysv_abi_store_return_value): Declare.
918 (ppc64_sysv_abi_use_struct_convention): Declare.
919 * ppc-sysv-tdep.c (enum return_value_convention): Define.
920 (ppc64_sysv_abi_extract_return_value): New function.
921 (ppc64_sysv_abi_store_return_value): New function.
922 (ppc64_sysv_abi_use_struct_convention): New function.
923 (ppc64_sysv_abi_return_value): New function.
924
9b540880
AC
9252003-10-03 Andrew Cagney <cagney@redhat.com>
926
927 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
928 convert a descriptor to a function when it's in the ".opd"
929 section.
930
8748518b
CV
9312003-10-03 Corinna Vinschen <vinschen@redhat.com>
932
933 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
934 reg_size to keep GCC silent.
935
0fd85043
CV
9362003-10-03 Corinna Vinschen <vinschen@redhat.com>
937
938 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
939 base for DW_EH_PE_textrel encodings.
940 (read_encoded_value): Add a DW_EH_PE_textrel case.
941 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
942 section.
943
37b517aa
MK
9442003-10-03 Mark Kettenis <kettenis@gnu.org>
945
946 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
947
12c266ea
AC
9482003-10-02 Andrew Cagney <cagney@redhat.com>
949
950 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
951 REGISTER_RAW_SIZE.
952 * gdbarch.h, gdbarch.c: Re-generate.
953 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
954 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
955 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
956 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
957 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
958 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
959 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
960 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
961 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
962 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
963 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
964 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
965 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
966 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
967 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
968 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 969
78ba4af6
JB
9702003-10-02 Jim Blandy <jimb@redhat.com>
971
972 * dwarf2read.c (struct die_info): Doc fix.
973
617daa0e
CV
9742003-10-02 Corinna Vinschen <vinschen@redhat.com>
975
976 * sh-tdep.c: Running thru gdb_indent.sh.
977
e5e33cd9
CV
9782003-10-02 Corinna Vinschen <vinschen@redhat.com>
979
980 * sh-tdep.c (sh_justify_value_in_reg): New function.
981 (sh_stack_allocsize): Ditto.
982 (flt_argreg_array): New array used for floating point argument
983 passing.
984 (sh_init_flt_argreg): New function.
a8f4cde1 985 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
986 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
987 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
988 Fix argument passing strategy.
989 (sh_push_dummy_call_nofpu): Ditto.
990
5fe830e4
AC
9912003-10-01 Andrew Cagney <cagney@redhat.com>
992
993 * value.h (register_value_being_returned): Declare. Replace
994 "value_being_returned".
995 * infcall.c (call_function_by_hand): Use
996 register_value_being_returned.
997 * infcmd.c (print_return_value): Call
998 "register_value_being_returned", handle struct return locally.
999 * values.c (register_value_being_returned): New function. Replace
1000 "value_being_returned".
a8f4cde1 1001
5fe830e4 10022003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1003
1004 * linux-proc.c (linux_do_registers): New function.
1005 (linux_make_note_section): Use linux_do_registers in case of
1006 single threaded inferior programs.
1007
64f395bf
AC
10082003-10-01 Andrew Cagney <cagney@redhat.com>
1009
1010 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1011 use STRUCT_ADDR. When not using "struct return convention", pass
1012 "0" to "value_being_returned". Add FIXMEs.
1013 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1014 value_being_returned. Add comments.
1015 * values.c (value_being_returned): Add fixme.
1016 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1017 (hppa_value_returned_from_stack): Add FIXME.
1018
639d11d3
DC
10192003-09-30 David Carlton <carlton@kealia.com>
1020
1021 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1022 'has_children' and 'next' by 'child' and 'sibling'.
1023 (read_comp_unit): Rework algorithm, breaking body into
1024 read_die_and_children and read_die_and_siblings.
1025 (read_die_and_children, read_die_and_siblings): New.
1026 (read_full_die): Add 'has_children' argument; set it instead of
1027 the die's 'has_children' field. Minor formatting cleanup.
1028 (free_die_list): Use die->child and die->sibling instead of
1029 die->next.
1030 (dump_die_list): Ditto.
1031 (sibling_die): Use die->sibling.
1032 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1033 'has_children' and 'next' fields.
a8f4cde1
RM
1034 (process_die, read_file_scope, read_func_scope)
1035 (read_lexical_block_scope, read_structure_scope)
1036 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1037 (read_namespace, read_subroutine_type, dump_die): Ditto.
1038
5bffac25
AC
10392003-09-30 Andrew Cagney <cagney@redhat.com>
1040
1041 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1042 to 224, not 220.
1043
f30992d4
AC
10442003-09-30 Andrew Cagney <cagney@redhat.com>
1045
1046 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1047 REGISTER_VIRTUAL_SIZE.
1048 * gdbarch.h, gdbarch.c: Regenerate.
1049 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1050 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1051 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1052
2e092625
AC
10532003-09-29 Andrew Cagney <cagney@redhat.com>
1054
1055 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1056 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1057 * gdbarch.h, gdbarch.c: Regenerate.
1058 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1059 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1060
1061 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1062 * remote-vxmips.c (vx_read_register): Ditto.
1063 * remote-vx68.c (vx_read_register): Ditto.
1064 * gnu-nat.c (inf_validate_procs): Ditto.
1065
7a5dd6ee
JB
10662003-09-29 J. Brobecker <brobecker@gnat.com>
1067
1068 * infcall.c (call_function_by_hand): Fix build failure
1069 introduced in the previous change to this file.
1070
1fe43d45
AC
10712003-09-29 Andrew Cagney <cagney@redhat.com>
1072
1073 * NEWS: Mention Objective-C.
1074
e28a332c
JG
10752003-09-29 Jerome Guitton <guitton@act-europe.fr>
1076
1077 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1078 test if the register has been saved on the stack.
1079 (arm_scan_prologue_cache): When analysing the instruction
1080 "str lr, [sp, #-4]", save the address where lr has been stored.
1081
9ff63c35
AC
10822003-09-28 Andrew Cagney <cagney@redhat.com>
1083
7f5f525d
AC
1084 * frame.c (frame_read_unsigned_register): Delete function.
1085 * frame.h (frame_read_unsigned_register): Delete declaration.
1086 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1087 get_frame_register_unsigned.
1088 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1089 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1090 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1091
7f5f525d
AC
1092 * frame.h (frame_read_register): Delete declaration.
1093 * frame.c (frame_read_register): Delete function.
1094 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1095 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1096 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1097 * mips-tdep.c (mips_register_to_value): Ditto.
1098 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1099 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1100
1101 * frame.c (frame_read_signed_register): Delete function.
1102 (frame_read_unsigned_register): Update comments.
1103 * frame.h (frame_read_signed_register): Delete declaration.
1104 * h8300-tdep.c (h8300_print_register): Use
1105 get_frame_register_signed.
1106 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1107
9ff63c35
AC
1108 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1109 Rename VALUE_RETURNED_FROM_STACK.
1110 * infcmd.c (print_return_value): Update.
1111 * infcall.c (call_function_by_hand): Update.
1112
41d041d6
MK
11132003-09-28 Mark Kettenis <kettenis@gnu.org>
1114
1115 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1116 regcache argument and reverse the order of the other two
1117 arguments. Remove local regcache variable. Determine
1118 architecture from REGCACHE. Update comments.
1119 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1120 reverse the order of the other two arguments. Remove local
1121 regcache variable. Determine architecture from REGCACHE. Update
1122 comments.
1123 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1124 prototypes. Update comments.
1125 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1126 comment.
1127 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1128 Update.
1129 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1130 * i386-interix-nat.c (supply_fpregset): Update.
1131 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1132 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1133 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1134 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1135 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1136 Update.
1137 * i386obsd-tdep.c (fetch_core_registers): Update.
1138 * i386v4-nat.c (supply_fpregset): Update.
1139 * x86-64-linux-nat.c (supply_fpregset): Update.
1140 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1141
1cb97e17
MK
11422003-09-27 Mark Kettenis <kettenis@gnu.org>
1143
5716833c
MK
1144 * i386-tdep.h: Put opaque declarations in alphabetical
1145 order. Remove spurious whitespace.
1146 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1147 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1148 * i386-tdep.c (MM0_REGNUM): Remove define.
1149 (i386_mmx_regnum_p): Add gdbarch argument.
1150 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1151 Rewrite using new macro definitions for FPU/SSE registers.
1152 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1153 definitions from i387-tdep.h.
1154 (i386_register_name): Update.
1155 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1156 new macro definitions for FPU/SSE registers.
1157 (i386_extract_return_value): Determine whether floating-point
1158 registers are present by examining REGCACHE's architecture.
1159 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1160 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1161 FPU/SSE registers.
1162 (i386_register_type): Update.
1163 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1164 definitions for FPU registers. Use REGCACHE's architecture to
1165 determine the appropriate register numbers.
1166 (i386_pseudo_register_read, i386_pseudo_register_write,
1167 i386_register_reggroup_p): Update.
1168 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1169 TDEP->mm0_regnum.
1170 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1171 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1172 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1173 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1174 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1175 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1176 *' to `void *'.
1177 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1178 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1179 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1180 definitions for FPU/SSE registers.
1181 (FXSAVE_MXCSR_ADDR): New define.
1182 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1183 TDEP->mm0_regnum.
1184 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1185 (I387_ST0_REGNUM): Define.
1186
41d35cb0
MK
1187 * regcache.h (get_regcache_arch): New prototype.
1188 * regcache.c (get_regcache_arch): New function.
1189
54e74f72
MK
1190 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1191 whitespace.
1192
1cb97e17
MK
1193 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1194 Initialize using ARRAY_SIZE.
1195
0968aa8c
AC
11962003-09-27 Andrew Cagney <cagney@redhat.com>
1197
1198 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1199 "init_frame_pc_default".
1200 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1202 * vax-tdep.c (vax_gdbarch_init): Update.
1203 * v850-tdep.c (v850_gdbarch_init): Update.
1204 * sh64-tdep.c (sh64_gdbarch_init): Update.
1205 * s390-tdep.c (s390_gdbarch_init): Update.
1206 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1207 * mcore-tdep.c (mcore_gdbarch_init): Update.
1208 * h8300-tdep.c (h8300_gdbarch_init): Update.
1209 * cris-tdep.c (cris_gdbarch_init): Update.
1210 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1211
54c84734
MK
12122003-09-26 Mark Kettenis <kettenis@gnu.org>
1213
1214 * regset.h: New file.
1215 * Makefile.in (regset_h): Add.
1216
1b1d3794
AC
12172003-09-25 Andrew Cagney <cagney@redhat.com>
1218
1219 * frame.h (deprecated_frame_saved_regs): Rename
1220 get_frame_saved_regs.
1221 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1222 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1223 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1224 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1225 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1226
e6beb428
AC
12272003-09-25 Andrew Cagney <cagney@redhat.com>
1228
1229 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1230 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1231 and Java.
1232 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1233 arm*-*-* do not use the new frame code.
1234
710122da
DC
12352003-09-25 David Carlton <carlton@kealia.com>
1236
1237 * c-exp.y: Remove 'register' declarations.
1238 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1239
79c2c32d
DC
12402003-09-25 David Carlton <carlton@kealia.com>
1241
1242 * c-exp.y: Include cp-support.h. Add qualified_type.
1243 (yylex): Delete nested type hack; add comments.
1244 * cp-namespace.c (cp_lookup_nested_type): New function.
1245 * cp-support.h: Declare cp_lookup_nested_type.
1246 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1247 instead of value_struct_elt_for_reference.
1248 * valops.c: Include cp-support.h.
1249 (value_aggregate_elt): New function.
1250 (value_namespace_elt): Ditto.
1251 (value_struct_elt_for_reference): Make static.
1252 * value.h: Delete declaration of value_struct_elt_for_reference;
1253 add declaration for value_aggregate_elt.
1254 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1255 (valops.o): Ditto.
1256
898c62f5
DJ
12572003-09-25 Daniel Jacobowitz <drow@mvista.com>
1258
1259 * stack.c: Include "reggroups.h".
1260 (frame_info): Only display registers in all_reggroup.
1261 * Makefile.in (stack.o): Update dependencies.
1262
28cd8767
JG
12632003-09-25 Jerome Guitton <guitton@act-europe.fr>
1264
1265 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1266 "add ip, sp #n" in the prologue.
1267 (arm_scan_prologue): Ditto.
1268
a4ab2b5d
JG
12692003-09-25 Jerome Guitton <guitton@act-europe.fr>
1270
1271 * MAINTAINERS (write after approval): Add myself.
1272
3f244638
AS
12732003-09-25 Andreas Schwab <schwab@suse.de>
1274
1275 * m68k-tdep.c: Include "dwarf2-frame.h".
1276 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1277 * Makefile.in (m68k-tdep.o): Update dependencies.
1278
1c0159e0
CV
12792003-09-25 Corinna Vinschen <vinschen@redhat.com>
1280
1281 * sh-tdep.c (struct frame_extra_info): Remove.
1282 (struct sh_frame_cache): New structure.
1283 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1284 (GET_TARGET_REG): Ditto but target register.
1285 (GET_PUSHED_REG): Remove.
1286 (IS_MOV_ARG_TO_REG): New macro.
1287 (IS_MOV_ARG_TO_IND_R14): New macro.
1288 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1289 (IS_MOVW_PCREL_TO_REG): New macro.
1290 (IS_MOVL_PCREL_TO_REG): New macro.
1291 (IS_SUB_REG_FROM_SP): New macro.
1292 (IS_ARG_MOV): Remove.
1293 (IS_MOV_TO_R14): Remove.
1294 (IS_RESTORE_FP): New macro.
1295 (IS_RTS): New macro.
1296 (IS_LDS): New macro.
1297 (IS_MOV_FP_SP): New macro.
1298 (IS_ADD_REG_TO_FP): New macro.
1299 (IS_ADD_IMM_FP): New macro.
1300 (sh_skip_prologue_hard_way): Remove.
1301 (sh_saved_pc_after_call): Remove.
1302 (sh_frame_chain): Remove.
1303 (sh_find_callers_reg): Remove.
a8f4cde1 1304 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1305 (sh_fp_frame_init_saved_regs): Remove.
1306 (sh_init_extra_frame_info): Remove.
1307 (sh_analyze_prologue): New function.
1308 (sh_skip_prologue): Remove deprecated code. Rely on new function
1309 sh_analyze_prologue when after_prologue fails.
1310 (sh_frame_saved_pc): Remove.
1311 (sh_alloc_frame_cache): New function.
1312 (sh_frame_cache): Ditto.
1313 (sh_frame_prev_register): Ditto.
1314 (sh_frame_this_id): Ditto.
1315 (sh_frame_unwind): New structure defining the heuristic frame
1316 sniffer interface.
1317 (sh_frame_sniffer): New function.
1318 (sh_unwind_sp): Ditto.
1319 (sh_unwind_pc): Ditto.
1320 (sh_unwind_dummy_id): Ditto.
1321 (sh_frame_base_address): Ditto.
1322 (sh_frame_base): New structure defining new frame base code.
1323 (sh_in_function_epilogue_p): New function.
1324 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1325 code and to call all new code instead. Initialize dwarf2 and
1326 heuristic frame sniffer.
1327
5f9769d1
PH
13282003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1329
a8f4cde1
RM
1330 * parser-defs.h (struct exp_descriptor): New definition, containing
1331 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1332 evaluating expressions.
1333 (exp_descriptor_standard): Declare new variable.
1334 (print_subexp): Make global and declare here (from expprint.c).
1335 (dump_subexp): Ditto.
1336 (dump_subexp_body_standard): Declare.
1337 (operator_length_standard): Declare.
1338 (op_name_standard): Declare.
1339 (print_subexp): Declare.
1340 (print_subexp_standard): Declare.
1341
1342 * language.h (struct language_defn): Add la_exp_desc field to hold
1343 pointer to table for language-specific operators.
1344 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1345
1346 * parse.c (operator_length): Move most code to new
5f9769d1 1347 operator_length_standard function. Use language-specific information.
a8f4cde1 1348 (operator_length_standard): New function taking most code from
5f9769d1
PH
1349 operator_length.
1350 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1351
1352 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1353 and OP_EXTENDED_LAST.
a8f4cde1
RM
1354
1355 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1356 Make global; remove static declaration.
1357 Move most code to print_subexp_standard.
a8f4cde1 1358 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1359 print_subexp.
1360 (op_name): Add expression to argument signature.
a8f4cde1 1361 Use langauge-specific op_name.
5f9769d1
PH
1362 Move most code to op_name_standard.
1363 (op_name_standard): New function, containing code formerly in op_name.
1364 (dump_subexp): Use new version of op_name function.
1365 Use language-specific dump_subexp_body, and move most existing code to
1366 dump_subexp_body_standard.
1367 (dump_raw_expression): Use new op_name interface.
1368 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1369 (dump_subexp_body_standard): New function, containing code formerly
1370 in dump_subexp_body.
a8f4cde1 1371
5f9769d1
PH
1372 * language.c (unknown_language): Add default la_exp_desc field and
1373 remove evaluate_exp field.
1374 (auto_language): Ditto.
1375 (local_language): Ditto.
1376 * f-lang.c (f_language_defn): Ditto.
1377 * c-lang.c (c_language_defn): Ditto.
1378 (cplus_language_defn): Ditto.
1379 (asm_language_defn): Ditto.
1380 (minimal_language_defn): Ditto.
1381 * p-lang.c (pascal_language_defn): Ditto.
1382 * m2-lang.c (m2_language_defn): Ditto.
1383 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1384
1385 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1386 Java-specific expression evaluator.
1387 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1388 field.
a8f4cde1 1389 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1390 Scheme-specific expression evaluator.
1391 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1392 field.
1393 * objc-lang.c (print_object_command): Take evaluate_exp from the
1394 la_exp_desc field.
a8f4cde1 1395
5f9769d1 1396 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1397
1398 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1399 la_exp_desc's type.
1400 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1401
24daaebc
PH
14022003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1403
1404 * parser-defs.h (operator_length): Declare.
a8f4cde1 1405
24daaebc
PH
1406 * parse.c (length_of_subexp): Use operator_length to get operator
1407 lengths and arities for operators.
1408 Move most code to new operator_length function.
a8f4cde1 1409 (operator_length): New function absorbing most code from
24daaebc
PH
1410 length_of_subexp.
1411 (prefixify_subexp): Remove large case and use operator_length instead.
1412 (parse_exp_1): Use renamings:
a8f4cde1 1413 dump_prefix_expression => dump_raw_expression and
24daaebc 1414 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1415
24daaebc
PH
1416 * expression.h (dump_prefix_expression): Rename to ...
1417 (dump_raw_expression): New name.
1418 (dump_postfix_expression): Rename to ...
1419 (dump_prefix_expression): New name.
a8f4cde1 1420
24daaebc
PH
1421 * expprint.c (dump_subexp): Make global. Add comment.
1422 Move most existing code to dump_subexp_body.
1423 (dump_subexp_body): New function.
1424 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1425 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1426 work before the expression is prefixified.
1427 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1428 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1429 that's what it does.
a8f4cde1 1430 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1431 prefixified expression.
1432 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1433
8c2957c4
JB
14342003-09-22 Jim Blandy <jimb@redhat.com>
1435
1436 * dwarf2read.c (read_array_type): When building the type for an
1437 array of unspecified length, make sure to choose the upper bound
1438 so that the array's total length comes out to be zero --- that's
1439 how we represent such arrays.
1440
592e3010
MC
14412003-09-22 Michael Chastain <mec@shout.net>
1442
1443 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1444
365c70b1
JJ
14452003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1446
1447 * top.c (quit_force): Fix indirect call to quit_target so
1448 a struct qt_args pointer is passed.
1449
5d6eb653
AC
14502003-09-22 Andrew Cagney <cagney@redhat.com>
1451
1452 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1453 * arch-utils.c (init_frame_pc_noop): Delete function.
1454 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1455 "init_frame_pc".
1456 * mips-tdep.c (mips_gdbarch_init): Ditto.
1457 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1458 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1459 declaration.
1460 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1461 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1462 declaration.
1463 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1464
b222a67f
AG
14652003-09-22 Anthony Green <green@redhat.com>
1466
1467 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1468 declaration.
1469
d5b5ac79
AC
14702003-09-20 Andrew Cagney <cagney@redhat.com>
1471
deafb061
AC
1472 * breakpoint.c: Eliminate ARGSUSED.
1473 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1474 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1475 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1476 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1477 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1478 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1479 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1480 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1481 * wince.c, remote-vx.c: Ditto.
1482
d5b5ac79
AC
1483 * cli/cli-script.c: Remove "register" attributes.
1484 * config/pa/tm-hppa.h: Ditto.
1485 * cli/cli-decode.c: Ditto.
1486 * cli/cli-cmds.c: Ditto.
1487
c6316faa
AC
14882003-09-19 Andrew Cagney <cagney@redhat.com>
1489
1490 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1491 DEPRECATED_NPC_REGNUM.
1492 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1493
f4f99b11
CF
14942003-09-19 Christopher Faylor <cgf@redhat.com>
1495
1496 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1497
1708f284
JB
14982003-09-19 Jim Blandy <jimb@redhat.com>
1499
1500 * macrotab.c (macro_include): Use the correct comparison to find
1501 the appropriate place for this inclusion in the list.
1502
b9fbf434
AC
15032003-09-19 Andrew Cagney <cagney@redhat.com>
1504
1505 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1506 (DEPRECATED_HPUX_TEXT_END): Define.
1507 (deprecated_hpux_text_end): Declare.
1508 (struct target_ops): Declare opaque.
1509 * hppah-nat.c (text_end): Make static.
1510 (deprecated_hpux_text_end): New function.
1511 * exec.c (text_end): Delete global variable.
1512 (NEED_TEXT_START_END): Do not define.
1513 (exec_file_attach): Replace code computing "text_end" code with
1514 call to DEPRECATED_HPUX_TEXT_END.
1515
5b03f266
AC
15162003-09-19 Andrew Cagney <cagney@redhat.com>
1517
1518 * utils.c (align_up, align_down): New functions.
1519 * defs.h (align_up, align_down): Declare.
1520 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1521 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1522 and "align_down".
1523 (round_up, round_down): Delete functions.
1524 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1525 "align_down".
1526 (ROUND_DOWN, ROUND_UP): Delete macros.
1527 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1528 * h8300-tdep.c: Replace "round_up" and "round_down" with
1529 "align_up" and "align_down".
1530 (round_up, round_down): Delete macros.
1531 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1532 "align_down".
1533 (ROUND_UP, ROUND_DOWN): Delete macros.
1534
51db5742
JB
15352003-09-18 J. Brobecker <brobecker@gnat.com>
1536
1537 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1538 hard-coded constant. Use the proper machine name instead.
1539
77949794
AC
15402003-09-17 Andrew Cagney <cagney@redhat.com>
1541
1542 * sparc-tdep.c (legacy_register_name): Delete function.
1543 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1544 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1545 * infcmd.c (gdb_register_name): Delete variable.
1546 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1547 REGISTER_NAME and "tm.h".
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1550 REGISTER_NAMES in comments.
1551 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1552 * m68klinux-nat.c (regmap): Ditto.
1553
b55c33cc
JB
15542003-09-17 Jim Blandy <jimb@redhat.com>
1555
1556 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1557
957e27ac
AC
15582003-09-17 Andrew Cagney <cagney@redhat.com>
1559
1560 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1561 (ppcnbsd_init_abi): Set "use_struct_convention" to
1562 "ppcnbsd_use_struct_convention".
1563
192cb3d4
MK
15642003-09-17 Mark Kettenis <kettenis@gnu.org>
1565
1566 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1567 * gdbarch.h, gdbarch.c: Regenerate.
1568 (stabs_argument_has_addr): New architecture method.
1569 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1570 * arch-utils.c: Include "buildsym.h".
1571 (default_stabs_argument_has_addr): New function.
1572 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1573 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1574
efe59759
AC
15752003-09-17 Andrew Cagney <cagney@redhat.com>
1576
1577 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1578 * gdbarch.h, gdbarch.c: Regenerate.
1579 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1580 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1581 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1582 * sparcnbsd-tdep.c: Update.
a8f4cde1 1583
62700349
AC
15842003-09-17 Andrew Cagney <cagney@redhat.com>
1585
1586 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1587 * gdbarch.h, gdbarch.c: Regenerate.
1588 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1589 * d10v-tdep.c, frame.c: Update.
1590 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1591 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1592 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1593 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1594 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1595 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1596 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1597 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1598 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1599 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1600 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1601 * config/pa/nm-hppah.h: Update.
1602
b9ff3018
AC
16032003-09-16 Andrew Cagney <cagney@redhat.com>
1604
1605 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1606 "use_struct_convention" to "ppc_linux_use_struct_convention".
1607 (ppc_linux_use_struct_convention): New function.
1608 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1609 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1610 "rs6000_use_struct_convention".
1611 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1612 declaration.
1613 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1614 Delete function.
1615
aa1ee363
AC
16162003-09-16 Andrew Cagney <cagney@redhat.com>
1617
1618 * buildsym.c: Remove more occurances of "register".
1619 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1620 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1621 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1622 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1623 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1624 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1625 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1626 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1627
f2ea0907
CV
16282003-09-16 Corinna Vinschen <vinschen@redhat.com>
1629
1630 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1631 numbers to enumeration values.
1632 * sh-tdep.c: Accomodate above change.
1633 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1634 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1635 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1636 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1637 (IS_FPUSH): Rename from IS_FMOV.
1638 (sh_extract_struct_value_address): Remove useless comment.
1639 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1640 instead of own local values.
1641 (sh_dump_tdep): Remove.
1642 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1643 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1644
1c704f11
AC
16452003-09-15 Andrew Cagney <cagney@redhat.com>
1646
1647 * doublest.c (convert_floatformat_to_doublest): No longer need to
1648 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1649
ac79b88b
DJ
16502003-09-15 Daniel Jacobowitz <drow@mvista.com>
1651
1652 * values.c (unpack_double): Call floatformat_is_valid.
1653
1c671366
MK
16542003-09-15 Mark Kettenis <kettenis@gnu.org>
1655
de5227fb
MK
1656 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1657 ps_strings into a long.
1658
1c671366
MK
1659 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1660 _initialize_am64fbsd_nat.
1661
a604369a
KB
16622003-09-15 Kevin Buettner <kevinb@redhat.com>
1663
1664 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1665 associated with DW_AT_ranges attribute is out of bounds.
1666
b3cacbee
DL
16672003-09-15 David Lecomber <dsl@sources.redhat.com>
1668
1669 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1670
d0f37bb2
MC
16712003-09-14 Michael Chastain <mec@shout.net>
1672
1673 * config/m68k/nm-apollo68v.h: Delete.
1674 * config/m68k/xm-apollo68v.h: Delete.
1675
69517000
AC
16762003-09-14 Andrew Cagney <cagney@redhat.com>
1677
1678 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1679 * dcache.c: Update copyrights and descriptions.
1680 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1681
ef8b349d
AC
16822003-09-14 Andrew Cagney <cagney@redhat.com>
1683
1684 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1685 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1686
52f0bd74
AC
16872003-09-14 Andrew Cagney <cagney@redhat.com>
1688
1689 * alpha-nat.c: Remove some occurances of "register".
1690 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1691 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1692 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1693 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1694 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1695 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1696 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1697 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1698 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1699 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1700 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1701 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1702 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1703 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1704 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1705 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1706 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1707 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1708 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1709 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1710 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1711 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1712
4a4b3fed
AC
17132003-09-13 Andrew Cagney <cagney@redhat.com>
1714
1715 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1716 * ppc-tdep.h (struct regcache): Declare opaque.
1717 * objfiles.h (struct objfile_data): Declare opaque.
1718 * cp-support.h (struct objfile): Declare opaque.
1719 * linux-nat.h (target_waitstatus): Declare opaque.
1720
2110b94f
MK
17212003-09-14 Mark Kettenis <kettenis@gnu.org>
1722
1c671366
MK
1723 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1724 (stabs_argument_has_addr): New architecture method.
1725 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1726 * arch-utils.c: Include "buildsym.h".
1727 (default_stabs_argument_has_addr): New function.
1728 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1729 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1730
2110b94f
MK
1731 * cris-tdep.c (cris_gdbarch_init): Set
1732 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1733 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1734 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1735 * mips-tdep.c (mips_gdbarch_init): Likewise.
1736 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1737 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1738
48436ce6
AC
17392003-09-13 Andrew Cagney <cagney@redhat.com>
1740
1741 * values.c (using_struct_return): Delete "function" and "funcaddr"
1742 parameters.
1743 * value.h (using_struct_return): Update declaration.
1744 * infcmd.c (finish_command_continuation): Update.
1745 (finish_command): Update.
1746 * infcall.c (call_function_by_hand): Update.
1747 * eval.c (evaluate_subexp_standard): Update.
1748
403d9909
CF
17492003-09-13 Christopher Faylor <cgf@redhat.com>
1750
1751 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1752 SSE registers since gdb will not operate correctly without this.
1753 Restore include file ordering munged in previous change.
1754 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1755
ebf7d56b
MK
17562003-09-13 Mark Kettenis <kettenis@gnu.org>
1757
8e823e25
MK
1758 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1759 REG_STRUCT_HAS_ADDR.
1760 * gdbarch.c, gdbarch.h: Updated.
1761 * infcall.c (call_function_by_hand): Update.
1762 * stabsread.c (define_symbol): Updated.
a8f4cde1 1763
ebf7d56b
MK
1764 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1765
d3f13f72
CF
17662003-09-12 Christopher Faylor <cgf@redhat.com>
1767
1768 * win32-nat.c: Reorganize so that defines used by target headers are
1769 actually defined by the system headers.
1770 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1771 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1772
14f75137
JB
17732003-09-12 Jim Blandy <jimb@redhat.com>
1774
d646061f
JB
1775 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1776 the file has no .data, .bss, or .rodata sections. Instead wait
1777 until we see a variable alleged to live in one of those sections.
1778
2a13f9bc
JB
1779 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1780 .bss section, presume that any variables we find live in the
1781 .rodata section.
1782
4f49b26b
JB
1783 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1784 offsets for global and static variables.
1785
14f75137
JB
1786 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1787 symbol types are, by definition, in the .data section, so it is
1788 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1789 If there is no .data section, there should be no N_DATA or N_DATA
1790 | N_EXT symbols.
1791
212c460c
MK
17922003-09-12 Mark Kettenis <kettenis@gnu.org>
1793
1794 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1795 (amd64fbsd_sigcontext_addr): Rewrite.
1796 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1797 with correct values.
1798 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1799 (amd64fbsd_init_abi): Fix typo.
1800
68856ea3
AC
18012003-09-12 Andrew Cagney <cagney@redhat.com>
1802
1803 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1804 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1805
627b3ba2
AC
18062003-09-12 Andrew Cagney <cagney@redhat.com>
1807
1808 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1809 "entry_file_highpc". Update comments.
1810 * defs.h (deprecated_inside_entry_file): Rename
1811 "inside_entry_file".
1812 * blockframe.c (deprecated_inside_entry_file): Rename
1813 "inside_entry_file".
1814 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1815 * vax-tdep.c (vax_frame_chain): Update.
1816 * sh64-tdep.c (sh64_frame_chain): Update.
1817 * sh-tdep.c (sh_frame_chain): Update.
1818 * rs6000-tdep.c (rs6000_frame_chain): Update.
1819 * ns32k-tdep.c (ns32k_frame_chain): Update.
1820 * mips-tdep.c (mips_frame_chain): Update.
1821 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1822 * m32r-tdep.c (m32r_frame_this_id): Update.
1823 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1824 * frv-tdep.c (frv_frame_this_id): Update.
1825 * d10v-tdep.c (d10v_frame_this_id): Update.
1826 * cris-tdep.c (cris_frame_chain): Update.
1827 * blockframe.c (legacy_frame_chain_valid): Update.
1828 * avr-tdep.c (avr_frame_this_id): Update.
1829 * arm-tdep.c (arm_prologue_this_id): Update.
1830 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1831 * objfiles.c (objfile_relocate): Update.
1832 * mipsread.c (mipscoff_symfile_read): Update.
1833 (mipscoff_symfile_read): Update.
1834 * mdebugread.c (parse_partial_symbols): Update.
1835 * dwarfread.c (read_file_scope): Update.
1836 * dwarf2read.c (read_file_scope): Update.
1837 * dbxread.c (read_dbx_symtab): Update.
1838 (read_dbx_symtab): Update.
1839 * coffread.c (complete_symtab): Update.
1840
b0abbc58
JJ
18412003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1842
1843 * top.c (quit_target): New static helper function.
1844 (quit_force): Moved code to quit_target(). Call quit_target()
1845 via catch_errors() to catch errors during quit.
1846
a1632d59
DC
18472003-09-11 David Carlton <carlton@kealia.com>
1848
1849 * buildsym.c (finish_block): Use allocate_block to allocate the
1850 block.
1851 * mdebugread.c (new_block): Add FIXME.
1852
5c4e30ca
DC
18532003-09-11 David Carlton <carlton@kealia.com>
1854
1855 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1856 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1857 (recursive_dump_type): Ditto.
1858 * printcmd.c (print_formatted): Ditto.
1859 * typeprint.c (print_type_scalar): Ditto.
1860 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1861 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1862 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1863 maint_cplus_cmd_list.
1864 * cp-support.c: Make maint_cplus_cmd_list extern.
1865 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1866 command.h.
1867 (lookup_symbol_file): Look in possible namespace blocks when
1868 appropriate.
1869 (initialize_namespace_symtab): New.
1870 (get_possible_namespace_block, free_namespace_block)
1871 (check_possible_namespace_symbols)
1872 (check_possible_namespace_symbols_loop)
1873 (check_one_possible_namespace_symbol)
1874 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1875 (_initialize_cp_namespace): Ditto.
1876 * block.h: Declare allocate_block.
1877 * block.c (allocate_block): New.
1878 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1879 allocate_block.
1880 * symfile.h: Update declaration of add_psymbol_to_list.
1881 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1882 question.
1883 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1884 scan_partial_symbols_call.
1885 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1886 helper functions.
1887 (add_partial_symbol): If necessary, scan mangled names for names
1888 of namespaces.
1889 (add_partial_namespace): Add NAMESPACE argument; generate partial
1890 symbols associated to namespaces.
1891 (add_partial_enumeration): Add NAMESPACE argument.
1892 (new_symbol): Allow namespace syms.
1893 (read_namespace): Generate namespace syms.
1894 * objfiles.h: Add opaque declaration of struct symtab.
1895 (struct objfile): Add cp_namespace_symtab member.
1896 * objfiles.c (allocate_objfile): Set
1897 objfile->cp_namespace_symtab.
1898 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1899 dictionary_h, command_h.
1900
33a7c2fc
AC
19012003-09-11 Andrew Cagney <cagney@redhat.com>
1902
1903 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1904 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1905 near the function's end.
1906 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1907 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1908 regcache_raw_write_signed to set SP_REGNUM.
1909
63cd24fe
EZ
19102003-09-11 Elena Zannoni <ezannoni@redhat.com>
1911
1912 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1913 orig_addrs is set up properly.
1914
f27dd7fd
AC
19152003-09-11 Andrew Cagney <cagney@redhat.com>
1916
1917 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1918 * gdbarch.h, gdbarch.c: Re-generate.
1919 * infcall.c (call_function_by_hand): Update.
1920 * hppa-tdep.c (hppa_push_arguments): Update.
1921 * ada-lang.c (place_on_stack): Update.
1922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1923 * sparc-tdep.c (sparc_gdbarch_init): Update.
1924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1925 * hppa-tdep.c (hppa_gdbarch_init): Update.
1926 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1927 stack_align.
1928
f630a401
DJ
19292003-09-11 Daniel Jacobowitz <drow@mvista.com>
1930
1931 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1932 register do need a frame.
1933
0ddabb4c
AC
19342003-09-11 Andrew Cagney <cagney@redhat.com>
1935
1936 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1937 buildable since GDB 5.0.
1938 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1939 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1940 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1941 * irix4-nat.c: Delete file.
1942 * config/mips/irix4.mh: Delete file.
1943 * config/mips/irix3.mh: Delete file.
1944 * config/mips/irix3.mt: Delete file.
1945 * config/mips/tm-irix3.h: Delete file.
1946 * config/mips/nm-irix3.h: Delete file.
1947 * config/mips/xm-irix3.h: Delete file.
1948 * config/mips/nm-irix4.h: Delete file.
1949 * config/mips/xm-irix4.h: Delete file.
1950 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1951
fde2cceb
JB
19522003-09-10 J. Brobecker <brobecker@gnat.com>
1953
1954 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1955 * Makefile.in (hppa-tdep.o): Update dependencies.
1956
66f667f5
JW
19572003-09-10 James E Wilson <wilson@specifixinc.com>
1958
ef5fd69f
JW
1959 * MAINTAINERS: Change my e-mail address. Move to paper trail
1960 section.
66f667f5 1961
53e8aaea
KB
19622003-09-10 Kevin Buettner <kevinb@redhat.com>
1963
1964 * MAINTAINERS (frv): New ISA entry.
1965
dcc6aaff
KB
19662003-09-10 Kevin Buettner <kevinb@redhat.com>
1967
1968 * frv-tdep.c (dis-asm.h): Include.
1969 * Makefile.in (frv-tdep.o): Update dependencies.
1970
932644f0
JJ
19712003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1972
1973 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1974 Fix typo for high range of floating registers.
1975
91c24f0a
DC
19762003-09-09 David Carlton <carlton@kealia.com>
1977
1978 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1979 highpc initialization here out of scan_partial_symbols.
1980 (scan_partial_symbols): Restructure into a recursive version,
1981 calling add_partial_namespace and add_partial_enumeration when
1982 appropriate.
1983 (add_partial_namespace): New.
1984 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1985
c9263853
AC
19862003-09-09 Andrew Cagney <cagney@redhat.com>
1987
e56a0ecc
AC
1988 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1989 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1990 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1991 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1992
794a477a
AC
1993 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1994 (rs6000_push_dummy_call): Set the "TOC" register.
1995
c9263853
AC
1996 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1997 methods "max_register_raw_size", "max_register_virtual_size" or
1998 "register_virtual_size".
1999
afa7d0b2
ILT
20002003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2001
2002 * MAINTAINERS: Update my e-mail address.
2003
7a41266b
AC
20042003-09-09 Andrew Cagney <cagney@redhat.com>
2005
2006 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2007 (rs6000_push_dummy_call): Store the struct return address.
2008 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2009
77b2b6d4
AC
20102003-09-09 Andrew Cagney <cagney@redhat.com>
2011
2012 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2013 "ppc_sysv_abi_push_arguments".
2014 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2015 "ppc_sysv_abi_push_arguments".
2016 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2017 instead of "push_arguments".
2018 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2019
e8a7b686
AC
20202003-09-09 Andrew Cagney <cagney@redhat.com>
2021
2022 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2023 instead of CALL_DUMMY_ADDRESS.
2024
f86f5ca3
PH
20252003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2026
2027 * p-lang.c: Eliminate "register".
2028 * c-lang.c: Ditto.
2029 * expprint.c: Ditto.
2030 * f-lang.c: Ditto.
2031 * jv-lang.c: Ditto.
2032 * language.c: Ditto.
2033 * m2-lang.c: Ditto.
2034 * parse.c: Ditto.
2035 * scm-lang.c: Ditto.
2036 * objc-lang.c: Ditto.
2037
83ee270e
NC
20382003-09-09 Nick Clifton <nickc@redhat.com>
2039
2040 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2041
a89aa300
AC
20422003-09-04 Andrew Cagney <cagney@redhat.com>
2043
2044 * avr-tdep.c: Include "dis-asm.h".
2045 * cris-tdep.c: Include "dis-asm.h".
2046 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2047 instead of corresponding typedef.
2048 * h8300-tdep.c: Include "dis-asm.h".
2049 * ia64-tdep.c: Include "dis-asm.h".
2050 * i386-tdep.c: Include "dis-asm.h".
2051 (i386_print_insn): Use "struct disassemble_info" instead of
2052 corresponding typedef.
2053 * m68k-tdep.c: Include "dis-asm.h".
2054 * mcore-tdep.c: Include "dis-asm.h".
2055 * mips-tdep.c: Include "dis-asm.h".
2056 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2057 instead of corresponding typedef.
2058 * ns32k-tdep.c: Include "dis-asm.h".
2059 * s390-tdep.c: Include "dis-asm.h".
2060 * sparc-tdep.c: Include "dis-asm.h".
2061 * vax-tdep.c: Include "dis-asm.h".
2062 * v850-tdep.c: Include "dis-asm.h".
2063 * mn10300-tdep.c: Include "dis-asm.h".
2064 * rs6000-tdep.c: Include "dis-asm.h".
2065 * xstormy16-tdep.c: Include "dis-asm.h".
2066 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2067 print_insn_xstormy16.
2068 * Makefile.in (v850-tdep.o): Update dependencies.
2069 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2070 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2071 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2072 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2073 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2074 (gdbarch_h): Remove $(dis_asm_h).
2075 * disasm.c: Include "dis-asm.h".
2076 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2077 corresponding typedef.
2078 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2079 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2080 * gdbarch.sh: Do not include "dis-asm.h".
2081 (struct disassemble_info): Declare opaque.
2082 (TARGET_PRINT_INSN): Update declaration.
2083 * gdbarch.h, gdbarch.c: Re-generate.
2084
88a82a65
AC
20852003-09-08 Andrew Cagney <cagney@redhat.com>
2086
2087 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2088 CALL_DUMMY_ADDRESS, change to a predicate.
2089 * gdbarch.h, gdbarch.c: Re-generate.
2090 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2091 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2092 * infcall.c (call_function_by_hand): Ditto.
2093 * sparc-tdep.c (sparc_push_return_address): Ditto.
2094 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2095 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2096 CALL_DUMMY_ADDRESS with entry_point_address.
2097 * v850-tdep.c (v850_push_return_address): Ditto.
2098 * s390-tdep.c (s390_push_return_address): Ditto.
2099 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2100 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2101 * mcore-tdep.c (mcore_push_return_address): Ditto.
2102 * cris-tdep.c (cris_push_return_address): Ditto.
2103 * arm-tdep.c (arm_push_return_address): Ditto.
2104
3e2c4033
AC
21052003-09-08 Andrew Cagney <cagney@redhat.com>
2106
2107 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2108 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2109 and REG_UNMODIFIED to REG_SAME_VALUE.
2110 (execute_cfa_program): Update.
2111 (dwarf2_frame_cache): Update. Initialize table to
2112 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2113 location.
2114 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2115
39efb398
AC
21162003-09-08 Andrew Cagney <cagney@redhat.com>
2117
2118 * gnu-nat.c: Remove "inline" function attribute.
2119 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2120
f5cb5aca
KB
21212003-09-08 Kevin Buettner <kevinb@redhat.com>
2122
2123 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2124 target.
2125
1cb761c7
KB
21262003-09-08 Kevin Buettner <kevinb@redhat.com>
2127
2128 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2129 (frame_extra_info): Rename this struct to frv_unwind_cache.
2130 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2131 Add fields ``prev_sp'' and ``base''.
2132 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2133 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2134 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2135 Delete.
2136 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2137 Revise all callers. Fill in the unwind cache argument and make
2138 other adjustments to account for new frame mechanisms.
2139 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2140 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2141 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2142 (frv_frame_unwind, frv_frame_base): New structs.
2143 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2144 additional arguments expected by this method and adjust function
2145 body accordingly.
2146 (frv_gdbarch_init): Remove calls to the following functions:
2147 set_gdbarch_deprecated_init_frame_pc(),
2148 set_gdbarch_deprecated_saved_pc_after_call(),
2149 set_gdbarch_deprecated_frame_chain(),
2150 set_gdbarch_deprecated_frame_saved_pc(),
2151 set_gdbarch_deprecated_frame_init_saved_regs(),
2152 set_gdbarch_deprecated_push_arguments(),
2153 set_gdbarch_deprecated_push_return_address(),
2154 set_gdbarch_deprecated_pop_frame(),
2155 set_gdbarch_deprecated_call_dummy_words(),
2156 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2157 set_gdbarch_deprecated_init_extra_frame_info(),
2158 set_gdbarch_deprecated_dummy_write_sp(), and
2159 set_gdbarch_deprecated_pc_in_call_dummy().
2160 Add calls to the following functions:
2161 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2162 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2163 frame_base_set_default().
2164 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2165
68f6cf99
MK
21662003-09-09 Mark Kettenis <kettenis@gnu.org>
2167
2168 * dwarf2-frame.c (read_encoded_value): Add support for
2169 DW_EH_PE_aligned encoding.
2170
73b65bb0
DJ
21712003-09-08 Daniel Jacobowitz <drow@mvista.com>
2172
2173 * infrun.c (normal_stop): Don't print a message if the inferior
2174 has exited.
2175
7c8a5605
JB
21762003-09-08 Jim Blandy <jimb@redhat.com>
2177
2178 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2179 * dbxread.c: #include "gdb_assert.h".
2180 (read_dbx_symtab): If the objfile has no .data section, use the
2181 section index for the .bss section instead.
2182
7dd88986
DJ
21832003-09-08 Daniel Jacobowitz <drow@mvista.com>
2184
2185 * frame.c (deprecated_safe_get_selected_frame): New function.
2186 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2187 * findvar.c (read_var_value): Call it.
2188
55ff77ac
CV
21892003-09-08 Corinna Vinschen <vinschen@redhat.com>
2190
2191 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2192 (sh64-tdep.o): Add dependencies.
2193 * configure.tgt: Add FIXME to sh-*-linux*.
2194 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2195 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2196 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2197 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2198 * sh64-tdep.c: New file, containing all sh64 related code from
2199 sh-tdep.c.
2200 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2201 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2202 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2203 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2204 * config/sh/wince.mt (TDEPFILES): Ditto.
2205
bfb39158
DJ
22062003-09-07 Daniel Jacobowitz <drow@mvista.com>
2207
2208 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2209 (stop_wait_callback): Handle !lp->signalled also.
2210 (lin_lwp_has_pending, flush_callback): New functions.
2211 (lin_lwp_wait): Call flush_callback.
2212 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2213 (linux_proc_pending_signals): New function.
2214 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2215
9407de8e
DJ
22162003-09-07 Daniel Jacobowitz <drow@mvista.com>
2217
2218 From Nick Kelsey <nickk@ubicom.com>:
2219 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2220 when the stop PC is at the beginning of a function also.
2221
2ef47cd0
DJ
22222003-09-06 Daniel Jacobowitz <drow@mvista.com>
2223
2224 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2225 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2226
6f4492c8
MK
22272003-09-06 Mark Kettenis <kettenis@gnu.org>
2228
2229 * sol-thread.c: Include "gdb_string.h".
2230
d3420b2f
MK
22312003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2232
2233 * gcore.c: Reorder include files in alphabetical order. Include
2234 "gdb_assert.h". Various coding style fixes.
2235 (derive_stack_segment, derive_heap_segment): Replace check for
2236 non-null BOTTOM and TOP with gdb_assert.
2237 (derive_heap_segment): Replace check for successful creation of
2238 ZERO with gdb_assert.
2239 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2240
5220ea4c
AC
22412003-09-04 Andrew Cagney <cagney@redhat.com>
2242
2243 * thread-db.c (verbose_dlsym): New function.
2244 (thread_db_load): Use verbose_dlsym
2245 (thread_db_new_objfile): Print that libthread_db was loaded, and
2246 that thread debugging was enabled.
2247
6e8c2c06
AC
22482003-09-04 Andrew Cagney <cagney@redhat.com>
2249
2250 * configure.tgt: Add "mips64*-*-*" target. Delete
2251 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2252 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2253 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2254 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2255 mips*-sony-*, and mips64*-*-elf* targets.
2256 * config/mips/embedl.mt: Delete file.
2257 * config/mips/embedl64.mt: Delete file.
2258 * config/mips/mips.mt: Delete file.
2259 * config/mips/mips64.mt: Delete file.
2260 * config/mips/tm-embed.h: Delete file.
2261 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2262 * config/mips/embed64.mt: Delete out-of-date comment.
2263
3a3bc038
AC
22642003-09-04 Andrew Cagney <cagney@redhat.com>
2265
2266 * hppa-tdep.c (hppa_gdbarch_init): Set
2267 "have_nonsteppable_watchpoint".
2268 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2269 * mips-tdep.c (mips_dump_tdep): Do not print
2270 HAVE_NONSTEPPABLE_WATCHPOINT.
2271 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2272 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2273 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2274 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2275
a957e642
CV
22762003-09-04 Corinna Vinschen <vinschen@redhat.com>
2277
2278 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2279 unused code. Add comment.
2280
a6fbcf2f
CV
22812003-09-04 Corinna Vinschen <vinschen@redhat.com>
2282
2283 * breakpoint.c (watchpoint_check): Check for pc being in an
2284 epilogue if watchpoint frame couldn't be found.
2285
c14a44d5
AC
22862003-09-04 Andrew Cagney <cagney@redhat.com>
2287
2288 * Makefile.in: Re-generate all dependencies.
2289
f6c40618
AC
22902003-09-03 Andrew Cagney <cagney@redhat.com>
2291
2292 * arch-utils.h (legacy_print_insn): Delete declaration.
2293 * arch-utils.c (legacy_print_insn): Delete function.
2294 * disasm.c (deprecated_tm_print_insn_info): Delete.
2295 (_initialize_disasm): Delete function, contained code initializing
2296 deprecated_tm_print_insn_info.
2297 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2298 (deprecated_tm_print_insn_info): Delete.
2299 (TARGET_PRINT_INSN): Do not provide a default.
2300 * gdbarch.h, gdbarch.c: Re-generate.
2301
242e8be5
AC
23022003-09-03 Andrew Cagney <cagney@redhat.com>
2303
2304 * disasm.c (fprintf_disasm): New function.
2305 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2306 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2307 reverts 2003-08-14 change.
2308 (_initialize_disasm): Call "init_disassemble_info", instead of
2309 INIT_DISASSEMBLE_INFO_NO_ARCH.
2310
3ffc3dda
MS
23112003-09-03 Michael Snyder <msnyder@redhat.com>
2312
2313 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2314
52d16ba8
AC
23152003-09-03 Andrew Cagney <cagney@redhat.com>
2316
2317 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2318 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2319 * symfile.c (syms_from_objfile): Update.
2320 (reread_symbols): `Update
2321 * exec.c (exec_file_attach): Update.
2322 (exec_file_attach): Update.
2323 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2324 2003-08-29 change.
2325 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2326
eb5492fa
DJ
23272003-09-03 Daniel Jacobowitz <drow@mvista.com>
2328
2329 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2330 trad-frame.h.
2331 (arm_get_cache): Delete macro.
2332 (struct arm_prologue_cache): Update comments. Make saved_regs into
2333 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2334 to prev_sp.
2335 (thumb_scan_prologue): Update for cache changes. Don't call
2336 DEPRECATED_PC_IN_CALL_DUMMY.
2337 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2338 argument and use it in desperation search for our prologue. Do not
2339 search past the specified PC.
2340 (arm_make_prologue_cache): Simplify.
2341
2342 (arm_prologue_this_id, arm_prologue_prev_register)
2343 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2344 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2345 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2346 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2347 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2348
2349 (arm_frame_chain_valid, arm_find_callers_reg)
2350 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2351 (arm_pop_frame): Delete obsolete methods.
2352 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2353
2354 (arm_gdbarch_init): Update for new frame methods. Register prologue
2355 and sigtramp unwinders. Set the default frame base method.
2356
2357 * Makefile.in (arm-tdep.o): Update dependencies.
2358 * varobj.c (find_frame_addr_in_frame_chain): Call
2359 get_frame_base_address.
2360 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2361
24de872b
DJ
23622003-09-03 Daniel Jacobowitz <drow@mvista.com>
2363
2364 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2365 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2366 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2367 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2368 Take NEXT_FRAME and CACHE arguments. Call
2369 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2370 Set unwound_pc in CACHE instead of modifying the frame argument.
2371 Don't bother checking the frame type when looking for sigtramp
2372 frames.
2373 (arm_make_prologue_cache, arm_frame_chain)
2374 (arm_init_extra_frame_info): New functions.
2375
9b8d791a
DJ
23762003-09-03 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * arm-tdep.c (arm_get_cache): Define.
2379 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2380 unwound_sp, unwound_pc, and saved_regs.
2381 (thumb_scan_prologue): Take a cache instead of the frame.
2382 (arm_scan_prologue): Likewise.
2383 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2384 instead of a temporary frame.
2385 (arm_init_extra_frame_info): Allocate and use a cache.
2386 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2387
7ee3275f
AC
23882003-09-03 Andrew Cagney <cagney@redhat.com>
2389
2390 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2391 * config/mips/wince.mt (TM_CLIBS): Ditto.
2392 * config/sh/wince.mt (TM_CLIBS): Ditto.
2393 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2394 * config/sparc/sp64.mt (CC): Delete.
2395
57b29be7
AC
23962003-09-03 Andrew Cagney <cagney@redhat.com>
2397
2398 * defs.h: Do not include "arch-utils.h".
2399 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2400 GDB_MULTI_ARCH_PURE.
2401 * configure.in (GDB_MULTI_ARCH): Do not define.
2402 * configure, config.in: Regenerate.
2403 * configure.tgt: Do not set variable "gdb_multi_arch".
2404 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2405 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2406 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2407 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2408 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2409 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2410 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2411 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2412 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2413 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2414 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2415 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2416 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2417 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2418 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2419 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2420 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2421 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2422
12e035e2
MC
24232003-08-30 Michael Chastain <mec@shout.net>
2424
2425 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2426 * config/m68k/nm-hp300hpux.h: Delete.
2427 * config/m68k/tm-hp300hpux.h: Delete.
2428 * config/m68k/xm-hp300hpux.h: Delete.
2429 * config/m68k/xm-hp300bsd.h: Delete.
2430 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2431 tm-hp300hpux.h, xm-hp300hpux.h.
2432 * somsolib.c: Remove comment about hp300 shared libraries.
2433
bda34dc2
MK
24342003-08-31 Mark Kettenis <kettenis@gnu.org>
2435
5bca7895
MK
2436 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2437 Only define PTRACE_GET_THREAD_AREA is not already defined.
2438 Various style fixes in code and comments and some additional
2439 spelling fixes in comments. Move after functions dealing with
2440 debug registers.
2441 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2442 Fix coding-style.
2443
bda34dc2
MK
2444 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2445 frame_unwind_register_unsigned instead of
2446 frame_unwind_unsigned_register.
2447
c890192f
MK
24482003-08-30 Mark Kettenis <kettenis@gnu.org>
2449
2450 * configure.in: Search for gethostbyname in libnsl.
2451 * configure: Regenerated.
2452
60fac5b8
MK
24532003-08-29 Mark Kettenis <kettenis@gnu.org>
2454
e294916c
MK
2455 * configure.in: Remove redundant AC_MSG_RESULT in check for
2456 uintptr_t in stdint.h.
2457 * configure: Regenerated.
2458
c40d267a
MK
2459 * amd64-nat.h (struct regcache): Add opaque declaration.
2460
60fac5b8
MK
2461 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2462 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2463 Change "register array" to "register cache" in comments.
2464 (x86_64_linux_gregset64_reg_offset): New variable.
2465 (GETREGS_SUPPLIES): Remove macro.
2466 (supply_gregset): Call amd64_supply_native_gregset instead of
2467 x86_64_linux_supply_gregset.
2468 (fill_gregset): Rename `regno' to `regnum'. Call
2469 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2470 (store_regs): Rename `regno' to `regnum'.
2471 (store_fpregs): Rename `regno' to `regnum'.
2472 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2473 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2474 Reorganize function a bit.
2475 (store_inferior_registers): Rename `regno' to `regnum'. Use
2476 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2477 Reorganize function a bit.
2478 (_initialize_x86_64_linux_nat): New function.
2479 * config/i386/x86-64linux.mh.
2480
546143b6
AC
24812003-08-29 Andrew Cagney <cagney@redhat.com>
2482
2483 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2484 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2485 (target_remove_watchpoint): Delete macro.
2486 (target_insert_watchpoint): Delete macro.
2487 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2488 (remote_mips_stopped_by_watchpoint): Delete declaration.
2489 (remote_mips_remove_watchpoint): Delete declaration.
2490 (remote_mips_set_watchpoint): Delete declaration.
2491 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2492 * remote-mips.c (_initialize_remote_mips): Set
2493 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2494 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2495 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2496 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2497 (mips_stopped_by_watchpoint): Rename
2498 remote_mips_stopped_by_watchpoint.
2499 (mips_can_hardware_watchpoint): Rename
2500 remote_mips_can_use_hardware_watchpoint, update function
2501 signature.
2502
7bace51b
MK
25032003-08-29 Mark Kettenis <kettenis@gnu.org>
2504
b0f5c6f2
MK
2505 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2506 USER_DS. We haven't given them a register number yet.
2507
2a6d284d
MK
2508 * amd64-nat.h: New file.
2509 * amd64-nat.c: New file.
2510 * amd64fbsd-nat.c: Include "amd64-nat.h".
2511 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2512 (amd64fbsd32_r_reg_offset): New variable.
2513 (supply_gregset): Simply call amd64_supply_native_gregset.
2514 (fill_gregset): Rename `regno' to `regnum'. Simply call
2515 amd64_collect_native_gregset.
2516 (fill_fpregset): Rename `regno' to `regnum'.
2517 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2518 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2519 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2520 `fpregset_t'. Call amd64_supply_native_gregset instead of
2521 supply_gregset. Call x86_64_supply_fxsave instead of
2522 supply_fpregset.
2523 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2524 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2525 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2526 `fpregset_t'. Call amd64_collect_native_gregset instead of
2527 fill_gregset. Call x86_64_collect_fxsave instead of
2528 fill_fpregset.
2529 (_initialize_am64fbsd_nat): Initialize
2530 amd64_native_gregset32_reg_offset and
2531 amd64_native_gregset64_reg_offset.
2532 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2533
a16d75cc
MK
2534 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2535 null pointer. Fix typo in comment.
2536
7bace51b
MK
2537 * regcache.c (supply_register): Reimplement to call
2538 regcache_raw_supply.
2539 (regcache_collect): Reimplement by calling regcache_raw_collect.
2540
9a661b68
MK
25412003-08-28 Mark Kettenis <kettenis@gnu.org>
2542
2543 * regcache.c (register_buffer): Consitify first argument.
2544 (regcache_raw_supply, regcache_raw_collect): New
2545 functions.
2546
e94cc8fa
DJ
25472003-08-28 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2550 by Nathan J. Williams.
2551
c64bd0ce
DJ
25522003-08-28 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * lin-lwp.c (wait_lwp): New function, copied from
2555 stop_wait_callback. Clean up.
2556 (stop_wait_callback): Use wait_lwp.
2557
e5ab0dce
AC
25582003-08-28 Andrew Cagney <cagney@redhat.com>
2559
2560 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2561 flavour and disassembler options.
2562 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2563 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2564 deprecated_tm_print_insn_info.
a8f4cde1 2565
a788de9b
AC
25662003-08-27 Andrew Cagney <cagney@redhat.com>
2567
2568 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2569 Use target_read_memory.
2570 (s390_get_frame_info): Update. Do not reference
2571 deprecated_tm_print_insn_info.
2572 (s390_check_function_end, s390_is_sigreturn): Ditto.
2573
36482093
AC
25742003-08-27 Andrew Cagney <cagney@redhat.com>
2575
2576 * Makefile.in (cris-tdep.o): Update dependencies.
2577 * cris-tdep.c: Include "gdb_assert.h".
2578 (cris_gdbarch_init): Set print_insn.
2579 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2580 (cris_delayed_get_disassembler): Simplify, directly call the
2581 disassembler returned by cris_get_disassembler.
2582 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2583 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2584 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2585 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2586 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2587 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2588 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2589 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2590 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2591 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2592 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2593 (gdb_print_insn_sparc): Delete function.
2594 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2595 deprecated_tm_print_insn_info.
2596 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2597 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2598 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2600 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2601 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2602 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2603 (s390_gdbarch_init): Set print_insn.
2604
0285512f
AC
26052003-08-27 Andrew Cagney <cagney@redhat.com>
2606
2607 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2608 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2609 * infcall.c (call_function_by_hand): Convert the entry point
2610 address into a code address.
2611
cdcd5552
AC
26122003-08-27 Andrew Cagney <cagney@redhat.com>
2613
2614 * dsrec.c: Include "gdb_string.h".
2615 * Makefile.in (dsrec.o): Update dependencies.
2616
e85cddad
MC
26172003-08-27 Michael Chastain <mec@shout.net>
2618
2619 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2620
8bbfbb23
AC
26212003-08-27 Andrew Cagney <cagney@redhat.com>
2622
2623 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2624 (alpha_osf1_init_abi): Do not set call_dummy_address.
2625
ba058b66
DC
26262003-08-27 David Carlton <carlton@kealia.com>
2627
2628 From Randolph Chung <tausq@debian.org>:
2629 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2630 compiles with -Wformat-nonliteral -Werror.
2631
87f84c9d
JB
26322003-08-26 Jim Blandy <jimb@redhat.com>
2633
2634 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2635 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2636 bfd_lookup_symbol, since we only want symbols in code sections.
2637 (look_for_base): Pass zero as the SECT_FLAGS argument to
2638 bfd_lookup_symbol, since we're not concerned about which section
2639 the symbol is in.
2640
102d615a
JJ
26412003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2642
2643 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2644 we are frameless or the return address register is already known.
102d615a 2645
cc7ad3ea
AC
26462003-08-26 Andrew Cagney <cagney@redhat.com>
2647
2648 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2649 in size. Add comments.
2650
af8b88dd
JJ
26512003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2652
2653 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2654 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2655
e0a4f5a1
JM
26562003-08-26 Jason Merrill <jason@redhat.com>
2657
2658 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2659 case out of #ifdef MIPS block.
2660
4ae9ee8e
DJ
26612003-08-25 Daniel Jacobowitz <drow@mvista.com>
2662
2663 PR java/1322
2664 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2665 available before calling SECT_OFF_TEXT.
3c164570 2666 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2667
004d836a
JJ
26682003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2669
a8f4cde1 2670 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2671 bof, and nat0-nat127 as pseudo-registers.
2672 (ia64_frame_cache): New struct used to cache frame info.
2673 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2674 register grouping so registers without names are still saved and
004d836a 2675 restored.
a8f4cde1 2676 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2677 pseudo values.
2678 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2679 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2680 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2681 ia64_frame_cache.
2682 (examine_prologue): Change prototype to add next_frame pointer.
2683 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2684 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2685 alloc insn and if equal, mark as not frameless. At end of routine,
2686 if not frameless, calculate registers for the previous frame and store
2687 in the cache, if a cache is provided.
2688 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2689 and pass 0 for next_frame.
2690 (ia64_store_return_value): Change to use convert_typed_floating()
2691 instead of calling ia64_convert_to_raw().
2692 (ia64_extract_return_value): Change to use convert_typed_floating()
2693 instead of calling ia64_convert_to_virtual().
2694 (ia64_frame_cache): New routine to support new frame model.
2695 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2696 (ia64_frame_sniffer): Ditto.
2697 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2698 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2699 (ia64_sigtramp_frame_prev_register): Ditto.
2700 (ia64_sigtramp_frame_sniffer): Ditto.
2701 (ia64_frame_base_address): Ditto.
2702 (ia64_extract_struct_value_address): Change to issue error message.
2703 (ia64_frame_align): New routine to align sp.
2704 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2705 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2706 ia64_push_dummy_call().
2707 (ia64_push_return_address): Ditto.
2708 (ia64_unwind_dummy_id): New function.
2709 (ia64_unwind_pc): Ditto.
2710 (ia64_convert_register_p): Ditto.
2711 (ia64_register_to_value): Ditto.
2712 (ia64_value_to_register): Ditto.
2713 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2714 (ia64_register_byte, ia64_register_raw_size): Ditto.
2715 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2716 (ia64_saved_pc_after_call): Ditto.
2717 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2718 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2719 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2720 (ia64_register_convert_to_raw): Ditto.
2721 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2722 (ia64_init_extra_frame_info): Ditto.
2723 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2724 (ia64_gdbarch_init): Remove registering of deprecated functions that
2725 are no longer used. Add registration of new gdbarch functions.
2726 Remove registering deprecated_write_sp. Replace
2727 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2728 Delete set_gdbarch_deprecated_register_convertible(),
2729 set_gdbarch_deprecated_register_convert_to_virtual(), and
2730 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2731 set_gdbarch_deprecated_register_size(),
2732 set_gdbarch_deprecated_register_bytes(),
2733 set_gdbarch_pcregnum(),
2734 set_gdbarch_deprecated_register_byte(),
2735 set_gdbarch_deprecated_register_raw_size(),
2736 set_gdbarch_deprecated_max_register_raw_size(),
2737 set_gdbarch_deprecated_register_virtual_size(),
2738 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2739 Replace set_gdbarch_deprecated_extract_return_value() with
2740 set_gdbarch_extract_return_value(). Remove calls to:
2741 set_gdbarch_deprecated_saved_pc_after_call();
2742 set_gdbarch_deprecated_frame_chain(),
2743 set_gdbarch_deprecated_frame_saved_pc(),
2744 set_gdbarch_deprecated_frame_init_saved_regs(),
2745 set_gdbarch_deprecated_get_saved_register(),
2746 set_gdbarch_deprecated_call_dummy_words(),
2747 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2748 set_gdbarch_deprecated_init_extra_frame_info(),
2749 set_gdbarch_deprecated_frame_args_address(),
2750 set_gdbarch_deprecated_frame_locals_address(),
2751 and set_gdbarch_deprecated_dummy_write_sp().
2752 Add set_gdbarch_convert_register_p(),
2753 set_gdbarch_register_to_value(),
2754 set_gdbarch_value_to_register(),
2755 set_gdbarch_push_dummy_call(),
2756 set_gdbarch_frame_align(),
2757 set_gdbarch_unwind_dummy_id(),
2758 set_gdbarch_unwind_pc(),
2759 frame_unwind_append_sniffer(),
2760 frame_unwind_append_sniffer(),
2761 and frame_base_set_default().
2762
aede7613
CD
27632003-08-25 Chris Demetriou <cgd@broadcom.com>
2764
2765 * configure.tgt: Document need for special "mipsisa64" handling.
2766 (mipsisa64*-*-linux64): Handle as target linux64.
2767 (mipsisa64*-*-*): Handle as target embed64.
2768
43c3a82e
MC
27692003-08-18 Michael Chastain <mec@shout.net>
2770
2771 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2772 objfile bug.
2773
6564f77d
MK
27742003-08-24 Mark Kettenis <kettenis@gnu.org>
2775
2de139ba
MK
2776 * i387-tdep.h: Update copyright date.
2777 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2778
6564f77d
MK
2779 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2780 CFLAGS games to reflect reality.
2781
42cf1509
AC
27822003-08-24 Andrew Cagney <cagney@redhat.com>
2783
2784 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2785 GDB_MULTI_ARCH is always non-zero.
2786 * osabi.c (_initialize_gdb_osabi): Ditto.
2787 (gdbarch_init_osabi): Ditto.
2788 * sparc-tdep.c: Ditto for #if code.
2789
0485f6ad
MK
27902003-08-23 Mark Kettenis <kettenis@gnu.org>
2791
2792 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2793 Update comments.
2794 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2795 comments.
2796 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2797 x86_64_supply_fxsave.
2798 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2799 x86_64_supply_fxsave.
2800 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2801 x86_64_supply_fxsave.
2802
c7716133
AJ
28032003-08-23 Andreas Jaeger <aj@suse.de>
2804
2805 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2806 i387_supply_fxsave.
2807
ed504bdf
MK
28082003-08-23 Mark Kettenis <kettenis@gnu.org>
2809
2810 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2811 i387_supply_register.
2812 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2813 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2814 i387_supply_fsave.
2815 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2816 i387_supply_fxsave.
2817 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2818 i387_supply_fsave.
2819 * i386bsd-nat.c (supply_fpregset): Adjust call to
2820 i387_supply_fsave.
2821 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2822 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2823 supply_fpregset.
2824 (store_inferior_registers): Remove extraneous whitespace. Call
2825 i387_fill_fsave instead of fill_fpregset.
2826 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2827 (supply_fpregset): Likewise.
2828 * i386v4-nat.c (supply_fpregset): Adjust call to
2829 i387_supply_fsave.
2830 * i386-interix-nat.c (supply_fpregset): Adjust call to
2831 i387_supply_fsave.
2832 * i386-linux-nat.c (supply_fpregset): Adjust call to
2833 i387_supply_fsave.
2834 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2835 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2836 i387supply_fsave and i387_supply_fxsave.
2837 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2838 Incorporate code from `i387_supply_register.
2839 (i387_supply_register): Remove.
2840 (i387_supply_fxsave): Add `regnum' argument.
2841 Update comments.
2842 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2843 prototype.
2844 (i387_supply_register): remove prototype.
2845 Update comments.
a8f4cde1 2846
4be5d520
MC
28472003-08-22 Michael Chastain <mec@shout.net>
2848
2849 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2850 Add lines for files in gdb/testsuite/gdb.cp/* that are
2851 still not 8.3 unique.
2852
7ed85d26
DJ
28532003-08-22 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2856 TYPE_VPTR_FIELDNO is valid.
2857
eb0d3137
MK
28582003-08-19 Mark Kettenis <kettenis@gnu.org>
2859
2860 * utils.c (set_width_command): Remove prototypes.
2861 (set_screen_size): New prototype.
2862 (init_page_info): Simplify by fetching the screen size from
2863 Readline. Call set_screen_size.
2864 (set_screen_size): New function.
2865 (set_width): Add missing whitespace in comment.
2866 (set_width_command): Call set_screen_size.
2867 (set_height_command): New function.
2868 (initialize_utils): Fix formatting. Make "set height" command
2869 call set_height_command. Remove redundant code that turns off
2870 pagination if output isn't a terminal. Remove redundant call to
2871 set_width_command.
a8f4cde1 2872
7e6d0ac8
MK
28732003-08-22 Mark Kettenis <kettenis@gnu.org>
2874
3567a8ea
MK
2875 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2876 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2877 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2878 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2879 `case' keyword.
2880 (sparc64_register_info): Give the reister with number
2881 SPARC64_STATE_REGNUM a name.
2882 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2883 %asi and %ccr.
2884 (sparc64_push_dummy_call): Take BIAS into account when checking
2885 stcak alignment.
2886 (sparc_software_single_step): Remove assertions that check whether
2887 NPC and NNPC were zero.
2888 (sparc_supply_rwindow): Make public. Merge functionality with
2889 sparc64_supply_rwindow.
2890 (sparc_fill_rwindow): Make public. Merge functionality with
2891 sparc64_fill_rwindow.
2892 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2893 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2894 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2895 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2896 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2897
7e6d0ac8
MK
2898 * reggroups.c: Add whitespace after declarations of local
2899 variables in functions.
2900
72e5f484
MC
29012003-08-21 Michael Chastain <mec@shout.net>
2902
2903 * gdbtypes.h: Change array bound type from an int to enum.
2904
435ac228
AC
29052003-08-21 Andrew Cagney <cagney@redhat.com>
2906
2907 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2908 * config/sparc/tm-sparc.h: Ditto.
2909 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2910 unconditionally.
2911 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2912
0d0e1a63
MK
29132003-07-13 Mark Kettenis <kettenis@gnu.org>
2914
2915 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2916 (register_objfile_data, set_objfile_data, objfile_data): New
2917 prototypes.
2918 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2919 prototypes.
2920 (allocate_objfile): Call objfile_alloc_data.
2921 (free_objfile): Call objfile_free_data.
2922 (struct objfile_data): New.
2923 (struct objfile_data_registration): New.
2924 (struct objfile_data_registry): New.
2925 (objfile_data_registry): New variable.
2926 (register_objfile_data): New function.
2927 (objfile_alloc_data, objfile_free_data): New functions.
2928 (set_objfile_data, objfile_data): New functions.
2929 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2930 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2931 (_initialize_dwarf2_frame): New function and prototype.
2932
d90cf509
AC
29332003-08-21 Andrew Cagney <cagney@redhat.com>
2934
2935 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2936 a specific architecture.
2937 * arch-utils.h (set_architecture_from_arch_mach): Delete
2938 declaration.
2939 (target_architecture_hook): Delete declaration.
2940 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2941 (default_float_format): Assume GDB_MULTI_ARCH.
2942 (default_double_format): Assume GDB_MULTI_ARCH.
2943 (set_endian_from_file): Delete function.
2944 (arch_ok): Delete function.
2945 (set_arch): Delete function.
2946 (set_architecture_from_arch_mach): Delete function.
2947 (set_architecture_from_file): Delete function.
2948 (set_architecture): Assume GDB_MULTI_ARCH.
2949 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2950
8b39fe56
MK
29512003-08-21 Mark Kettenis <kettenis@gnu.org>
2952
2953 Rewrite FreeBSD/sparc64 native configuration.
2954 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2955 * sparc64fbsd-nat.c: New file.
2956 * sparc64fbsd-tdep.c: New file.
2957 * sparc64-tdep.c sparc64-tdep.h: New files.
2958 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2959 sparc64fbsd-tdep.o): New dependencies.
2960 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2961 and sparc64fbsd-tdep.c.
2962 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2963 * config/sparc/fbsd.mh: Remove copyright notice.
2964 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2965 sparcbsd-nat.o.
2966 * config/sparc/fbsd.mt: Remove copyright notice.
2967 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2968 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2969 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2970 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2971 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2972 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2973 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2974 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2975 "sparc/tm-sp64.h".
2976 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2977 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2978
a7f19c79
MC
29792003-08-21 Michael Chastain <mec@shout.net>
2980
2981 * symtab.h: Add doco on the space critical structures and
2982 some measurements of space usage.
2983
da08ea5b
MS
29842003-08-21 Michael Snyder <msnyder@redhat.com>
2985
2986 * tracepoint.c (trace_dump_command): Trace break address
2987 is subject to DECR_PC_AFTER_BREAK.
2988 (set_traceframe_context): Make "trace_line" an int.
2989 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2990
6df2bf50
MS
29912003-08-20 Michael Snyder <msnyder@redhat.com>
2992
2993 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2994 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2995 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2996 argument passing.
a8f4cde1 2997 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2998 functions, replace sh_push_dummy_call.
2999 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3000
0955bbf0
MC
30012003-08-20 Michael Chastain <mec@shout.net>
3002
3003 * gdbtypes.h (struct main_type): Rearrange to save space.
3004
260a4188
MS
30052003-08-20 Michael Snyder <msnyder@redhat.com>
3006
3007 * trad-frame.c: Comment typo fix.
3008
8baa6f92
KB
30092003-08-20 Michael Snyder <msnyder@redhat.com>
3010 Kevin Buettner <kevinb@redhat.com>
3011
3012 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3013 (frv_frame_init_saved_regs): Add declaration.
3014 (frame_extra_info): Add new field ``saved_regs''.
3015 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3016 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3017 Update frame related code.
3018 (frv_extract_struct_value_address): Adjust formatting.
3019 * Makefile.in (frv-tdep.o): Update dependencies.
3020 * config/frv/tm-frv.h (target_insert_watchpoint)
3021 (target_remove_watchpoint, target_insert_hw_breakpoint)
3022 (target_remove_hw_breakpoint): Delete these macros.
3023 (remote_insert_watchpoint, remote_remove_watchpoint)
3024 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3025 these declarations.
3026
87193939
MC
30272003-08-20 Michael Chastain <mec@shout.net>
3028
3029 * defs.h (ENUM_BITFIELD): New macro.
3030 * symtab.h (ENUM_BITFIELD): Use it.
3031 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3032
062103ba
SA
30332003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3034
3035 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3036
8b148df9
AC
30372003-08-18 Andrew Cagney <cagney@redhat.com>
3038
3039 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3040 * gdbarch.h, gdbarch.c: Re-generate.
3041 * infcall.c (call_function_by_hand): Adjust the SP by
3042 frame_red_zone_size before allocating any stack space.
3043 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3044 * x86-64-tdep.c (x86_64_frame_align): New function.
3045 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3046
3047 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3048 Remove code adjusting SP so that it skips over the Red Zone.
3049
954a4db8
MK
30502003-08-18 Mark Kettenis <kettenis@gnu.org>
3051
3052 * NEWS (New native configurations): Mention FreeBSD/amd64.
3053
1a241548
AC
30542003-08-18 Andrew Cagney <cagney@redhat.com>
3055
3056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3057 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3058 "m68k_frame_p".
3059 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3060
f82b2acd
MK
30612003-08-18 Mark Kettenis <kettenis@gnu.org>
3062
3063 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3064
4056d258
ML
30652003-08-18 Michal Ludvig <mludvig@suse.cz>
3066
3067 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3068 Define.
3069 * i386-linux-nat.c: Include "linux-nat.h".
3070 (child_post_startup_inferior): New function.
a8f4cde1 3071
99ab4326
MK
30722003-08-18 Mark Kettenis <kettenis@gnu.org>
3073
3074 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3075 at the start of a frameless function. This probably fixes PR
3076 backtrace/1338.
3077
c8d5f0d6
MC
30782003-08-17 Michael Chastain <mec@shout.net>
3079
3080 * symfile.c (find_sym_fns): Remove special case for apollo target.
3081
9016a515
DJ
30822003-08-17 Daniel Jacobowitz <drow@mvista.com>
3083
3084 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3085 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3086 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3087 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3088 (linux_supports_tracevforkdone): New function.
3089 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3090 TRACEVFORKDONE.
3091 (child_follow_fork): Handle vfork.
3092 (linux_handle_extended_wait): Likewise. Also handle exec.
3093 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3094 * NEWS: Mention fork tracing.
3095
c538c11c
DJ
30962003-08-17 Daniel Jacobowitz <drow@mvista.com>
3097
3098 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3099
4de4c07c
DJ
31002003-08-17 Daniel Jacobowitz <drow@mvista.com>
3101
3102 * Makefile.in (i386-linux-nat.o): Update dependencies.
3103 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3104 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3105 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3106 * i386-linux-nat.c: Include "linux-nat.h".
3107 (child_post_startup_inferior): New function.
3108 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3109 * infptrace.c (kill_inferior): Wrap in #ifdef.
3110 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3111 attaching to each LWP.
3112 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3113 (init_lin_lwp_ops): Fill in some more operations.
3114 * linux-nat.h (linux_enable_event_reporting)
3115 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3116 prototypes.
3117 * linux-nat.c (linux_enable_event_reporting): New function.
3118 (child_post_attach, linux_child_post_startup_inferior)
3119 (child_post_startup_inferior, child_follow_fork)
3120 (linux_handle_extended_wait, kill_inferior): New functions.
3121
7996bcec
AC
31222003-08-16 Andrew Cagney <cagney@redhat.com>
3123
3124 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3125 * gdbarch.h, gdbarch.c: Re-generate.
3126
3d48a7a0
MK
31272003-08-16 Mark Kettenis <kettenis@gnu.org>
3128
3129 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3130
7989c619
AC
31312003-08-16 Andrew Cagney <cagney@redhat.com>
3132
3133 * NEWS: Mention that "set prompt-escape-char" was deleted.
3134 * top.c (get_prompt_1): Delete function.
3135 (gdb_prompt_escape):
3136 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3137 prompt-escape-char" command.
3138 (MAX_PROMPT_SIZE): Delete macro.
3139 (get_prompt): Simplify, do not call get_prompt_1.
3140
07978cd8
AC
31412003-08-16 Andrew Cagney <cagney@redhat.com>
3142
3143 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3144 -Werror. -Wformat-nonliteral problems.
3145
3ff7cf9e
JB
31462003-08-15 J. Brobecker <brobecker@gnat.com>
3147
3148 Further multiarching work mostly for hppa64-*-hpux11:
3149 * hppa-tdep.h: New file.
3150 * hppa-tdep.c: #include hppa-tdep.c.
3151 (hppa32_num_regs): Renamed from hppa_num_regs.
3152 (hppa64_num_regs): New constant.
3153 (hppa64_call_dummy_breakpoint_offset): New constant.
3154 (hppa32_call_dummy_length): New constant.
3155 (hppa64_call_dummy_length): New constant.
3156 (hppa32_stack_align): Make name 32bit explicit.
3157 (hppa32_register_virtual_type): Likewise.
3158 (hppa32_extract_return_value): Likewise.
3159 (hppa32_use_struct_convention): Likewise.
3160 (hppa32_store_return_value): Likewise.
3161 (hppa64_register_virtual_type): New function.
3162 (hppa64_extract_return_value): New function.
3163 (hppa64_use_struct_convention): New function.
3164 (hppa64_store_return_value): New function.
3165 (hppa_frame_locals_address): Remove declaration, function does
3166 not exist anymore.
3167 (hppa_register_byte): Add support for PA64 ABI.
3168 (hppa_gdbarch_init): Add support for PA64 ABI.
3169 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3170 Make name 32bit explicit.
3171 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3172 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3173 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3174 (hppa64_hpux_frame_base_before_sigtramp): New function.
3175 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3176 * config/pa/tm-hppa64.h: Remove macros that are no longer
3177 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3178 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3179 * config/pa/tm-hppah.h: Update function calls in macros
3180 following the function renaming in hppa-hpux-tdep.c.
3181 * Makefile.in (hppa_tdep_h): New variable.
3182 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3183
5d05ca6d
MS
31842003-08-14 Michael Snyder <msnyder@redhat.com>
3185
3186 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3187
37ba2569
JB
31882003-08-13 J. Brobecker <brobecker@gnat.com>
3189
3190 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3191 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3192 routine.
3193
aed7f26a
MS
31942003-08-13 Michael Snyder <msnyder@redhat.com>
3195
3196 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3197 (frv_saved_pc_after_call): Use deprecated ftype.
3198 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3199 (frv_remote_translate_xfer_address): Remove.
3200 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3201
752d4ac1
JB
32022003-08-13 J. Brobecker <brobecker@gnat.com>
3203
3204 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3205 initialization after the common gdbarch initialization, not before.
3206
1426ac1d
JB
32072003-08-13 J. Brobecker <brobecker@gnat.com>
3208
3209 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3210 (ADDR_BITS_REMOVE): Remove, redundant.
3211
b6fbdd1d
JB
32122003-08-13 J. Brobecker <brobecker@gnat.com>
3213
3214 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3215 gdbarch method to clear the 2 low bits of text addresses.
3216
44160db3
AC
32172003-08-12 Andrew Cagney <cagney@redhat.com>
3218
3219 * Makefile.in (dsrec.o): Update dependencies.
3220 * dsrec.c: Include "gdb_assert.h".
3221 (make_srec): Use snprintf instead of sprintf, use a literal format
3222 string.
3223
bcf7d3ca
AC
32242003-08-12 Andrew Cagney <cagney@redhat.com>
3225
3226 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3227 FRAME_OBSTACK_ZALLOC.
3228
49ed40de
KB
32292003-08-12 Kevin Buettner <kevinb@redhat.com>
3230
3231 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3232 SSE registers.
3233
b246147c
MK
32342003-08-10 Mark Kettenis <kettenis@gnu.org>
3235
3236 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3237 amd64fbsd_sc_reg_offset): Add extern declarations.
3238 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3239 declarations.
3240
d95fdc0d
BE
32412003-08-11 Ben Elliston <bje@wasabisystems.com>
3242
3243 * MAINTAINERS (write after approval): Update my mail address.
3244
cf6a0e73
AC
32452003-08-10 Andrew Cagney <cagney@redhat.com>
3246
3247 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3248
f837910f
MK
32492003-08-10 Mark Kettenis <kettenis@gnu.org>
3250
e2dbbd2d
MK
3251 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3252 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3253 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3254 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3255 i386bsd_sc_reg_offset): Add extern declarations.
3256 * i386obsd-nat.c: Include "i386-tdep.h"
3257 (_initialize_i386obsd_nat): Remove extern declarations.
3258 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3259 declarations.
3260 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3261 declarations.
3262
f837910f
MK
3263 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3264 instead of frame_read_register.
3265 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3266 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3267 SP_REGNUM.
3268 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3269 instead of frame_unwind_unsigned_register. Use
3270 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3271 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3272 instead of read_register. Use builtin_type_void_data_ptr instead
3273 of builtin_type_void_func_ptr when extracting the address of the
3274 jmp_buf.
3275 (i386_extract_return_value, i386_store_return_value,
3276 i386_pseudo_register_read, i386_pseudo_register_write): Use
3277 register_size instead REGISTER_RAW_SIZE.
3278
edcf254d
AC
32792003-08-10 Andrew Cagney <cagney@redhat.com>
3280
3281 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3282 sprintf. Make "name" constant.
3283
26604a34
MK
32842003-08-10 Mark Kettenis <kettenis@gnu.org>
3285
192285c6
MK
3286 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3287 instead of frame_read_register.
f837910f
MK
3288 (i387_print_float_info): Use get_frame_register and
3289 get_frame_register_unsigned instead of frame_register_read.
192285c6 3290
f0925262
MK
3291 * i386fbsd-nat.c: Include "i386-tdep.h".
3292 (child_resume): Make `eflags' an ULONGEST. Use
3293 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3294 instead of register_read and register_write.
3295
a144416f
MK
3296 * i386bsd-nat.c (fetch_inferior_registers,
3297 store_inferior_registers): Don't use && at the end of a line.
3298 (_initialize_i386bsd_nat): Fix typo.
3299
fec74868
MK
3300 * frame.c (_initialize_frame): Add missing backslash.
3301
87232496
MK
3302 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3303 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3304 and supply_register instead of manipulating the register buffer
3305 directly.
3306
c9b9de0b
MK
3307 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3308 * config/i386/nm-i386sol2.h
3309 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3310
26604a34
MK
3311 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3312 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3313 instructions that GCC likes to mingle into the prologue. Fixes
3314 gdb/1253 and gdb/1255.
3315
25d29d70
AC
33162003-08-09 Andrew Cagney <cagney@redhat.com>
3317
3318 Fix GDB PR cli/926.
3319 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3320 * command.h (add_setshow_uinteger_cmd): Declare.
3321 * frame.c (set_backtrace_cmd): New function.
3322 (show_backtrace_cmd): New function.
3323 * frame.c (_initialize_frame): Replace "set/show
3324 backtrace-below-main" with "set/show backtrace past-main". Add
3325 command "set/show backtrace limit".
3326 (backtrace_past_main): Rename "backtrace_below_main".
3327 (backtrace_limit): New variable.
3328 (get_prev_frame): Update. Check the backtrace_limit.
3329
9ebf4acf
AC
33302003-08-09 Andrew Cagney <cagney@redhat.com>
3331
3332 * defs.h (xstrprintf): Declare.
3333 * utils.c (xstrprintf): New function.
3334 * breakpoint.c (insert_breakpoints): Replace sprintf and
3335 non-literal format strings, with xstrprintf and cleanups.
3336 (delete_breakpoint,breakpoint_re_set): Ditto.
3337 (commands_command, insert_breakpoints): Ditto.
3338 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3339 (break_at_finish_command_1): Ditto.
3340
3771659b
AC
33412003-08-09 Andrew Cagney <cagney@redhat.com>
3342
3343 * MAINTAINERS (language support): List Adam Fedor as Objective C
3344 maintainer.
3345
b4263afa
JB
33462003-08-08 J. Brobecker <brobecker@gnat.com>
3347
3348 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3349 are now multiarched.
3350
d84defb1
JB
33512003-08-08 J. Brobecker <brobecker@gnat.com>
3352
3353 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3354 longer necessary now that hppa64 is partially multiarch'ed.
3355
f786f615
AC
33562003-08-08 Andrew Cagney <cagney@redhat.com>
3357
3358 * interps.c (interp_set): Check for a NULL "old_interp".
3359
c938e9b0
L
33602003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3361
3362 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3363 (install-only): Support DESTDIR.
3364 (uninstall): Likewise.
3365 (install-gdbtk): Likewise.
3366
9a146a11
EZ
33672003-08-08 Elena Zannoni <ezannoni@redhat.com>
3368
3369 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3370 contains something meaningful at all times.
3371
3372Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3373
62599e99 3374 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3375
56296155
BC
3376Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3377
62599e99 3378 * MAINTAINERS (write after approval): Added self.
56296155 3379
9710e734
AC
33802003-08-07 Andrew Cagney <cagney@redhat.com>
3381
3382 * inferior.h (AT_SYMBOL): Define.
3383 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3384 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3385 * mips-tdep.c (mips_call_dummy_address): Delete function.
3386 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3387 set call_dummy_address.
3388
98b3ab73
AC
33892003-08-07 Andrew Cagney <cagney@redhat.com>
3390
3391 * language.c (op_error): Delete function.
3392 (binop_type_check): Delete function.
3393 * language.h (type_op_error, range_op_error): Delete macros.
3394 (op_error): Delete declaration.
3395
2fcf52f0
AC
33962003-08-07 Andrew Cagney <cagney@redhat.com>
3397
3398 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3399
abd4220e 34002003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3401
abd4220e 3402 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3403 (x86_64_push_arguments): Skip the red zone.
abd4220e 3404
9dd5f34f
AC
34052003-08-05 Andrew Cagney <cagney@redhat.com>
3406
3407 * reggroups.c (reggroup_next): Check for the final entry.
3408
e5e78edc
AC
34092003-08-04 Andrew Cagney <cagney@redhat.com>
3410
ab4e3d93
AC
3411 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3412 * cli/cli-script.c (define_command): Call query directly, instead
3413 of passing it a buffer.
3414 * ocd.c (ocd_error): Pass error a constant format string.
3415 * remote-mips.c (mips_error): Use fputs_filtered.
3416
1062ca82
AC
3417 * solib-svr4.c (_initialize_svr4_solib): Update
3418 register_gdbarch_data call.
3419 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3420
fcc1c85c
AC
3421 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3422 (register_gdbarch_data): Delete "free" parameter. Update
3423 comments.
3424 * gdbarch.h, gdbarch.c: Re-generate.
3425 * reggroups.c (_initialize_reggroup): Update.
3426 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3427 * frame-base.c (_initialize_frame_base): Update.
3428 * frame-unwind.c (_initialize_frame_unwind): Update.
3429 * user-regs.c (_initialize_user_regs): Update.
3430 * remote.c (_initialize_remote): Update.
3431 * regcache.c (_initialize_regcache): Update.
3432
116f06ea
AC
3433 * regcache.c (xfree_regcache_descr): Delete function.
3434 (_initialize_regcache): Update call to register_gdbarch_data.
3435 (init_regcache_descr, init_legacy_regcache_descr): Use
3436 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3437
e5e78edc
AC
3438 * remote.c (free_remote_state): Delete function.
3439 (_initialize_remote): Update register_gdbarch_data.
3440 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3441 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3442
6c7d17ba
AC
34432003-08-04 Andrew Cagney <cagney@redhat.com>
3444
3445 * reggroups.c (struct reggroup_el): Define.
3446 (struct reggroups): Delete field "nr_group". Replace array
3447 "group" with a "first" to "last" linked list.
3448 (reggroups_init): Update. Allocate using gdbarch's obstack.
3449 (reggroups_free): Delete function.
3450 (add_group): Update. Add "el" parameter.
3451 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3452 (default_groups): Update.
3453 (reggroup_next): Replace reggroups.
3454 (reggroups_dump): Update.
3455 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3456 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3457 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3458
89b7795b
DJ
34592003-08-04 Daniel Jacobowitz <drow@mvista.com>
3460
3461 * Makefile.in (tui-interp.o): Update dependencies.
3462
306d9ac5
DC
34632003-08-04 David Carlton <carlton@kealia.com>
3464
3465 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3466 to internal_error call.
3467 * source.c (forward_search_command): Add "%s" format argument.
3468 (reverse_search_command): Ditto.
3469 * top.c (quit_confirm): Ditto.
3470 * cli/cli-setshow.c (do_setshow_command): Ditto.
3471 * cp-valprint.c (cp_print_class_method): Replace
3472 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3473 (cp_print_class_member): Ditto.
3474 * event-top.c (command_line_handler): Ditto.
3475 * linux-proc.c (linux_info_proc_cmd): Ditto.
3476 * p-typeprint.c (pascal_type_print_base): Ditto.
3477 * p-valprint.c (pascal_object_print_class_method): Ditto.
3478 (pascal_object_print_class_member): Ditto.
3479 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3480 * remote.c (remote_cisco_section_offsets): Ditto.
3481 * top.c (command_line_input): Ditto.
3482 * utils.c (vwarning,error_stream,quit): Ditto.
3483 * valprint.c (print_floating,print_binary_chars)
3484 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3485
57bfe177
AC
34862003-08-04 Andrew Cagney <cagney@redhat.com>
3487
3488 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3489
e546b999
AC
34902003-08-02 Andrew Cagney <cagney@redhat.com>
3491
3492 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3493 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3494 amd64fbsd-nat.c.
3495
91092ee5
AC
34962003-08-02 Andrew Cagney <cagney@redhat.com>
3497
3498 * Makefile.in: Update all dependencies and definitions.
3499
889f28e2
AF
35002003-08-02 Adam Fedor <fedor@gnu.org>
3501
3502 * linespec.c (is_objc_method_format): New function
3503 (decode_line_1, locate_first_half): Use it.
3504 Fixes PR objc/1298
3505
880bc914
AC
35062003-08-01 Andrew Cagney <cagney@redhat.com>
3507
3508 * NEWS: Mention that m32r is multi-arch.
3509 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3510 * configure.tgt: Recognize m32r-*-*.
3511 * config/m32r/tm-m32r.h: Delete file.
3512 * config/m32r/m32r.mt: New file.
a8f4cde1 3513 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3514 gethostname succeeds, in order to avoid a compilation
3515 warning.
3516 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3517 compiler warning.
3518
19f59343
MS
35192003-08-01 Michael Snyder <msnyder@redhat.com>
3520
3521 * sh-tdep.c (sh_frame_align): New gdbarch method.
3522 (sh_gdbarch_init): Set up frame_align method.
3523
4e7d7511
MS
35242003-07-31 Michael Snyder <msnyder@redhat.com>
3525
3526 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3527 which is already covered by the new frames infrastructure.
3528
63022984
AC
35292003-07-31 Andrew Cagney <cagney@redhat.com>
3530
3531 * user-regs.c (struct user_reg): Add "next" link.
3532 (struct user_regs): Replace "user" with "first" and "last" links.
3533 (append_user_reg): Add pre-allocated "reg" parameter.
3534 (builtin_user_regs): Provide initial value for "last".
3535 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3536 (user_regs_init): Allocate memory from the gdbarch obstack.
3537 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3538 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3539 linked list.
3540 (usernum_to_user_reg): New function.
3541 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3542 (value_of_user_reg): Use usernum_to_user_reg.
3543 (user_regs_free): Delete function.
3544 (_initialize_user_regs): Update register_gdbarch_data call.
3545
7cf6e574
DJ
35462003-07-31 Daniel Jacobowitz <drow@mvista.com>
3547
3548 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3549
c48a845b
MS
35502003-07-30 Michael Snyder <msnyder@redhat.com>
3551
4e7d7511 3552 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3553 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3554 value_being_returned.
3555 * infcmd.c (print_return_value): Pass zero as struct_addr.
3556 * values.c (value_being_returned): If struct_addr is passed,
3557 use it instead of trying to recover it from the inferior.
3558
f0d8db19
KB
35592003-07-30 Kevin Buettner <kevinb@redhat.com>
3560
3561 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3562 the prologue analyzer won't need to attempt to extract the pc
3563 value from the woefully incomplete dummy frame.
3564 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3565 possible. Disable code which modifies the frame.
3566
e5c113a1
AC
35672003-07-28 Andrew Cagney <cagney@redhat.com>
3568
3569 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3570 to level 2.
3571 (annotate_breakpoints_table, annotate_record): Ditto.
3572 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3573 (annotate_field_name_end, annotate_field_value): Ditto.
3574 (annotate_field_end, annotate_frame_source_begin): Ditto.
3575 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3576 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3577 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3578 (annotate_frame_address_end, annotate_frame_address): Ditto.
3579 (annotate_frame_args, annotate_frame_end): Ditto.
3580 (annotate_frame_where, annotate_arg_begin): Ditto.
3581 (annotate_arg_name_end, annotate_arg_value): Ditto.
3582 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3583 (annotate_function_call, annotate_signal_name): Ditto.
3584 (annotate_signal_string, annotate_signal_name_end): Ditto.
3585 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3586 (annotate_value_begin, annotate_value_history_value): Ditto.
3587 (annotate_value_history_end, annotate_value_end): Ditto.
3588 (annotate_display_begin, annotate_display_number_end): Ditto.
3589 (annotate_display_format, annotate_display_expression): Ditto.
3590 (annotate_display_expression_end, annotate_display_value): Ditto.
3591 (annotate_display_end, annotate_array_section_begin): Ditto.
3592 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3593 (annotate_elt, annotate_array_section_end): Ditto.
3594
bb1db049
AC
35952003-07-28 Andrew Cagney <cagney@redhat.com>
3596
3597 * regcache.c (struct regcache_descr): Update comments on
3598 nr_raw_registers.
3599 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3600 sizeof_raw_register_valid_p.
3601 (init_regcache_descr): Set nr_raw_registers and
3602 sizeof_raw_register_valid_p before calling
3603 init_legacy_regcache_descr.
3604
20e6603c
AC
36052003-07-28 Andrew Cagney <cagney@redhat.com>
3606
3607 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3608 MOD NUM_REGS.
3609
db742940
DJ
36102003-07-28 Daniel Jacobowitz <drow@mvista.com>
3611
3612 * thread.c (info_threads_command): Use get_selected_frame ().
3613 Check that there is at least one non-sentinel frame.
3614
ce7f4371
SC
36152003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3616
3617 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3618 (m68hc11_pop_frame): Remove.
3619 (m68hc11_frame_saved_pc): Remove.
3620 (m68hc11_frame_chain): Remove.
3621 (m68hc11_frame_init_saved_regs): Remove.
3622 (m68hc11_init_extra_frame_info): Remove.
3623 (m68hc11_store_struct_return): Remove.
3624 (m68hc11_saved_pc_after_call): Remove.
3625
1ea653ae
SC
36262003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3627
3628 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3629 frame unwind information.
3630 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3631 and adapted for frame unwinding.
3632 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3633 (m68hc11_unwind_pc): New function.
3634 (m68hc11_frame_unwind_cache): New function to analyze frames.
3635 (m68hc11_frame_this_id): New function to create new frame struct.
3636 (m68hc11_frame_prev_register): New function to unwind a register from
3637 the frame.
3638 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3639 (m68hc11_frame_p): New function for the above.
3640 (m68hc11_frame_base_address): New function to return fp of frame.
3641 (m68hc11_frame_args_address): Update for frame.
3642 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3643 (m68hc11_unwind_sp): New function.
3644 (m68hc11_unwind_dummy_id): New function.
3645 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3646 calls.
3647
c8a7f6ac
SC
36482003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3649
3650 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3651 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3652 when we are beyond the current pc.
3653
3dc990bf
SC
36542003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3655
3656 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3657 from m68hc11_push_arguments.
3658 (m68hc11_push_arguments): Remove.
3659 (m68hc11_push_return_address): Remove.
3660 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3661 handlers; remove deprecated_extra_stack_alignment_needed.
3662
222e5d1d
AC
36632003-07-27 Andrew Cagney <cagney@redhat.com>
3664
3665 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3666 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3667 REAL_PC and not the pointer.
3668 * hppa-hpux-tdep.c: Include frame.h
3669
a7e9a47e
AC
36702003-07-27 Andrew Cagney <cagney@redhat.com>
3671
3672 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3673 GDB_MULTI_ACH_PARTIAL.
3674
7e3dd49e
AC
36752003-07-27 Andrew Cagney <cagney@redhat.com>
3676
3677 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3678 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3679 operator at start and not end of line.
3680 (decode_prologue): Ditto.
3681 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3682 frame_unwind_register_unsigned instead of
3683 frame_unwind_unsigned_register.
3684 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3685 read_register.
3686 (m32r_push_dummy_call): Use register_size instead of
3687 REGISTER_RAW_SIZE.
3688 (m32r_frame_sniffer): Replace m32r_frame_p.
3689 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3690 * m32r-rom.c (report_transfer_performance): Delete extern
3691 declaration.
3692 (m32r_load, m32r_upload_command): Use print_transfer_performance
3693 instead of report_transfer_performance.
3694 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3695 / add_show_from_set.
3696
0880807f
AC
36972003-07-26 Andrew Cagney <cagney@redhat.com>
3698
3699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3700 store_return_value and extract_struct_value_address.
3701
64ae9269
DJ
37022003-07-26 Daniel Jacobowitz <drow@mvista.com>
3703
3704 PR c++/1267
3705 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3706 NULL, default to the section containing PC.
3707
e286caf2
SC
37082003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3709
3710 * NEWS: Mention "regs" deprecated for m68hc11 too.
3711
3712 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3713 (m68hc11_print_register): New function to print out one register.
3714 (m68hc11_print_registers_info): New function to print registers.
3715 (show_regs): Deprecate and use the above.
3716 (m68hc11_gdbarch_init): Install the print_registers_info.
3717
705b278b
JJ
37182003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3719
3720 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3721 that we have a SIGTRAP before returning non-zero.
3722
63cd4198
EZ
37232003-07-23 Michal Ludvig <mludvig@suse.cz>
3724 Elena Zannoni <ezannoni@redhat.com>
3725
a8f4cde1 3726 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3727 find_function_start_sal() returns empty record.
3728
6926787d
AS
37292003-07-23 Andreas Schwab <schwab@suse.de>
3730
3731 * ia64-tdep.c (ia64_print_insn): New function.
3732 (ia64_gdbarch_init): Set print_insn to it.
3733 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3734 deprecated_tm_print_insn_info.
3735
708cc1b6
MS
37362003-07-22 Michael Snyder <msnyder@redhat.com>
3737
3738 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3739 handle 8-bit returns (long long).
3740 (h8300h_extract_return_value): Ditto.
3741 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3742
aebd7893
AC
37432003-07-22 Andrew Cagney <cagney@redhat.com>
3744
3745 * gdbarch.c Include "gdb_obstack.h".
3746 (struct gdbarch): Add an "obstack".
3747 (alloc_gdbarch_data): Allocate the gdbarch data using
3748 GDBARCH_OBSTACK_CALLOC.
3749 (free_gdbarch_data): Delete function.
3750 (gdbarch_obstack_zalloc): New function.
3751 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3752 Assert that the architecture is not initialized.
3753 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3754 vector from the obstack.
3755 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3756 architecture obstack.
3757 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3758 (set_gdbarch_data): Assert that the data is not initialized.
3759 (struct gdbarch_data): Delete member "free".
3760 (register_gdbarch_data): Do not initialize "free".
3761 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3762
153721e6
AC
37632003-07-22 Andrew Cagney <cagney@redhat.com>
3764
3765 * configure.in (build_warnings): Add -Wformat-nonliteral.
3766 * configure: Re-generate.
3767
c193f044 37682003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3769
3770 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3771
c3228f12
EZ
37722003-07-22 Elena Zannoni <ezannoni@redhat.com>
3773
3774 * findvar.c (read_var_value): Remove case for thread local storage
3775 variables. It is now entirely handled by the dwarf2 location
3776 expression code.
3777 * printcmd.c (address_info): Ditto.
3778 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3779 enumeration value.
3780 (struct symbol): Remove objfile field, which was used by
3781 LOC_THREAD_LOCAL_STATIC only.
3782 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3783 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3784 usage of objfile pointer.
3785 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3786 thread local variables.
3787 Add include of objfiles.h.
3788 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3789 storage variables.
3790 * Makefile.in (dwarf2loc.o): Update dependencies.
3791
aef9bcd2
AC
37922003-07-22 Andrew Cagney <cagney@redhat.com>
3793
3794 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3795 get_frame_base.
3796 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3797 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3798 (struct value): Add opaque declaration.
3799 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3800
d95a8903
AC
38012003-07-21 Andrew Cagney <cagney@redhat.com>
3802
3803 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3804 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3805
4db73d49
SC
38062003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3807
a8f4cde1 3808 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3809 regcache_cooked_read_unsigned instead of read_register.
3810 (m68hc11_saved_pc_after_call): Likewise.
3811 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3812 instead of write_register.
3813 (m68hc11_register_type): New function.
3814 (m68hc11_register_virtual_type): Remove.
3815 (m68hc11_store_return_value): Convert to use the regcache.
3816 (m68hc11_extract_struct_value_address): Likewise.
3817 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3818 m68hc11_register_type; undeprecate store_return_value and
3819 extract_struct_value_address.
3820
ef2b8fcd
SC
38212003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3822
3823 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3824 and translate to use regcache.
3825 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3826
625b0b97
AC
38272003-07-18 Andrew Cagney <cagney@redhat.com>
3828
3829 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3830 * gdbarch.h, gdbarch.c: Re-generate.
3831 * i386-tdep.c (i386_gdbarch_init): Do not set
3832 DWARF2_BUILD_FRAME_INFO.
3833 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3834 unconditionally.
3835 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3836 DWARF2_BUILD_FRAME_INFO.
3837
22b0d388
AC
38382003-07-18 Andrew Cagney <cagney@redhat.com>
3839
3840 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3841 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3842
1ce5d6dd
AC
38432003-07-18 Andrew Cagney <cagney@redhat.com>
3844
3845 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3846 frame_unwind_address_in_block, instead of frame_pc_unwind.
3847 (dwarf2_frame_cache): Ditto.
3848
e6e5e94c
AC
38492003-07-18 Andrew Cagney <cagney@redhat.com>
3850
3851 * user-regs.h (struct gdbarch): Declare opaque.
3852 * ui-out.h (struct ui_file): Declare opaque.
3853 * dwarf2-frame.h (struct frame_info): Declare opaque.
3854
5483d879
KW
38552003-07-18 Kris Warkentin <kewarken@qnx.com>
3856
3857 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3858 #include "...".
3859 (procfs_meminfo): Change strerror to safe_strerror.
3860 (procfs_can_run): Remove K&R badness.
3861
278a7cf7
MS
38622003-07-17 Michael Snyder <msnyder@redhat.com>
3863
3864 * remote-sim.c: Comment typo fix.
3865
606e3b82
AC
38662003-07-17 Andrew Cagney <cagney@redhat.com>
3867
3868 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3869 configure.
3870 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3871 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3872 GDB_MULTI_ARCH_PARTIAL.
3873
c43af07c
EZ
38742003-07-17 Elena Zannoni <ezannoni@redhat.com>
3875
3876 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3877 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3878 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3879
3b85b0f1
TR
38802003-07-16 Theodore A. Roth <troth@openavr.org>
3881
3882 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3883 found.
3884 (avr_frame_unwind_cache): Don't unwind FP for main.
3885 Update a comment.
3886 Save the computed prev_sp.
3887 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3888 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3889 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3890
336d1bba
AC
38912003-07-16 Andrew Cagney <cagney@redhat.com>
3892
3893 * frame-base.h (frame_base_p_ftype): Delete definition.
3894 (frame_base_append_predicate): Delete declaration.
3895 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3896 (frame_unwind_append_predicate): Delete declaration.
3897 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3898 (append_predicate): Delete parameter "p".
3899 (frame_unwind_append_predicate): Delete function.
3900 (frame_unwind_append_sniffer): Update call to append_predicate.
3901 (frame_unwind_free): Delete function.
3902 (_initialize_frame_unwind): Pass NULL as "free" to
3903 register_gdbarch_data.
3904 (frame_unwind_init): Append the dummy_frame_sniffer.
3905 (frame_unwind_find_by_frame): Simplify.
3906 * frame-base.c (struct frame_base_table): Delete field "p".
3907 (append_predicate): Delete parameter "p".
3908 (frame_base_append_predicate): Delete function.
3909 (frame_base_append_sniffer): Update call to append_predicate.
3910 (frame_base_free): Delete function.
3911 (frame_base_find_by_frame): Simplify.
3912 (_initialize_frame_base): Pass NULL as "free" to
3913 register_gdbarch_data.
3914 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3915 (x86_64_sigtramp_frame_sniffer): Replace
3916 "x86_64_sigtramp_frame_p".
3917 (x86_64_init_abi): Set the frame unwind sniffers.
3918 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3919 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3920 (m68k_gdbarch_init): Set the frame unwind sniffers.
3921 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3922 "i386_sigtramp_frame_p".
3923 (i386_frame_sniffer): Replace "i386_frame_p".
3924 (i386_gdbarch_init): Set the frame unwind sniffers.
3925 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3926 (avr_gdbarch_init): Set the frame unwind sniffers.
3927 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3928 "alpha_sigtramp_frame_p"
3929 (alpha_heuristic_frame_sniffer): Replace
3930 "alpha_heuristic_frame_p".
3931 (alpha_gdbarch_init): Set the frame unwind sniffers.
3932 (alpha_dwarf2_init_abi): Ditto.
3933 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3934 "alpha_debug_frame_p".
3935 (alpha_mdebug_frame_base_sniffer): Replace
3936 "alpha_mdebug_frame_base_p".
3937 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3938 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3939 (d10v_gdbarch_init): Set the frame unwind sniffer.
3940 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3941 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3942 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3943 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3944 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3945 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3946
48db5a3c
CV
39472003-07-16 Michael Snyder <msnyder@redhat.com>
3948
3949 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3950 should go thru sh_dsp_register_sim_regno, else the dsp regs
3951 will not get the right values.
3952
39532003-07-16 Corinna Vinschen <vinschen@redhat.com>
3954
3955 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3956 deprecated_store_floating by call to store_typed_floating.
3957 (sh_sh4_register_convert_to_raw): Substitute call to
3958 deprecated_extract_floating by call to extract_typed_floating.
3959
39602003-07-16 Corinna Vinschen <vinschen@redhat.com>
3961
3962 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3963
39642003-07-16 Corinna Vinschen <vinschen@redhat.com>
3965
3966 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3967 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3968 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3969 as possible.
3970 (do_pseudo_register): Remove.
3971 (sh_push_dummy_code): New function.
3972 (sh64_store_struct_return): Rename from sh_store_struct_return.
3973 Only called for sh64 now.
3974 (sh_extract_struct_value_address): Regcache'ify.
3975 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3976 and accomodate new tasks.
3977 (sh64_push_return_address): Rename from sh_push_return_address.
3978 Only called for sh64 now.
3979 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3980 Regcache'ify.
3981 (sh3e_sh4_extract_return_value): Regcache'ify.
3982 (sh_default_store_return_value): Ditto.
3983 (sh3e_sh4_store_return_value): Ditto.
3984 (sh_default_register_byte): Remove.
3985 (sh_sh4_register_byte): Remove.
3986 (sh_default_register_raw_size): Remove.
3987 (sh_sh4_register_raw_size): Remove.
3988 (sh_register_virtual_size): Remove.
3989 (sh_sh3e_register_virtual_type): Remove.
3990 (sh_sh3e_register_type): New function.
3991 (sh_sh4_register_virtual_type): Remove.
3992 (sh_sh4_register_type): New function.
3993 (sh_default_register_virtual_type): Remove.
3994 (sh_default_register_type): New function.
3995 (do_fv_register_info): Add parameters to accomodate call from
3996 sh_print_registers_info.
3997 (do_dr_register_info): Ditto.
3998 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3999 Add parameters to accomodate call from sh_print_registers_info.
4000 (sh_do_fp_register): Ditto.
4001 (sh64_do_pseudo_register): Call do_dr_register_info,
4002 do_fv_register_info and sh_do_fp_register with default parameters.
4003 (sh_do_register): Add parameters to accomodate call from
4004 sh_print_registers_info.
4005 (sh_print_register): Ditto.
4006 (sh_print_registers_info): Rename from sh_do_registers_info.
4007 Add parameters to be used as gdbarch_print_registers_info
4008 implementation. Accomodate removed do_pseudo_register function
4009 pointer.
4010 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4011 function pointer. Call sh_print_register with default parameters.
4012 (sh64_do_registers_info): Call sh_print_registers_info instead of
4013 sh_do_registers_info.
4014 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4015 detection of deprecated vs. non-deprecated functionality.
4016 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4017 function pointer assignments by direct function calls.
4018
e8a89fe2
AC
40192003-07-15 Andrew Cagney <cagney@redhat.com>
4020
4021 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4022 (frame_register_unwind, create_new_frame): Ditto.
4023 (legacy_get_prev_frame, get_frame_type): Ditto.
4024 (get_frame_base_address): Use frame_base_find_by_frame.
4025 (get_frame_locals_address): Use frame_base_find_by_frame.
4026 (get_frame_args_address): Use frame_base_find_by_frame.
4027 * frame-base.h (frame_base_sniffer_ftype): Declare.
4028 (frame_base_append_sniffer): Declare.
4029 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4030 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4031 (frame_base_append_sniffer): New function.
4032 (frame_base_append_predicate): Add a NULL sniffer.
4033 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4034 (struct frame_base_table): Add "sniffer".
4035 (frame_base_free): Free the "sniffer" table.
4036 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4037 (frame_unwind_append_sniffer): Declare.
4038 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4039 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4040 (struct frame_unwind_table): Add "sniffer", delete "middle".
4041 (append_predicate): Add "sniffer" parameter, append the sniffer.
4042 (frame_unwind_init): Update append_predicate call.
4043 (frame_unwind_append_sniffer): New function.
4044 (frame_unwind_append_predicate): Update append_predicate call.
4045 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4046
0714963c
AC
40472003-07-15 Andrew Cagney <cagney@redhat.com>
4048
4049 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4050 before code inhibiting repeated unwind attempts. Add to
4051 commentary on that test's problems.
4052 * blockframe.c (inside_main_func): Look for "main" in the minimal
4053 symbol table.
4054 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4055 identical.
4056
d9170e22
AC
40572003-07-15 Andrew Cagney <cagney@redhat.com>
4058
4059 * complaints.c (struct explanation): Define.
4060 (struct complaints): Change type of "explanation" to "struct
4061 explanation".
4062 (symfile_explanations): Convert to a "struct explanation" table.
4063 (vcomplaint): Update.
4064
eba29c8c
ML
40652003-07-15 Michal Ludvig <mludvig@suse.cz>
4066
4067 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4068 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4069 x86_64_linux_(fill,supply)_gregset functions.
4070 * x86-64-linux-tdep.c (USER_*): New defines.
4071 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4072 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4073 New functions.
4074 (fetch_core_registers): Ditto.
4075 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4076 * x86-64-linux-tdep.h: New file.
4077 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4078 and core-regset.o.
4079 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4080
68cc0bfb
MK
40812003-07-13 Mark Kettenis <kettenis@gnu.org>
4082
88a115f7
MK
4083 * x86-64-tdep.c (x86_64_store_return_value): Use
4084 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4085
68cc0bfb
MK
4086 * configure.host: Add x86_64-*-freebsd*.
4087 * configure.tgt: Add x86_64-*-freebsd*.
4088 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4089 * amd64fbsd-nat.c: New file.
4090 * amd64fbsd-tdep.c: New file.
4091 * config/i386/nm-fbsd64.h: New file.
4092 * config/i386/fbsd64.mh: New file.
4093 * config/i386/fbsd64.mt: New file.
4094
138e7be5
MK
40952003-07-11 Mark Kettenis <kettenis@gnu.org>
4096
4097 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4098 `sc_regs_offset' and `sc_fpregs_offset'.
4099 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4100 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4101 (alpha_sigtramp_register_address): Rewrite to use new members of
4102 `struct gdbarch_tdep'.
4103 (alpha_gdbarch_init): Initialize new members of struct
4104 gdbarch_tdep'.
4105 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4106 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4107 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4108 (alphafbsd_pc_in_sigtramp): Implement.
4109 (alphafbsd_sigtramp_offset): New function.
4110 (alphafbsd_sigcontext_addr): New function.
4111 (alphafbsd_init_abi): Initialize signal trampoline related members
4112 of `struct gdbarch_tdep'.
4113 (_initialize_alphafbsd_tdep): Add prototype.
4114
95303a68
TR
41152003-07-11 Theodore A. Roth <troth@openavr.org>
4116
ba292e4c
TR
4117 * Makefile.in (install-only): Quote sed expression when generating
4118 transformed_name.
95303a68 4119
6896c0c7
RH
41202003-07-11 Richard Henderson <rth@redhat.com>
4121
4122 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4123 * dwarf2-frame.c: Include complaints.h.
4124 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4125 variable initialization; return NULL on error.
4126 (decode_frame_entry): New.
4127
8edd5d01
AC
41282003-07-11 Andrew Cagney <cagney@redhat.com>
4129
c4a09524
AC
4130 * frame.h (frame_address_in_block): Delete declaration.
4131 * blockframe.c (frame_address_in_block): Delete function.
4132 (get_frame_block): Use get_frame_address_in_block.
4133 (block_innermost_frame): Ditto.
4134 * stack.c (print_frame, backtrace_command_1): Ditto.
4135
8edd5d01
AC
4136 * frame.h (get_frame_address_in_block): Declare.
4137 (frame_unwind_address_in_block): Declare.
4138 * frame.c (frame_unwind_address_in_block): New function.
4139 (get_frame_address_in_block): New function.
4140
f7968451
AC
41412003-07-10 Andrew Cagney <cagney@redhat.com>
4142
4143 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4144 pre-default. Note: re-generate has no effect.
a8f4cde1 4145
ae99b398
AC
41462003-07-10 Andrew Cagney <cagney@redhat.com>
4147
4148 * gdbarch.sh: When a variable, but not a function, compare against
4149 0. Fix problem in previous patch.
4150 * gdbarch.c: Re-generate.
a8f4cde1 4151
956ac328
AC
41522003-07-10 Andrew Cagney <cagney@redhat.com>
4153
4154 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4155 functions against NULL, not 0.
4156 * gdbarch.c: Re-generate.
a8f4cde1 4157
287c3240
FF
41582003-07-10 Fred Fish <fnf@ninemoons.com>
4159
4160 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4161 null string instead of a null pointer.
4162 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4163
32f63c4b
MS
41642003-07-09 Michael Snyder <msnyder@redhat.com>
4165
4166 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4167
402ecd56
MK
41682003-07-09 Mark Kettenis <kettenis@gnu.org>
4169
4170 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4171 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4172 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4173 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4174 * x86-64-tdep.c: ... from here.
4175
c481dac7
AS
41762003-07-09 Andreas Schwab <schwab@suse.de>
4177
4178 * m68k-tdep.h (enum struct_return): Define.
4179 (struct gdbarch_tdep): Add struct_return.
4180 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4181 bytes are padded to the right, not to the left. Pass struct value
4182 address in register %a1, not on stack.
4183 (m68k_use_struct_convention): New function.
4184 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4185 struct_return in tdep to pcc_struct_return.
4186 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4187 reg_struct_return.
4188
a8f4cde1 41892003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4190
a8f4cde1 4191 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4192
96a4ee76
AC
41932003-07-09 Andrew Cagney <cagney@redhat.com>
4194
4195 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4196 Add comments about the checks.
4197
1517c6d1
AC
41982003-07-08 Andrew Cagney <cagney@redhat.com>
4199
4200 * Makefile.in: Make dependency section headers consistent.
4201 (config_h): Move to $BUILD headers section.
4202 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4203 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4204 (ada-exp.tab.c): Move to YACC/LEX section.
4205 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4206 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4207
dc5dd1eb
KW
42082003-07-08 Kris Warkentin <kewarken@qnx.com>
4209
4210 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4211 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4212 of strerror with safe_strerror, use ISO C function definitions,
4213 and replace instances of sprintf with snprintf.
dc5dd1eb 4214
612dde91
AC
42152003-07-07 Andrew Cagney <cagney@redhat.com>
4216
4217 * frame.c (get_prev_frame): Enable check for identical frames.
4218 Update comments. Update error messages.
4219
492c11d3
JB
42202003-07-07 Joel Brobecker <brobecker@gnat.com>
4221
4222 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4223
376a5a49
JB
42242003-07-07 Joel Brobecker <brobecker@gnat.com>
4225
4226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4227 sort_symtab_syms, no longer necessary.
4228
22b4a9ad
JB
42292003-07-07 Joel Brobecker <brobecker@gnat.com>
4230
4231 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4232
5bbcb741
JB
42332003-07-07 Joel Brobecker <brobecker@gnat.com>
4234
4235 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4236 (mips_register_byte): Likewise.
4237
c139e7d9
DJ
42382003-07-07 Daniel Jacobowitz <drow@mvista.com>
4239
4240 * Makefile.in (sparc_tdep_h): New.
4241 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4242 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4243 * sparc-linux-nat.c: Include "sparc-tdep.h".
4244 * sparc-nat.c: Likewise.
4245 * sparc-tdep.c: Likewise.
4246 * sparc64nbsd-nat.c: Likewise.
4247 * sparcnbsd-nat.c: Likewise.
4248 * sparcnbsd-tdep.c: Likewise.
4249 * sparc-tdep.h: New file.
4250 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4251 and sparc_npc_regnum.
4252
fd8f87c5
DJ
42532003-07-07 Daniel Jacobowitz <drow@mvista.com>
4254
4255 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4256 (mips_linux_cannot_store_register): List supported instead of
4257 unsupported registers.
4258
13adf674
DJ
42592003-07-07 Daniel Jacobowitz <drow@mvista.com>
4260
4261 * disasm.c (dump_insns): Separate instructions from addresses.
4262
8de307e0
AS
42632003-07-07 Andreas Schwab <schwab@suse.de>
4264
4265 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4266 dependencies.
4267 * m68k-tdep.c (NUM_FREGS): Delete.
4268 (SIG_PC_FP_OFFSET): Delete.
4269 (TARGET_M68K): Delete.
4270 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4271 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4272 P_MOVEL_SP, P_MOVEML_SP): Define.
4273 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4274 P_TRAP): Delete.
4275 (m68k_register_raw_size): Delete.
4276 (m68k_register_virtual_size): Delete.
4277 (m68k_register_type): Renamed from m68k_register_virtual_type and
4278 add gdbarch argument.
4279 (m68k_store_struct_return): Delete.
4280 (m68k_deprecated_extract_return_value): Delete.
4281 (m68k_deprecated_extract_struct_value_address): Delete.
4282 (m68k_frame_chain): Delete.
4283 (m68k_frame_saved_pc): Delete.
4284 (m68k_fix_call_dummy): Delete.
4285 (m68k_push_dummy_frame): Delete.
4286 (m68k_pop_frame): Delete.
4287 (m68k_extract_return_value): New function.
4288 (m68k_store_return_value): Rewrite using regcache.
4289 (m68k_extract_struct_value_address): Rewrite using regcache.
4290 (m68k_push_dummy_call): New function.
4291 (struct m68k_frame_cache): Define.
4292 (m68k_alloc_frame_cache): New function.
4293 (m68k_analyze_frame_setup): New function.
4294 (m68k_analyze_register_saves): New function.
4295 (m68k_analyze_prologue): New function.
4296 (m68k_skip_prologue): Rewrite using above functions.
4297 (m68k_unwind_pc): New function.
4298 (m68k_frame_cache): New function.
4299 (m68k_frame_this_id): New function.
4300 (m68k_frame_prev_register): New function.
4301 (m68k_frame_unwind): New variable.
4302 (m68k_frame_p): New function.
4303 (m68k_sigtramp_frame_cache): New function.
4304 (m68k_sigtramp_frame_this_id): New function.
4305 (m68k_sigtramp_frame_prev_register): New function.
4306 (m68k_sigtramp_frame_unwind): New variable.
4307 (m68k_sigtramp_frame_p): New function.
4308 (m68k_frame_base_address): New function.
4309 (m68k_frame_base): New function.
4310 (m68k_unwind_dummy_id): New function.
4311 (fill_gregset): Use regcache_collect.
4312 (fill_fpregset): Likewise.
4313 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4314 defined.
4315 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4316 deprecated_init_frame_pc, deprecated_store_struct_return,
4317 deprecated_extract_return_value, deprecated_store_return_value,
4318 deprecated_frame_chain, deprecated_frame_saved_pc,
4319 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4320 deprecated_register_virtual_size,
4321 deprecated_max_register_raw_size,
4322 deprecated_max_register_virtual_size,
4323 deprecated_register_virtual_type, deprecated_register_size,
4324 deprecated_register_byte, deprecated_register_bytes,
4325 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4326 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4327 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4328 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4329 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4330 deprecated_push_dummy_frame, deprecated_pop_frame,
4331 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4332 only if SYSCALL_TRAP is defined. Set extract_return_value,
4333 store_return_value, extract_struct_value_address, register_type,
4334 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4335 predicates.
4336 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4337 M68K_MAX_REGISTER_SIZE): Define.
4338 (struct m68k_sigtramp_info): Define.
4339 (struct gdbarch_tdep): Add get_sigtramp_info.
4340 * m68klinux-nat.c (fetch_register): Use register_size instead of
4341 REGISTER_RAW_SIZE. Don't put assignment in if.
4342 (store_register): Likewise.
4343 (fetch_inferior_registers): Likewise.
4344 (store_inferior_registers): Likewise.
4345 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4346 (m68k_linux_frame_saved_pc): Delete.
4347 (m68k_linux_sigcontext_reg_offset,
4348 m68k_linux_ucontext_reg_offset): Define.
4349 (m68k_linux_get_sigtramp_info): New function.
4350 (m68k_linux_extract_return_value): Rewrite using regcache.
4351 (m68k_linux_store_return_value): Likewise.
4352 (m68k_linux_extract_struct_value_address): Likewise.
4353 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4354 Don't set deprecated_frame_saved_pc,
4355 deprecated_extract_return_value, deprecated_store_return_value,
4356 deprecated_extract_struct_value_address. Set
4357 extract_return_value, store_return_value,
4358 extract_struct_value_address.
4359
eb8bc282
AC
43602003-07-07 Andrew Cagney <cagney@redhat.com>
4361
4362 * expprint.c: Include "user-regs.h" instead of "frame.h".
4363 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4364 frame_map_regnum_to_name.
4365 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4366 (frame_map_name_to_regnum): Simplify, call
4367 user_reg_map_name_to_regnum.
4368 (frame_map_regnum_to_name): Simplify, call
4369 user_reg_map_regnum_to_name.
4370 (frame_register_unwind): Update.
4371 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4372 (_initialize_frame_reg): Call user_reg_add_builtin.
4373 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4374 (value_of_register): Use value_of_user_reg.
4375 * eval.c (evaluate_subexp_standard): Update.
4376 * parse.c (write_dollar_variable): Update.
4377 * d10v-tdep.c (d10v_print_registers_info): Update.
4378 * infcmd.c (registers_info): Update.
4379 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4380 (builtin_regs_h): Delete macro.
4381 (user_regs_h): Define.
4382 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4383 (builtin-regs.o): Delete target.
4384 (user-regs.o): Specify dependencies.
4385 (expprint.o): Update dependencies.
4386 (findvar.o): Update dependencies.
4387 (frame.o): Update dependencies.
4388 (std-regs.o): Update dependencies.
4389
9f476a01
CF
43902003-07-06 Christopher Faylor <cgf@redhat.com>
4391
4392 * win32-nat.c (solib_symbols_add): Use one variable for all section
4393 address stuff. Pass variable rather than address of variable to
4394 safe_symbol_file_add.
4395
a731b831
AS
43962003-07-06 Andreas Schwab <schwab@suse.de>
4397
4398 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4399
9f83329d
JB
44002003-07-04 Joel Brobecker <brobecker@gnat.com>
4401
4402 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4403
27e28cc5
KW
44042003-07-04 Kris Warkentin <kewarken@qnx.com>
4405
4406 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4407
44082003-07-04 Kris Warkentin <kewarken@qnx.com>
4409
4410 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4411 * config/i386/nto.mh: New file.
4412 * config/i386/nm-nto.h: New file.
4413 * configure.host: Add i[3456]86-*-nto*.
4414
100f2e98
JB
44152003-07-03 Joel Brobecker <brobecker@gnat.com>
4416
4417 * remote-vx.c (vx_add_symbols): Fix compilation error.
4418
e23457df
AC
44192003-07-03 Andrew Cagney <cagney@redhat.com>
4420
4421 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4422 * gdbarch.h, gdbarch.c: Re-generate.
4423 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4424 (legacy_register_name): Declare.
4425 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4426 (REGISTER_NAME): Define.
4427 * sparc-tdep.c (legacy_register_name): New function.
4428 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4429 (REGISTER_NAME): Define.
4430 (hppa64_register_name): Declare.
4431 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4432 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4433 (hppa64_register_name): New function.
4434 (hppa_register_name): New function.
4435 * arch-utils.c (legacy_register_name): Delete.
4436 * arch-utils.h (legacy_register_name): Delete.
4437
38caaeec
DJ
44382003-07-03 Daniel Jacobowitz <drow@mvista.com>
4439
4440 * cli/cli-interp.c (cli_interpreter_resume): Update the
4441 cli_uiout's stream to gdb_stdout.
4442
dadd712e
AC
44432003-07-03 Andrew Cagney <cagney@redhat.com>
4444
4445 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4446 predicate.
4447 * gdbarch.h, gdbarch.c: Re-generate.
4448 * regcache.c (init_regcache_descr): Use legacy code when either
4449 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4450
c7f1390e
DJ
44512003-07-02 Daniel Jacobowitz <drow@mvista.com>
4452
4453 * NEWS: Move "set logging" entry into GDB 6.0 section.
4454
4bc8c588
JB
44552003-07-02 Jim Blandy <jimb@redhat.com>
4456
a9dd42f1
JB
4457 * s390-tdep.c (struct frame_extra_info): new member:
4458 'stack_bought_valid'.
4459 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4460 initialize fextra_info->stack_bought.
4461 (s390_frameless_function_invocation): Don't trust the value of
4462 fextra_info_ptr->stack_bought unless
4463 fextra_info->stack_bought_valid is set.
4464
4bc8c588
JB
4465 New S390 prologue analyzer.
4466 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4467 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4468 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4469 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4470 compute_x_addr, s390_on_stack, s390_store,
4471 s390_get_signal_frame_info): New functions.
4472 (S390_NUM_SPILL_SLOTS): New macro.
4473 (s390_get_frame_info): Rewritten.
4474 (is_arg_reg): Deleted.
4475
4476 Break out the decoding of S/390 instructions into separate
4477 functions, to make it more legible, and easier to check
4478 against the spec.
4479 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4480 is_rx, is_rxe): New functions.
4481 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4482 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4483 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4484 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4485 enums for opcode values. (Is this an improvement?)
4486
fd13a04a
AC
44872003-07-02 Andrew Cagney <cagney@redhat.com>
4488
4489 * i386-tdep.c: Revert change committed as part of trad-frame code
4490 below.
4491
3f8091c1
DJ
44922003-07-02 Daniel Jacobowitz <drow@mvista.com>
4493
4494 * breakpoint.c (insert_catchpoint): Make static.
4495
8dd5115e
AS
44962003-07-02 Andreas Schwab <schwab@suse.de>
4497
4498 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4499 former ia64_push_arguments and ia64_push_return_address, and use
4500 regcache functions instead of read/write_register.
4501 (ia64_gdbarch_init): Set push_dummy_call instead of
4502 deprecated_push_arguments and deprecated_push_return_address.
4503
a2229c23
AJ
45042003-07-01 Andreas Jaeger <aj@suse.de>
4505
4506 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4507 before the call.
4508 Set %rax only to number of SSE registers used.
4509
3b3850e8
AC
45102003-07-01 Andrew Cagney <cagney@redhat.com>
4511
4512 * trad-frame.h: Update comments, a -1 .addr is reserved.
4513 (trad_frame_value_p, trad_frame_addr_p): Declare.
4514 (trad_frame_reg_p): Declare.
4515 (trad_frame_set_value): Rename trad_frame_register_value.
4516 (trad_frame_set_unknown): Declare.
4517 * trad-frame.c (trad_frame_realreg_p): New function.
4518 (trad_frame_addr_p, trad_frame_value_p): New function.
4519 (trad_frame_set_unknown): New function.
4520 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4521 (trad_frame_prev_register): Use trad_frame_realreg_p,
4522 trad_frame_addr_p and trad_frame_value_p.
4523 (trad_frame_set_value): Rename trad_frame_register_value.
4524 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4525 and trad_frame_set_value.
a2229c23 4526
4d819d0e
JB
45272003-06-30 Jim Blandy <jimb@redhat.com>
4528
4529 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4530 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4531 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4532 for 16 registers, and then 32 more bytes.
4533 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4534 New macros.
4535 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4536 Move up in the file, since it's now used by is_simple_arg.
4537 (is_simple_arg): Don't assume registers are four bytes long.
4538 Exclude all double arguments. Extended floats are not simple
4539 args.
4540 (is_power_of_two): New function.
4541 (pass_by_copy_ref): Call is_power_of_two, and check that the
4542 length fits in a register, rather than listing all the acceptable
4543 sizes. Extended floats are not passed by reference.
4544 (s390_push_arguments): Don't assume registers are four bytes long.
4545 Reserve an argument register to point to the buffer for structures
4546 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4547 S390_STACK_FRAME_OVERHEAD.
4548
1ad828f1
AS
45492003-06-30 Andreas Schwab <schwab@suse.de>
4550
4551 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4552 format error message.
4553
39b00981
JB
45542003-06-30 Joel Brobecker <brobecker@gnat.com>
4555
4556 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4557
b2a7f303
DC
45582003-06-30 David Carlton <carlton@kealia.com>
4559
4560 Band-aid for PR c++/1245.
4561 * Makefile.in (cp-support.o): Depend on complaints_h.
4562 * cp-support.c: Include complaints.h. Add declaration for
4563 find_last_component.
4564 (cp_find_first_component): Separate code into
4565 cp_find_first_component_aux.
4566 (cp_find_first_component_aux): Call demangled_name_complaint.
4567 (demangled_name_complaint): New.
4568
a257b5bb
AC
45692003-06-30 Andrew Cagney <cagney@redhat.com>
4570
4571 * remote.c (remote_write_bytes): Explicitly compute and then use
4572 the payload size. Update comments to reflect. Fixes problem of
4573 GDB not sending small packets as found by Fred Fish.
4574
0a2cfde4
AC
45752003-06-30 Andrew Cagney <cagney@redhat.com>
4576
4577 * remote.c (remote_async_wait): Fix -Wformat problem.
4578
3fcb8548
AC
45792003-06-29 Andrew Cagney <cagney@redhat.com>
4580
4581 * remote.c (remote_wait): Call error, and not warning, when the
4582 packet is corrupt.
4583 (remote_async_wait): Ditto.
4584
9f9970a3
DJ
45852003-06-29 Daniel Jacobowitz <drow@mvista.com>
4586
4587 * sparc-tdep.c (sparc_y_regnum): Make external again.
4588
83a8ccca
DJ
45892003-06-29 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * cli/cli-logging.c (pop_output_files): Add void to function
4592 definition.
4593
d2cf594a
AC
45942003-06-29 Andrew Cagney <cagney@redhat.com>
4595
4596 * frame.c (frame_register_unwind): Use unsigned char when dumping
4597 the buffer contents.
4598
0fac0b41
DJ
45992003-06-28 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * cli/cli-logging.c: New file.
4602 * cli-out.c (struct ui_out_data): Add original_stream.
4603 (cli_redirect): New function.
4604 (cli_ui_out_impl): Add cli_redirect.
4605 (cli_out_new): Initialize original_stream.
4606 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4607 (uo_redirect, ui_out_redirect): New.
4608 * ui-out.h (struct ui_out_impl): Add redirect member.
4609 (redirect_ftype): New.
4610 (ui_out_redirect): Add prototype.
4611 * Makefile.in: Add rules for cli-logging.c.
4612 * NEWS: Mention "set logging".
4613
88a07d7c
EZ
46142003-06-27 Elena Zannoni <ezannoni@redhat.com>
4615
4616 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4617
4eb58876
AC
46182003-06-27 Andrew Cagney <cagney@redhat.com>
4619
4620 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4621 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4622 * avr-tdep.c (avr_call_dummy_address): Delete function.
4623 (avr_gdbarch_init): Do not set call_dummy_address.
4624
1549f619
EZ
46252003-06-27 Elena Zannoni <ezannoni@redhat.com>
4626
4627 * symfile.c (syms_from_objfile): Move variables to inner block.
4628 Move the checks for the non-mainline case a bit earlier to avoid
4629 doing some useless computations.
4630
3cb3398d
EZ
46312003-06-27 Elena Zannoni <ezannoni@redhat.com>
4632
4633 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4634
3799ccc6
EZ
46352003-06-26 Elena Zannoni <ezannoni@redhat.com>
4636
4637 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4638 sections.
4639
ce1f6491
MC
46402003-06-26 Michael Chastain <mec@shout.net>
4641
4642 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4643 gdb/testsuite/gdb.c++/pr-1210.exp.
4644
d958dfd0
AC
46452003-06-26 Andrew Cagney <cagney@redhat.com>
4646
4647 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4648 altivec_expression.h and altivec_registers.h.
4649
d31431ed
AC
46502003-06-26 Andrew Cagney <cagney@redhat.com>
4651
4652 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4653 info->mach when MIPS16. Patch suggested by Fred Fish.
4654
714b1282
AC
46552003-06-26 Andrew Cagney <cagney@redhat.com>
4656
4657 * utils.c (internal_vproblem): Print the problem to a reason
4658 buffer and then pass to query. Make the msg variable more local.
4659
42efa47a
AC
46602003-06-26 Andrew Cagney <cagney@redhat.com>
4661
4662 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4663 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * frame-base.c (default_frame_args_address): Update. Use
4666 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4667 not available.
4668 (default_frame_locals_address): Ditto for
4669 DEPRECATED_FRAME_LOCALS_ADDRESS.
4670 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4671 (vax_frame_num_args): Update.
4672 (vax_gdbarch_init): Update.
4673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4674 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4675 * mcore-tdep.c (mcore_gdbarch_init): Update.
4676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4677 * ia64-tdep.c (ia64_gdbarch_init): Update.
4678 * symtab.h (address_class): Update comments.
4679 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4680 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4681 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4682 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4683 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4684 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4685 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4686 * alpha-mdebug-tdep.c: Update.
4687 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4688
8ffd9b1b
AJ
46892003-06-26 Andreas Jaeger <aj@suse.de>
4690
4691 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4692 of SSE registers so that varargs functions work. Rework handling
4693 of passing arguments on the stack.
4694 (x86_64_store_return_value): Return double and float values in SSE
4695 register.
4696
e8ac10a6
MC
46972003-06-24 Michael Chastain <mec@shout.net>
4698
4699 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4700 the "constructor breakpoints ignored" bug.
4701
986af8e6
DC
47022003-06-25 David Carlton <carlton@kealia.com>
4703
4704 * MAINTAINERS: Update e-mail address.
4705
d64558a5
JB
47062003-06-24 Jim Blandy <jimb@redhat.com>
4707
e538d2d7
JB
4708 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4709
02631ec0
JB
4710 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4711 function.
4712 (ppc_linux_init_abi): Register it as the
4713 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4714
e716d87a
JB
4715 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4716 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4717 method.
4718
d64558a5
JB
4719 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4720 (ppc64_standard_linkage_target): Use it.
4721
449a5da4
AC
47222003-06-23 Andrew Cagney <cagney@redhat.com>
4723
4724 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4725 for 0 "int0" and 4 "int32" sized registers.
4726 * gdbtypes.c (builtin_type_int0): Define.
4727 (build_gdbtypes): Initialize builtin_type_int0.
4728 * gdbtypes.h (builtin_type_int0): Declare.
4729
b2a02dda
SC
47302003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4731
4732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4733 as characters are unsigned.
4734
fba3138e
DJ
47352003-06-22 Daniel Jacobowitz <drow@mvista.com>
4736
4737 PR gdb/1179
4738 * dwarfread.c (struct_type): Skip static fields without crashing.
4739
f6c8180b
AC
47402003-06-22 Andrew Cagney <cagney@redhat.com>
4741
4742 GDB 6.0 branch created.
f2c06f52
AC
4743 * README: Update.
4744 * PROBLEMS: Update. Empty.
4745 * NEWS: Update.
f6c8180b 4746
ae822768
DJ
47472003-06-22 Daniel Jacobowitz <drow@mvista.com>
4748
4749 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4750 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4751
261de166
AC
47522003-06-22 Andrew Cagney <cagney@redhat.com>
4753
4754 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4755 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4756 Velikov.
4757
30e94205
DJ
47582003-06-22 Daniel Jacobowitz <drow@mvista.com>
4759
4760 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4761 compilers.
4762
9e14d721
DJ
47632003-06-21 Daniel Jacobowitz <drow@mvista.com>
4764
4765 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4766 argument of val_print.
4767 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4768 to the address argument of baseclass_offset or target_read_memory.
4769 Do add it to the argument of cp_print_value_fields.
4770
a4b8ebc8
AC
47712003-06-21 Andrew Cagney <cagney@redhat.com>
4772
4773 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4774 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4775 instead of 0..NUM_REGS.
4776 (mips_register_reggroup_p): New function.
4777 (mips_pseudo_register_write): New function.
4778 (mips_pseudo_register_read): New function.
4779 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4780 based on the register's type.
4781 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4782 cooked.
4783 (mips_get_saved_register): Simplify. Assert that REGNO is a
4784 pseudo / cooked.
4785 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4786 (mips_register_type): Replace mips_register_virtual_type. Map
4787 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4788 when available.
4789 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4790 that the register is cooked / virtual.
4791 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4792 Only get the extra info when needed.
4793 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4794 (mips32_heuristic_proc_desc): Fetch the cooked register.
4795 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4796 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4797 (mips_print_register): Use gdbarch_register_type, instead of
4798 REGISTER_VIRTUAL_TYPE.
4799 (print_gp_register_row): Use gdbarch_register_type, instead of
4800 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4801 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4802 Print the pseudo / cooked registers.
4803 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4804 Print the pseudo / cooked registers.
4805 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4806 REG_NUM is pseudo / cooked.
4807 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4808 (mips_n32n64_xfer_return_value): Ditto.
4809 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4810 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4811 (mips_register_sim_regno): New function.
4812 (mips_gdbarch_init): Set deprecated_register_byte,
4813 register_group_p, pseudo_register_write, pseudo_register_read,
4814 register_sim_regno, and num_pseudo_regs. Set register_type,
4815 instead of register_virtual_type.
4816 * Makefile.in (mips-tdep.o): Update dependencies.
4817 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4818 REGISTER_VIRTUAL_TYPE.
4819 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4820 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4821 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4822 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4823 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4824
325ed089
DJ
48252003-06-21 Daniel Jacobowitz <drow@mvista.com>
4826
4827 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4828 * cli/cli-cmds.c: Include "gdb_vfork.h".
4829 (shell_escape): Use vfork.
4830
f0e7d0e8
AC
48312003-06-21 Andrew Cagney <cagney@redhat.com>
4832
c57bb9fa
AC
4833 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4834 32 bit floating-point register saves.
4835
6e51443a
AC
4836 * frame.h (deprecated_unwind_get_saved_register): Delete.
4837 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4838 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4839 and deprecated_get_next_frame_hack instead of
4840 deprecated_unwind_get_saved_register.
4841
ed183c7c
AC
4842 * mips-tdep.c (mips_dump_tdep): Do not print
4843 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4844
f0e7d0e8
AC
4845 * frame.c (get_frame_register): New function.
4846 (frame_unwind_register_signed): New function.
4847 (get_frame_register_signed): New function.
4848 (frame_unwind_register_unsigned): New function.
4849 (get_frame_register_unsigned): New function.
4850 * frame.h: Add comments on naming schema.
4851 (get_frame_register, frame_unwind_register_signed): Declare.
4852 (get_frame_register_signed, get_frame_register_signed): Declare.
4853 (frame_unwind_register_unsigned): Declare.
4854 (get_frame_register_unsigned): Declare.
4855
2224d941
TR
48562003-06-20 Theodore A. Roth <troth@openavr.org>
4857
4858 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4859
8619218d
TR
48602003-06-20 Theodore A. Roth <troth@openavr.org>
4861
4862 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4863 (avr_read_sp): Ditto.
4864
0b1b50c0
DJ
48652003-06-20 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4868 * config/arm/nm-linux.h: Likewise.
4869 * config/arm/tm-linux.h: Likewise.
4870 * config/ia64/nm-linux.h: Likewise.
4871 * config/ia64/tm-ia64.h: Likewise.
4872 * config/s390/tm-linux.h: Likewise.
4873 * config/s390/tm-s390.h: Likewise.
4874 * s390-nat.c: Likewise.
4875 * s390-tdep.c: Likewise.
4876
4877 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4878 * config/ia64/linux.mt: Likewise.
4879 * config/m68k/linux.mh: Likewise.
4880 * config/mips/linux.mt: Likewise.
4881 * config/powerpc/linux.mh: Likewise.
4882 * config/sh/linux.mt: Likewise.
4883
c8c18e65
KW
48842003-06-19 Kris Warkentin <kewarken@qnx.com>
4885
4886 * solib.c (solib_open): Change tests for whether to search
4887 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4888 comments.
4889
dcccef2e
TR
48902003-06-19 Theodore A. Roth <troth@openavr.org>
4891
4892 * avr-tdep.c (avr_frame_address): Delete function.
4893 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4894 set_gdbarch_frame_args_address.
4895
5861a190
AC
48962003-06-19 Andrew Cagney <cagney@redhat.com>
4897
4898 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4899 (REGISTER_CONVERT_FROM_TYPE): Delete.
4900 (mips_register_convert_to_type): Delete declaration.
4901 (mips_register_convert_from_type): Delete declaration.
4902 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4903 kernel/.
4904
0274a8ce
MS
49052003-06-19 Michael Snyder <msnyder@redhat.com>
4906
4907 * linux-nat.h: New file.
4908 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4909 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4910 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4911 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4912 (linux_make_note_section): Iterate over lwps instead of threads.
4913 (linux_do_thread_registers): Use lwp instead of merged pid.
4914 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4915 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4916 Add dependency on linux_nat_h.
4917
adf5f719
TR
49182003-06-19 Theodore A. Roth <troth@openavr.org>
4919
4920 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4921
6766a268
DJ
49222003-06-19 Daniel Jacobowitz <drow@mvista.com>
4923
4924 * varobj.c (get_type, get_target_type): Use check_typedef.
4925
1171114a
DJ
49262003-06-19 Daniel Jacobowitz <drow@mvista.com>
4927
4928 * breakpoint.c (insert_catchpoint): Call internal_error.
4929
adcf68a2
TR
49302003-06-19 Theodore A. Roth <troth@openavr.org>
4931
4932 * avr-tdep.c (avr_push_dummy_code): Delete function.
4933 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4934
ea67f13b
DJ
49352003-06-19 Daniel Jacobowitz <drow@mvista.com>
4936
4937 * arch-utils.c (default_prepare_to_proceed): Remove.
4938 (generic_prepare_to_proceed): Remove.
4939 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4940 (generic_prepare_to_proceed): Remove prototype.
4941 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4942 * gdbarch.c: Regenerate.
4943 * gdbarch.h: Regenerate.
4944 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4945 * hppah-nat.c (hppa_switched_threads): Remove.
4946 * infrun.c (prepare_to_proceed): New static function, copied from
4947 generic_prepare_to_proceed. Remove select_it argument.
4948 (proceed): Call prepare_to_proceed.
4949 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4950 variables.
4951 (ptrace_wait): Don't set the removed variables.
4952 (hppa_switched_threads): Remove.
4953 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4954 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4955 (lin_lwp_prepare_to_proceed): Remove prototype.
4956 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4957 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4958
4add8633
TR
49592003-06-18 Theodore A. Roth <troth@openavr.org>
4960
4961 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4962 trad-frame.h.
4963 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4964 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4965 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4966 (AVR_PROLOGUE_*): Enumerate prologue types.
4967 (struct frame_extra_info): Remove.
4968 (struct avr_unwind_cache): Define.
4969 (avr_write_sp): Delete function.
4970 (avr_read_fp): Ditto.
4971 (avr_init_extra_frame_info): Ditto.
4972 (avr_pop_frame): Ditto.
4973 (avr_frame_saved_pc): Ditto.
4974 (avr_saved_pc_after_call): Ditto.
4975 (avr_push_return_address): Ditto.
4976 (avr_frame_chain): Ditto.
4977 (avr_store_struct_return): Ditto.
4978 (avr_push_arguments): Ditto.
4979 (avr_scan_prologue): Update comments. Changed to set up the info for
4980 cache unwinding. Now returns end of prologue PC.
4981 (avr_skip_prologue): Better handling of functions lacking a prologue
4982 by using avr_scan_prologue.
4983 (avr_scan_arg_moves): New function.
4984 (avr_saved_regs_unwinder): Ditto.
4985 (avr_frame_unwind_cache): Ditto.
4986 (avr_unwind_pc): Ditto.
4987 (avr_frame_this_id): Ditto.
4988 (avr_frame_prev_register): Ditto.
4989 (avr_frame_p): Ditto.
4990 (avr_frame_base_address ): Ditto.
4991 (avr_unwind_dummy_id): Ditto.
4992 (avr_push_dummy_code): Ditto.
4993 (push_stack_item): Ditto.
4994 (pop_stack_item): Ditto.
4995 (avr_push_dummy_call): Ditto.
4996 (struct stack_item): Define.
4997 (avr_frame_unwind): Declare structure.
4998 (avr_frame_base): Ditto.
4999 (avr_gdbarch_init): Remove calls to
5000 set_gdbarch_deprecated_init_frame_pc,
5001 set_gdbarch_deprecated_target_read_fp,
5002 set_gdbarch_deprecated_dummy_write_sp,
5003 set_gdbarch_deprecated_fp_regnum,
5004 set_gdbarch_deprecated_push_arguments,
5005 set_gdbarch_deprecated_push_return_address,
5006 set_gdbarch_deprecated_pop_frame,
5007 set_gdbarch_deprecated_store_struct_return,
5008 set_gdbarch_deprecated_frame_init_saved_regs,
5009 set_gdbarch_deprecated_init_extra_frame_info,
5010 set_gdbarch_deprecated_frame_chain,
5011 set_gdbarch_deprecated_frame_saved_pc,
5012 set_gdbarch_deprecated_saved_pc_after_call.
5013 Add calls to set_gdbarch_push_dummy_call,
5014 set_gdbarch_push_dummy_code,
5015 frame_unwind_append_predicate,
5016 frame_base_set_default,
5017 set_gdbarch_unwind_dummy_id,
5018 set_gdbarch_unwind_pc.
5019 Wrap a long line.
5020
7be04a68
MS
50212003-06-18 Corinna Vinschen <vinschen@redhat.com>
5022
5023 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5024 registers for H8/300S.
5025 (h8300_print_registers_info): Ditto.
8ffd9b1b 5026 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5027
ae087d01
DJ
50282003-06-18 Daniel Jacobowitz <drow@mvista.com>
5029
5030 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5031 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5032 (lin_lwp_wait): Likewise. Update comments.
5033 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5034 (pull_pid_from_list, linux_record_stopped_pid): New.
5035
07d8f827
SC
50362003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5037
5038 * ada-lang.c (scan_discrim_bound): Name first argument.
5039 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5040 declared by ALL_BLOCK_SYMBOLS.
5041
7cb47b14
SC
50422003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5043
5044 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5045 ("regcache.h"): Include it.
5046 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5047
6ad8ae5c
DJ
50482003-06-17 Daniel Jacobowitz <drow@mvista.com>
5049
5050 * NEWS: Mention gdbserver detach change and "disconnect" command.
5051 * infcmd.c (disconnect_command): New function.
5052 (_initialize_infcmd): Add ``disconnect'' command.
5053 * remote.c (remote_async_detach): Delete.
5054 (remote_detach): Merge remote_async_detach.
5055 (remote_disconnect): New.
5056 (init_remote_ops): Set to_disconnect.
5057 (init_remote_cisco_ops): Likewise.
5058 (init_remote_async_ops): Likewise. Use remote_detach.
5059 * target.c (cleanup_target): Default to_disconnect.
5060 (update_current_target): Inherit to_disconnect.
5061 (target_disconnect, debug_to_disconnect): New functions.
5062 (setup_target_debug): Set to_disconnect.
5063 * target.h (struct target_ops): Add to_disconnect.
5064 (target_disconnect): Add prototype.
5065
687595f9
DJ
50662003-06-17 Daniel Jacobowitz <drow@mvista.com>
5067
5068 * breakpoint.c (insert_catchpoint): New function.
5069 (insert_breakpoints): Use catch_exceptions to call
5070 insert_catchpoint. Disable catchpoints if they fail to insert.
5071
29239a8f
DJ
50722003-06-17 Daniel Jacobowitz <drow@mvista.com>
5073
5074 * symfile.c (reread_symbols): Clear sym_private.
5075
2cdf3c63
AC
50762003-06-17 Andrew Cagney <cagney@redhat.com>
5077
5078 * trad-frame.h (struct frame_info): Add opaque declaration.
5079 * remote-fileio.h (struct cmd_list_element): Add opaque
5080 declaration.
5081 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5082 comments.
5083
cf0e1e0d
DJ
50842003-06-17 Daniel Jacobowitz <drow@mvista.com>
5085
5086 * remote.c (remote_prepare_to_store): Replace call to
5087 deprecated_read_register_bytes with multiple regcache_raw_read
5088 calls.
5089
192cdb19
KW
50902003-06-17 Kris Warkentin <kewarken@qnx.com>
5091
5092 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5093 (nto_find_and_open_solib): Likewise.
5094 (nto_init_solib_absolute_prefix): Likewise.
5095 (_initialize_nto_tdep): Fix indentation.
5096
89929b45
KW
50972003-06-17 Kris Warkentin <kewarken@qnx.com>
5098
5099 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5100
46019f27
KW
51012003-06-17 Kris Warkentin <kewarken@qnx.com>
5102
5103 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5104
1a38736e
JB
51052003-06-17 Jim Blandy <jimb@redhat.com>
5106
5107 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5108
3605c34a
TR
51092003-06-16 Theodore A. Roth <troth@openavr.org>
5110
5111 * avr-tdep.c (avr_extract_return_value): New function.
5112 (avr_gdbarch_init): Set extract_return_value method.
5113
870b3035
AC
51142003-06-16 Andrew Cagney <cagney@redhat.com>
5115
5116 * frame.h (deprecated_get_next_frame_hack): Declare.
5117 * frame.c (legacy_saved_regs_prev_register): Only require
5118 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5119 there are always saved regs.
5120 (deprecated_generic_get_saved_register): Do not require
5121 DEPRECATED_FRAME_INIT_SAVED_REGS.
5122 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5123 use frame ID unwind instead.
5124 (deprecated_get_next_frame_hack): New function.
5125
63d47a7d
CV
51262003-06-16 Corinna Vinschen <vinschen@redhat.com>
5127
5128 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5129 (h8300_push_dummy_call): ...this function. Some minor optimization.
5130 (h8300_push_return_address): Remove.
5131 (h8300_gdbarch_init): Remove calls to
5132 set_gdbarch_deprecated_dummy_write_sp,
5133 set_gdbarch_deprecated_push_arguments and
5134 set_gdbarch_deprecated_push_return_address.
5135 Add call to set_gdbarch_push_dummy_call.
5136
4bb1dc5e
CV
51372003-06-16 Corinna Vinschen <vinschen@redhat.com>
5138
5139 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5140 (E_PSEUDO_EXR_REGNUM): Ditto.
5141 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5142 registers into safe registers.
4bb1dc5e
CV
5143 (h8300_skip_prologue): Check for stm instruction to push registers
5144 used for register variables onto stack.
5145 (gdb_print_insn_h8300): Remove.
5146 (h8300_examine_prologue): Add a comment.
5147 (h8300_register_name): Take pseudo registers into account.
5148 (h8300s_register_name): Ditto.
5149 (h8300sx_register_name): Ditto.
5150 (h8300_print_register): Ditto.
5151 (h8300_print_registers_info): Define "nice" printing order.
5152 (h8300_saved_pc_after_call): Take pseudo registers into account.
5153 (h8300_register_type): Ditto. Return type used for remote connection
5154 when requesting real CCR or EXR register, return actual type when
5155 requesting pseudo CCR or EXR.
5156 (h8300_pseudo_register_read): New function.
5157 (h8300_pseudo_register_write): Ditto.
5158 (h8300_dbg_reg_to_regnum): Ditto.
5159 (h8300s_dbg_reg_to_regnum): Ditto.
5160 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5161 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5162 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5163 set_gdbarch_print_insn architecture dependent.
5164 Call set_gdbarch_pseudo_register_read and
5165 set_gdbarch_pseudo_register_write.
5166 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5167
a59fe496
AC
51682003-06-16 Andrew Cagney <cagney@redhat.com>
5169
5170 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5171 * gdbarch.h, gdbarch.c: Re-generate.
5172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5173 * s390-tdep.c (s390_gdbarch_init): Update.
5174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5176 * mips-tdep.c (mips_gdbarch_init): Update.
5177 * mcore-tdep.c (mcore_gdbarch_init): Update.
5178 * cris-tdep.c (cris_gdbarch_init): Update.
5179 * infcall.c (call_function_by_hand): Update.
5180 * ia64-tdep.c (ia64_push_arguments): Update comment.
5181 * frame.c (legacy_get_prev_frame): Do not assume
5182 SAVE_DUMMY_FRAME_TOS_P.
5183 * dummy-frame.c (find_dummy_frame): Update comment.
5184
6f4e5a41
AC
51852003-06-16 Andrew Cagney <cagney@redhat.com>
5186
5187 * regcache.c (do_cooked_read): Do not use register_valid_p.
5188
72fab697
TR
51892003-06-15 Theodore A. Roth <troth@openavr.org>
5190
5191 * avr-tdep.c (avr_register_type): Remove a blank line.
5192 (avr_scan_prologue): Correct some comments.
5193
e3d8b004
TR
51942003-06-15 Theodore A. Roth <troth@openavr.org>
5195
5196 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5197 prologue types.
8ffd9b1b 5198 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5199 option.
5200 Add code to scan -mcall-prologues for mega devices.
5201
866b76ea
TR
52022003-06-15 Theodore A. Roth <troth@openavr.org>
5203
5204 * avr-tdep.c (avr_register_byte): Delete function.
5205 (avr_register_raw_size): Delete function.
5206 (avr_register_virtual_size): Delete function.
5207 (avr_register_virtual_type): Delete function.
5208 (avr_register_type): New function.
5209 (avr_address_to_pointer): Remove unused code.
5210 (avr_read_fp): Need to read FP as two separate bytes due to change to
5211 avr_register_type() usage.
5212 (avr_gdbarch_init): Don't set deprecated_register_size.
5213 Don't set deprecated_register_bytes.
5214 Don't set deprecated_register_byte.
5215 Don't set deprecated_register_raw_size.
5216 Don't set deprecated_max_register_raw_size.
5217 Don't set deprecated_register_virtual_size.
5218 Don't set deprecated_max_register_virtual_size.
5219 Don't set deprecated_register_virtual_type.
5220 Set register_type method.
5221
3993f6b1
DJ
52222003-06-15 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * Makefile.in (linux-nat.o): Add rule.
5225 * linux-nat.c: New file.
5226 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5227 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5228 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5229 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5230 * config/arm/linux.mh (NATDEPFILES): Likewise.
5231 * config/i386/linux.mh (NATDEPFILES): Likewise.
5232 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5233 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5234 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5235 * config/mips/linux.mh (NATDEPFILES): Likewise.
5236 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5237 * config/s390/s390.mh (NATDEPFILES): Likewise.
5238 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5239
786a90bb
MK
52402003-06-15 Mark Kettenis <kettenis@gnu.org>
5241
5242 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5243 replace out-of-date comment.
5244
3bd3f01e
AC
52452003-06-15 Andrew Cagney <cagney@redhat.com>
5246
5247 * rdi-share/host.h (Fail): Change to a varargs function.
5248 * remote-rdi.c (Fail): Update.
8ffd9b1b 5249
de5b9bb9
MK
52502003-06-15 Mark Kettenis <kettenis@gnu.org>
5251
5252 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5253 (i386_convert_register_p, i386_register_to_value,
5254 i386_register_from_value): Handle types longer than 8 bytes.
5255
d532c08f
MK
52562003-06-15 Mark Kettenis <kettenis@gnu.org>
5257
5258 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5259 Move floating-point code to new function in i387-tdep.c.
5260 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5261 New functions containing code moved here from i386-tdep.c.
5262 * i387-tdep.h: Add opaque declaration for `struct type'.
5263 (i387_register_to_value, i387_value_to_register): New prototypes.
5264 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5265 (x86_64_init_abi): Set convert_register_p, register_to_value and
5266 value_to_register here.
8ffd9b1b 5267
42c466d7
AC
52682003-06-14 Andrew Cagney <cagney@redhat.com>
5269
5270 * mips-tdep.c (mips_register_to_value): Make static.
5271 (mips_value_to_register): Make static.
5272 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5273 * ia64-tdep.c (ia64_register_raw_size): Make static.
5274 (ia64_register_virtual_size): Make static.
5275 (ia64_register_byte): Make static.
5276 * i387-tdep.c: Include "i387-tdep.h".
5277 (print_387_control_word): Delete function.
5278 (print_387_status_word): Delete function.
5279 (print_387_status_bits): Delete function.
5280 (print_387_control_bits): Delete function.
5281 * Makefile.in (i387-tdep.o): Update dependencies.
5282 * rdi-share/host.h (Fail): Declare.
5283 * remote-rdi.c (Fail): Update to match declaration.
5284
2a9cda49
AC
52852003-06-14 Andrew Cagney <cagney@redhat.com>
5286
5287 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5288 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5289 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5290 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5291 * README: Delete reference to remote-array.
5292 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5293 (remote-array.o): Delete target.
5294 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5295 * remote-array.c: Delete file.
5296
ff2e87ac
AC
52972003-06-14 Andrew Cagney <cagney@redhat.com>
5298 Mark Kettenis <kettenis@gnu.org>
5299
5300 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5301 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5302 parameter with "frame".
5303 * gdbarch.h, gdbarch.c: Re-generate.
5304 * frame.h (put_frame_register): Declare.
5305 * frame.c (put_frame_register): New function.
5306 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5307 (legacy_register_to_value): Rewrite, use "frame" to get the
5308 register value.
5309 (legacy_value_to_register): Rewrite, use "frame" to find the
5310 register's location before storing.
5311 * arch-utils.h (legacy_convert_register_p): Update.
5312 (legacy_register_to_value, legacy_value_to_register): Update.
5313 * findvar.c (value_from_register): Rewrite, eliminate use of
5314 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5315 "frame" to REGISTER_TO_VALUE.
5316 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5317 lval_reg_frame_relative + lval_register branch of the switch. Do
5318 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5319 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5320 I386_EDI_REGNUM): New defines.
5321 (i386_next_regnum, i386_convert_register_p,
5322 i386_register_to_value, i386_value_to_register): New functions.
5323 (i386_register_convertible, i386_register_convert_to_virtual,
5324 i386_convert_to_raw): Remove functions.
5325 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5326 value_to_register instead of register_convertible,
5327 register_convert_to_virtual and register_convert_to_raw.
5328 * mips-tdep.c (mips_convert_register_p): New function.
5329 (mips_value_to_register): Replace mips_register_convert_from_type.
5330 (mips_register_to_value): Replace mips_register_convert_to_type.
5331 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5332 register_to_value.
5333 * alpha-tdep.c (alpha_convert_register_p): Update.
5334 (alpha_value_to_register): Update, store the register.
5335 (alpha_register_to_value): Update, fetch the register.
5336
98be1e77
TR
53372003-06-14 Theodore A. Roth <troth@openavr.org>
5338
5339 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5340 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5341 Don't set deprecated_call_dummy_words.
5342 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5343 Don't set remote_translate_xfer_address.
5344 (avr_io_reg_read_command): Remove commented out debug printf.
5345 Wrap a long line.
5346
57bc6122
TR
53472003-06-14 Theodore A. Roth <troth@openavr.org>
5348
5349 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5350 causes gdb to seg fault.
5351
eb01fc62
DJ
53522003-06-14 Daniel Jacobowitz <drow@mvista.com>
5353
5354 * sparc-nat.c (fetch_inferior_registers): Correct
5355 a reference to "registers".
5356
3b3e6bee
DJ
53572003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5358
5359 * Makefile.in (exc_request_U_h): Define
5360 (exc_request_S_h): Likewise.
5361 (msg_reply_S_h): Likewise.
5362 (msg_U_h): Likewise.
5363 (notify_S_h): Likewise.
5364 (process_reply_S_h): Likewise.
5365 (gnu-nat.o): Depend on gdb_obstack_h
5366 * gnu-nat.c: Include "gdb_obstack.h".
5367
b8de8283
AC
53682003-06-13 Andrew Cagney <cagney@redhat.com>
5369
5370 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5371 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5372
f3be58bc
AC
53732003-06-13 Andrew Cagney <cagney@redhat.com>
5374
5375 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5376 when deprecated REGISTER macros can be deleted.
5377 * gdbarch.h, gdbarch.c: Re-generate.
5378
4c0122c8
JB
53792003-06-13 Jim Blandy <jimb@redhat.com>
5380
5381 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5382 Linux entry point symbols for _dl_debug_state, too.
5383
3e210248
AC
53842003-06-13 Andrew Cagney <cagney@redhat.com>
5385
5386 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5387 available, do not use the FP register, and always save the TOS.
5388 * dummy-frame.c (dummy_frame_this_id): Do not assert
5389 SAVE_DUMMY_FRAME_TOS.
5390 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5391 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5392 (i386_push_dummy_call): Add 8 to the returned SP.
5393 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5394 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5395 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5396 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5397 (x86_64_push_dummy_call): Return "sp + 16".
5398 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5399 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5400 save_dummy_frame_tos.
5401
0b65af49
JB
54022003-06-13 Jim Blandy <jimb@redhat.com>
5403
5404 * frv-tdep.c (frv_use_struct_convention): Delete static
5405 declaration for function deleted in my change of 2003-06-12.
5406
4ea2465e
TR
54072003-06-13 Theodore A. Roth <troth@openavr.org>
5408
5409 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5410 (avr_pointer_to_address): Shift code addrs left 1 bit.
5411 (avr_convert_from_func_ptr_addr): Delete function since operation is
5412 better handled by avr_address_to_pointer and avr_pointer_to_address.
5413 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5414
1581182a
MK
54152003-06-13 Mark Kettenis <kettenis@gnu.org>
5416
5417 From Kelley Cook <kelleycook@wideopenwest.com>:
5418 * configure.host: Accept i[34567]86 variants.
5419 * configure.tgt: Likewise.
5420 * nlm/configure.in: Likewise.
5421 * nlm/configure: Regenerated.
5422
7aa1783e
RE
54232003-06-13 Richard Earnshaw <rearnsha@arm.com>
5424
5425 * arm-tdep.c (solib-svr4.h): Dont' include it.
5426 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5427 * arm-linux-tdep.c: ... here. Make static.
5428 (arm_linux_init_abi): Register it.
5429 (solib-svr4.h): Include it.
5430 * Makefile.in: Update dependencies.
5431 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5432 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5433
0261a0d0
CV
54342003-06-13 Corinna Vinschen <vinschen@redhat.com>
5435
5436 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5437 indicate registers used for return values.
5438 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5439 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5440 members.
5441 (h8300_init_extra_frame_info): Ditto.
5442 (h8300_frame_locals_address): Removed.
5443 (h8300_frame_args_address): Removed.
5444 (h8300_extract_return_value): Use new regcache structure. Only care
5445 for 16 bit CPUs.
5446 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5447 (h8300_store_return_value): Use new regcache structure. Only care
5448 for 16 bit CPUs.
5449 (h8300h_store_return_value): Same function for 32 bit CPUs.
5450 (h8300_store_struct_return): Removed.
5451 (h8300_extract_struct_value_address): Use new regcache structure.
5452 (h8300h_extract_struct_value_address): Removed.
5453 (h8300_push_dummy_code): New function.
5454 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5455 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5456 set_gdbarch_store_return_value architecture dependent.
5457 Call set_gdbarch_push_dummy_code and
5458 set_gdbarch_extract_struct_value_address.
5459 Remove calls to set_gdbarch_frame_args_address,
5460 set_gdbarch_frame_locals_address,
5461 set_gdbarch_deprecated_store_struct_return,
5462 set_gdbarch_deprecated_extract_return_value,
5463 set_gdbarch_deprecated_extract_struct_value_address,
5464 set_gdbarch_deprecated_call_dummy_words and
5465 set_gdbarch_deprecated_sizeof_call_dummy_words.
5466
055c394a
CV
54672003-06-13 Corinna Vinschen <vinschen@redhat.com>
5468
5469 * h8300-tdep.c (h8300_register_byte): Remove.
5470 (h8300h_register_byte): Remove.
5471 (h8300_register_virtual_type): Remove. Substitute by...
5472 (h8300_register_type): New function.
5473 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5474 (h8300h_extract_struct_value_address): Ditto.
5475 (h8300_gdbarch_init): Drop calls to
5476 set_gdbarch_deprecated_register_byte and
5477 set_gdbarch_deprecated_register_virtual_type.
5478 Add call to set_gdbarch_register_type.
5479
9c04cab7
AC
54802003-06-13 Andrew Cagney <cagney@redhat.com>
5481
5482 * gdbarch.sh: Update comments on registers.
5483 (deprecated_register_byte): Rename register_byte.
5484 (deprecated_register_raw_size): Rename register_raw_size.
5485 (deprecated_register_virtual_size): Rename register_virtual_size.
5486 (deprecated_register_virtual_type): Rename register_virtual_type.
5487 * gdbarch.h, gdbarch.c: Re-generate.
5488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5489 * vax-tdep.c (vax_gdbarch_init): Update.
5490 * v850-tdep.c (v850_gdbarch_init): Update.
5491 * sparc-tdep.c (sparc_gdbarch_init): Update.
5492 * sh-tdep.c (sh_gdbarch_init): Update.
5493 * s390-tdep.c (s390_gdbarch_init): Update.
5494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5495 * ns32k-tdep.c: Update.
5496 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5497 * mips-tdep.c (mips_gdbarch_init): Update.
5498 * mcore-tdep.c (mcore_gdbarch_init): Update.
5499 * m68k-tdep.c (m68k_gdbarch_init): Update.
5500 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5501 * ia64-tdep.c (ia64_gdbarch_init): Update.
5502 * hppa-tdep.c (hppa_gdbarch_init): Update.
5503 * h8300-tdep.c (h8300_gdbarch_init): Update.
5504 * frv-tdep.c (frv_gdbarch_init): Update.
5505 * cris-tdep.c (cris_gdbarch_init): Update.
5506 * avr-tdep.c (avr_gdbarch_init): Update.
5507 * alpha-tdep.c (alpha_gdbarch_init): Update.
5508 * arm-tdep.c (arm_gdbarch_init): Update.
5509
b060cbea
AC
55102003-06-13 Andrew Cagney <cagney@redhat.com>
5511
5512 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5513 mips_o32_use_struct_convention with always_use_struct_convention.
5514
0fc9922a
DC
55152003-06-12 David Carlton <carlton@kealia.com>
5516
5517 * cp-namespace.c (cp_set_block_scope): Comment out
5518 processing_has_namespace_info branch.
5519
1fd35568
JB
55202003-06-12 Jim Blandy <jimb@redhat.com>
5521
f470a70a
JB
5522 Recognize and skip 64-bit PowerPC Linux linkage functions.
5523 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5524 insn_pattern, insns_match_pattern, d_field, ds_field): New
5525 functions, macros, and types for working with PPC instructions.
5526 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5527 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5528 ppc64_skip_trampoline_code): New functions, variables, and macros
5529 for recognizing and skipping linkage functions.
5530 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5531 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5532
49ff75ad
JB
5533 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5534 register offsets for both the 32- and 64-bit interfaces.
5535
bd918c83
JB
5536 Actually finish the job started by my change of 2003-05-29.
5537 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5538 other #definition of this.
5539 (ppc_linux_skip_trampoline_code): Remove declaration.
5540 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5541 static.
5542 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5543 method for GDBARCH.
5544
5545 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5546 'long' on ppc64-*-linux*.
5547
f8c59253
JB
5548 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5549 isn't #defined, assume the register doesn't exist: act as if
5550 tdep->ppc_mq_regnum were -1.
5551
8fbb30b1
JB
5552 * configure.host, configure.tgt: Add entries for
5553 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5554 powerpc/linux.mt.
5555 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5556 New files.
5557
1fd35568
JB
5558 * arch-utils.c (always_use_struct_convention): New function.
5559 * arch-utils.h (always_use_struct_convention): New prototype.
5560 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5561 (alpha_gdbarch_init): Register always_use_struct_convention,
5562 instead of alpha_use_struct_convention.
5563 * cris-tdep.c (cris_use_struct_convention): Delete.
5564 (cris_gdbarch_init): Register always_use_struct_convention,
5565 instead of cris_use_struct_convention.
5566 * frv-tdep.c (frv_use_struct_convention): Delete.
5567 (frv_gdbarch_init): Register always_use_struct_convention,
5568 instead of frv_use_struct_convention.
5569 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5570 (h8300_gdbarch_init): Register always_use_struct_convention,
5571 instead of h8300_use_struct_convention.
e3305dd9 5572 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5573 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5574 instead of mips_o32_use_struct_convention.
5575
e14e6e9c
AC
55762003-06-12 Andrew Cagney <cagney@redhat.com>
5577
5578 * wince.c: Include "mips-tdep.h".
5579 * mips-tdep.h (mips_next_pc): Declare.
5580 * mcore-tdep.c: Make more local functions static.
5581 * Makefile.in (wince.o): Update dependencies.
5582
2335f48e
DC
55832003-06-12 David Carlton <carlton@kealia.com>
5584
5585 * symtab.c (lookup_symbol_aux_minsyms): Replace
5586 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5587 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5588 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5589 SYMBOL_NATURAL_NAME.
5590
f70a7d61
AS
55912003-06-12 Andreas Schwab <schwab@suse.de>
5592
5593 * Makefile.in (tuiDisassem.o): Update dependencies.
5594
b6429628
DC
55952003-06-12 David Carlton <carlton@bactrian.org>
5596
5597 * symtab.h: Delete declaration of make_symbol_overload_list.
5598 Add declaration of lookup_partial_symbol.
5599 * symtab.c (remove_params): Move to cp-support.c.
5600 (overload_list_add_symbol, make_symbol_overload_list)
5601 (sym_return_val_size, sym_return_val_index): Ditto.
5602 (lookup_partial_symbol): Make extern.
5603 * cp-support.h: Add declaration of make_symbol_overload_list.
5604 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5605 symtab.h, and block.h.
5606 (remove_params): Move here from symtab.c.
5607 (overload_list_add_symbol, make_symbol_overload_list)
5608 (sym_return_val_size, sym_return_val_index): Ditto.
5609 * valops.c: Include cp-support.h.
5610 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5611 frame_h, and block_h.
5612 (valops.o): Depend on cp_support_h.
5613
084edea5
CV
56142003-06-12 Corinna Vinschen <vinschen@redhat.com>
5615
5616 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5617 substitute by NUM_REGS throughout.
5618 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5619 (h8300s_register_name): New function for H8S registers.
5620 (h8300sx_register_name): Ditto for H8SX registers.
5621 (h8300_print_register): Revise register printing, avoid depending
5622 on 32 bit long.
0261a0d0 5623 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5624 (h8300h_register_byte): New function for any other architecture.
5625 (h8300_register_raw_size): Remove.
5626 (h8300_register_virtual_type): Revise to return actually useful
5627 type.
5628 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5629 (h8300h_extract_struct_value_address): New function for any other
5630 architecture.
5631 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5632 set_gdbarch_register_name, set_gdbarch_register_byte,
5633 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5634 Remove calls to set_gdbarch_deprecated_register_size,
5635 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5636 set_gdbarch_deprecated_max_register_raw_size,
5637 set_gdbarch_register_virtual_size and
5638 set_gdbarch_deprecated_max_register_virtual_size entirely.
5639 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5640 set_gdbarch_long_double_bit.
5641
06194148
JJ
56422003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5643
8ffd9b1b
AJ
5644 * doublest.c (convert_doublest_to_floatformat): When dealing
5645 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5646 processing a full 32 bits of mantissa.
5647
de4f826b
DC
56482003-06-11 David Carlton <carlton@bactrian.org>
5649
5650 * dictionary.h: New.
5651 * dictionary.c: New.
5652 * block.h: Add opaque declaration for struct dictionary.
5653 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5654 'sym' members.
5655 (BLOCK_DICT): New macro.
5656 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5657 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5658 BLOCK_SHOULD_SORT.
5659 (ALL_BLOCK_SYMBOLS): Update definition.
5660 * Makefile.in (SFILES): Add dictionary.c.
5661 (dictionary_h): New.
5662 (COMMON_OBS): Add dictionary.o.
5663 (dictionary.o): New.
5664 (ada-lang.o): Depend on dictionary_h.
5665 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5666 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5667 (mi-cmd-stack.o): Ditto.
5668 (gdbtk-cmds.o): Update dependencies.
5669 (gdbtk-stack.o): Ditto.
5670 * ada-lang.c: Include dictionary.h.
5671 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5672 (fill_in_ada_prototype, debug_print_block): Ditto.
5673 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5674 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5675 'is_sorted'.
5676 * mdebugread.c: Include dictionary.h.
5677 (struct parse_stack): Delete 'maxsyms' member.
5678 (parse_symbol): Update calls to new_block. Delete calls to
5679 shrink_block. Use dictionary methods.
5680 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5681 Update calls to new_symtab. Don't maintain maxsyms data.
5682 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5683 (add_symbol): Just call dict_add_symbol.
5684 (new_symtab): Delete 'maxsyms' argument.
5685 (new_symtab): Update calls to new_block.
5686 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5687 (shrink_block): Delete function.
5688 (fixup_sigtramp): Update call to new_block. Add symbol via
5689 dict_add_symbol.
5690 * jv-lang.c: Include dictionary.h.
5691 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5692 appropriately. Set class_symtab->free_func. Make sure the
5693 blockvector is big enough to hold two blocks.
5694 (add_class_symtab_symbol): Use dictionary methods.
5695 (free_class_block): New function.
5696 (type_from_class): Replace explicit iteration by
5697 ALL_BLOCK_SYMBOLS.
5698 * symtab.h (struct symtab): Replace 'free_ptr' method by
5699 'free_func'.
5700 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5701 sort_symtab_syms.
5702 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5703 sort_symtab_syms.
5704 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5705 Include dictionary.h.
5706 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5707 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5708 sort_symtab_syms.
5709 * objfiles.c: Include dictionary.h.
5710 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5711 * buildsym.c: Include dictionary.h.
5712 (finish_block): Use dictionary methods.
5713 (end_symtab): Set free_func to NULL, not free_ptr.
5714 * tracepoint.c: Include dictionary.h.
5715 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5716 (scope_info): Ditto.
5717 * stack.c: Include dictionary.h.
5718 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5719 (print_block_frame_labels, print_frame_arg_vars)
5720 (print_frame_args): Ditto.
5721 * symmisc.c (free_symtab_block): Use dictionary methods.
5722 (dump_symtab): Ditto.
5723 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5724 Include dictionary.h.
5725 * symfile.h: Delete declarations of sort_block_syms,
5726 sort_symtab_syms.
5727 * symfile.c (sort_block_syms): Delete.
5728 (sort_symtab_syms): Delete.
5729 * symtab.c: Include dictionary.h.
5730 (lookup_block_symbol): Use dictionary iterators.
5731 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5732 (search_symbols, make_symbol_completion_list): Ditto.
5733 (make_symbol_overload_list): Ditto.
5734 * valops.c (value_of_local): Use dict_empty.
5735 Include dictionary.h.
5736
a31f978c
JB
57372003-06-11 J. Brobecker <brobecker@gnat.com>
5738
5739 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5740
526e70c0
DC
57412003-06-11 David Carlton <carlton@bactrian.org>
5742
5743 * block.h (BLOCK_SHOULD_SORT): Delete.
5744 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5745 blocks.
5746 * ada-lang.c (ada_add_block_symbols): Ditto.
5747 * symfile.c (sort_block_syms): Delete.
5748 (sort_symtab_syms): Ditto.
5749 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5750 declarations.
5751 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5752 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5753 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5754 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5755 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5756 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5757 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5758
33c08150
JJ
57592003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5760
8ffd9b1b 5761 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5762 bits to 128.
5763
781a750d
AC
57642003-06-11 Andrew Cagney <cagney@redhat.com>
5765
5766 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5767 REGISTER_CONVERTIBLE.
5768 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5769 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5770 * gdbarch.h, gdbarch.c: Re-generate.
5771 * arch-utils.h (deprecated_register_convertible_not): Rename
5772 generic_register_convertible_not.
5773 * arch-utils.c (deprecated_register_convertible_not): Rename
5774 generic_register_convertible.
5775 (legacy_convert_register_p, legacy_register_to_value): Update.
5776 * sh-tdep.c (sh64_push_arguments): Update.
5777 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5778 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5779 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5780 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5781 * arch-utils.c (legacy_value_to_register): Update.
5782 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5783 (rs6000_register_convert_to_raw): Make parameter "from" const.
5784 * mips-tdep.c (mips_gdbarch_init): Update.
5785 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5786 * infcmd.c (default_print_registers_info): Update.
5787 * ia64-tdep.c (ia64_gdbarch_init): Update.
5788 (ia64_register_convert_to_raw): Make parameter "from" const.
5789 * i386-tdep.c (i386_gdbarch_init): Update.
5790 (i386_register_convert_to_raw): Update.
5791
cd90e54f
AC
57922003-06-11 Andrew Cagney <cagney@redhat.com>
5793
5794 * remote-fileio.c: Include "remote-fileio.h".
5795 * Makefile.in (remote-fileio.o): Update dependencies.
5796 (remote_fileio_h): Fix typo.
5797
a78f21af
AC
57982003-06-11 Andrew Cagney <cagney@redhat.com>
5799
5800 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5801 (xstormy16_save_dummy_frame_tos): Make static.
5802 (_initialize_xstormy16_tdep): Add declaration.
5803 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5804 * v850-tdep.c: Make local functions static.
5805 (_initialize_v850_tdep): Add declaration.
5806 * sparc-tdep.c: Make local functions static.
5807 (_initialize_sparc_tdep): Add declaration.
5808 * sh-tdep.c: Make local functions static.
5809 (_initialize_sh_tdep): Add declaration.
5810 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5811 * s390-tdep.c: Make local functions static.
5812 (_initialize_s390_tdep): Add declaration.
5813 * dbxread.c (find_stab_function_addr): Make static.
5814 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5815 * ocd.c (_initialize_remote_ocd): Add declaration.
5816 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5817 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5818 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5819 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5820 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5821 * remote-array.c (_initialize_array): Add declaration.
5822 (_initialize_remote_monitors): Add declaration.
5823 * remote-mips.c: Make local functions static.
5824 (_initialize_remote_mips): Add declaration.
5825 * mcore-tdep.c: Make all local functions static.
5826 (_initialize_mcore_tdep): Add declaration.
5827 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5828 * abug-rom.c (_initialize_abug_rom): Add declaration.
5829 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5830 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5831 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5832 * remote-est.c (_initialize_est): Add declaration.
5833 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5834 (m68hc11_call_dummy_address): Make static.
5835 * ia64-tdep.c: Make local functions static.
5836 (_initialize_ia64_tdep): Add declaration.
5837 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5838 * monitor.c (monitor_wait_filter): Make static.
5839 (_initialize_remote_monitors): Add declaration.
5840 * remote-hms.c (_initialize_remote_hms): Add declaration.
5841 * remote-e7000.c (fetch_regs_from_dump): Make static.
5842 (expect_n): Make static.
5843 (_initialize_remote_e7000): Add declaration.
5844 * ser-e7kpc.c: Always include "defs.h".
5845 (_initialize_ser_e7000pc): Add declaration.
5846 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5847 * cris-tdep.c: Make all but one function static.
5848 (_initialize_cris_tdep): Add declaration.
5849 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5850 * solib.c (update_solib_list): Make static.
5851 (_initialize_solib): Add declaration.
5852 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5853 (_initialize_avr_tdep): Add declaration.
5854 * remote-rdi.c (voiddummy): Make static.
5855 (_initialize_remote_rdi): Add declaration.
5856 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5857 * remote-rdp.c (send_rdp): Make static.
5858 (_initialize_remote_rdp): Add declaration.
5859 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5860
cbcdb1f5
CV
58612003-06-11 Corinna Vinschen <vinschen@redhat.com>
5862
5863 * remote-fileio.c: Make ari happy.
5864
a191ea8d
JB
58652003-06-10 J. Brobecker <brobecker@gnat.com>
5866
5867 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5868 fetching the trailing bytes of the buffer we are about to write.
5869
0ef75e11
AC
58702003-06-10 Andrew Cagney <cagney@redhat.com>
5871
5872 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5873 * Makefile.in (remote-fileio.o): Update dependencies.
5874 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5875 include <setjmp.h>, or <sys/types.h> conditional on USG.
5876 (remote_fio_jmp_buf): Delete global variable.
5877
449092f6 58782003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5879 Martin M. Hunt <hunt@redhat.com>
449092f6 5880
559fa028
AC
5881 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5882 (SFILES): Add remote-fileio.c.
5883 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5884 dependencies for building remote.o.
449092f6
CV
5885 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5886 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5887 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5888 static storage class.
5889 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5890 'F' packet.
5891 (_initialize_remote): Call initialize_remote_fileio().
5892 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5893 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5894 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5895 (captured_main): Initialize new ui_files.
5896 * ui-file.c: Add read and fgets input functions.
5897 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5898 (null_file_read): New function.
5899 (ui_file_read): New function.
5900 (set_ui_file_read): New function.
5901 (stdio_file_read): New function.
5902 * ui-file.h: New type ui_file_read_ftype.
5903 (set_ui_file_read): Declare.
5904 (ui_file_read): Declare.
5905
248de703
AC
59062003-06-09 Andrew Cagney <cagney@redhat.com>
5907
5908 * frame.h (deprecated_unwind_get_saved_register): Rename
5909 generic_unwind_get_saved_register, update comments.
5910 * mips-tdep.c (mips_get_saved_register): Update.
5911 * frame.c (deprecated_unwind_get_saved_register): Update.
5912
0ed8aa57
AC
59132003-06-09 Andrew Cagney <cagney@redhat.com>
5914
5915 * vax-tdep.c (vax_frame_locals_address): Delete function.
5916 (vax_gdbarch_init): Do not set frame_locals_address.
5917 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5918 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5919 * s390-tdep.c (s390_frame_args_address): Delete function.
5920 (s390_gdbarch_init): Do not set frame_args_address or
5921 frame_locals_address.
5922 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5923 (ns32k_gdbarch_init): Do not set frame_locals_address.
5924 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5925 (hppa_frame_locals_address): Delete function.
5926 (hppa_gdbarch_init): Do not set frame_args_address, or
5927 frame_locals_address.
5928 * arm-tdep.c (arm_frame_args_address): Delete.
5929 (arm_frame_locals_address): Delete.
5930 (arm_gdbarch_init): Do not set frame_args_address, or
5931 frame_locals_address.
5932
983a287a
AC
59332003-06-09 Andrew Cagney <cagney@redhat.com>
5934
5935 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5936 * gdbarch.h, gdbarch.c: Re-generate.
5937 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5938 * arch-utils.c (frame_num_args_unknown): Delete function.
5939 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5940 (frame_info): Use FRAME_NUM_ARGS_P.
5941 * arm-tdep.c (arm_frame_num_args): Delete function.
5942 (arm_gdbarch_init): Do not set frame_num_args.
5943 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5944 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5945 (hppa_gdbarch_init): Do not set frame_num_args.
5946 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5948 frame_num_args to default frame_num_args_unknown.
5949 * v850-tdep.c (v850_gdbarch_init): Ditto.
5950 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5951 * sh-tdep.c (sh_gdbarch_init): Ditto.
5952 * s390-tdep.c (s390_gdbarch_init): Ditto.
5953 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5954 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5955 * mips-tdep.c (mips_gdbarch_init): Ditto.
5956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5957 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5959 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5960 * i386-tdep.c (i386_gdbarch_init): Ditto.
5961 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5962 * frv-tdep.c (frv_gdbarch_init): Ditto.
5963 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5964 * cris-tdep.c (cris_gdbarch_init): Ditto.
5965 * avr-tdep.c (avr_gdbarch_init): Ditto.
5966 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5967
8d3b0994
AC
59682003-06-09 Andrew Cagney <cagney@redhat.com>
5969
5970 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5971 (print_frame_args): Moved to "stack.c".
5972 * stack.c: Include "gdb_assert.h".
5973 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5974 (print_frame_args): Moved from "printcmd.c".
5975 * frame.h (print_frame_args): Delete declaration.
5976 * Makefile.in (stack.o): Update dependencies.
5977
25e3a86b
AC
59782003-06-08 Andrew Cagney <cagney@redhat.com>
5979
5980 * frame.c (get_prev_frame): Remove reference to
5981 frame_args_address_correct in comments.
5982 * frame-base.c (default_frame_args_address): Delete code
5983 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5984 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5985 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5986 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5987 (vax_frame_args_address_correct): Delete declaration.
5988
a9e5fdc2
AC
59892003-06-08 Andrew Cagney <cagney@redhat.com>
5990
5991 * gdbarch.sh (UNWIND_SP): Add.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * frame.c (frame_sp_unwind): New function.
5994 (get_frame_sp): New function.
5995 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5996 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5997 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5998 value.
5999 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6000 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6001
8983bd83
AC
60022003-06-08 Andrew Cagney <cagney@redhat.com>
6003
7fec2c59
AC
6004 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6005 REMOTE_BREAKPOINT.
6006 * remote.c: Update.
6007 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6008 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6009 * config/m68k/tm-sun3.h: Update.
6010 * config/m68k/tm-m68klynx.h: Update.
6011 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6012
8983bd83
AC
6013 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6014 trad_frame". Update comments.
6015 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6016 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6017 (trad_frame_register_value, trad_frame_prev_register): Update.
6018
b9362cc7
AC
60192003-06-08 Andrew Cagney <cagney@redhat.com>
6020
6021 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6022 from GCC's acinclude.m4.
6023 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6024 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6025 * main.c (error_init): Delete declaration.
6026 * defs.h (error_init): Declare.
6027 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6028 (rs6000_convert_from_func_ptr_addr): Make static.
6029 (_initialize_rs6000_tdep): Add declaration.
6030 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6031 (show_commands, set_verbose, show_history): Delete declaration.
6032 * top.h (set_verbose): Add declaration.
6033 (show_history, set_history, show_commands): Add declaration.
6034 (do_restore_instream_cleanup): Add declaration.
6035 * objc-lang.c (specialcmp): Make static.
6036 (print_object_command): Make static.
6037 (find_objc_msgsend): Make static.
6038 (find_objc_msgcall_submethod_helper): Make static.
6039 (find_objc_msgcall_submethod): Make static.
6040 (_initialize_objc_language): Add declaration.
6041 (find_implementation_from_class): Make static.
6042 (find_implementation): Make static.
6043 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6044 * objc-lang.h (lookup_struct_typedef): Add declaration.
6045 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6046 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6047 (do_restore_user_call_depth): Make static.
6048 (do_restore_instream_cleanup): Delete declaration.
6049 (dont_repeat): Delete declaration.
6050 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6051 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6052 * reggroups.c (_initialize_reggroup): Add declaration.
6053 * cp-support.c (_initialize_cp_support): Add declaration.
6054 * cp-abi.c (_initialize_cp_abi): Add declaration.
6055 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6056 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6057 (_initialize_gnu_v3_abi): Add declaration.
6058 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6059 (_initialize_gnu_v2_abi): Add declaration.
6060 * frame-base.c (_initialize_frame_base): Add declaration.
6061 * doublest.c (floatformat_from_length): Make static.
6062 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6063 * frame.c (create_sentinel_frame): Make static.
6064 (_initialize_frame): Add declaration.
6065 * top.c (do_catch_errors): Make static.
6066 (gdb_rl_operate_and_get_next_completion): Make static.
6067 * typeprint.c: Include "typeprint.h".
6068 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6069 (sentinel_frame_this_id): Make static.
6070 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6071 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6072 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6073 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6074 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6075 * maint.c (maintenance_print_architecture): Make static.
6076 * signals/signals.c (_initialize_signals): Add declaration.
6077 * std-regs.c (_initialize_frame_reg): Add declaration.
6078 * jv-exp.y (push_variable): ISO C definition.
6079 (push_qualified_expression_name): Ditto.
6080 * memattr.c (_initialize_mem): Add declaration.
6081 * remote.c (remote_check_watch_resources): Make static.
6082 (remote_stopped_by_watchpoint): Make static.
6083 (remote_stopped_data_address): Make static.
6084 * d10v-tdep.c (nr_dmap_regs): Make static.
6085 (a0_regnum): Make static.
6086 (d10v_frame_unwind_cache): Make static.
6087 (d10v_frame_p): Make static.
6088 * osabi.c (show_osabi): Make static.
6089 (_initialize_gdb_osabi): Add extern declaration.
6090 * gdbtypes.c (make_qualified_type): Make static.
6091 (safe_parse_type): Make static.
6092 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6093 * macrotab.c (macro_bcache_free): Make static.
6094 * interps.c (interp_set_quiet): Make static.
6095 (interpreter_exec_cmd): Make static.
6096 * stack.h (select_frame_command): New file.
6097 * stack.c: Include "stack.h".
6098 (select_frame_command_wrapper): Delete function.
6099 (select_frame_command): Make global.
6100 * infcall.c: Include "infcall.h".
6101 * linespec.c: Include "linespec.h".
6102 * symfile.c (sections_overlap): Make static.
6103 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6104 * charset.c (_initialize_charset): Add missing prototype.
6105 * regcache.c (init_legacy_regcache_descr): Make static.
6106 (do_regcache_xfree): Make static.
6107 (regcache_xfer_part): Make static.
6108 (_initialize_regcache): Add missing prototype.
6109 * breakpoint.c (parse_breakpoint_sals): Make static.
6110 (breakpoint_sals_to_pc): Make static.
6111 * interps.h (clear_interpreter_hooks): ISO C declaration.
6112 * Makefile.in (stack_h): Define.
6113 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6114 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6115
a0f267c7
AC
61162003-06-08 Andrew Cagney <cagney@redhat.com>
6117
6118 * Makefile.in (d10v-tdep.o): Update dependencies.
6119 (SFILES): Add trad-frame.c.
6120 (trad_frame_h): Define.
6121 (COMMON_OBS): Add trad-frame.o.
6122 (trad-frame.o): Specify dependencies.
6123 * d10v-tdep.c: Include "trad-frame.h".
6124 (saved_regs_unwinder): Delete function.
6125 (d10v_frame_prev_register): Use trad_frame_prev_register.
6126 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6127 trad_frame", delete "regs" and "prev_sp".
6128 (prologue_find_regs): Use trad-frame.
6129 * trad-frame.h, trad-frame.c: New files.
6130
4538b4f4
MK
61312003-06-08 Mark Kettenis <kettenis@gnu.org>
6132
6133 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6134
a0273b2f
AF
61352003-06-07 Adam Fedor <fedor@gnu.org>
6136
6137 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6138 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6139 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6140 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6141 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6142 Use it.
6143
3a6c3343
AC
61442003-06-07 Andrew Cagney <cagney@redhat.com>
6145
6146 * symfile.h: Re-indent, clean up comments.
6147
b46e02f6
AC
61482003-06-07 Andrew Cagney <cagney@redhat.com>
6149
6150 * inferior.h (deprecated_write_sp): Replace
6151 generic_target_write_sp.
6152 * regcache.c (deprecated_write_sp): Replace
6153 generic_target_write_sp.
6154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6155 * vax-tdep.c (vax_gdbarch_init): Update.
6156 * v850-tdep.c (v850_gdbarch_init): Update.
6157 * sparc-tdep.c (sparc_gdbarch_init): Update.
6158 * sh-tdep.c (sh_gdbarch_init): Update.
6159 * s390-tdep.c (s390_gdbarch_init): Update.
6160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6161 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6163 * mcore-tdep.c (mcore_gdbarch_init): Update.
6164 * m68k-tdep.c (m68k_gdbarch_init): Update.
6165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6166 * ia64-tdep.c (ia64_gdbarch_init): Update.
6167 * h8300-tdep.c (h8300_gdbarch_init): Update.
6168 * frv-tdep.c (frv_gdbarch_init): Update.
6169 * cris-tdep.c (cris_gdbarch_init): Update.
6170 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6171
a42e117c
AC
61722003-06-07 Andrew Cagney <cagney@redhat.com>
6173
6174 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6175 Assert that PC_REGNUM is valid.
6176 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6177
bd1ce8ba
AC
61782003-06-07 Andrew Cagney <cagney@redhat.com>
6179
6180 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6181 * gdbarch.h, gdbarch.c: Regenerate.
6182 * mn10300-tdep.c: Include "gdb_assert.h".
6183 (mn10300_read_fp): New function.
6184 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6185 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6186 * ia64-tdep.c: Include "gdb_assert.h".
6187 (ia64_read_fp): New function.
6188 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6189 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6190 * regcache.c (generic_target_read_sp): Delete function.
6191 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6192 * inferior.h (generic_target_read_sp): Delete declaration.
6193 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6194 generic_target_read_sp.
6195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6196 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6197 * sh-tdep.c (sh_gdbarch_init): Ditto.
6198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6199 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6200
ec5cbaec
AC
62012003-06-07 Andrew Cagney <cagney@redhat.com>
6202
6203 * gdbarch.sh: Comment each field of startup_gdbarch.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205
cde9ea48
AC
62062003-06-07 Andrew Cagney <cagney@redhat.com>
6207
6208 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6209 * gdbarch.h, gdbarch.c: Re-generate.
6210 * regcache.c: Update comments on read_pc et.al.
6211 (generic_target_read_pc): Delete function.
6212 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6213 * inferior.h (generic_target_read_pc): Delete declaration.
6214 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6215 generic_target_read_pc.
6216 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6217 * sh-tdep.c (sh_gdbarch_init): Ditto.
6218 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6220
9a90a780
AC
62212003-06-07 Andrew Cagney <cagney@redhat.com>
6222
6223 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6224 "index" with "special_local_sect". Use strcmp instead of STREQ.
6225 Append period to coments.
6226
a39a16c4
MM
62272003-06-06 Mark Mitchell <mark@codesourcery.com>
6228
6229 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6230 (elfstab_offset_sections): Likewise.
6231 * gdb-stabs.h (stab_section_info): Likewise.
6232 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6233 * objfiles.c (objfile_relocate): Likewise.
6234 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6235 * remote.c (get_offsets): Likewise.
6236 (remote_cisco_objfile_relocate): Likewise.
6237 * somread.c (som_symfile_offsets): Likewise.
6238 * symfile.c (alloc_section_addr_info): New function.
6239 (build_section_addr_info_from_section_tab): Use it.
6240 (free_section_addr_info): Adjust.
6241 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6242 (syms_from_objfile): Allocate local_addr dynamically.
6243 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6244 dynamically.
6245 (add_symbol_file_command): Allocate sect_opts dynamically.
6246 (reread_symbols): Avoid use of SECT_OFF_MAX.
6247 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6248 (alloc_section_addr_info): Declare it.
6249 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6250 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6251 dynamically.
6252 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6253
20c6c2f8
AC
62542003-06-06 Andrew Cagney <cagney@redhat.com>
6255
6256 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6257 (d10v_frame_unwind_cache): Do not set "return_pc".
6258
884a26c8
MS
62592003-06-06 Michael Snyder <msnyder@redhat.com>
6260
6261 * h8300-tdep.c: Make tidy (long lines).
6262
088ce440
ML
62632003-06-06 Michal Ludvig <mludvig@suse.cz>
6264
8ffd9b1b 6265 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6266 to regcache_collect().
6267
7d773d96
JB
62682003-06-05 J. Brobecker <brobecker@gnat.com>
6269
6270 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6271 pc_in_sigtramp multiarch method.
6272 (hppa_hpux_som_init_abi): Use it.
6273 (hppa_hpux_elf_init_abi): Likewise.
6274 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6275 macro has been multiarched.
6276 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6277 macro here, as hppa64 isn't multiarched yet.
6278
1df6926e
AC
62792003-06-05 Andrew Cagney <cagney@redhat.com>
6280
6281 * Makefile.in (value_h): Add $(frame_h).
6282 * value.h: Include "frame.h".
6283 (struct value): Replace "frame_addr" with "frame_id".
6284 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6285 * values.c (allocate_value): Use VALUE_FRAME_ID.
6286 (value_copy): Use VALUE_FRAME_ID.
6287 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6288 * valops.c (value_assign): Update. Use frame_find_by_id.
6289
6b53acc6
ML
62902003-06-05 Michal Ludvig <mludvig@suse.cz>
6291
6292 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6293 in each pass.
6294
4d9850d3
JJ
62952003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6296
6297 * thread-db.c (check_event): For create/death event breakpoints,
6298 loop through all messages to ensure that we read the message
6299 corresponding to the breakpoint we are at.
6300
8efca6ba
MS
63012003-06-04 Michael Snyder <msnyder@redhat.com>
6302
6303 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6304
0912c7f2
MK
63052003-06-04 Mark Kettenis <kettenis@gnu.org>
6306
6307 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6308 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6309 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6310 when handling .eh_frame sections.
6311
4e370325
JB
63122003-06-04 J. Brobecker <brobecker@gnat.com>
6313
6314 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6315 prepare_to_proceed procedure instead of the hppa-specific one.
6316 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6317
b757528f 63182003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6319
b757528f
JJ
6320 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6321 * config.in: Regenerated.
6322 * configure.in: Add test for syscall function and check for
6323 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6324 * configure: Regenerated.
6325 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6326 <sys/syscall.h>.
6327 (kill_lwp): New function that uses tkill syscall or
6328 uses kill, depending on whether threading model is nptl or not.
6329 All callers of kill() changed to use kill_lwp().
6330 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6331 see if all threads have already exited in the nptl model.
6332 (stop_and_resume_callback): New callback function used by the
6333 lin_lwp_wait thread exit handling code.
6334 (stop_wait_callback): Check for threads already having exited and
6335 delete such threads fromt the lwp list when discovered.
6336 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6337
b757528f
JJ
6338 Roland McGrath <roland@redhat.com>
6339 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6340 nptl libthread_db.
6341
087779b1
RH
63422003-06-03 Richard Henderson <rth@redhat.com>
6343
b21fd293
RH
6344 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6345 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6346 (alpha_sigtramp_frame_prev_register): Likewise.
6347 (alpha_heuristic_frame_prev_register): Likewise.
6348 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6349
8ffd9b1b 6350 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6351 alpha-specific register id names.
6352 (alpha_mdebug_frame_unwind_cache): Likewise.
6353 (alpha_mdebug_frame_prev_register): Likewise.
6354
baa490c4
RH
63552003-06-03 Richard Henderson <rth@redhat.com>
6356
6357 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6358 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6359 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6360 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6361 unwind routines.
6362 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6363 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6364 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6365
6366 * alpha-linux-tdep.c: Remove unnecessary includes.
6367 * Makefile.in (alpha-linux-tdep.o): Update.
6368
63692003-06-03 Richard Henderson <rth@redhat.com>
6370
6371 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6372 (alphabsd_fill_fpreg): Likewise.
6373
f534e522
JB
63742003-06-03 J. Brobecker <brobecker@gnat.com>
6375
6376 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6377 references to struct frame_info fields by calls to the equivalent
6378 accessors. Necessary now that frame_info is opaque.
6379
4035536b
JB
63802003-06-03 J. Brobecker <brobecker@gnat.com>
6381
6382 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6383 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6384 structure, field no longer exists.
6385
0bd79c5c
JB
63862003-06-03 J. Brobecker <brobecker@gnat.com>
6387
6388 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6389 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6390
37bb6d9f
JB
63912003-06-03 J. Brobecker <brobecker@gnat.com>
6392
6393 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6394 references to struct frame_info fields by calls to the equivalent
6395 accessors. Necessary now that frame_info is opaque.
6396
852ee05c
JB
63972003-06-03 J. Brobecker <brobecker@gnat.com>
6398
6399 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6400 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6401 structure, field no longer exists.
6402
7d58c67d
TR
64032003-06-03 Theodore A. Roth <troth@openavr.org>
6404
8ffd9b1b 6405 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6406 accumulation of the size of all registers instead of blindly using
6407 DEPRECATED_REGISTER_BYTES.
6408
0a48e7e8
MS
64092003-06-03 Michael Snyder <msnyder@redhat.com>
6410
6411 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6412 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6413 for h8300sx.
6414
9798ab0d
JB
64152003-06-03 J. Brobecker <brobecker@gnat.com>
6416
6417 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6418 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6419
00b037e2
AC
64202003-06-03 Andrew Cagney <cagney@redhat.com>
6421
6422 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6423 (sparc_convert_to_raw): Delete function.
6424 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6425 register_convert_to_virtual.
6426
043b2f77
JJ
64272003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6428
6429 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6430 layer if not dealing with a statically-linked threaded program.
6431
f43caff8
KW
64322003-06-03 Kris Warkentin <kewarken@qnx.com>
6433
6434 * solib.c (solib_open): Update comment to reflect actual search order.
6435
ae1e7417
AC
64362003-06-03 Andrew Cagney <cagney@redhat.com>
6437
6438 * frame.c (get_frame_memory_signed): New function.
6439 (get_frame_memory, get_frame_memory_unsigned): New function.
6440 (get_frame_arch): New function.
6441 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6442 (get_frame_memory, get_frame_unsigned_memory): Declare.
6443 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6444 get_frame_memory_unsigned and get_frame_arch.
6445 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6446
cb123844
RG
64472003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6448
6449 * MAINTAINERS (write after approval): Add myself.
6450
1bb792e9
JB
64512003-06-03 Jim Blandy <jimb@redhat.com>
6452
6453 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6454 elements of gregset_t are 64 bits each, but access registers
6455 are still 32 bits, so they're packed two per gregset_t
6456 element. Unpack/pack them properly.
6457
aee8d8ba
DC
64582003-06-02 David Carlton <carlton@bactrian.org>
6459
6460 * linespec.c (find_methods): Break out code into
6461 add_matching_methods and add_constructors.
6462 (add_matching_methods): New.
6463 (add_constructors): Ditto.
6464
bf7488d2
AC
64652003-06-02 Andrew Cagney <cagney@redhat.com>
6466
bf7488d2
AC
6467 * sparc-tdep.c (sparc_print_registers): Delete call to
6468 REGISTER_CONVERTIBLE.
6469 (sparc_gdbarch_init): Do not set register_convertible.
6470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6471 * frv-tdep.c (frv_gdbarch_init): Ditto.
6472 * cris-tdep.c (cris_gdbarch_init): Ditto.
6473
adedef68
EZ
64742003-06-02 Elena Zannoni <ezannoni@redhat.com>
6475
8ffd9b1b 6476 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6477 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6478 (syms_from_objfile): Ditto.
6479
650fcc91
AS
64802003-06-03 Andreas Schwab <schwab@suse.de>
6481
6482 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6483 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6484
df4a182b
RH
64852003-06-02 Richard Henderson <rth@redhat.com>
6486
6487 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6488 a member of all_reggroup.
6489
c483c494
RH
64902003-06-02 Richard Henderson <rth@redhat.com>
6491
6492 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6493 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6494 (alpha_lds, alpha_sts): New.
6495 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6496 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6497 restructure and fail for type sizes other than 4 or 8.
6498 (alpha_value_to_register): Similarly.
6499 (alpha_extract_return_value): Use alpha_sts.
6500 (alpha_store_return_value): Use alpha_lds.
6501 (alpha_gdbarch_init): Update hooks.
6502
b38b6be2
RH
65032003-06-02 Richard Henderson <rth@redhat.com>
6504
6505 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6506 regnum identifiers.
6507 (alpha_sigtramp_register_address): Likewise.
6508
98a8e1e5
RH
65092003-06-02 Richard Henderson <rth@redhat.com>
6510
6511 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6512 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6513 * alpha-tdep.h: Declare them.
6514
6515 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6516 Remove zerobuf. Don't error on UNIQUE.
6517 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6518 (ALPHA_REGSET_UNIQUE): Provide default.
6519 (supply_gregset): Use alpha_supply_int_regs.
6520 (fill_gregset): Use alpha_fill_int_regs.
6521 (supply_fpregset): Use alpha_supply_fp_regs.
6522 (fill_fpregset): Use alpha_fill_fp_regs.
6523 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6524 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6525 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6526 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6527 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6528 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6529
67dfac52
RH
65302003-06-02 Richard Henderson <rth@redhat.com>
6531
f75d70cc
RH
6532 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6533
67dfac52
RH
6534 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6535 (alpha_store_return_value): Likewise.
6536
0cf566ec
DC
65372003-06-02 David Carlton <carlton@math.stanford.edu>
6538
6539 * block.c (contained_in): Add 'const' to arguments.
6540 (block_function): Ditto.
6541 * block.h: Update declarations for block_function and
6542 contained_in.
6543
cdef89d0
DC
65442003-06-02 David Carlton <carlton@math.stanford.edu>
6545
6546 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6547 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6548 * p-valprint.c (pascal_val_print): Ditto.
6549 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6550
72667056
RH
65512003-06-02 Richard Henderson <rth@redhat.com>
6552
98a8e1e5
RH
6553 * alpha-tdep.c (alpha_push_dummy_call): Use
6554 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6555
8ffd9b1b 6556 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6557 sign-extension of 32-bit values.
6558 (alpha_store_return_value): Similarly.
0ede8eca 6559
98a8e1e5
RH
6560 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6561 (alpha_extract_return_value): Likewise.
6562 (alpha_store_return_value): Likewise.
7b5e1cb3 6563
98a8e1e5
RH
6564 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6565 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6566
98a8e1e5
RH
6567 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6568 (alpha_extract_struct_value_address): Likewise.
6569 (alpha_store_return_value): Likewise.
6570 (alpha_store_struct_return): Remove.
6571 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6572
98a8e1e5
RH
6573 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6574 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6575 macros where appropriate.
6576 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6577 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6578
98a8e1e5
RH
6579 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6580 for SP, GP; void_func_ptr for PC; non-language-specific types
6581 for all others.
6582 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6583
6dd77b81
RH
65842003-06-02 Richard Henderson <rth@redhat.com>
6585
6586 * top.h (lim_at_start): Declare.
6587 * main.c (captured_main): Set it.
6588 * top.c (lim_at_start): Define.
6589 (command_loop): Use it instead of &environ.
6590 * event-top.c (command_handler): Likewise.
6591
f4dbdb54
JT
65922003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6593
6594 * mipsnbsd-tdep.c: Update copyright years.
6595 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6596
8f285956
RH
65972003-06-01 Richard Henderson <rth@redhat.com>
6598
98a8e1e5
RH
6599 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6600 (alpha-linux-tdep.o): Update dependencies.
6601 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6602 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6603
615967cb
RH
66042003-06-01 Richard Henderson <rth@redhat.com>
6605
98a8e1e5
RH
6606 * alpha-tdep.c (alpha_register_reggroup_p): New.
6607 (alpha_gdbarch_init): Register it.
615967cb 6608
b59661bd
AC
66092003-06-02 Andrew Cagney <cagney@redhat.com>
6610
6611 * dwarfread.c: Eliminate "register"
6612 (decode_die_type): Eliminate assignment within "if".
6613 (struct_type, decode_array_element_type): Ditto.
6614 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6615 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6616 (decode_modified_type, completedieinfo): Ditto.
6617 * block.c: Eliminate "register".
6618 (blockvector_for_pc_sect): Eliminate assignment within "if".
6619 * cp-support.h (struct symbol): Opaque declaration.
6620 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6621
5ef165c2
RH
66222003-06-01 Richard Henderson <rth@redhat.com>
6623
98a8e1e5
RH
6624 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6625 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6626
143985b7
AF
66272003-06-01 Adam Fedor <fedor@gnu.org>
6628
6629 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6630 * gdbarch.[ch]: Regenerate.
6631 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6632 (hppa_gdbarch_init): Set it in the gdbarch vector.
6633 * i386-tdep.c (i386_fetch_pointer_argument): New
6634 (i386_gdbarch_init): Set it into gdbarch.
6635 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6636 (rs6000_gdbarch_init): Set it in gdbarch.
6637 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6638 (sparc_gdbarch_init): Set it in gdbarch.
6639
ae0167b9
AC
66402003-06-01 Andrew Cagney <cagney@redhat.com>
6641
7c0b4a20
AC
6642 * defs.h (extract_address): Delete declaration.
6643 * findvar.c (extract_address): Delete function.
6644 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6645 extract_address with the inline equivalent,
6646 extract_unsigned_integer.
6647 (xstormy16_extract_struct_value_address): Ditto.
6648 (xstormy16_pointer_to_address): Ditto.
6649 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6650 * v850-tdep.c (v850_push_arguments): Ditto.
6651 (v850_extract_return_value): Ditto.
6652 (v850_extract_struct_value_address): Ditto.
6653 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6654 (sparcnbsd_get_longjmp_target_64): Ditto.
6655 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6656 (get_longjmp_target): Ditto.
6657 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6658 (sh64_extract_struct_value_address): Ditto.
6659 (sh_push_arguments): Ditto.
6660 (sh64_push_arguments): Ditto.
6661 * remote-vxsparc.c (vx_read_register): Ditto.
6662 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6663 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6664 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6665 * mipsv4-nat.c (get_longjmp_target): Ditto.
6666 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6667 * mips-nat.c (get_longjmp_target): Ditto.
6668 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6669 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6670 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6671 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6672 * irix5-nat.c (get_longjmp_target): Ditto.
6673 * irix4-nat.c (get_longjmp_target): Ditto.
6674 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6675 (ia64_push_arguments): Ditto.
6676 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6677 * h8300-tdep.c (h8300_push_arguments): Ditto.
6678 (h8300_store_return_value): Ditto.
6679 (h8300_extract_struct_value_address): Ditto.
6680 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6681 (frv_push_arguments): Ditto.
6682 * avr-tdep.c (avr_pointer_to_address): Ditto.
6683 (avr_push_arguments): Ditto.
6684 * arm-tdep.c (arm_push_dummy_call): Ditto.
6685 (arm_get_longjmp_target): Ditto.
6686 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6687 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6688 (alpha_get_longjmp_target): Ditto.
6689
ae0167b9
AC
6690 * solib-irix.c (extract_mips_address): Inline extract_address,
6691 replacing it with extract_signed_integer.
6692 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6693 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6694 (first_link_map_member, open_symbol_file_object): Ditto.
6695 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6696 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6697 (LM_NEXT, LM_NAME): Ditto.
6698
44d88583
RH
66992003-06-01 Richard Henderson <rth@redhat.com>
6700
98a8e1e5
RH
6701 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6702 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6703 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6704 (alpha_cannot_store_register): Likewise.
6705 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6706 * alpha-nat.c (supply_gregset): Likewise.
6707 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6708
310e9b6a
AC
67092003-06-01 Andrew Cagney <cagney@redhat.com>
6710
6711 * infcall.c (call_function_by_hand): Update comment on
6712 DEPRECATED_DUMMY_WRITE_SP.
6713
6714 * mips-tdep.c (mips_gdbarch_init): Do not set
6715 deprecated_dummy_write_sp.
6716 (mips_eabi_push_dummy_call): Set the SP register.
6717 (mips_o64_push_dummy_call): Set the SP register.
6718 (mips_o32_push_dummy_call): Set the SP register.
6719 (mips_n32n64_push_dummy_call): Set the SP register.
6720
5ab84872
RH
67212003-06-01 Richard Henderson <rth@redhat.com>
6722
98a8e1e5
RH
6723 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6724 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6725 (supply_gregset): Likewise.
6726 * alpha-tdep.c (alpha_store_return_value): Likewise.
6727 (alpha_get_longjmp_target): Likewise.
6728 (alpha_register_name): Constify array.
6729 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6730 deprecated_register_size, deprecated_register_bytes,
6731 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6732 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6733 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6734
09cc52fd
RH
67352003-06-01 Richard Henderson <rth@redhat.com>
6736
6737 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6738 from arg_reg_buffer to regcache to avoid double conversion.
6739
c7f16359
MK
67402003-06-01 Mark Kettenis <kettenis@gnu.org>
6741
6742 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6743 SP_REGNUM.
6744 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6745 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6746
7131cb6e
RH
67472003-06-01 Richard Henderson <rth@redhat.com>
6748
98a8e1e5
RH
6749 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6750 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6751
f3e0f90b
RH
67522003-06-01 Richard Henderson <rth@redhat.com>
6753
98a8e1e5
RH
6754 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6755 not overlapping PC_REGNUM.
f3e0f90b 6756
c88e30c0
RH
67572003-06-01 Richard Henderson <rth@redhat.com>
6758
98a8e1e5
RH
6759 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6760 alpha_push_arguments. Don't dump argument register data to
6761 the target stack. Fix float and 128-bit long double semantics.
6762 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6763 (alpha_fix_call_dummy): Remove.
6764 (alpha_call_dummy_words): Remove.
6765 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6766
f1a559ae
RH
67672003-06-01 Richard Henderson <rth@redhat.com>
6768
6769 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6770
5e045346
AC
67712003-06-01 Andrew Cagney <cagney@redhat.com>
6772
95404a3e
AC
6773 * mips-tdep.c (is_mips16_addr): New function.
6774 (make_mips16_addr, unmake_mips16_addr): New functions.
6775 (pc_is_mips16, mips_fetch_instruction): Use.
6776 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6777 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6778 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6779 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6780 TARGET_MIPS.
6781 * config/mips/tm-mips.h: Update copyright.
6782 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6783 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6784 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6785 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6786 (TM_PRINT_INSN_MACH): Delete.
6787 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6788
5e045346
AC
6789 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6790 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6791 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6792 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6793 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6794 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6795 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6796 mips*-*-riscos* and mips*-*-sysv* onto mips.
6797 * config/mips/mips64.mt: New file.
6798 * config/mips/mips.mt: New file.
6799 * config/mips/littlemips.mt: Delete file.
6800 * config/mips/decstation.mt: Delete file.
6801 * config/mips/vr4300el.mt: Delete file.
6802 * config/mips/vr5000el.mt: Delete file.
6803 * config/mips/vr5000.mt: Delete file.
6804 * config/mips/vr4100.mt: Delete file.
6805 * config/mips/vr4xxxel.mt: Delete file.
6806 * config/mips/vr4300.mt: Delete file.
6807 * config/mips/vr4xxx.mt: Delete file.
6808 * config/mips/bigmips.mt: Delete file.
6809 * config/mips/bigmips64.mt: Delete file.
6810 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6811 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6812 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6813 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6814 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6815 "tm-bigmips.h".
6816 * config/mips/tm-irix3.h: Ditto.
6817 * config/mips/tm-mipsv4.h: Ditto.
6818 * config/mips/tm-embed.h: Ditto.
6819 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6820 "tm-bigmips64.h".
6821 * config/mips/tm-vr5000el.h: Delete file.
6822 * config/mips/tm-tx39l.h: Delete file.
6823 * config/mips/tm-vr4300el.h: Delete file.
6824 * config/mips/tm-vr4xxxel.h: Delete file.
6825 * config/mips/tm-vr4300.h: Delete file.
6826 * config/mips/tm-vr4100.h: Delete file.
6827 * config/mips/tm-vr4xxx.h: Delete file.
6828 * config/mips/tm-vr5000.h: Delete file.
6829 * config/mips/tm-embedl64.h: Delete file.
6830 * config/mips/tm-embedl.h: Delete file.
6831 * config/mips/tm-embed64.h: Delete file.
6832 * config/mips/tm-bigmips64.h: Delete file.
6833 * config/mips/tm-bigmips.h: Delete file.
6834
2473a4a9
MK
68352003-06-01 Mark Kettenis <kettenis@gnu.org>
6836
97a5b208
MK
6837 Fix gdb/1216.
6838 * shnbsd-nat.c: Include "sh-tdep.h".
6839
2473a4a9
MK
6840 From Richard Henderson <rth@redhat.com>:
6841 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6842
e0f7ec59
AC
68432003-05-31 Andrew Cagney <cagney@redhat.com>
6844
6845 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6846 forward declaration.
6847 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6848 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6849 (mips_find_saved_regs): Use set_reg_offset.
6850 (mips_frame_init_saved_regs): Delete function.
6851 (mips_pop_frame): Call mips_find_saved_regs instead of
6852 DEPRECATED_FRAME_INIT_SAVED_REGS.
6853
68dcc709
AC
68542003-05-31 Andrew Cagney <cagney@redhat.com>
6855
6856 * mips-tdep.c (mips_gdbarch_init): Do not set
6857 deprecated_max_register_raw_size, register_virtual_size, and
6858 deprecated_max_register_virtual_size.
6859
cfc14b3a
MK
68602003-05-31 Mark Kettenis <kettenis@gnu.org>
6861
6405b0a6
MK
6862 * i386-tdep.c: Include "dwarf2-frame.h".
6863 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6864 * Makefile.in (i386-tdep.o): Update dependencies.
6865
cfc14b3a
MK
6866 * dwarf2-frame.c, dwarf2-frame.h: New files.
6867 * Makefile.in (SFILES): Add dwarf2-frame.c.
6868 (dwarf2_frame_h): Define.
6869 (COMMON_OBS): Add dwarf2-frame.o.
6870 (dwarf2-frame.o): Add dependencies.
6871
6a2751d2
AJ
68722003-05-31 Andreas Jaeger <aj@suse.de>
6873
6874 * x86-64-linux-nat.c: Fix comment.
6875
1c3545ae
MK
68762003-05-31 Mark Kettenis <kettenis@gnu.org>
6877
10f93086
MK
6878 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6879 function signature.
6880
1c3545ae
MK
6881 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6882 have a sigcontext_addr handler.
6883 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6884 sigcontext_addr handler.
6885
e11c53d2
AC
68862003-05-31 Andrew Cagney <cagney@redhat.com>
6887
6888 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6889 (print_fp_register_row): Replace do_fp_register_row.
6890 (mips_print_fp_register): Add "file" and "frame" parameters.
6891 (mips_print_register): Add "file" and "frame" parameters.
6892 (mips_print_registers_info): Replace mips_do_registers_info.
6893 (mips_gdbarch_init): Set print_registers_info instead of
6894 deprecated_do_registers_info.
6895 (mips_read_fp_register_single): Add "frame" parameter.
6896 (mips_read_fp_register_double): Add "frame" parameter.
6897
a3386186
MK
68982003-05-31 Mark Kettenis <kettenis@gnu.org>
6899
70913449
MK
6900 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6901 Fixes a bug where GDB would print the wrong register names for
6902 targets without SSE.
6903
2b5e0749
MK
6904 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6905 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6906 registers.
6907
6908 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6909 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6910 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6911 TDEP->sc_sp_offset.
6912
a3386186
MK
6913 From Michal Ludvig <mludvig@suse.cz>:
6914 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6915 and `sc_num_regs'.
6916 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6917 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6918 I386_ST0_REGNUM): Move here from...
6919 * i386-tdep.c: ... here.
6920 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6921 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6922 registers if possible.
6923 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6924 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6925 Remove variables.
6926 (i386bsd_sc_reg_offset): New variable.
6927 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6928 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6929 TDEP->sc_sp_offset.
6930 (i386fbsd_sc_reg_offset): New variable.
6931 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6932 TDEP->sc_num_regs.
6933 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6934 variables.
6935 (i386fbsd4_sc_reg_offset): New variable.
6936 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6937 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6938 TDEP->sc_sp_offset.
6939 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6940 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6941 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6942 Remove variables.
6943 (i386nbsd_sc_reg_offset): New variable.
6944 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6945 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6946 TDEP->sc_sp_offset.
6947 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6948 Remove variables.
6949 (i386obsd_sc_reg_offset): New variable.
6950 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6951 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6952 TDEP->sc_sp_offset.
6953 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6954 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6955 for frame pointer offset in `struct sigcontext'.
6956
25ab4790
AC
69572003-05-31 Andrew Cagney <cagney@redhat.com>
6958
6959 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6960 architecture methods call_dummy_words, sizeof_call_dummy_words,
6961 push_return_address, store_struct_return, and fix_call_dummy. Set
6962 push_dummy_call instead of deprecated_push_arguments.
6963 (mips_store_struct_return): Delete function.
6964 (mips_fix_call_dummy): Delete function.
6965 (mips_push_return_address): Delete function.
6966 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6967 RA_REGNUM and T9_REGNUM.
6968 (mips_n32n64_push_dummy_call): Ditto for
6969 mips_n32n64_push_arguments.
6970 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6971 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6972
6a65450a
AC
69732003-05-31 Andrew Cagney <cagney@redhat.com>
6974
6975 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6976 "dummy_addr" to "bp_addr".
6977 * infcall.c (call_function_by_hand): Pass "funaddr" to
6978 gdbarch_push_dummy_call.
6979 * gdbarch.h, gdbarch.c: Re-generate.
6980 * i386-tdep.c (i386_push_dummy_call): Update.
6981 * arm-tdep.c (arm_push_dummy_call): Update.
6982 * d10v-tdep.c (d10v_push_dummy_call): Update.
6983
c4f35dd8
MK
69842003-05-31 Mark Kettenis <kettenis@gnu.org>
6985
6986 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6987 variable declarations.
6988 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6989 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6990 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6991 x86_64_init_frame_pc, x86_64_init_frame_pc,
6992 x86_64_function_has_prologue): Remove prototypes.
6993 (X86_64_NUM_GREGS): New define.
6994 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6995 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6996 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6997 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6998 XMM1_REGNUM): Remove defines.
6999 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7000 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7001 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7002 X86_64_XMM1_REGNUM): New defines.
7003 (struct x86_64_register_info): Renamed from `struct
7004 register_info'. Remove `size' member.
7005 (x86_64_register_info_table): Remove variable.
7006 (x86_64_register_info): New variable.
7007 (X86_64_NUM_REGS): New define.
7008 (X86_64_NUM_GREGS): Remove define.
7009 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7010 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7011 Remove variables.
7012 (x86_54_dwarf2_reg_to_regnum): Remove function.
7013 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7014 (x86_64_dwarf_reg_to_regnum): New function.
7015 (x86_64_register_name): Rewrite.
7016 (x86_64_register_raw_size): Remove function.
7017 (x86_64_register_byte_table): Remove variable.
7018 (x86_64_register_byte): Remove function.
7019 (x86_64_register_virtual_type): Remove function.
7020 (x86_64_register_type): New function.
7021 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7022 x86_64_register_convert_to_raw): Remove functions.
7023 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7024 (x86_64_use_struct_convention): Make static. Adjust for renamed
7025 defines.
7026 (x86_64_frame_init_saved_regs): Remove function.
7027 (x86_64_push_arguments): Make static. Change to accept a regcache
7028 as argument.
7029 (x86_64_store_return_value, x86_64_extract_return_value): Make
7030 static. Rewrite based on i386 counterparts.
7031 (x86_64_push_dummy_call): New function.
7032 (X86_64_NUM_SAVED_REGS): New define.
7033 (x86_64_register_number): Remove function.
7034 (x86_64_store_struct_return): Remove function.
7035 (x86_64_frameless_function_invocation,
7036 x86_64_function_has_prologue): Remove functions.
7037 (PROLOG_BUFSIZE): Remove define.
7038 (struct x86_64_frame_cache): New structure.
7039 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7040 x86_64_frame_cache, x86_64_frame_this_id,
7041 x86_64_frame_prev_register, x86_64_frame_p,
7042 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7043 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7044 functions.
7045 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7046 variables.
7047 (x86_64_skip_prologue): Rewrite in terms of
7048 x86_64_analyze_prologue.
7049 (x86_64_frame_base_address): New function.
7050 (x86_64_frame_base): New variable.
7051 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7052 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7053 set deprecated_fp_regnum, deprecated_register_size,
7054 deprecated_register_bytes, register_raw_size, register_byte,
7055 register_virtual_type, register_convertiable,
7056 register_convert_to_virtual, convert_to_raw,
7057 deprecated_get_saved_register, deprecated_target_read_fp,
7058 deprecated_push_arguments, deprecated_push_return_address,
7059 deprecated_pop_frame, deprecated_store_struct_return,
7060 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7061 frameless_function_invocation, deprecated_frame_saved_pc,
7062 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7063 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7064 deprecated_init_frame_pc and virtual_frame_pointer. Call
7065 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7066 and x86_64_frame_p. Call frame_base_set_default to register
7067 x86_64_frame_base.
7068 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7069 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7070 (_initialize_x86_64_tdep): Remove function.
7071 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7072 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7073 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7074 define.
7075 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7076 (x86_64_linux_sigcontext_addr): Rewrite.
7077 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7078 x86_64_linux_frame_saved_pc): Remove functions.
7079 (x86_64_linux_pc_in_sigtramp): Renamed from
7080 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7081 trampoline.
7082 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7083 Remove_functions.
7084 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7085 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7086 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7087 (x86_64_regmap): Rename to regmap.
7088 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7089 x86_64_num_gregs.
7090 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7091 x86_64_regmap.
7092 (x86_64_fxsave_offset): Remove function.
7093 (supply_fpregset): Simply call x86_64_supply_fxsave.
7094 (fill_fpregset): Simply call x86_64_fill_fxsave.
7095 (fetch_inferior_registers, store_inferior_registers): Avoid
7096 asignment in if-statement.
7097 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7098 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7099 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7100 (fetch_core_registers): Remove function.
7101 (linux_elf_core_fns): Remove.
7102 (offsetoff): Don't define.
7103 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7104 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7105 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7106 add core-regset.o.
7107 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7108 protection against multiple includes instead of NM_X86_64_h. Add
7109 various comments. Include "config/nm-linux.h". Don't include
7110 <signal.h>.
7111 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7112 GET_THREAD_SIGNALS): Remove defines.
7113 (x86_64_register_u_addr, kernel_u_size,
7114 lin_thread_get_thread_signals): Remove prototypes.
7115 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7116 [HAVE_LINK_H]: Don't include "solib.h".
7117 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7118 * config/i386/tm-x86-64linux.h: Fix comments.
7119 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7120 x86-64-tdep.o): Update dependencies.
7121
c25083af
AC
71222003-05-30 Andrew Cagney <cagney@redhat.com>
7123
c8f55a7b
AC
7124 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7125 Change parameter type to a "struct regcache *".
7126
c25083af
AC
7127 * gdbarch.sh: Regardless of the multi-arch level, always define
7128 the macro when not already defined.
7129 * gdbarch.h, gdbarch.c: Re-generate.
7130
fbe586ae
RH
71312003-05-30 Richard Henderson <rth@redhat.com>
7132
7133 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7134 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7135 (alpha_mdebug_frame_this_id): Likewise.
7136 (alpha_mdebug_frame_prev_register): Likewise.
7137 (alpha_mdebug_frame_base_address): Likewise.
7138 (alpha_mdebug_frame_locals_address): Likewise.
7139 (alpha_mdebug_frame_args_address): Likewise.
7140 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7141 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7142 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7143 loop increment.
7144 (alpha_heuristic_frame_this_id): Make static.
7145 (alpha_heuristic_frame_prev_register): Likewise.
7146 (alpha_heuristic_frame_base_address): Likewise.
7147 * alpha-tdep.h: Update.
7148
acd5c798
MK
71492003-05-30 Mark Kettenis <kettenis@gnu.org>
7150
7151 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7152 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7153 defenitions.
7154 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7155 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7156 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7157 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7158 I386_ST0_REGNUM): New defines.
7159 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7160 codestream_get): Remove define.
7161 (codestream_next_addr, condestream_addr, condestream_buf,
7162 codestream_off, codestream_cnt): Remove variables.
7163 (codestream_fill, codestream_seek, codestream_read): Remove
7164 functions.
7165 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7166 functionality.
7167 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7168 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7169 i386_frame_saved_pc, i386_saved_pc_after_call,
7170 i386_frame_num_args, i386_frame_init_saved_regs,
7171 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7172 i386_push_arguments): Remove functions.
7173 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7174 functionality. Use i386_analyze_prologue instead of
7175 i386_get_frame_setup.
7176 (I386_NUM_SAVED_REGS): New define.
7177 (struct i386_frame_cache): New structure.
7178 (i386_alloc_frame_cache, i386_analyze_struct_return,
7179 i386_skip_probe, i386_analyze_frame_setup,
7180 i386_analyze_register_saves, i386_analyze_prologue,
7181 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7182 i386_frame_prev_register, i386_sigtramp_frame_cache,
7183 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7184 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7185 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7186 New functions.
7187 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7188 New variables.
7189 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7190 I386_EAX_REGNUM and I386_EDX_REGNUM.
7191 (i386_extract_return_value, i386_store_return_value): Use
7192 I386_ST0_REGNUM where appropriate.
7193 (i386_extract_struct_value_address): Rewrite to use extract_address.
7194 (i386_svr4_pc_in_sigtramp): Add comment.
7195 (i386_svr4_sigcontext_addr): Rewrite.
7196 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7197 TDEP->sc_sp_offset.
7198 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7199 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7200 of new defines. Set push_dummy_call, don't set
7201 deprecated_push_arguments, deprecated_push_return_address,
7202 deprecated_pop_frame. Don't set parm_boundary. Don't set
7203 deprecated_frame_chain, deprecated_frame_saved_pc,
7204 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7205 save_dummy_frame_tos, unwind_pc. Call
7206 frame_unwind_append_predicate and frame_base_set_default. Don't
7207 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7208 Don't set frameless_function_invocation. Don't set
7209 deprecated_register_bytes, deprecated_register_size,
7210 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7211 * i386-linux-tdep.c: Fix formatting in some comments.
7212 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7213 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7214 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7215 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7216 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7217 redundant parentheses.
7218 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7219 (i386_linux_sigcontext_addr): Use it. Rewrite.
7220 (find_minsym_and_objfile): Change name of second argument.
7221 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7222 changed. Use frame_pc_unwind instead of
7223 DEPRECATED_SAVED_PC_AFTER_CALL.
7224 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7225 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7226 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7227 unwinder.
7228 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7229 "dummy-frame.h".
7230 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7231 (_initialize_i386_cygwin_tdep): New prototype.
7232 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7233 deprecated_frame_chain_valid.
7234 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7235 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7236 Rely on the SVR4 defaults.
7237 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7238 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7239
c89b70f1
AC
72402003-05-30 Andrew Cagney <cagney@redhat.com>
7241
7242 * infcall.c (call_function_by_hand): Always call
7243 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7244
85b32d22
RH
72452003-05-30 Richard Henderson <rth@redhat.com>
7246
c89b70f1
AC
7247 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7248 increment.
85b32d22 7249
bfe51b1e
JB
72502003-05-29 Jim Blandy <jimb@redhat.com>
7251
7252 Use gdbarch methods for solib stuff on PowerPC Linux.
7253 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7254 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7255 show through.
7256 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7257 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7258 giving the same effect as the #definitions above.
7259
1abf022c
AF
72602003-05-29 Adam Fedor <fedor@gnu.org>
7261
7262 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7263 (find_implementation_from_class): Replace it with the standard
7264 case i.e. do nothing.
7265
d2427a71
RH
72662003-05-29 Richard Henderson <rth@redhat.com>
7267
7268 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7269 (alpha_linux_sigtramp_offset): Use it. Make static.
7270 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7271 update for new frame model.
7272 * alpha-mdebug-tdep.c: New file.
7273 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7274 (alpha_osf1_init_abi): Install it.
7275 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7276 (linked_proc_desc_table): Remove.
7277 (alpha_frame_past_sigtramp_frame): Remove.
7278 (alpha_dynamic_sigtramp_offset): Remove.
7279 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7280 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7281 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7282 (push_sigtramp_desc): Remove.
7283 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7284 (alpha_cannot_store_register): Likewise.
7285 (alpha_sigcontext_addr): Remove.
7286 (alpha_find_saved_regs): Remove.
7287 (alpha_frame_init_saved_regs): Remove.
7288 (alpha_init_frame_pc_first): Remove.
7289 (read_next_frame_reg): Remove.
7290 (alpha_frame_saved_pc): Remove.
7291 (alpha_saved_pc_after_call): Remove.
7292 (temp_proc_desc, temp_saved_regs): Remove.
7293 (alpha_about_to_return): Remove.
7294 (cached_proc_desc): Remove.
7295 (alpha_frame_chain): Remove.
7296 (alpha_print_extra_frame_info): Remove.
7297 (alpha_init_extra_frame_info): Remove.
7298 (alpha_frame_locals_address): Remove.
7299 (alpha_frame_args_address): Remove.
7300 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7301 (alpha_push_dummy_frame): Remove.
7302 (alpha_pop_frame): Remove.
7303 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7304 (alpha_read_insn): New.
7305 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7306 for different insn encodings.
7307 (alpha_in_lenient_prologue): Remove.
7308 (struct alpha_sigtramp_unwind_cache): New.
7309 (alpha_sigtramp_frame_unwind_cache): New.
7310 (alpha_sigtramp_register_address): New.
7311 (alpha_sigtramp_frame_this_id): New.
7312 (alpha_sigtramp_frame_prev_register): New.
7313 (alpha_sigtramp_frame_unwind): New.
7314 (alpha_sigtramp_frame_p): New.
7315 (struct alpha_heuristic_unwind_cache): New.
7316 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7317 don't count nop insns that occur between functions.
7318 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7319 heuristic_proc_desc, but without the mdebug wrapping.
7320 (alpha_heuristic_frame_this_id): New.
7321 (alpha_heuristic_frame_prev_register): New.
7322 (alpha_heuristic_frame_unwind): New.
7323 (alpha_heuristic_frame_p): New.
7324 (alpha_heuristic_frame_base_address): New.
7325 (alpha_heuristic_frame_base): New.
7326 (alpha_unwind_dummy_id): New.
7327 (alpha_unwind_pc): New.
7328 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7329 frame related deprecated initializations; install replacements.
7330 (alpha_dump_tdep): Remove.
7331 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7332 (alpha_read_insn, alpha_after_prologue,
7333 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7334 alpha_heuristic_frame_prev_register,
7335 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7336 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7337 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7338 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7339
93ec1121
AC
73402003-05-29 Andrew Cagney <cagney@redhat.com>
7341
7342 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7343 dependant on the availability of ASSERT_FUNCTION.
7344 (ASSERT_FUNCTION): Do not define when there is no function name.
7345
98f08d3d
KB
73462003-05-29 Kevin Buettner <kevinb@redhat.com>
7347
7348 From Jimi X <jimix@watson.ibm.com>:
7349 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7350
0897f59b
JB
73512003-05-28 Jim Blandy <jimb@redhat.com>
7352
7353 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7354 argument to ptrace to int; the system headers should give it the
7355 right type, and pointers don't fit in ints on powerpc64-*-*.
7356
14898363
L
73572003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7358
7359 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7360 DW_TAG_catch_block.
7361
a7a48797
EZ
73622003-05-26 Elena Zannoni <ezannoni@redhat.com>
7363
7364 * stabsread.c (dbx_lookup_type): Make static.
7365 (read_type): Ditto.
7366 (add_undefined_type): Ditto.
7367 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7368 not export.
7369
f5479e9c
EZ
73702003-05-26 Elena Zannoni <ezannoni@redhat.com>
7371
7372 * hpread.c (hpread_has_name): Make static.
7373 (hpread_psymtab_to_symtab): Ditto.
7374 (file_exists): Ditto.
7375 (hpread_call_pxdb): Ditto.
7376 (hpread_pxdb_needed): Ditto.
7377 (hpread_quick_traverse): Ditto.
7378 (hpread_get_header): Ditto.
7379 (hpread_get_lntt): Ditto.
7380 (hpread_get_slt): Ditto.
7381 (class_of): Ditto.
7382
eb2e12d7
AS
73832003-05-25 Andreas Schwab <schwab@suse.de>
7384
78bf922a
AS
7385 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7386 stack_align and deprecated_extra_stack_alignment_needed.
7387 (m68k_stack_align): Delete.
7388
eb2e12d7
AS
7389 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7390 (m68k_register_virtual_size): Likewise.
7391 (altos_skip_prologue): Remove obsolete function.
7392 (isi_frame_num_args): Likewise.
7393 (news_frame_num_args): Likewise.
7394 (m68k_fix_call_dummy): Make static.
7395 (m68k_push_dummy_frame): Likewise.
7396 (m68k_pop_frame): Likewise.
7397 (m68k_skip_prologue): Likewise.
7398 (m68k_frame_init_saved_regs): Likewise.
7399 (m68k_saved_pc_after_call): Likewise.
7400 (m68k_get_longjmp_target): Make multi-arch.
7401 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7402 structure. Register m68k_get_longjmp_target if enabled.
7403 * m68k-tdep.h (struct gdbarch_tdep): Define.
7404 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7405
7406 * Makefile.in (config.status): Also depend on configure.tgt
7407 and configure.host.
7408 (m68klinux-tdep.o): Update dependencies.
7409 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7410 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7411 (M68K_LINUX_JB_PC): Define.
7412 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7413 and take additional parameter.
7414 (m68k_linux_sigtramp_saved_pc): Update.
7415 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7416 m68k_linux_pc_in_sigtramp, in_plt_section,
7417 find_solib_trampoline_target.
7418 * config/m68k/tm-linux.h: Don't include any tm headers.
7419 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7420 (JB_ELEMENT_SIZE): Likewise.
7421 (JB_PC): Likewise.
7422 (GET_LONGJMP_TARGET): Likewise.
7423 (IN_SIGTRAMP): Likewise.
7424 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7425
eb2c22dc
MK
74262003-05-25 Mark Kettenis <kettenis@gnu.org>
7427
7428 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7429 (sparc32_push_arguments): Re-implement by calling
7430 sparc32_do_push_arguments.
7431
44b7b84e
MK
74322003-05-25 Mark Kettenis <kettenis@gnu.org>
7433
7434 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7435 SPARC_O1_REGNUM): New defines.
7436 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7437 (sparc32_store_return_value): New function.
7438 (sparc_extract_struct_value_address): Rewrite to operate on a
7439 regcache.
7440 (sparc_gdbarch_init): Don't set
7441 deprecated_extract_struct_value_address. Set
7442 extract_struct_value_address instead. Don't set
7443 deprecated_extract_return_value and deprecated_store_return_value
7444 for 32-bit targets. Set extract_return_value and
7445 store_return_value instead.
7446 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7447 DEPRECTAED_EXTRACT_RETURN_VALUE,
7448 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7449 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7450 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7451 (sparc_store_return_value): Remove prototype.
7452 (sparc32_store_return_value): New prototype.
7453 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7454 Adjust prototypes.
7455
f6ad61e3
MK
74562003-05-24 Mark Kettenis <kettenis@gnu.org>
7457
7458 * sparcnbsd-tdep.c: Include "gdb_string.h".
7459
b276f1bb
AC
74602003-05-23 Andrew Cagney <cagney@redhat.com>
7461
7462 * p-valprint.c (pascal_val_print): Replace extract_address with
7463 the inline equivalent extract_unsigned_integer.
7464 * jv-valprint.c (java_value_print): Ditto.
7465 * ada-valprint.c (ada_val_print_1): Ditto.
7466 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7467
e76c5fcc
TR
74682003-05-23 Theodore A. Roth <troth@openavr.org>
7469
7470 * blockframe.c (frameless_look_for_prologue): Remove unused
7471 after_prologue variable.
7472
2cdd89cb
MK
74732003-05-23 Mark Kettenis <kettenis@gnu.org>
7474
7475 * blockframe.c (get_pc_function_start): Rewrite to avoid
7476 asignments in if-statements.
7477
182d43bc
EZ
74782003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7479
7480 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7481 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7482 files, don't relocate absolute symbols (and do use mst_abs).
7483
e8f3fcdd
AC
74842003-05-23 Andrew Cagney <cagney@redhat.com>
7485
7486 * objc-lang.c: Include "gdb_assert.h".
7487 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7488 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7489 (gdb_check, gdb_check_fatal): Delete functions.
7490 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7491 gdb_assert.
7492 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7493 * Makefile.in (objc-lang.o): Update dependencies.
7494
3c23e6fb
ILT
74952003-05-22 Ian Lance Taylor <ian@airs.com>
7496
7497 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7498 with fprintf_filtered, not fprintf_unfiltered.
7499
af1342ab
AC
75002003-05-22 Andrew Cagney <cagney@redhat.com>
7501
7502 * stack.c (frame_info): Inline extract_address, replacing it with
7503 extract_unsigned_integer.
7504 * findvar.c (unsigned_pointer_to_address): Ditto.
7505 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7506 * dwarf2expr.c (dwarf2_read_address): Ditto.
7507 * frame.c (frame_pc_unwind): Update comment.
7508 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7509
47e242ec
JJ
75102003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7511
7512 * infptrace.c (detach): Call print_sys_errmsg rather than
7513 perror_with_name to issue warning message when errno is non-zero
7514 after calling ptrace detach.
7515
e2ac8128
JB
75162003-05-21 J. Brobecker <brobecker@gnat.com>
7517
7518 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7519 macro definitions from here...
7520 * hppa-tdep.c: ...to there.
7521
92b3541e
KB
75222003-05-20 Kevin Buettner <kevinb@redhat.com>
7523
7524 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7525 register_ptrace_addr(). Fix all callers.
7526
55809acb
AS
75272003-05-21 Andreas Schwab <schwab@suse.de>
7528
7529 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7530 dependencies.
7531 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7532 end.
7533 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7534 (_initialize_m68k_linux_tdep): New function.
7535 (m68k_linux_frame_saved_pc): Make static.
7536 (m68k_linux_extract_return_value): Likewise.
7537 (m68k_linux_store_return_value): Likewise.
7538 (m68k_linux_extract_struct_value_address): Likewise.
7539 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7540 Remove.
7541 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7542 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7543 (DEPRECATED_FRAME_SAVED_PC): Remove.
7544
0fbc10f7
KW
75452003-05-20 Kris Warkentin <kewarken@qnx.com>
7546
7547 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7548 regset numbering rather than our own.
7549
58da2eb2
DC
75502003-05-19 David Carlton <carlton@bactrian.org>
7551
7552 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7553
1fcb5155
DC
75542003-05-19 David Carlton <carlton@bactrian.org>
7555
7556 Partial fix for PR c++/827.
7557 * cp-support.h: Include symtab.h.
7558 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7559 * cp-namespace.c: Update contributors.
7560 (cp_lookup_symbol_nonlocal): New.
7561 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7562 (lookup_symbol_file): Ditto.
7563 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7564 * block.h: Declare block_scope, block_using, block_global_block.
7565 * block.c (block_scope): New.
7566 (block_using, block_global_block): Ditto.
7567 * Makefile.in (cp_support_h): Depend on symtab_h.
7568 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7569
5f9a71c3
DC
75702003-05-19 David Carlton <carlton@bactrian.org>
7571
7572 * language.h (struct language_defn): Add 'la_value_of_this'
7573 and 'la_lookup_symbol_nonlocal' members.
7574 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7575 lookup_symbol_static, lookup_symbol_global,
7576 lookup_symbol_aux_block.
7577 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7578 if we should search fields of this and how to do static/global
7579 lookup.
7580 (lookup_symbol_aux_block): Make extern.
7581 (basic_lookup_symbol_nonlocal): New.
7582 (lookup_symbol_static, lookup_symbol_global): Ditto.
7583 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7584 'la_lookup_symbol_nonlocal' members.
7585 * c-lang.c (c_language_defn, cplus_language_defn)
7586 (asm_language_defn, minimal_language_defn): Ditto.
7587 * jv-lang.c (java_language_defn): Ditto.
7588 * language.c (unknown_language_defn, auto_language_defn)
7589 (local_language_defn): Ditto.
7590 * m2-lang.c (m2_language_defn): Ditto.
7591 * objc-lang.c (objc_language_defn): Ditto.
7592 * scm-lang.c (scm_language_defn): Ditto.
7593 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7594 * p-lang.c (pascal_language_defn): Ditto for both.
7595 * Makefile.in (f-lang.o): Depend on value_h.
7596 (p-lang.o): Ditto.
7597
89a9d1b1
DC
75982003-05-19 David Carlton <carlton@bactrian.org>
7599
7600 * block.h: Declare block_static_block.
7601 * block.c (block_static_block): New.
7602 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7603 lookup_symbol_aux_local, calling block_static_block instead.
7604 (lookup_symbol_aux_local): Delete 'static_block' argument.
7605
eed3f8ab
DC
76062003-05-19 David Carlton <carlton@bactrian.org>
7607
7608 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7609
a09d8bda
ML
76102003-05-19 Michal Ludvig <mludvig@suse.cz>
7611
7612 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7613 register numbers mapping.
7614
69636828
AF
76152003-05-18 Adam Fedor <fedor@gnu.org>
7616
7617 * symtab.c (completion_list_objc_symbol): New function.
7618 (make_symbol_completion_list): Use it to add ObjC symbols
7619 when looking though the list.
7620 (language_search_unquoted_string): New function.
7621 (make_file_symbol_completion_list): Use it.
7622
55baeb84
AS
76232003-05-18 Andreas Schwab <schwab@suse.de>
7624
d0b45d99
AS
7625 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7626 dependencies.
7627 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7628 as m68k_linux_extract_return_value.
7629 (DEPRECATED_STORE_RETURN_VALUE): Define as
7630 m68k_linux_store_return_value.
7631 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7632 m68k_linux_extract_struct_value_address.
7633 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7634 get_next_frame, get_frame_base, get_frame_pc.
7635 (m68k_linux_frame_saved_pc): Use get_frame_base.
7636 (m68k_linux_extract_return_value): New function.
7637 (m68k_linux_store_return_value): New function.
7638 (m68k_linux_extract_struct_value_address): New function.
7639 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7640
55baeb84
AS
7641 * c-exp.y (typebase): Remove duplicate occurence of
7642 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7643 of lookup_signed_typename.
55baeb84 7644
b6b08ebf
MK
76452003-05-18 Mark Kettenis <kettenis@gnu.org>
7646
7647 * dwarf2loc.c (find_location_expression): Change type of second
7648 argument to `size_t *'.
7649 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7650 for size variable.
7651
5ad1c190
DC
76522003-05-18 David Carlton <carlton@bactrian.org>
7653
7654 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7655 'linkage_name'. Add comment.
7656 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7657 'linkage_name'.
7658 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7659 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7660 (lookup_block_symbol): Ditto.
7661
b8b527c5
AC
76622003-05-16 Andrew Cagney <cagney@redhat.com>
7663
7664 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7665 * gdbarch.h, gdbarch.c: Re-generate.
7666 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7667 * TODO (REGISTER_BYTES): Delete reference.
7668 * alpha-tdep.c (alpha_gdbarch_init): Update.
7669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7670 * x86-64-tdep.c (x86_64_init_abi): Update.
7671 * vax-tdep.c (vax_gdbarch_init): Update.
7672 * v850-tdep.c (v850_gdbarch_init): Update.
7673 * sparc-tdep.c (sparc_gdbarch_init): Update.
7674 * sh-tdep.c (sh_gdbarch_init): Update.
7675 * s390-tdep.c (s390_gdbarch_init): Update.
7676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7677 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7678 (ns32k_gdbarch_init_32382): Update.
7679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7680 * mcore-tdep.c (mcore_gdbarch_init): Update.
7681 * m68k-tdep.c (m68k_gdbarch_init): Update.
7682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7683 * ia64-tdep.c (ia64_gdbarch_init): Update.
7684 * i386-tdep.c (i386_gdbarch_init): Update.
7685 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7686 * hppa-tdep.c (hppa_gdbarch_init): Update.
7687 * h8300-tdep.c (h8300_gdbarch_init): Update.
7688 * frv-tdep.c (frv_gdbarch_init): Update.
7689 * cris-tdep.c (cris_gdbarch_init): Update.
7690 * avr-tdep.c (avr_gdbarch_init): Update.
7691 * arm-tdep.c (arm_gdbarch_init): Update.
7692 * sparc-tdep.c (sparc_pop_frame): Update.
7693 * rs6000-tdep.c (rs6000_pop_frame): Update.
7694 * remote.c (init_remote_state): Update.
7695 (remote_prepare_to_store): Update.
7696 * remote-vx.c (vx_prepare_to_store): Update.
7697 * remote-sds.c (sds_fetch_registers): Update.
7698 (sds_prepare_to_store): Update.
7699 * remote-array.c: Update.
7700 * regcache.c (init_legacy_regcache_descr): Update.
7701 (init_regcache_descr): Update.
7702 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7703 (mips_o64_extract_return_value): Update.
7704 * irix5-nat.c (fetch_core_registers): Update.
7705 * irix4-nat.c (fetch_core_registers): Update.
7706 * i386-tdep.h: Update.
7707 * hppa-tdep.c (pa_do_registers_info): Update.
7708 (pa_do_strcat_registers_info): Update.
7709 * cris-tdep.c (cris_register_bytes_ok): Update.
7710 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7711 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7712 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7713 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7714 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7715 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7716 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7717 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7718 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7719 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7720 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7721 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7722 (REGISTER_BYTES_OK): Update.
7723 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7724 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7725
ee2842e2
ILT
77262003-05-16 Ian Lance Taylor <ian@airs.com>
7727
7728 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7729 (vax_print_insn, print_insn_arg): Remove static functions.
7730 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7731 print_insn_vax from opcodes library.
7732 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7733
973177d3
AC
77342003-05-15 Andrew Cagney <cagney@redhat.com>
7735
aaab4dba
AC
7736 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7737 * target.h (memory_breakpoint_from_pc): Delete declaration.
7738 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7739 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7740 * monitor.c (monitor_insert_breakpoint): Use
7741 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7742 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7743 * gdbarch.h, gdbarch.c: Re-generate.
7744 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7745 (sparc_gdbarch_init): Set breakpoint_from_pc to
7746 sparc_breakpoint_from_pc.
7747 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7748 (BREAKPOINT_FROM_PC): Define.
7749 (sparc_breakpoint_from_pc): Declare.
7750 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7751 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7752 (BREAKPOINT_FROM_PC): Define.
7753 (BREAKPOINT): Delete macro.
7754 * target.h: Update comment.
7755 * s390-tdep.c (s390_gdbarch_init): Update comments.
7756 * remote.c: Update comments.
7757 * remote-mips.c: Update comments.
7758 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7759 * mem-break.c: Update comment.
7760 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7761 (ia64_memory_insert_breakpoint): Update.
7762 * config/sparc/tm-sparc.h: Update comment.
7763 * config/pa/tm-hppa64.h: Update comment.
7764 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7765 (rs6000_breakpoint_from_pc): Update.
7766 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7767 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7768 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7769 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7770 (mips_breakpoint_from_pc): Update.
7771 (mips_dump_tdep): Update.
7772
e06963ff
AC
7773 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7774 * minsyms.c (lookup_minimal_symbol): Inline
7775 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7776
973177d3
AC
7777 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7778 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7779 * p-lang.c (pascal_printstr): Ditto.
7780 * objc-lang.c (objc_printstr): Ditto.
7781 * m2-lang.c (m2_printstr): Ditto.
7782 * jv-valprint.c (java_print_value_fields): Ditto.
7783 * f-lang.c (f_printstr): Ditto.
7784 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7785 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7786 for repeat_count_threshold.
7787 * Makefile.in (cp-valprint.o): Update dependencies.
7788
5ea2bd7f 77892003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7790
5ea2bd7f
JJ
7791 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7792 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7793 they start with mov r2,r12. Support skipping over indirect stores
7794 of the input registers. Upon hitting a non-nop branch instruction
7795 or predicated instruction, bail out by setting lim_pc to the current
7796 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7797 beyond our calculated value and we have trust_limit set,
7798 use the lim_pc value.
7799
cc8c88f3
AC
78002003-05-15 Andrew Cagney <cagney@redhat.com>
7801
7802 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7803 generic_find_dummy_frame.
7804 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7805 (deprecated_generic_find_dummy_frame): Update.
7806 (deprecated_read_register_dummy): Update.
7807 * frame.c (deprecated_generic_get_saved_register): Update.
7808
909cd28e
TR
78092003-05-15 Theodore A. Roth <troth@openavr.org>
7810
7811 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7812 (avr_gdbarch_init): Set breakpoint_from_pc method.
7813
b923b08d
AC
78142003-05-15 Andrew Cagney <cagney@redhat.com>
7815
7816 * regcache.c (build_regcache): Set deprecated_register_valid
7817 directly.
7818 (deprecated_grub_regcache_for_register_valid): Delete function.
7819 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7820 declaration.
7821
ae2f03ac 78222003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7823
7824 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7825 * symtab.c (lookup_symbol_aux): Delete calls to
7826 lookup_symbol_aux_minsyms.
7827 (lookup_symbol_aux_minsyms): Comment out function and
7828 prototype. Delete lookup by mangled name.
ae2f03ac 7829
18ec9831
KB
78302003-05-14 Kevin Buettner <kevinb@redhat.com>
7831
7832 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7833 correctly indicate an empty stack and ``stack_allocated'' to the
7834 indicate the number of elements initially allocated.
7835 (dwarf_expr_grow_stack): Simplify method for computing new
7836 stack size. Don't loop infinitely if ``stack_len'' is zero.
7837 (execute_stack_op): Move ``ctx->in_reg'' initialization
7838 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7839 be used in conjuction with DW_OP_piece. Revise error message
7840 accordingly.
7841
de18ac1f
TR
78422003-05-14 Theodore A. Roth <troth@openavr.org>
7843
7844 * MAINTAINERS: Update my email address.
7845 * avr-tdep.c: Ditto.
7846
176620f1
EZ
78472003-05-14 Elena Zannoni <ezannoni@redhat.com>
7848
7849 * symtab.h (enum domain_enum): Rename from namespace_enum.
7850 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7851 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7852 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7853 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7854 TYPES_NAMESPACE, METHODS_NAMESPACE.
7855 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7856 (struct symbol, struct partial_symbol): Rename field
7857 'namespace_enum namespace' to 'domain_enum domain'.
7858 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7859 Delete old define kludge for namespace.
7860
7861 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7862 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7863 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7864 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7865 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7866 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7867 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7868 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7869 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7870 occurrences of the above.
7871
b7f31508
ILT
78722003-05-14 Ian Lance Taylor <ian@airs.com>
7873
7874 * Makefile.in (install-only): Use $(SHELL) when running
7875 mkinstalldirs.
7876
2fdbdd39
ILT
78772003-05-13 Ian Lance Taylor <ian@airs.com>
7878
a208d82c
ILT
7879 * MAINTAINERS (write after approval): Add myself.
7880
2fdbdd39
ILT
7881 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7882 second and third arguments.
7883 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7884 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7885
fbd9dcd3
AC
78862003-05-13 Andrew Cagney <cagney@redhat.com>
7887
7888 * defs.h (store_address): Delete declaration.
7889 findvar.c (store_address): Delete function.
7890 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7891 store_unsigned_integer.
7892 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7893 * v850-tdep.c (v850_push_arguments): Ditto.
7894 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7895 * sh-tdep.c (sh64_get_saved_register): Ditto.
7896 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7897 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7898 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7899 (mips_get_saved_register): Ditto.
7900 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7901 (find_func_descr, ia64_push_arguments): Ditto.
7902 * i386-tdep.c (i386_push_arguments): Ditto.
7903 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7904 * frv-tdep.c (frv_push_arguments): Ditto.
7905 * frame.c (legacy_saved_regs_prev_register): Ditto.
7906 (deprecated_generic_get_saved_register): Ditto.
7907 * findvar.c (unsigned_address_to_pointer): Ditto.
7908 * dwarf2read.c (dwarf2_const_value): Ditto.
7909 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7910 * alpha-tdep.c (alpha_push_arguments): Ditto.
7911
6760f9e6
JB
79122003-05-12 J. Brobecker <brobecker@gnat.com>
7913
7914 * NEWS: Mention that the hppa-hpux port has been partially
7915 multiarched (32bit ABIT only, so far).
7916
30e221b4
AC
79172003-05-11 Andrew Cagney <cagney@redhat.com>
7918
7919 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7920 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7921 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7922 sim/testsuite/sim/arm/misaligned2.ms, and
7923 sim/testsuite/sim/arm/misaligned3.ms.
7924 * disasm.h (struct ui_file): Add opaque struct declaration.
7925 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7926 * frame.h (struct ui_file): Ditto.
7927
dea7f9ba
MK
79282003-05-11 Mark Kettenis <kettenis@gnu.org>
7929
7930 * value.h: Pretty print.
7931
01986c48
MK
79322003-05-10 Mark Kettenis <kettenis@gnu.org>
7933
7934 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7935
123a958e
AC
79362003-05-08 Andrew Cagney <cagney@redhat.com>
7937
7938 * regcache.h (max_register_size): Delete declaration.
7939 * regcache.c (max_register_size): Delete function.
7940 (struct regcache_descr): Delete field "max_register_size".
7941 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7942 registers fit in MAX_REGISTER_SIZE.
7943 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7944 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7945 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7946 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7947 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7948 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7949 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7950 * dve3900-rom.c, hppa-tdep.c: Ditto.
7951
eb294659
DC
79522003-05-08 David Carlton <carlton@math.stanford.edu>
7953
7954 * valops.c (push_word): Fix typo.
7955
d9d9c31f
AC
79562003-05-08 Andrew Cagney <cagney@redhat.com>
7957
7958 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7959 * gdbarch.h: Re-generate.
7960 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7961 (legacy_max_register_raw_size): Delete declaration.
7962 * regcache.c (legacy_max_register_raw_size): Delete function.
7963 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7964 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7965 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7966 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7967 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7968 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7969 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7970 * findvar.c, dwarf2cfi.c: Ditto.
7971
22540ece
AC
79722003-05-08 Andrew Cagney <cagney@redhat.com>
7973
7974 * mips-tdep.c (read_signed_register): New function, moved to here
7975 from "regcache.c".
7976 (read_signed_register_pid): Ditto.
7977 * regcache.c (read_signed_register_pid): Delete function, moved to
7978 "mips-tdep.c".
7979 (read_signed_register): Ditto.
7980 * regcache.h (read_signed_register): Delete declaration.
7981 (read_signed_register_pid): Delete declaration.
7982
0c92afe8
AC
79832003-05-08 Andrew Cagney <cagney@redhat.com>
7984
7985 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7986 * gdbarch.h: Re-generate.
7987 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7988 (legacy_max_register_virtual_size): Delete declaration.
7989 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7990 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7991 * tracepoint.c (memrange_sortmerge): Ditto.
7992 * sparc-tdep.c (sparc_print_registers): Ditto.
7993 * regcache.c (legacy_max_register_virtual_size): Delete function.
7994
6037b830
JB
79952002-05-08 J. Brobecker <brobecker@gnat.com>
7996
7997 * fork-child.c (escape_bang_in_quoted_argument): New function.
7998 (fork_inferior): Escape '!' characters in quoted arguments
7999 only when needed.
8000
5d62c8b1
JB
80012003-05-08 J. Brobecker <brobecker@gnat.com>
8002
8003 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8004 the language of the CU is not currently supported by GDB.
8005
20a0e81d
JB
80062003-05-08 J. Brobecker <brobecker@gnat.com>
8007
8008 * defs.h (language): Add language_minimal enum value.
8009 * c-lang.c (minimal_language_defn): New language definition.
8010 (_initialize_c_language): Add the new minimal language to the list
8011 of languages known to GDB.
8012
710ee10a
KB
80132003-05-08 Kevin Buettner <kevinb@redhat.com>
8014
8015 * frame.c (get_frame_type): Don't attempt to lazily initialize
8016 frame's unwinder for legacy frames.
8017
1750fa04
AC
80182003-05-07 Andrew Cagney <cagney@redhat.com>
8019
8020 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8021 and "regcache" parameters.
8022 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8023
ddf9f258 80242003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8025
8026 * dwarf2read.c (dwarf_decode_lines): Only use output of
8027 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8028 the current address.
8029
87767c29
AC
80302003-05-07 Andrew Cagney <cagney@redhat.com>
8031
8032 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8033 code.
8034
5e7b2f39
JB
80352003-05-07 Jim Blandy <jimb@redhat.com>
8036
8037 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8038 'maint info symtabs' and 'maint info psymtabs'.
8039 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8040 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8041 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8042 Declarations updated.
8043 * maint.c (maintenance_list_command): Delete.
8044 (_initialize_maint_cmds): Update calls to add_cmd.
8045 * gdbcmd.h (maintenancelistlist): Delete declaration.
8046 * cli/cli-cmds.c (maintenancelistlist): Delete.
8047 (init_cmd_lists): Don't initialize it.
8048 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8049
f6684c31
AC
80502003-05-07 Andrew Cagney <cagney@redhat.com>
8051
8052 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8053 "regcache".
8054 (d10v_print_registers_info): Update.
8055 (d10v_dmap_register, d10v_imap_register): Delete functions.
8056 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8057 and "imap_register".
8058 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8059 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8060 * arch-utils.c (generic_remote_translate_xfer_address): Add
8061 "regcache" and "gdbarch" parameters.
8062 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8063 parameter. Change class to multi-arch.
8064 * gdbarch.h, gdbarch.c: Re-generate.
8065 * remote.c (remote_xfer_memory): Use
8066 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8067
e4846b08
JJ
80682003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8069
8070 * infrun.c (prev_pc): Move declaration ahead of proceed().
8071 (proceed): Refresh prev_pc value before resuming.
8072 (stop_stepping): Remove code to refresh prev_pc.
8073
6b71b8ac
KW
80742003-05-06 Kris Warkentin <kewarken@qnx.com>
8075
8076 * nto-tdep.c: Removed stray comment.
8077
47979a4b
KW
80782003-05-06 Kris Warkentin <kewarken@qnx.com>
8079
8080 * i386-nto-tdep.c: Fix old K&R function definitions.
8081 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8082 Also change add_show_from_set() call to add_setshow_cmd().
8083 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8084
00905d52
AC
80852003-05-05 Andrew Cagney <cagney@redhat.com>
8086
8087 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8088 (fprint_dummy_frames): New function.
8089 (maintenance_print_dummy_frames): New function.
8090 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8091 * frame.c (fprint_frame_id): Make global.
8092 * frame.h (fprint_frame_id): Declare.
8093 * Makefile.in (dummy-frame.o): Update dependencies.
8094
b1e29e33
AC
80952003-05-05 Andrew Cagney <cagney@redhat.com>
8096
8097 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8098 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8099 SIZEOF_CALL_DUMMY_WORDS.
8100 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8101 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8102 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8103 CALL_DUMMY_BREAKPOINT_OFFSET.
8104 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8105 CALL_DUMMY_START_OFFSET.
8106 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8107 * gdbarch.h, gdbarch.c: Re-generate.
8108 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8109 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8110 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8111 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8112 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8113 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8114 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8115 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8116 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8117 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8118 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8119 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8120 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8121 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8122 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8123
81242003-05-05 Kris Warkentin <kewarken@qnx.com>
8125
8126 * configure.tgt: Add i[3456]86-*-nto*.
8127 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8128 * nto-tdep.c: New file. Neutrino target support routines.
8129 * nto-tdep.h: New file. Neutrino target header.
8130 * config/tm-qnxnto.h: New file.
8131 * config/i386/i386nto.mt: New file.
8132 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8133
0ce3d317
AC
81342003-05-04 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8137 (load_infrun_state): Ditto.
8138 (struct thread_info): Drop "prev_func_name" field.
8139 * thread.c (load_infrun_state): Update.
8140 (save_infrun_state): Update.
8141 * infrun.c (prev_func_name): Delete variable.
8142 (init_wait_for_inferior): Do not clear prev_func_name.
8143 (stop_stepping, keep_going, context_switch): Do not swap
8144 prev_func_name.
8145 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8146 instead of PC_IN_SIGTRAMP.
8147
46654a5b
AC
81482003-05-04 Andrew Cagney <cagney@redhat.com>
8149
8150 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8151 REGISTER_BYTE with register_offset_hack.
8152 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8153 that REGISTER_BYTE is consistent with the regcache.
8154 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8155 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8156
14b08c1b
MK
81572003-05-04 Mark Kettenis <kettenis@gnu.org>
8158
04c8243f
MK
8159 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8160 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8161
14b08c1b
MK
8162 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8163
c7a11e01
JB
81642003-05-03 J. Brobecker <brobecker@gnat.com>
8165
8166 From Thierry Schneider <tpschneider1@yahoo.com>
8167 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8168 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8169 (mi-cmd-symbol.o): Add rule.
8170
7043d8dc
AC
81712003-05-03 Andrew Cagney <cagney@redhat.com>
8172
8173 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8174 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * d10v-tdep.c (d10v_push_dummy_code): New function.
8177 (d10v_gdbarch_init): Set push_dummy_code.
8178 * infcall.c (legacy_push_dummy_code): New function.
8179 (generic_push_dummy_code): New function.
8180 (push_dummy_code): New function.
8181 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8182 instead of dummy_addr, to push_dummy_call. Move call to
8183 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8184 switch.
8185 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8186
92bf2b80
AC
81872003-05-03 Andrew Cagney <cagney@redhat.com>
8188
8189 * disasm.h (print_insn): Declare.
8190 * disasm.c (init_gdb_disassemble_info): New function.
8191 (gdb_disassembly): Call init_gdb_disassemble_info.
8192 (gdb_print_insn): New function.
8193 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8194 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8195 * mcore-tdep.c: Include "disasm.h"
8196 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8197 * d10v-tdep.c: Include "disasm.h".
8198 (display_trace): Call gdb_print_insn, instead of print_insn.
8199 (print_insn): Delete function.
8200 * printcmd.c: Include "disasm.h".
8201 (print_insn): Delete function.
8202 (print_formatted): Call gdb_print_insn, instead of print_insn.
8203 * Makefile.in (printcmd.o): Update dependencies.
8204 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8205
27d94c49
AC
82062003-05-02 Andrew Cagney <cagney@redhat.com>
8207
82de1e5b
AC
8208 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8209 PC_REGNUM, re-indent.
8210 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8211 PC_REGNUM isn't set.
8212
27d94c49
AC
8213 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8214 * gdbarch.h, gdbarch.c: Re-generate.
8215 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8216 register_virtual_size, pc_regnum, or register_bytes.
8217 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8218 (d10v_register_type): Use D10V_PC_REGNUM.
8219 (d10v_print_registers_info, d10v_read_pc): Ditto.
8220 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8221 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8222
a9c0dc7f
DC
82232003-05-02 David Carlton <carlton@bactrian.org>
8224
8225 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8226 the name with mstrsave.
8227
e33d66ec
EZ
82282003-05-02 Elena Zannoni <ezannoni@redhat.com>
8229
8230 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8231 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8232 (host_charset_name, target_charset_name): New vars for use by
8233 set/show commands.
8234 (host_charset_enum, target_charset_enum): New enums for set/show
8235 commands.
8236 (set_charset_sfunc, set_host_charset_sfunc,
8237 set_target_charset_sfunc): New functions.
8238 (set_host_charset, set_target_charset): Make static.
8239 (list_charsets, set_host_charset_command,
8240 set_target_charset_command): Delete functions.
8241 (show_charset_command): Rewrite as....
8242 (show_charset): Hook this up with the set/show command mechanism.
8243 (_initialize_charset): Change names of charsets to match the
8244 set/show enums. Use host_charset_name and target_charset_name.
8245 Use set/show mechanism for charset, host-charset, target-charset
8246 commands. Do not make 'show host-charset' and 'show
8247 target-charset' be aliases of 'show charset'.
8248
8249 * charset.h (set_host_charset, set_target_charset): Don't export,
8250 they are not used outside the file.
8251
2b6fd0d8
AC
82522003-05-01 Andrew Cagney <cagney@redhat.com>
8253
8254 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8255 (gdb_disassembly): Make "di" non static, always initialize and
8256 cleanup. Always use dis_asm_read_memory.
8257 (gdb_dis_asm_read_memory): Delete function.
8258
6ae2f580
AC
82592003-05-01 Andrew Cagney <cagney@redhat.com>
8260
8261 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8262 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8263
810ecf9f
AC
82642003-04-30 Andrew Cagney <cagney@redhat.com>
8265
8266 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8267 "tm_print_insn_info".
8268 (TARGET_PRINT_INSN_INFO): Delete macro.
8269 (dis_asm_read_memory): Delete function declaration.
8270 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8271 (tm_print_insn_info): Delete variable definition.
8272 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8273 * gdbarch.h, gdbarch.c: Re-generate.
8274 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8275 "deprecated_tm_print_insn_info".
8276 * mcore-tdep.c (mcore_dump_insn): Ditto.
8277 * mips-tdep.c (mips_gdbarch_init): Ditto.
8278 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8279 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8280 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8281 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8282 instead of TARGET_PRINT_INSN_INFO, add comment.
8283 * s390-tdep.c (s390_get_frame_info): Instead of
8284 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8285 (s390_check_function_end, s390_is_sigreturn): Ditto.
8286 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8287 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8288 * disasm.c: Include "gdbcore.h".
8289 (_initialize_disasm): New function, initialize
8290 "deprecated_tm_print_insn_info".
8291 (deprecated_tm_print_insn_info): New variable.
8292 (dis_asm_read_memory): Moved from "corefile.c", made static.
8293 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8294 * Makefile.in (disasm.o): Update dependencies.
8295
07020390
AC
82962003-04-30 Andrew Cagney <cagney@redhat.com>
8297
8298 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8299
a9fa03de
AF
83002003-04-29 Adam Fedor <fedor@gnu.org>
8301
8302 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8303 * infcall.c (find_function_addr): Make non-static.
8304 * infcall.h (find_function_addr): Declare.
8305 * Makefile.in (eval.o): Update dependencies.
8306
1bae87b9
AF
83072003-04-28 Adam Fedor <fedor@gnu.org>
8308
8309 * symtab.c (symbol_find_demangled_name): Check for and demangle
8310 ObjC symbols.
8311 (symbol_init_demangled_name): Init for language_objc as well.
8312
0ba6dca9
AC
83132003-04-28 Andrew Cagney <cagney@redhat.com>
8314
8315 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8316 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8319 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8320 * inferior.h (deprecated_read_fp): Rename read_fp.
8321 (generic_target_read_fp): Delete declaration.
8322 * regcache.c (generic_target_read_fp): Delete function.
8323 (deprecated_read_fp): Replace read_fp, use
8324 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8325 * d10v-tdep.c (d10v_read_fp): Delete function.
8326 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8327
8328 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8329 deprecated_target_read_fp to generic_target_read_fp.
8330 * sh-tdep.c (sh_gdbarch_init): Ditto.
8331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8333 * frv-tdep.c (frv_gdbarch_init): Ditto.
8334
8335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8336 deprecated_fp_regnum.
8337 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8338 * vax-tdep.c (vax_gdbarch_init): Ditto.
8339 * v850-tdep.c (v850_gdbarch_init): Ditto.
8340 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8341 * sh-tdep.c (sh_gdbarch_init): Ditto.
8342 * s390-tdep.c (s390_gdbarch_init): Ditto.
8343 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8346 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8349 * i386-tdep.c (i386_gdbarch_init): Ditto.
8350 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8351 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8352 * frv-tdep.c (frv_gdbarch_init): Ditto.
8353 * cris-tdep.c (cris_gdbarch_init): Ditto.
8354 * avr-tdep.c (avr_gdbarch_init): Ditto.
8355 * arm-tdep.c (arm_gdbarch_init): Ditto.
8356 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8357
8358 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8359 * v850-tdep.c (v850_gdbarch_init): Ditto.
8360 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8361 * sh-tdep.c (sh_gdbarch_init): Ditto.
8362 * s390-tdep.c (s390_gdbarch_init): Ditto.
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8364 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8365 * mips-tdep.c (mips_gdbarch_init): Ditto.
8366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8367 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8368 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8369 * frv-tdep.c (frv_gdbarch_init): Ditto.
8370 * avr-tdep.c (avr_gdbarch_init): Ditto.
8371 * arm-tdep.c (arm_gdbarch_init): Ditto.
8372
8373 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8374 DEPRECATED_FP_REGNUM.
8375 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8376 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8377 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8378 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8379 (sparc32_register_virtual_type): Ditto.
8380 * sh-tdep.c (sh64_frame_chain): Ditto.
8381 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8382 (sh_nofp_frame_init_saved_regs): Ditto.
8383 (sh64_nofp_frame_init_saved_regs): Ditto.
8384 (sh_fp_frame_init_saved_regs): Ditto.
8385 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8386 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8387 * procfs.c (procfs_fetch_registers): Ditto.
8388 (procfs_store_registers): Ditto.
8389 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8390 (store_inferior_registers, fetch_core_registers): Ditto.
8391 (fetch_kcore_registers, clear_regs): Ditto.
8392 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8393 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8394 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8395 * nlm/i386.c (do_status): Ditto.
8396 * mipsv4-nat.c (supply_gregset): Ditto.
8397 * mips-tdep.c: Ditto for comments.
8398 * mips-nat.c (fetch_inferior_registers): Ditto.
8399 (store_inferior_registers, fetch_core_registers): Ditto.
8400 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8401 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8402 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8403 (i386_do_pop_frame, i386_register_type): Ditto.
8404 * hppa-tdep.c (hppa_frame_chain): Ditto.
8405 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8406 (hppa_pop_frame, hppa_read_fp): Ditto.
8407 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8408 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8409 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8410 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8411 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8412 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8413 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8414 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8415 * blockframe.c: Ditto for comments.
8416 * arch-utils.h: Ditto for comments.
8417 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8418 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8419 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8420 * alpha-tdep.h: Ditto for comments.
8421 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8422 (alpha_cannot_store_register): Ditto.
8423 (alpha_push_dummy_frame): Ditto.
8424 * alpha-nat.c (supply_gregset): Ditto.
8425
8426 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8427 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8428 * config/sparc/tm-sparc.h: Update comment.
8429
8430 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8431 deprecated_read_fp instead of TARGET_READ_FP.
8432 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8433 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8434 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8435 deprecated_read_fp instead of read_fp.
8436 * s390-tdep.c (s390_push_arguments): Ditto.
8437 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8438 * frame.h: Ditto in comments.
8439 * frame.c (legacy_get_prev_frame): Ditto.
8440 * dummy-frame.c (dummy_frame_this_id): Ditto.
8441 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8442
d7a27068
AC
84432003-04-28 Andrew Cagney <cagney@redhat.com>
8444
8445 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8446 * gdbarch.h, gdbarch.c: Re-generate.
8447 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8448 * vax-tdep.c (_initialize_vax_tdep): Update.
8449 * v850-tdep.c (_initialize_v850_tdep): Update.
8450 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8451 * s390-tdep.c (_initialize_s390_tdep): Update.
8452 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8453 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8454 * mips-tdep.c (_initialize_mips_tdep): Update.
8455 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8456 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8457 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8458 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8459 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8460 * frv-tdep.c (_initialize_frv_tdep): Update.
8461 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8462 (_initialize_cris_tdep): Update.
8463 * arch-utils.c (legacy_print_insn): Update.
8464 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8465
d2630e69
AF
84662003-04-26 Adam Fedor <fedor@gnu.org>
8467
8468 * linespec.c (decode_objc): New function to decode ObjC calls
8469 (decode_line_1): Check for ObjC calls (using decode_objc)
8470 * Makefile (linespec.o): Update dependencies.
8471
3086aeae
DJ
84722003-04-26 Daniel Jacobowitz <drow@mvista.com>
8473
8474 * breakpoint.h (struct breakpoint_ops): New.
8475 (struct breakpoint): Add ops member.
8476
8477 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8478 (mention): Use new breakpoint ops member.
8479 (set_raw_breakpoint): Initialize ops field to NULL.
8480 (print_exception_catchpoint, print_one_exception_catchpoint)
8481 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8482 (gnu_v3_exception_catchpoint_ops): New.
8483 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8484
1fbec6c3
AF
84852003-04-25 Adam Fedor <fedor@gnu.org>
8486
8487 * Makefile.in (COMMON_OBS): Add objc-lang.o
8488
0ef21242
AC
84892003-04-25 Andrew Cagney <cagney@redhat.com>
8490
8491 * d10v-tdep.c (print_insn): Delete function.
8492 (display_trace): Use TARGET_PRINT_INSN.
8493 (_initialize_d10v_tdep): Do not set tm_print_insn.
8494 (d10v_gdbarch_init): Set print_insn.
8495
f75493ed
AC
84962003-04-25 Andrew Cagney <cagney@redhat.com>
8497
8498 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8499 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8500 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8501 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8502 (nr_dmap_regs, a0_regnum): ... new functions.
8503 (d10v_print_registers_info): Use a0_regnum, use register_size.
8504 (d10v_register_byte): Delete function.
8505 (d10v_register_raw_size): Delete function.
8506 (d10v_register_type): Use a0_regnum.
8507 (d10v_print_registers_info): Use a0_regnum.
8508 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8509 (d10v_gdbarch_init): Do not set register_byte or
8510 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8511 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8512 extract_address.
8513 (trace_command): Use XCALLOC.
8514 (print_insn): Delete reference to tm_print_insn.
8515 (saved_regs_unwinder): Use store_unsigned_integer instead of
8516 store_address.
8517 * frame.h (FRAME_OBSTACK_CALLOC): Define
8518
2202b100
DC
85192003-04-25 David Carlton <carlton@bactrian.org>
8520
8521 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8522
4e45ca2e
AF
85232003-04-24 Adam Fedor <fedor@gnu.org>
8524
8525 * objc-lang.c: Include "valprint.h"
8526 * Makefile.in (objc-lang.o): Update dependencies.
8527
93de3e7f
AF
85282003-04-24 Adam Fedor <fedor@gnu.org>
8529
8ffd9b1b 8530 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8531 architecture dependant compilation and mark as unimplemented
8532 (until they get put in the gdbarch vector).
8533
0f20eeea
DC
85342003-04-23 David Carlton <carlton@bactrian.org>
8535
8536 * cp-support.c (cp_find_first_component): Accept 'operator' in
8537 more locations.
8538
74cfe982
AC
85392003-04-23 Andrew Cagney <cagney@redhat.com>
8540
8541 * infcall.c (call_function_by_hand): Eliminate redundant
8542 indentation. Move "saved_async" and "old_cleanups" to where they
8543 are needed.
8ffd9b1b 8544
52557533
AC
85452003-04-23 Andrew Cagney <cagney@redhat.com>
8546
8547 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8548 and "buffer". Move the "name" code to where it is needed.
8549
158775de
AC
85502003-04-23 Andrew Cagney <cagney@redhat.com>
8551
8552 * infcall.c (call_function_by_hand): Move variables "start_sp",
8553 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8554 code to ON_STACK switch branch.
8ffd9b1b 8555
ebc7896c
AC
85562003-04-23 Andrew Cagney <cagney@redhat.com>
8557
8558 * infcall.c (call_function_by_hand): Make declaration of "i",
8559 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8560 lint.
8561
d727590f
AC
85622003-04-23 Andrew Cagney <cagney@redhat.com>
8563
8564 * infcall.c (call_function_by_hand): Delete variable
8565 "n_method_args". Localize "param_type"'s declaration to the loop
8566 that it is used. Reinstate code assigning to said variable -
8567 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8568 Rationalize code using "param_type".
8569
d585e13a
AC
85702003-04-22 Andrew Cagney <cagney@redhat.com>
8571
8572 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8573 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8574 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8575 to DEPRECATED_PUSH_RETURN_ADDRESS.
8576
051caad9
KB
85772003-04-22 Kevin Buettner <kevinb@redhat.com>
8578
8579 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8580 on the DWARF2 register number prior to fetching a register.
8581
77296879
JB
85822003-04-22 J. Brobecker <brobecker@gnat.com>
8583
8584 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8585 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8586 this macro was always set to 0.
77296879
JB
8587 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8588 considering the fact that this macro was always set to 0.
8589 * hppa-tdep.h (hppa_store_return_value): Likewise.
8590 (hppa_extract_return_value): Likewise.
8591
4252f1df
JB
85922003-04-22 J. Brobecker <brobecker@gnat.com>
8593
8594 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8595 the hppa-pro target only.
8596
14604c6b
JB
85972003-04-21 J. Brobecker <brobecker@gnat.com>
8598
8599 Ongoing multi-arch conversion effort for HP/UX:
8600 * config/pa/tm-hppa.h: Move all macro that are no longer
8601 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8602 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8603
77eb01d1
JB
86042003-04-21 J. Brobecker <brobecker@gnat.com>
8605
8606 * config/pa/tm-hppa.h: Obsolete a section that was only used
8607 for hppa-pro.
8608
61995b3b
JB
86092003-04-21 J. Brobecker <brobecker@gnat.com>
8610
8611 Ongoing multi-arch conversion for HP/UX.
8612 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8613 if already defined (allows hppa64 to stay non-multiarched for now).
8614 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8615
4aa79dcc
AC
86162003-04-21 Andrew Cagney <cagney@redhat.com>
8617
8618 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8619
0f751ff2
AC
86202003-04-21 Andrew Cagney <cagney@redhat.com>
8621
8622 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8623 "i386_num_mmx_regs".
8624
04714b91
AC
86252003-04-21 Andrew Cagney <cagney@redhat.com>
8626
8627 * infcall.c: New file.
8628 * infcall.h: New file.
8629 * valarith.c: Include "infcall.h".
8630 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8631 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8632 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8633 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8634 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8635 (SFILES): Add "infcall.c"
8636 (COMMON_OBS): Add "infcall.o".
8637 (infcall.o): Specify dependencies.
8638 * value.h (call_function_by_hand): Delete declaration.
8639 * inferior.h (run_stack_dummy): Delete declaration.
8640 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8641 (run_stack_dummy): Move to "infcall.c", merged into
8642 call_function_by_hand.
8643 * valops.c (call_function_by_hand): Moved to "infcall.c".
8644 (find_function_addr, value_arg_coerce): Ditto.
8645 (unwindonsignal_p, coerce_float_to_double): Ditto.
8646 (_initialize_valops): Move "set/show coerce-float-to-double", and
8647 "set/show unwindonsignal" commands to "infcall.c".
8648 * v850-tdep.c, target.h: Update comments.
8649 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8650 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8651 (sh64_init_extra_frame_info): Update comments.
8652 * mn10300-tdep.c: Update comments.
8653 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8654 * config/sparc/tm-sparc.h: Update comments.
8655 * breakpoint.h: Update comments.
8656 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8657 * arm-tdep.c: Update comment.
8658
f9d3c2a8
MK
86592003-04-19 Mark Kettenis <kettenis@gnu.org>
8660
c40e1eab
MK
8661 * i386-tdep.c (i386_num_register_names): New variable.
8662 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8663 (MM0_REGNUM): Remove redundant parentheses in define.
8664 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8665 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8666 i386_mxcsr_regnum_p): Remove redundant parentheses.
8667 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8668
94ea66b3
MK
8669 * i386-tdep.c (i386_extract_return_value,
8670 i386_store_return_value): Correct check for availability of
8671 floating-point registers.
8672
54299a1d
MK
8673 * i386-tdep.c (i386_frame_num_args): Remove function.
8674 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8675
c86c27af
MK
8676 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8677 mmx_regnum_to_fp_regnum. Adjust all callers.
8678
f9d3c2a8
MK
8679 * i386-tdep.c (i386_get_longjmp_target): Use
8680 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8681 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8682 extract_address.
8683
94ba74a9
MK
86842003-04-19 Mark Kettenis <kettenis@gnu.org>
8685
8686 * core-regset.c: Update comments to reflect reality. Re-order
8687 includes.
8688 (fetch_core_registers): Use switch instead of if. Remove
8689 redundant prototype.
8690
4074e13c
JB
86912003-04-18 Jim Blandy <jimb@redhat.com>
8692
8693 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8694 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8695
e3ab4aba
RH
86962003-04-17 Richard Henderson <rth@redhat.com>
8697
8698 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8699
627bf7c1
EZ
87002003-04-17 Michael Snyder <msnyder@redhat.com>
8701 Karen Bennet <bennet@redhat.com>
8702
8703 Committed by Elena Zannoni <ezannoni@redhat.com>
8704 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8705
514621a9
EZ
87062003-04-17 Elena Zannoni <ezannoni@redhat.com>
8707
8708 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8709 value if the return type is void.
514621a9 8710
b4acd559
JJ
87112003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8712
8713 * thread-db.c: Reindented.
8ffd9b1b 8714
530b167e 87152003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8716
8717 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8718 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8719 as types.
8720
0a48e7e8
MS
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8ffd9b1b 8744
ab9fe00e
KB
87452003-04-16 Kevin Buettner <kevinb@redhat.com>
8746
610a3745 8747 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8748 the size of ``long double'' to 16, instead of 8.
8749
e64a344c
MK
87502003-04-16 Mark Kettenis <kettenis@gnu.org>
8751
8752 * i386-linux-nat.c: Add some whitespace to make things more
8753 readable.
8754 (fetch_register, store_register, fetch_inferior_registers,
8755 store_inferior_registers): Get rid of assignment in if-statement.
8756 (store_register): Fix typo in error message.
8757
25d41031
AC
87582003-04-16 Andrew Cagney <cagney@redhat.com>
8759
8760 * utils.c (xmmalloc): Always allocate something, matches
8761 libiberty/xmalloc's semantics.
8762 (xmrealloc, xmcalloc): Ditto.
8763
c50901fd
AC
87642003-04-16 Andrew Cagney <cagney@redhat.com>
8765
8766 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8767 update comments.
8768 (get_frame_type): Initialize unwind and type when needed.
8769 (get_frame_id, frame_register_unwind): Ditto.
8770
f81824a9
AC
87712003-04-16 Andrew Cagney <cagney@redhat.com>
8772
8773 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8774 obsolete.
8775 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8776 * sparcl-stub.c: Obsolete file.
8777 * config/sparc/tm-sparclet.h: Obsolete file.
8778 * sparclet-stub.c: Obsolete file.
8779 * sparclet-rom.c: Obsolete file.
8780 * sparcl-tdep.c: Obsolete file.
8781 * config/sparc/tm-sparclite.h: Obsolete file.
8782 * config/sparc/sparclite.mt: Obsolete file.
8783 * config/sparc/sparclet.mt: Obsolete file.
8784 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8785 sparc86x-*-* obsolete.
8786
9219021c
DC
87872003-04-15 David Carlton <carlton@math.stanford.edu>
8788
8789 * Makefile.in (SFILES): Add cp-namespace.c.
8790 (COMMON_OBS): Add cp-namespace.o.
8791 (block.o): Depend on gdb_obstack_h and cp_support_h.
8792 (buildsym.o): Depend on cp_support_h.
8793 (cp-namespace.o): New.
8794 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8795 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8796 (dwarf2read.o): Depend on cp_support_h.
8797 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8798 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8799 processing_current_namespace.
8800 (read_namespace): Update processing_current_namespace; check for
8801 anonymous namespaces.
8802 (dwarf2_name): New function.
8803 (dwarf2_extension): Ditto.
8804 * cp-support.h: Update copyright, contributors.
8805 Add inclusion guards.
8806 Add opaque declaration for structs obstack, block, symbol.
8807 (struct using_direct): New struct.
8808 Add declarations for cp_find_first_component,
8809 cp_entire_prefix_len, processing_has_namespace_info,
8810 processing_current_namespace, cp_is_anonymous,
8811 cp_add_using_directive, cp_initialize_namespace,
8812 cp_finalize_namespace, cp_set_block_scope,
8813 cp_scan_for_anonymous_namespaces.
8814 * cp-namespace.c: New file.
8815 * cp-support.c: Update copyright.
8816 Include ctype.h, gdb_assert.h, gdbcmd.h.
8817 New variable maint_cplus_cmd_list.
8818 (cp_find_first_component): New function.
8819 (cp_entire_prefix_len, maint_cplus_command)
8820 (first_component_command, _initialize_cp_support): Ditto.
8821 * buildsym.c: Include cp-support.h.
8822 New variable using_list.
8823 (add_symbol_to_list): Check for anonymous namespaces.
8824 (finish_block): Set block's scope.
8825 (start_symtab): Initialize C++ namespace support.
8826 (end_symtab): Finalize C++ namespace support.
8827 * block.h: Add opaque declarations for structs
8828 block_namespace_info, using_direct, and obstack.
8829 Add declarations for block_set_scope and block_set_using.
8830 (struct block): Add 'language_specific' member.
8831 (BLOCK_NAMESPACE): New macro.
8832 * block.c: Include gdb_obstack.h and cp-support.h.
8833 (struct block_namespace_info): New struct.
8834 (block_set_scope): New function.
8835 (block_set_using, block_initialize_namespace): Ditto.
8836
d5a921c9
KB
88372003-04-14 Kevin Buettner <kevinb@redhat.com>
8838
8839 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8840 (locate_base): Return early if there aren't any link map offsets.
8841 (svr4_solib_create_inferior_hook): Warn if shared library support
8842 is unavailable.
8843
d2a52b27
DC
88442003-04-14 David Carlton <carlton@math.stanford.edu>
8845
8846 * symtab.c (symbol_set_names): Add prefix when storing Java names
8847 in hash table. Fix for PR java/1039.
8848
980cae7a
DC
88492003-04-14 David Carlton <carlton@math.stanford.edu>
8850
8851 * symtab.c (symbol_set_names): Rename 'name' arg to
8852 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8853 * symtab.h: Change 'name' argument in declaration of
8854 symbol_set_names to 'linkage_name'.
8855 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8856
e227b13c
AC
88572003-04-14 Andrew Cagney <cagney@redhat.com>
8858
8859 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8860 return the fully sign-extended register value.
8861 (get_frame_pointer): Ditto.
8862 (mips_pop_frame): Initialize "proc_desc" after checking for a
8863 dummy frame.
8864
36712a20
AC
88652003-04-14 Andrew Cagney <cagney@redhat.com>
8866
8867 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8868 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8869 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8870 (mips_push_register): Delete function.
8871 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8872 PUSH_FP_REGNUM.
8873
44ea7b70
JB
88742003-04-14 Jim Blandy <jimb@redhat.com>
8875
8876 * symmisc.c: #include "gdb_regex.h".
8877 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8878 functions.
8879 * maint.c (maintenance_list_command): New function.
8880 (_initialize_maint_cmds): Register the above as commands.
8881 * symtab.h (maintenance_list_symtabs,
8882 maintenance_list_psymtabs): New declarations.
8883 * cli/cli-cmds.c (maintenancelistlist): New variable.
8884 (init_cmd_lists): Initialize it.
8885 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8886 * gdbcmd.h (maintenancelistlist): New declaration.
8887 * Makefile.in (symmisc.o): Update dependencies.
8888
2d0c7962
EZ
88892003-04-14 Elena Zannoni <ezannoni@redhat.com>
8890
8891 * s390-nat.c: Include asm/types.h for addr_t.
8892
1947a811
CV
88932003-04-14 Corinna Vinschen <vinschen@redhat.com>
8894
8895 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8896 actually incoming type.
8897
adb616d7
AC
88982003-04-13 Andrew Cagney <cagney@redhat.com>
8899
8900 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8901 get_next_frame and get_frame_saved_regs.
8902
9b5e151c
AC
89032003-04-13 Andrew Cagney <cagney@redhat.com>
8904
8905 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8906 of gdbarch_num_regs.
8907
ef6e7e13
AC
89082003-04-13 Andrew Cagney <cagney@redhat.com>
8909
8910 * frame.h: Mention what replaced what in "struct frame_info".
8911 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8912 deprecated_update_frame_base_hack and
8913 deprecated_update_frame_pc_hack.
8914 * hppa-tdep.c: Ditto.
8915
61fbb938
DJ
89162003-04-13 Daniel Jacobowitz <drow@mvista.com>
8917
8918 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8919 to read_reg and update its comment. Remove regnum member.
8920 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8921 Don't call read_reg when setting in_reg. Call read_reg to get
8922 the frame base if it's in a register. Return the register number
8923 on the stack instead of in the context. Remove extra arguments
8924 to read_reg.
8925 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8926 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8927 the register number on the expression stack.
8928 (needs_frame_read_reg): Remove extra arguments.
8929
0d53c4c4
DJ
89302003-04-13 Daniel Jacobowitz <drow@mvista.com>
8931
8932 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8933 made non-static.
8934 (execute_stack_op): All callers updated.
8935 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8936 * dwarf2loc.c (find_location_expression): New function.
8937 (dwarf_expr_frame_base): Call it.
8938 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8939 (dwarf2_tracepoint_var_ref): New function, broken out from
8940 locexpr_tracepoint_var_ref.
8941 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8942 Make static.
8943 (loclist_read_variable, loclist_read_needs_frame): New functions.
8944 (loclist_describe_location, loclist_tracepoint_var_ref): New
8945 functions.
8946 (dwarf2_loclist_funcs): New struct location_funcs.
8947 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8948 (struct dwarf2_locexpr_baton): Add comments.
8949 (dwarf2_loclist_funcs): New extern.
8950 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8951 base_address and base_known.
8952 (dwarf_loc_buffer): New variable.
8953 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8954 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8955 (dwarf2_has_info): Initialize dwarf_loc_offset.
8956 (dwarf2_build_psymtabs): Read in .debug_loc.
8957 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8958 DWARF_LOC_SIZE.
8959 (psymtab_to_symtab_1): Likewise. Move base address calculation
8960 here, from...
8961 (dwarf2_get_pc_bounds): ... here. Use the base address from
8962 cu_header.
8963 (dwarf2_symbol_mark_computed): Handle location lists.
8964
6aca59a3
DJ
89652003-04-13 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8968 if the linkage name demangled successfully.
8969
aca1fcd0
MK
89702003-04-13 Mark Kettenis <kettenis@gnu.org>
8971
97095916
MK
8972 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8973 disassmbly_flavour): Removed.
8974
aca1fcd0
MK
8975 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8976
562a961f
MK
89772003-04-13 Mark Kettenis <kettenis@gnu.org>
8978
8979 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8980
bd013d54
AC
89812003-04-12 Andrew Cagney <cagney@redhat.com>
8982
8983 * frame.h (struct frame_info): Move definition from here ...
8984 * frame.c (struct frame_info): ... to here.
8985
167ef8b1
AC
89862003-04-12 Andrew Cagney <cagney@redhat.com>
8987
8988 * gdbthread.h (save_infrun_state): Delete parameter
8989 "prev_func_start".
8990 (struct thread_info): Delete field "prev_func_start".
8991 (load_infrun_state): Ditto.
8992 * thread.c (load_infrun_state, save_infrun_state): Update.
8993 * infrun.c (prev_func_start): Delete variable.
8994 (context_switch, init_wait_for_inferior): Update.
8995 (stop_stepping, keep_going): Update.
8996
da3331ec
AC
89972003-04-12 Andrew Cagney <cagney@redhat.com>
8998
8999 * gdbarch.sh: Add missing opaque declarations.
9000 * gdbarch.h: Regnerate.
9001 * symtab.h: Add missing opaque declarations.
9002 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9003 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9004 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9005 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9006 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9007 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9008 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9009 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9010 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9011 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9012 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9013 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9014 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9015
18adea3f
AC
90162003-04-11 Andrew Cagney <cagney@redhat.com>
9017
9018 * frame.c (get_frame_id): Return this frame's "id".
9019 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9020 function start.
9021 (legacy_saved_regs_this_id): Replace function body with
9022 internal-error.
9023 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9024 FRAME_OBSTACK_ZALLOC.
9025 (create_new_frame): Mark the frame ID as valid.
9026
2252e863
AO
90272003-04-11 Alexandre Oliva <aoliva@redhat.com>
9028
9029 * Makefile.in (libbfd_h): Added missing setting.
9030 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9031 according to the selected ABI.
9032
a8245ab8
JJ
90332003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9034
9035 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9036
6913c89a
AC
90372003-04-11 Andrew Cagney <cagney@redhat.com>
9038
9039 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9040 SAVED_PC_AFTER_CALL.
9041 * gdbarch.h, gdbarch.c: Regenerate.
9042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9043 * x86-64-tdep.c (x86_64_init_abi): Update.
9044 * vax-tdep.c (vax_gdbarch_init): Update.
9045 * v850-tdep.c (v850_gdbarch_init): Update.
9046 * sparc-tdep.c (sparc_gdbarch_init): Update.
9047 * sh-tdep.c (sh_gdbarch_init): Update.
9048 * s390-tdep.c (s390_gdbarch_init): Update.
9049 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9050 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9051 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9052 * mips-tdep.c (mips_gdbarch_init): Update.
9053 * mcore-tdep.c (mcore_gdbarch_init): Update.
9054 * m68k-tdep.c (m68k_gdbarch_init): Update.
9055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9056 * ia64-tdep.c (ia64_gdbarch_init): Update.
9057 (ia64_saved_pc_after_call): Update declaration.
9058 * i386ly-tdep.c (i386lynx_init_abi): Update.
9059 * i386-tdep.c (i386_gdbarch_init): Update.
9060 * hppa-tdep.c (hppa_gdbarch_init): Update.
9061 * h8300-tdep.c (h8300_gdbarch_init): Update.
9062 * frv-tdep.c (frv_gdbarch_init): Update.
9063 * cris-tdep.c (cris_gdbarch_init): Update.
9064 * avr-tdep.c (avr_gdbarch_init): Update.
9065 * arm-tdep.c (arm_gdbarch_init): Update.
9066 * alpha-tdep.c (alpha_gdbarch_init): Update.
9067 * ns32knbsd-nat.c (frame_num_args): Update.
9068 * ns32k-tdep.c (umax_frame_num_args): Update.
9069 * mips-tdep.c (mips_init_frame_pc_first): Update.
9070 * infrun.c (step_over_function): Update.
9071 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9072 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9073 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9074 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9075 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9076 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9077 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9078 * arch-utils.c (init_frame_pc_default): Update.
9079 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9080 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9081 declaration.
8ffd9b1b 9082
38edeab8
AC
90832003-04-11 Andrew Cagney <cagney@redhat.com>
9084
9085 * i387-tdep.c: Update copyright.
9086 (i387_to_double): Delete function.
9087 (double_to_i387): Delete function.
9088
81f8a206
AC
90892003-04-10 Andrew Cagney <cagney@redhat.com>
9090
9091 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9092 frame's function's address. Simplify.
9093 (d10v_frame_unwind_cache): Check that the frame's function is
9094 non-zero.
9095
6e691f7a
JB
90962003-04-10 Jim Blandy <jimb@redhat.com>
9097
9098 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9099 call to set_gdbarch_deprecated_push_arguments.
9100
7f78e237
AC
91012003-04-10 Andrew Cagney <cagney@redhat.com>
9102
9103 * frame.c (fprint_frame_id): New function.
9104 (fprint_frame_type, fprint_frame): New function.
9105 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9106 (create_sentinel_frame, get_frame_id): Ditto.
9107 (frame_id_p, frame_id_eq): Ditto.
9108 (frame_id_inner, create_new_frame): Ditto.
9109 (legacy_get_prev_frame, get_prev_frame): Ditto.
9110 (deprecated_update_frame_pc_hack): Ditto.
9111 (frame_register_unwind): Ditto.
9112 (deprecated_update_frame_base_hack): Ditto.
9113
f870b49b
CV
91142003-04-10 Corinna Vinschen <vinschen@redhat.com>
9115
9116 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9117 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9118 frame_chain function.
9119 * Makefile.in: Add dependencies due to above change.
9120
7c86889b
CV
91212003-04-10 Corinna Vinschen <vinschen@redhat.com>
9122
9123 * blockframe.c (legacy_frame_chain_valid): Move call to
9124 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9125 inside_entry_file.
9126
d0a55772
AC
91272003-04-09 Andrew Cagney <cagney@redhat.com>
9128
9129 * frame.h (struct frame_id): Replace "pc" and "base" with
9130 "stack_addr" and "code_addr". Update comments.
9131 (frame_id_build): Update parameter names and comment.
9132 (struct frame_info): Replace "id_p" and "id" with "this_id".
9133 * dummy-frame.c (dummy_frame_this_id): Update.
9134 * breakpoint.c (print_one_breakpoint): Update.
9135 * frame.c (get_frame_id): Update.
9136 (get_frame_base, frame_id_build): Update.
9137 (create_sentinel_frame, legacy_get_prev_frame): Update.
9138 (deprecated_update_frame_base_hack): Update.
9139 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9140 (frame_id_inner): Ditto.
9141
ac16bf07
AC
91422003-04-09 Andrew Cagney <cagney@redhat.com>
9143
9144 * defs.h (gdb_print_host_address): Make "addr" parameter a
9145 pointer constant.
9146 * utils.c (gdb_print_host_address): Update.
9147
366cfc9e
KB
91482003-04-09 Kevin Buettner <kevinb@redhat.com>
9149
9150 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9151 register number for R0 is 0.
9152
cd983b5c
JB
91532003-04-09 J. Brobecker <brobecker@gnat.com>
9154
9155 * frame.h (struct gdbarch): Add opaque structure definition
9156 to avoid a compilation warning on LynxOS 4.0.
9157
d1340264
AC
91582003-04-09 Andrew Cagney <cagney@redhat.com>
9159
9160 * frame.h (struct frame_info): Delete field "pc". Replace
9161 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9162 structure.
9163 * frame.c (frame_pc_unwind): Update.
9164 (create_sentinel_frame): Do not set "pc".
9165 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9166 (get_frame_pc): Call frame_pc_unwind.
9167 (deprecated_update_frame_pc_hack): Update.
9168 (create_new_frame): Use "pc" not "->pc".
9169
90a6fffb
AC
91702003-04-09 Andrew Cagney <cagney@redhat.com>
9171
9172 * frame.c (get_frame_id): Eliminate code updating "frame".
9173 (legacy_get_prev_frame): Ditto.
9174 (get_frame_base): Return id.base directly.
9175 (deprecated_update_frame_base_hack): Update "id.base".
9176 * frame.h (struct frame_info): Delete field "frame".
9177
2fbce691
AC
91782003-04-09 Andrew Cagney <cagney@redhat.com>
9179
9180 * NEWS: Mention that the "Sequent family" is obsolete.
9181 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9182 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9183 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9184 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9185 * config/i386/tm-ptx4.h: Obsolete file.
9186 * config/i386/tm-ptx.h: Obsolete file.
9187 * symm-tdep.c: Obsolete file.
9188 * config/i386/symmetry.mt: Obsolete file.
9189 * config/i386/tm-symmetry.h: Obsolete file.
9190 * symm-nat.c: Obsolete file.
9191 * config/i386/nm-symmetry.h: Obsolete file.
9192 * config/i386/xm-symmetry.h: Obsolete file.
9193 * config/i386/symmetry.mh: Obsolete file.
9194 * config/i386/nm-ptx4.h: Obsolete file.
9195 * config/i386/ptx4.mh: Obsolete file.
9196 * config/i386/ptx.mt: Obsolete file.
9197 * config/i386/ptx.mh: Obsolete file.
9198 * config/i386/xm-ptx4.h: Obsolete file.
9199 * config/i386/xm-ptx.h: Obsolete file.
9200
78c43945
AC
92012003-04-09 Andrew Cagney <cagney@redhat.com>
9202
9203 Obsolete mips*-*-mach3*.
9204 * NEWS: Mention that mips*-*-mach3* is obsolete.
9205 * m3-nat.c: Obsolete file.
9206 * config/nm-m3.h: Obsolete file.
9207 * config/mips/tm-mipsm3.h: Obsolete file.
9208 * config/mips/mipsm3.mt: Obsolete file.
9209 * config/mips/mipsm3.mh: Obsolete file.
9210 * config/mips/xm-mipsm3.h: Obsolete file.
9211 * mipsm3-nat.c: Obsolete file.
9212 * configure.host: Obsolete mips-dec-mach3*.
9213 * configure.tgt: Obsolete mips*-*-mach3*.
9214
f1908289
AC
92152003-04-09 Andrew Cagney <cagney@redhat.com>
9216
9217 * doublest.h: Update copyright.
9218 (deprecated_store_floating, deprecated_extract_floating): Rename
9219 store_floating and extract_floating. Update comments.
9220 * doublest.c: Update copyright.
9221 (extract_floating_by_length): Replace extract_floating.
9222 (store_floating_by_length): Replace store_floating.
9223 (deprecated_extract_floating): New function.
9224 (deprecated_store_floating): New function.
9225 (extract_typed_floating): Call extract_floating_by_length.
9226 (store_typed_floating): Call store_floating_by_length.
9227 * x86-64-tdep.c (x86_64_store_return_value): Update.
9228 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9229 (sh64_extract_return_value): Update.
9230 (sh_sh4_register_convert_to_virtual): Update.
9231 (sh_sh64_register_convert_to_virtual): Update.
9232 (sh_sh4_register_convert_to_raw): Update.
9233 (sh_sh64_register_convert_to_raw): Update.
9234 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9235 (rs6000_register_convert_to_raw): Update.
9236 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9237 (ia64_register_convert_to_raw): Update.
9238 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9239 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9240 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9241 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9242 (alpha_register_convert_to_raw): Update.
9243
4443bd83
AC
92442003-04-08 Andrew Cagney <cagney@redhat.com>
9245
9246 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9247 * gdbarch.h, gdbarch.c: Re-generate.
9248 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9249 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9250 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9251 conditionally, use frame_pc_unwind as an alternative. Add
9252 comments.
9253 * arch-utils.c (init_frame_pc_default): Only call
9254 SAVED_PC_AFTER_CALL when available.
9255
c0236d92
EZ
92562003-04-08 Elena Zannoni <ezannoni@redhat.com>
9257
fbe586ae 9258 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9259 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9260 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9261 (start_remote): Ditto.
9262 (handle_inferior_event): Ditto.
9263 (save_inferior_status): Ditto.
9264 (restore_inferior_status): Ditto.
9265 * infcmd.c (attach_command): Ditto.
9266 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9267 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9268 * alpha-tdep.c (heuristic_proc_start): Ditto.
9269 * mips-tdep.c (heuristic_proc_start): Ditto.
9270 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9271 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9272 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9273 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9274 * remote-vx.c (vx_create_inferior): Ditto.
9275
92762003-04-08 Elena Zannoni <ezannoni@redhat.com>
9277
9278 * infrun.c (stop_soon_quietly): Make it an enum, to better
9279 override the default behavior of handle_inferior_event.
9280 (clear_proceed_status): Update uses of stop_soon_quietly to
9281 reflect that it is now an enum.
9282 (start_remote): Ditto.
9283 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9284 is set to handle the new GNU/Linux kernel behavior for
9285 attach/sigstop. Update uses of stop_soon_quietly.
9286 * inferior.h (enum stop_kind): New enum.
9287 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9288 Reset normal handle_inferior_event behavior, afterwards.
9289 * fork-child.c (startup_inferior): Update.
9290 * alpha-tdep.c (heuristic_proc_start): Update.
9291 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9292 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9293 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9294 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9295 * remote-vx.c (vx_create_inferior): Update.
9296 * mips-tdep.c (heuristic_proc_start): Update.
9297
1211bce3
EZ
92982003-04-07 Elena Zannoni <ezannoni@redhat.com>
9299
9300 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9301 be freed more than once, causing wild memory corruptions.
1211bce3 9302 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9303 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9304 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9305 with the "core" target.
1211bce3 9306
f0ef6b29
KB
93072003-04-07 Kevin Buettner <kevinb@redhat.com>
9308
9309 * mips-tdep.c (mips_print_fp_register): New function, created from
9310 do_fp_register_row(). Registers are now (also) printed as hex.
9311 Only one register is printed per row.
9312 (mips_print_register, do_fp_register_row): Print floating point
9313 registers with mips_print_fp_register().
9314
8cf71652
AC
93152003-04-06 Andrew Cagney <cagney@redhat.com>
9316
5e488a7b
AC
9317 * valprint.h (inspect_it): Add extern declaration.
9318 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9319 (selectors_info, classes_info): Ditto.
9320 (find_objc_msgcall): Fix indentation.
9321 (objc_printstr): Delete extern declarations.
9322
8cf71652
AC
9323 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9324
e6ba3bc9
AC
93252003-04-06 Andrew Cagney <cagney@redhat.com>
9326
9327 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9328 Update comment.
9329 * frame.c (legacy_saved_regs_this_id): Update.
9330 (legacy_get_prev_frame): Update.
9331 * xstormy16-tdep.c: Update comment.
9332 * sparc-tdep.c (sparc_frame_chain): Update comment.
9333 * blockframe.c (legacy_frame_chain_valid): Update.
9334
55e1d7e7
AC
93352003-04-06 Andrew Cagney <cagney@redhat.com>
9336
996179ee
AC
9337 * valprint.c (val_print_type_code_int): Delete #ifdef
9338 PRINT_TYPELESS_INTEGER code.
9339
55e1d7e7
AC
9340 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9341 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9342 multi-arch definition.
9343 * gdbarch.h: Re-generate.
9344
43bd9a9e
AC
93452003-04-05 Andrew Cagney <cagney@redhat.com>
9346
9347 Eliminate FRAME_FIND_SAVED_REGS.
9348 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9349 Change FSR parameter to a pointer.
9350 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9351 Assume FSR parameter is a pointer.
9352 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9353 Make fsr a pointer.
9354 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9355 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9356 saved_regs a pointer.
9357 (hppa_frame_saved_pc): Ditto.
9358 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9359 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9360 pointer.
9361 (restore_pc_queue): Make fsr a pointer.
9362 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9363 (hppa_frame_chain): Make saved_regs a pointer, call
9364 hppa_frame_init_saved_regs.
9365 * sparc-tdep.c: Include "gdb_assert.h".
9366 (sparc_frame_find_saved_regs): Replace internal_error with
9367 gdb_assert.
9368 * remote-vxsparc.c (vx_read_register): Delete reference to
9369 FRAME_FIND_SAVED_REGS.
9370 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9371 * gdbarch.h: Regenerate.
9372 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9373 (deprecated_get_frame_saved_regs): Delete declaration.
9374 (struct frame_saved_regs): Delete definition.
9375 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9376 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9377 (hppa_frame_find_saved_regs): Delete declaration.
9378 (FRAME_FIND_SAVED_REGS): Delete macro.
9379 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9380 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9381 FRAME_FIND_SAVED_REGS in comment.
9382
be41e9f4
AC
93832003-04-05 Andrew Cagney <cagney@redhat.com>
9384
9385 * frame.c (frame_func_unwind, get_frame_func): New functions.
9386 * frame.h (get_frame_func, frame_func_unwind): Declare.
9387 (struct frame_info): Add field "prev_func" for caching the
9388 previous frame's function address.
9389 * arm-tdep.c (arm_frameless_function_invocation): Combine
9390 get_pc_function_start and get_frame_pc into get_frame_func.
9391 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9392 (sh64_nofp_frame_init_saved_regs): Ditto.
9393 * s390-tdep.c (s390_function_start): Ditto.
9394 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9395 (rs6000_frameless_function_invocation): Ditto.
9396 (rs6000_frame_saved_pc): Ditto.
9397 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9398 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9399 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9400 (i386_frame_init_saved_regs): Ditto.
9401 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9402 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9403 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9404 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9405 * blockframe.c (frameless_look_for_prologue): Ditto.
9406
a01dd7cc
AC
94072003-04-05 Andrew Cagney <cagney@redhat.com>
9408
9409 * frame.c (legacy_get_prev_frame): Link prev to next at the
9410 function start. Update comments.
9411
5e5592e6
AC
94122003-04-05 Andrew Cagney <cagney@redhat.com>
9413
9414 * frame.c (get_frame_id): Update comment.
9415 (legacy_get_prev_frame): Update comment.
9416 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9417 * gdbarch.h: Regenerate.
9418 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9419 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9420
6fba5002
AC
94212003-04-05 Andrew Cagney <cagney@redhat.com>
9422
9423 * stack.c (print_frame_info): Use get_frame_pc.
9424
7df05f2b
AC
94252003-04-04 Andrew Cagney <cagney@redhat.com>
9426
9427 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9428 the frame's type from the unwinder.
9429 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9430 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9431 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9432 (get_frame_base_address): Use get_frame_type.
9433 (get_frame_locals_address, get_frame_args_address): Ditto.
9434 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9435 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9436 (struct frame_info): Add comment explaining why the frame contains
9437 a "type" field.
9438 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9439 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9440 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9441 NORMAL_FRAME.
9442 * frame-unwind.h: Include "frame.h".
9443 (struct frame_unwind): Add "type" field.
9444 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9445
11889732
AC
94462003-04-04 Andrew Cagney <cagney@redhat.com>
9447
9448 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9449 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9450 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9451 get_frame_base.
9452 (d10v_unwind_dummy_id): Use frame_id_build.
9453 * frame.c (find_frame_sal): Use get_frame_pc.
9454 (create_new_frame): Use deprecated_update_frame_pc_hack and
9455 deprecated_update_frame_base_hack.
9456 (create_sentinel_frame): Add comment about ->pc going away.
9457 (get_prev_frame): Add comment about ->pc going away.
9458 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9459 frame_id_build, deprecated_update_frame_pc_hack and
9460 deprecated_update_frame_base_hack.
9461 (select_frame): Use get_frame_pc.
9462 (legacy_saved_regs_this_id): Use frame_id_build.
9463
50c46a0d
EZ
94642003-04-04 Elena Zannoni <ezannoni@redhat.com>
9465
fbe586ae
RH
9466 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9467 signed integer case.
9468 (classify_argument): Handle enumerations and references.
50c46a0d 9469
50bbdbd9
AC
94702003-04-04 Andrew Cagney <cagney@redhat.com>
9471
9472 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9473 ID to NULL.
9474
36018d2e
AF
94752003-04-01 Adam Fedor <fedor@gnu.org>
9476
9477 * gdb/objc-lang.c (selectors_info): Replace calls to
9478 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9479 SYMBOL_NATURAL_NAME.
9480 (classes_info, find_methods): Likewise.
9481
35cec841
KB
94822003-04-03 Kevin Buettner <kevinb@redhat.com>
9483
9484 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9485 ``mach'' to the value determined by bfd_default_set_arch_mach().
9486
43136899
BR
94872003-04-02 Bob Rossi <bob_rossi@cox.net>
9488
9489 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9490 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9491 (mi-cmd-file.o): Update dependencies.
9492
040b99fd
KB
94932003-04-01 Kevin Buettner <kevinb@redhat.com>
9494
9495 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9496 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9497
9a3d7dfd
AF
94982003-04-01 Adam Fedor <fedor@gnu.org>
9499
9500 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9501 * language.h (struct language_defn): Add la_demangle.
9502 (language_demangle): Declare.
9503 * language.c (language_demangle): New function.
9504 (unk_lang_demangle): Likewise.
9505 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9506 Add ukn_lang_demangle.
9a3d7dfd 9507 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9508 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9509 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9510 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9511 * jv-lang.c (java_demangle): New function
9512 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9513 * objc-lang.c (objc_demangle): Add options argument
9514 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9515 * maint.c (maintenance_demangle): Replace switch with
9516 call to language_demangle.
9517 * utils.c (fprintf_symbol_filtered): Likewise.
9518
5e074003
AC
95192003-04-01 Andrew Cagney <cagney@redhat.com>
9520
9521 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9522 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9523 PRINT_TYPELESS_INTEGER.
9524 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9525 PUSH_RETURN_ADDRESS.
9526
270cb5d6
AC
95272003-04-01 Andrew Cagney <cagney@redhat.com>
9528
9529 * Makefile.in (d10v-tdep.o): Update dependencies.
9530 * d10v-tdep.c: Include "frame-base.h".
9531 (d10v_frame_unwind): Make constant.
9532 (d10v_frame_base_address): New function.
9533 (d10v_frame_base): New variable.
9534 (d10v_gdbarch_init): Set frame_base default.
9535 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9536 comment for base.
9537 (d10v_frame_unwind_cache): Set and use "prev_sp".
9538 (d10v_frame_this_id): Use the previous frame's inner most stack
9539 address and this frame's func address for the frame ID. Use
9540 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9541
6bfb3e36
AC
95422003-04-01 Andrew Cagney <cagney@redhat.com>
9543
9544 * frame.h (get_frame_locals_address, get_frame_args_address):
9545 Refer to the base address, instead of the address of the first
9546 local or parameter.
8ffd9b1b 9547
da62e633
AC
95482003-04-01 Andrew Cagney <cagney@redhat.com>
9549
9550 Add frame debug info addresses:
9551 * frame-base.c: New file.
9552 * frame-base.h: New file.
9553 * frame.h (struct frame_base): Add opaque declaration.
9554 (get_frame_base): Update comment.
9555 (get_frame_base_address): Declare.
9556 (get_frame_locals_address): Declare.
9557 (get_frame_args_address): Declare.
9558 (struct frame_info): Add "base" and "base_cache". Update
9559 comments on the unwinder.
9560 * frame.c: Include "frame-base.h".
9561 (get_frame_locals_address): New function.
9562 (get_frame_base_address): New function.
9563 (get_frame_args_address): New function.
9564 * findvar.c (read_var_value): Use get_frame_locals_address and
9565 get_frame_args_address.
9566 * stack.c (frame_info): Use get_frame_locals_address and
9567 get_frame_args_address.
9568 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9569 moved to "frame-base.c".
9570 * printcmd.c (print_frame_nameless_args): Ditto.
9571 * symtab.h (address_class): Update comments.
9572 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9573 get_frame_base_address.
9574 * dwarf2expr.c (execute_stack_op): Ditto.
9575 * Makefile.in (frame_base_h): Define.
9576 (frame.o): Update dependencies.
9577 (frame-base.o): Add dependencies.
9578 (SFILES): Add frame-base.c.
9579 (COMMON_OBS): Add frame-base.o.
9580
3d30e9c2
AC
95812003-04-01 Andrew Cagney <cagney@redhat.com>
9582
9583 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9584 CALL_DUMMY_LENGTH): Ditto.
9585 * gdbarch.c: Re-generate.
9586 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9587 (CALL_DUMMY_LENGTH): Delete macro.
9588 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9589 * arm-tdep.c (arm_gdbarch_init): Ditto.
9590 * avr-tdep.c (avr_gdbarch_init): Ditto.
9591 * cris-tdep.c (cris_gdbarch_init): Ditto.
9592 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9593 * frv-tdep.c (frv_gdbarch_init): Ditto.
9594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9595 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9596 * i386-tdep.c (i386_gdbarch_init): Ditto.
9597 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9599 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9600 * mips-tdep.c (mips_gdbarch_init): Ditto.
9601 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9602 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9603 * s390-tdep.c (s390_gdbarch_init): Ditto.
9604 * sh-tdep.c (sh_gdbarch_init): Ditto.
9605 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9606 * v850-tdep.c (v850_gdbarch_init): Ditto.
9607 * vax-tdep.c (vax_gdbarch_init): Ditto.
9608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9609
ce0c7262
CV
96102003-04-01 Corinna Vinschen <vinschen@redhat.com>
9611
9612 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9613
73dd234f
AC
96142003-04-01 Andrew Cagney <cagney@redhat.com>
9615
9616 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9617 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9618 * gdbarch.h, gdbarch.c: Re-generate.
9619 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9620 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9621 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9622 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9623 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9624 * infcmd.c (run_stack_dummy): Simplify assuming
9625 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9626 * infrun.c (handle_inferior_event): Ditto.
9627 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9628 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9629 * arm-tdep.c (arm_gdbarch_init): Ditto.
9630 * avr-tdep.c (avr_gdbarch_init): Ditto.
9631 * cris-tdep.c (cris_gdbarch_init): Ditto.
9632 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9633 * frv-tdep.c (frv_gdbarch_init): Ditto.
9634 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9635 * i386-tdep.c (i386_gdbarch_init): Ditto.
9636 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9638 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9640 * mips-tdep.c (mips_gdbarch_init): Ditto.
9641 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9642 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9644 * s390-tdep.c (s390_gdbarch_init): Ditto.
9645 * sh-tdep.c (sh_gdbarch_init): Ditto.
9646 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9647 * v850-tdep.c (v850_gdbarch_init): Ditto.
9648 * vax-tdep.c (vax_gdbarch_init): Ditto.
9649 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9650
97606a13
DJ
96512003-04-01 Daniel Jacobowitz <drow@mvista.com>
9652
9653 * symfile.c (symfile_relocate_debug_section): Update call to
9654 bfd_simple_get_relocated_section_contents.
9655
e8ab51f7
AC
96562003-03-31 Andrew Cagney <cagney@redhat.com>
9657
9658 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9659 * gdbarch.h, gdbarch.c: Regenerate.
9660 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9661 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9662 available.
9663 * frame.h (generic_fix_call_dummy): Delete declaration.
9664 * dummy-frame.h: Update comment.
9665 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9667 fix_call_dummy.
9668 * sh-tdep.c (sh_gdbarch_init): Ditto.
9669 * s390-tdep.c (s390_gdbarch_init): Ditto.
9670 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9671 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9673 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9674 * i386-tdep.c (i386_gdbarch_init): Ditto.
9675 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9676 * frv-tdep.c (frv_gdbarch_init): Ditto.
9677 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9678 * cris-tdep.c (cris_gdbarch_init): Ditto.
9679 * avr-tdep.c (avr_gdbarch_init): Ditto.
9680 * arm-tdep.c (arm_gdbarch_init): Ditto.
9681
018d1b48
JB
96822003-03-31 J. Brobecker <brobecker@gnat.com>
9683
9684 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9685 (INIT_FRAME_AP): Likewise.
9686 (EXTRA_FRAME_INFO): Likewise.
9687
e9a2674e
AC
96882003-03-31 Andrew Cagney <cagney@redhat.com>
9689
9690 * gdbarch.sh: Include "symfile.h".
9691 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9692 * gdbarch.h, gdbarch.c: Re-generate.
9693 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9695 call_dummy_address, the default is at entry_point_address.
9696 * v850-tdep.c (v850_gdbarch_init): Ditto.
9697 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9698 * sh-tdep.c (sh_gdbarch_init): Ditto.
9699 * s390-tdep.c (s390_gdbarch_init): Ditto.
9700 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9701 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9703 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9704 * i386-tdep.c (i386_gdbarch_init): Ditto.
9705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9706 * frv-tdep.c (frv_gdbarch_init): Ditto.
9707 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9708 * cris-tdep.c (cris_gdbarch_init): Ditto.
9709 * arm-tdep.c (arm_gdbarch_init): Ditto.
9710
e8a8712a
AC
97112003-03-31 Andrew Cagney <cagney@redhat.com>
9712
9713 * gdbarch.sh (CALL_DUMMY_P): Delete.
9714 * gdbarch.h, gdbarch.c: Re-generate.
9715 * inferior.h (CALL_DUMMY_P): Delete macro.
9716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9717 * vax-tdep.c (vax_gdbarch_init): Update.
9718 * v850-tdep.c (v850_gdbarch_init): Update.
9719 * sparc-tdep.c (sparc_gdbarch_init): Update.
9720 * sh-tdep.c (sh_gdbarch_init): Update.
9721 * s390-tdep.c (s390_gdbarch_init): Update.
9722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9725 * mips-tdep.c (mips_gdbarch_init): Update.
9726 * mcore-tdep.c (mcore_gdbarch_init): Update.
9727 * m68k-tdep.c (m68k_gdbarch_init): Update.
9728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9729 * ia64-tdep.c (ia64_gdbarch_init): Update.
9730 * i386-tdep.c (i386_gdbarch_init): Update.
9731 * h8300-tdep.c (h8300_gdbarch_init): Update.
9732 * frv-tdep.c (frv_gdbarch_init): Update.
9733 * d10v-tdep.c (d10v_gdbarch_init): Update.
9734 * cris-tdep.c (cris_gdbarch_init): Update.
9735 * breakpoint.c (deprecated_frame_in_dummy): Update.
9736 * avr-tdep.c (avr_gdbarch_init): Update.
9737 * alpha-tdep.c (alpha_gdbarch_init): Update.
9738 * arm-tdep.c (arm_gdbarch_init): Update.
9739 * dummy-frame.c (dummy_frame_this_id): Update comments.
9740 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9741 * frame.c (legacy_get_prev_frame): Ditto.
9742 * valops.c (call_function_by_hand): Delete function.
9743 (hand_function_call): Rename to call_function_by_hand
9744
ed234cf8
AC
97452003-03-30 Andrew Cagney <cagney@redhat.com>
9746
9747 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9748 * value.h (struct value): Update comment.
ed234cf8 9749
06c77151
AC
97502003-03-30 Andrew Cagney <cagney@redhat.com>
9751
6c2b5168
AC
9752 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9753 D10V_FP_REGNUM.
9754 (d10v_gdbarch_init): Do not set fp_regnum.
9755
06c77151
AC
9756 * frame.c (get_frame_base): Force ID initialization.
9757 (get_prev_frame): Move computation of the frame ID from here ...
9758 (get_frame_id): ... to here.
9759 (legacy_get_prev_frame): Mark the frame ID as valid.
9760 * frame.h (struct frame_info): Add field "id_p".
9761
97a1a11c
MK
97622003-03-30 Mark Kettenis <kettenis@gnu.org>
9763
9764 * i386-tdep.c (i386_store_struct_return): Removed.
9765 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9766
6c0e89ed
AC
97672003-03-30 Andrew Cagney <cagney@redhat.com>
9768
9769 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9770 * gdbarch.h, gdbarch.c: Regenerate.
9771 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9773 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9774 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9775 * i386-tdep.c (i386_gdbarch_init): Ditto.
9776 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9777 * cris-tdep.c (cris_gdbarch_init): Ditto.
9778 * vax-tdep.c (vax_gdbarch_init): Ditto.
9779 * s390-tdep.c (s390_gdbarch_init): Ditto.
9780 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9782 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9783 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9784 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9785 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9786 * sparc-tdep.c (sparc_gdbarch_init): Update.
9787 * sh-tdep.c (sh_gdbarch_init): Update.
9788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9789 * mips-tdep.c (mips_gdbarch_init): Update.
9790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9791 * ia64-tdep.c (ia64_gdbarch_init): Update.
9792 * frv-tdep.c (frv_gdbarch_init): Update.
9793 * avr-tdep.c (avr_gdbarch_init): Update.
9794 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9795 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9796 instead of when push_dummy_call is not available.
8ffd9b1b 9797
f7dd6af2
AC
97982003-03-30 Andrew Cagney <cagney@redhat.com>
9799
9800 * infttrace.c: Include "gdbthread.h".
9801 (parent_attach_all): Fix function signature.
9802 (call_ptrace): Update call.
9803 * Makefile.in (infttrace.o): Update dependencies.
9804
28f617b3
AC
98052003-03-30 Andrew Cagney <cagney@redhat.com>
9806
9807 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9808 PUSH_RETURN_ADDRESS.
9809 * gdbarch.h, gdbarch.c: Regenerate.
9810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9811 * x86-64-tdep.c (x86_64_init_abi): Update.
9812 * v850-tdep.c (v850_gdbarch_init): Update.
9813 * sparc-tdep.c (sparc_gdbarch_init): Update.
9814 * sh-tdep.c (sh_gdbarch_init): Update.
9815 * s390-tdep.c (s390_gdbarch_init): Update.
9816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9817 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9818 * mips-tdep.c (mips_gdbarch_init): Update.
9819 * mcore-tdep.c (mcore_gdbarch_init): Update.
9820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9821 * ia64-tdep.c (ia64_gdbarch_init): Update.
9822 * i386-tdep.c (i386_gdbarch_init): Update.
9823 * h8300-tdep.c (h8300_gdbarch_init): Update.
9824 * frv-tdep.c (frv_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 * valops.c (hand_function_call): Update.
9829
4d628cd7
AC
98302003-03-29 Andrew Cagney <cagney@redhat.com>
9831
9832 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9833 sizeof_call_dummy_words.
9834 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9835 define.
9836 * gdbarch.h: Regenerate.
8ffd9b1b 9837
65e82032
AC
98382003-03-29 Andrew Cagney <cagney@redhat.com>
9839
9840 * infttrace.h: New file.
9841 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9842 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9843 (hpread_read_doc_function_type): Detect an initialized type1.
9844 (hpread_quick_traverse): Initialize mod_name_string.
9845 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9846 (som_solib_get_solib_by_pc): Declare.
9847 (so_lib_thread_start_addr): Declare.
9848 (no_shared_libraries): Declare.
9849 * somread.c (init_import_symbols): Make static. Add forward
9850 declaration.
9851 * config/pa/nm-hppah.h: Include "infttrace.h" for
9852 parent_attach_all.
9853 (hppa_insert_hw_watchpoint): Declare.
9854 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9855 * hppah-nat.c: Include "gdb_string.h".
9856 (parent_attach_all): Delete extern declaration, moved to
9857 "infttrace.h".
9858 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9859 int.
9860 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9861 * Makefile.in (infttrace_h): Define.
9862 (hpread.o): Update dependencies.
9863 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9864 * hppa-hpux-tdep.c: Include "gdb_string.h".
9865 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9866 * infrun.c (handle_inferior_event): Always initialize
9867 stepped_after_stopped_by_watchpoint. Add default and remove
9868 fallthrough in switch statement.
9869 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9870 parameter to int.
9871 (hppa_remove_hw_watchpoint): Ditto.
9872
2c3bbe77
AC
98732003-03-29 Andrew Cagney <cagney@redhat.com>
9874
9875 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9876 offset.
9877
2dd604e7
RE
98782003-03-29 Richard Earnshaw <rearnsha@arm.com>
9879
9880 * arm-tdep.c (arm_push_arguments): Delete.
9881 (struct stack_item): New type.
9882 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9883 (arm_store_struct_return): Delte.
9884 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9885 arm_push_arguments or arm_store_struct_return.
9886
e8933a55
AC
98872003-03-28 Andrew Cagney <cagney@redhat.com>
9888
9889 * Makefile.in (d10v-tdep.o): Update dependencies.
9890 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9891 * d10v-tdep.c: Include "remote.h".
9892 (target_resume_hook): Delete extern declaration.
9893 (target_wait_loop_hook): Ditto.
9894 (tdisassemble_command): Eliminate assignment in "if" conditional.
9895 (d10v_ts2_register_sim_regno): Eliminate call to
9896 legacy_register_sim_regno.
9897 (d10v_ts3_register_sim_regno): Ditto.
9898
6949171e
JJ
98992003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9900
9901 * thread.c: Reindented.
9902 * lin-lwp.c: Ditto.
9903 * linux-proc.c: Ditto.
9904
98c7071f
BR
99052003-03-28 Bob Rossi <bob_rossi@cox.net>
9906
fbe586ae 9907 * MAINTAINERS (write after approval): Add myself.
98c7071f 9908
5edc9ca6
TR
99092003-03-27 Theodore A. Roth <troth@openavr.org>
9910
9911 * objc-exp.y: Add missing semi-colons.
9912
378bfd1b
AC
99132003-03-27 Andrew Cagney <cagney@redhat.com>
9914
9915 * regcache.c (write_sp): Delete function and references.
9916 * inferior.h (write_sp): Delete declaration.
9917 * valops.c (hand_function_call): Replace write_sp with
9918 TARGET_WRITE_SP.
9919 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9920 (sparc_pop_frame): Ditto.
8ffd9b1b 9921
56056df7
AC
99222003-03-27 Andrew Cagney <cagney@redhat.com>
9923
9924 * NEWS: Mention removal of support for hppa*-*-bsd* and
9925 hppa*-*-osf* natives, and hppa*-*-pro* target.
9926 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9927 * config/pa/xm-pa.h: Obsolete file.
9928 * config/pa/xm-hppab.h: Obsolete file.
9929 * config/pa/nm-hppab.h: Obsolete file.
9930 * config/pa/tm-hppab.h: Obsolete file.
9931 * config/pa/tm-hppao.h: Obsolete file.
9932 * config/pa/nm-hppao.h: Obsolete file.
9933 * config/pa/tm-pro.h: Obsolete file.
9934 * config/pa/hppaosf.mt: Obsolete file.
9935 * config/pa/hppaosf.mh: Obsolete file.
9936 * config/pa/hppapro.mt: Obsolete file.
9937 * config/pa/hppabsd.mt: Obsolete file.
9938 * config/pa/hppabsd.mh: Obsolete file.
9939 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9940 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9941 hppa*-*-osf*.
9942
5873a88d
AC
99432003-03-27 Andrew Cagney <cagney@redhat.com>
9944
9945 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9946 push_arguments. Don't set push_return_address or write_sp.
9947 (d10v_push_dummy_call): Replace d10v_push_arguments.
9948 (d10v_push_return_address, d10v_write_sp): Delete function,
9949 handled by push_dummy_call.
9950
b81774d8
AC
99512003-03-26 Andrew Cagney <cagney@redhat.com>
9952
9953 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9954 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9955 regcache and dummy_addr parameters.
9956 * gdbarch.h, gdbarch.c: Re-generate.
9957 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9958 available; assume it will handle stack alignment and return
9959 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9960 legacy_push_arguments.
9961 (legacy_push_arguments): Rename default_push_arguments.
9962 * value.h (legacy_push_arguments): Rename default_push_arguments.
9963 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9964 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9965 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9966 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9967 * config/i386/tm-symmetry.h: Update.
9968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9969 * x86-64-tdep.c (x86_64_init_abi): Update.
9970 * v850-tdep.c (v850_gdbarch_init): Update.
9971 * sparc-tdep.c (sparc_gdbarch_init): Update.
9972 * sh-tdep.c (sh_gdbarch_init): Update.
9973 * s390-tdep.c (s390_gdbarch_init): Update.
9974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9975 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9976 * mips-tdep.c (mips_gdbarch_init): Update.
9977 * mcore-tdep.c (mcore_gdbarch_init): Update.
9978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9979 * ia64-tdep.c (ia64_gdbarch_init): Update.
9980 * i386-tdep.c (i386_gdbarch_init): Update.
9981 * hppa-tdep.c (hppa_gdbarch_init): Update.
9982 * h8300-tdep.c (h8300_gdbarch_init): Update.
9983 * frv-tdep.c (frv_gdbarch_init): Update.
9984 * d10v-tdep.c (d10v_gdbarch_init): Update.
9985 * cris-tdep.c (cris_gdbarch_init): Update.
9986 * avr-tdep.c (avr_gdbarch_init): Update.
9987 * arm-tdep.c (arm_gdbarch_init): Update.
9988 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9989 * alpha-tdep.c (alpha_gdbarch_init): Update.
9990
f541410f
DJ
99912003-03-26 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * signals/signals.c (do_target_signal_to_host): Correct realtime
9994 signal range test.
9995
69f567ae
DJ
99962003-03-26 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9999 (struct sal_chain, map_catch_names): Remove.
10000 (catch_exception_command_1): Don't call
10001 handle_gnu_4_16_catch_command.
10002
d5d14a5a
DJ
100032003-03-26 Daniel Jacobowitz <drow@mvista.com>
10004
10005 From Mark Dettinger <dettinge@de.ibm.com>:
10006 * dwarf2cfi.c (read_2u): Increment pointer by two.
10007
bdd73e22
DJ
100082003-03-26 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * signals/signals.c: Fix typos in last change.
10011
960cb555
DJ
100122003-03-26 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10015 not already defined. Use __SIGRTMIN if available.
10016 (target_signal_from_host): Remove SIGRTMIN block.
10017 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10018 the signal is within the realtime range.
10019
f636b87d
AF
100202003-03-25 Adam Fedor <fedor@gnu.org>
10021
10022 * Makefile.in (infrun.o): Add $(language_h)
10023 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10024 for language specific trampolines.
10025 * language.h (struct language_defn): Add skip_trampoline.
10026 (skip_language_trampoline): Declare.
10027 * language.c (unk_lang_trampoline, skip_language_trampoline):
10028 New functions.
10029 (unknown_language_defn, auto_language_defn, local_language_defn):
10030 Add ukn_lang_trampoline.
10031 * ada-lang.c (ada_language_defn): Add NULL for language
10032 specific skip_trampoline.
10033 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10034 scm-lang.c: Likewise.
10035 * objc-lang.c (objc_skip_trampoline): New function.
10036 (objc_language_defn): Add objc_skip_trampoline.
10037
28f617b3 100382003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10039
10040 * frame.c (get_prev_frame): Delay validating a frame's ID -
10041 non-NULL, didn't go backwards - until an attempt to unwind it to
10042 the previous frame.
10043
f933a9c5
AC
100442003-03-25 Andrew Cagney <cagney@redhat.com>
10045
10046 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10047 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049 * config/sparc/tm-sparc.h
10050 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10051 * sparc-tdep.c (sparc_gdbarch_init): Set
10052 deprecated_extra_stack_alignment_needed.
10053 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10055 extra_stack_alignment_needed.
10056 * v850-tdep.c (v850_gdbarch_init): Ditto.
10057 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10058 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10059 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10060 * cris-tdep.c (cris_gdbarch_init): Ditto.
10061 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10063
4183d812
AC
100642003-03-25 Andrew Cagney <cagney@redhat.com>
10065
10066 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10067 STORE_STRUCT_RETURN.
10068 * gdbarch.h, gdbarch.c: Regenerate.
10069 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10070 (d10v_push_arguments): Set the struct return register.
10071 (d10v_gdbarch_init): Update.
10072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10073 * x86-64-tdep.c (x86_64_init_abi): Update.
10074 * vax-tdep.c (vax_gdbarch_init): Update.
10075 * v850-tdep.c (v850_gdbarch_init): Update.
10076 * sparc-tdep.c (sparc_gdbarch_init): Update.
10077 * sh-tdep.c (sh_gdbarch_init): Update.
10078 * s390-tdep.c (s390_gdbarch_init): Update.
10079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10080 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10082 * mips-tdep.c (mips_gdbarch_init): Update.
10083 * mcore-tdep.c (mcore_gdbarch_init): Update.
10084 * m68k-tdep.c (m68k_gdbarch_init): Update.
10085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10086 * ia64-tdep.c (ia64_gdbarch_init): Update.
10087 * i386-tdep.c (i386_gdbarch_init): Update.
10088 * hppa-tdep.c (hppa_gdbarch_init): Update.
10089 * h8300-tdep.c (h8300_gdbarch_init): Update.
10090 * frv-tdep.c (frv_gdbarch_init): Update.
10091 * cris-tdep.c (cris_gdbarch_init): Update.
10092 * avr-tdep.c (avr_gdbarch_init): Update.
10093 * arm-tdep.c (arm_gdbarch_init): Update.
10094 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10095
1bf6d5cc
AC
100962003-03-25 Andrew Cagney <cagney@redhat.com>
10097
10098 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10099 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10100 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10101 * gdbarch.h, gdbarch.c: Regenerate.
10102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10103 call_dummy_stack_adjust_p.
10104 * vax-tdep.c (vax_gdbarch_init): Ditto.
10105 * v850-tdep.c (v850_gdbarch_init): Ditto.
10106 * sh-tdep.c (sh_gdbarch_init): Ditto.
10107 * s390-tdep.c (s390_gdbarch_init): Ditto.
10108 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10109 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10111 * mips-tdep.c (mips_gdbarch_init): Ditto.
10112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10113 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10115 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10116 * i386-tdep.c (i386_gdbarch_init): Ditto.
10117 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10118 * frv-tdep.c (frv_gdbarch_init): Ditto.
10119 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10120 * cris-tdep.c (cris_gdbarch_init): Ditto.
10121 * avr-tdep.c (avr_gdbarch_init): Ditto.
10122 * arm-tdep.c (arm_gdbarch_init): Ditto.
10123 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10124 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10125 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10126 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10127 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10128 call_dummy_stack_adjust_p.
10129 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10130 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10131 * sparc-tdep.c (sparc32_push_arguments): Update.
10132 * valops.c (hand_function_call): Update.
10133
71c08af0
CV
101342003-03-25 Corinna Vinschen <vinschen@redhat.com>
10135
10136 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10137 set_gdbarch_char_signed.
10138
30757f90
RE
101392003-03-25 Richard Earnshaw <rearnsha@arm.com>
10140
10141 PR cli/548
10142 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10143
03d48a7d
RE
101442003-03-25 Richard Earnshaw <rearnsha@arm.com>
10145
10146 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10147 (_initialize_arm_tdep): Don't set tm_print_insn.
10148
2cf6873c
AF
101492003-03-24 Adam Fedor <fedor@gnu.org>
10150
10151 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10152 * objc-lang.h: Add multiple inclusion protection.
10153 (start_msglist, add_msglist, end_msglist): Additional declarations.
10154
17c0759e
RE
101552003-03-24 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10158 value was renamed to ARM_FLOAT_SOFT_FPA.
10159
618ce49f
AC
101602003-03-23 Andrew Cagney <cagney@redhat.com>
10161
10162 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10163 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10164 * gdbarch.h, gdbarch.c: Regenerate.
10165 * valops.c (hand_function_call): Update.
10166 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10167 * frame.c (legacy_saved_regs_this_id): Update.
10168 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10169 * dummy-frame.h: Update.
10170 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10171 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10172 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10173 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10174 * config/m68k/tm-sun3.h: Update.
10175 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10177 * x86-64-tdep.c (x86_64_init_abi): Update.
10178 * vax-tdep.c (vax_gdbarch_init): Update.
10179 * v850-tdep.c (v850_gdbarch_init): Update.
10180 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10181 * sh-tdep.c (sh_gdbarch_init): Update.
10182 * s390-tdep.c (s390_gdbarch_init): Update.
10183 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10184 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10185 (frame_get_saved_regs): Update.
10186 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10187 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10188 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10189 * mips-tdep.c (mips_gdbarch_init): Update.
10190 * mcore-tdep.c (mcore_gdbarch_init): Update.
10191 * m68k-tdep.c (m68k_gdbarch_init): Update.
10192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10193 * ia64-tdep.c (ia64_gdbarch_init): Update.
10194 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10195 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10196 (i386_interix_back_one_frame): Update.
10197 * hppa-tdep.c (hppa_gdbarch_init): Update.
10198 (hppa_init_extra_frame_info): Update.
10199 * h8300-tdep.c (h8300_gdbarch_init): Update.
10200 * frv-tdep.c (frv_gdbarch_init): Update.
10201 * cris-tdep.c (cris_gdbarch_init): Update.
10202 * avr-tdep.c (avr_gdbarch_init): Update.
10203 * arm-tdep.c (arm_gdbarch_init): Update.
10204 * alpha-tdep.c (alpha_gdbarch_init): Update.
10205
fd50bc42
RE
102062003-03-22 Richard Earnshaw <rearnsha@arm.com>
10207
10208 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10209 (arm_get_fp_model): Declare.
10210 * arm-tdep.c (fp_model_strings): New string array.
10211 (arm_fp_model, current_fp_model): New variables.
10212 (arm_get_fp_model): New function.
10213 (arm_set_fp): New function.
10214 (set_fp_model_sfunc): New function.
10215 (show_fp_model): New function.
10216 (_initialize_arm_tdep): Add new command to set/show the FPU.
10217 (arm_extract_return_value): Use arm_get_fp_model.
10218 (arm_store_return_value): Likewise.
10219 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10220 to initialize the floating-point data types.
10221 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10222 model is FPA.
10223
26304000
RE
102242003-03-22 Richard Earnshaw <rearnsha@arm.com>
10225
10226 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10227 the current setting of each value.
10228 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10229 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10230 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10231 commands and add new version as subcommands of "set/show arm".
10232
afd7eef0
RE
102332003-03-22 Richard Earnshaw <rearnsha@arm.com>
10234
10235 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10236 (set_arm_command, show_arm_command): New functions.
10237 (_initialize_arm_tdep): Add them.
10238 (num_disassembly_options): Renamed from num_flavor_options.
10239 (valid_disassembly_styles): Renamed from valid_flavors.
10240 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10241 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10242 set_disassembly_flavor_sfunc.
10243 (set_disassembly_style): Renamed from set_disassembly_flavor.
10244 (arm_othernames): Updated.
10245 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10246 command. Add "set/show arm disassembly" commands. Deprecate
10247 "othernames" command.
10248
299a7944
RE
102492003-03-22 Richard Earnshaw <rearnsha@arm.com>
10250
10251 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10252 (arm-tdep.o): Depend on elf_arm_h.
10253
c1dac9e6
RE
102542003-03-22 Richard Earnshaw <rearnsha@arm.com>
10255
10256 * Makefile.in (coff_internal_h): Define.
10257 (arm-tdep.o): Update dependencies.
10258
2702d96c
RE
102592003-03-22 Richard Earnshaw <rearnsha@arm.com>
10260
10261 * arm-tdep.c (prologue_cache): Delete.
10262 (check_prologue_cache, save_prologue_cache): Delete.
10263 (arm_scan_prologue): Don't check or update the prologue_cache.
10264 (arm_gdb_arch_init): Don't initialize it.
10265 (_initialize_arm_tdep): Likewise.
10266
27d5d74b
SC
102672003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10268
10269 * MAINTAINERS (tui): Maintainer of tui code.
10270
1762d96d
CV
102712003-03-21 Corinna Vinschen <vinschen@redhat.com>
10272
10273 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10274 (i386-cygwin-tdep.o): Add dependencies.
10275 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10276 * i386-cygwin-tdep.c: New file.
10277 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10278 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10279
4c2e2391
AC
102802003-03-20 Andrew Cagney <cagney@redhat.com>
10281
f20d38b7
AC
10282 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10283 (handle_inferior_event): Remove code calling
10284 DYNAMIC_TRAMPOLINE_NEXTPC.
10285
0022b738
AC
10286 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10287 already has a full path.
10288
864dbc90
AC
10289 * main.c (gdb_main): Return 1.
10290 (captured_main): Call error to report an invalid interpreter.
10291
4c2e2391
AC
10292 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10293 * alpha-osf1-tdep.c: Include "gdb_string.h".
10294
5ef7553b
JB
102952003-03-19 J. Brobecker <brobecker@gnat.com>
10296
10297 Continuing work to convert the hppa targets to multiarch partial.
10298
10299 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10300 method, now that hppa_push_dummy_frame has a conformant prototype.
10301 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10302 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10303 for the switch to multiarch partial.
10304
7bde8967
KB
103052003-03-19 Kevin Buettner <kevinb@redhat.com>
10306
10307 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10308 when iss is issNull.
10309
b006a9e9
KB
103102003-03-18 Kevin Buettner <kevinb@redhat.com>
10311
10312 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10313 NUM_REGS bounds check.
10314
5e2e9765
KB
103152003-03-18 Kevin Buettner <kevinb@redhat.com>
10316
10317 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10318 * mips-tdep.c (gdb_assert.h): Include.
10319 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10320 (mips_register_name): Handle integer registers explicitly. Add
10321 bounds checking.
10322 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10323 (mips_lsi33k_reg_names): Don't list integer registers; they're
10324 handled by mips_register_name() now.
10325 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10326 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10327 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10328 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10329 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10330
a2867626
AC
103312003-03-18 Andrew Cagney <cagney@redhat.com>
10332
10333 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10334 a void pointer.
10335 * gdbtypes.h (print_scalar_formatted): Update declaration.
10336 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10337
06600e06
JB
103382003-03-18 J. Brobecker <brobecker@gnat.com>
10339
10340 * infrun.c (observer.h): Add #include.
10341 (normal_stop): Add call to observer_notify_normal_stop.
10342 * Makefile.in (infrun.o): Add dependency on observer.h.
10343
7daf4f5b
JB
103442003-03-18 J. Brobecker <brobecker@gnat.com>
10345
10346 Continuing work to convert the hppa targets to multiarch partial.
10347 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10348 parameter. Reformat comment.
10349 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10350 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10351 to match new profile.
10352
3371ccc0
JB
103532003-03-18 J. Brobecker <brobecker@gnat.com>
10354
10355 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10356 appear to be working in any case.
10357
4fbe891e
JB
103582003-03-18 J. Brobecker <brobecker@gnat.com>
10359
10360 * observer.c (observer_test_first_observer): New static variable.
10361 (observer_test_second_observer): Likewise.
10362 (observer_test_third_observer): Likewise.
10363 (observer_test_first_notification_function): New static function.
10364 (observer_test_second_notification_function): Likewise.
10365 (observer_test_third_notification_function): Likewise.
10366
a7ff40e7
JB
103672003-03-17 J. Brobecker <brobecker@gnat.com>
10368
10369 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10370 * somsolib.c (gdb_assert.h): Likewise.
10371 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10372 (somsolib.o): Likewise.
10373
26ca4152
AC
103742003-03-17 Andrew Cagney <cagney@redhat.com>
10375
10376 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10377 BFD. Simplify setting of di.endian.
10378
0a613259
AC
103792003-03-17 Andrew Cagney <cagney@redhat.com>
10380
10381 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10382 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10383
10384 From Elena Zannoni <ezannoni@redhat.com>
10385 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10386 vector and floating-point parameters.
10387 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10388 convention.
10389 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10390
1132738f
FN
103912003-03-17 Fernando Nasser <fnasser@redhat.com>
10392
10393 * MAINTAINERS: Remove my name from several maintainership roles.
10394
6dc42492
AC
103952003-03-17 Andrew Cagney <cagney@redhat.com>
10396
10397 Fix frame off-by-one bug.
10398 * frame-unwind.h (frame_this_id_ftype): Replace
10399 frame_unwind_id_ftype.
10400 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10401 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10402 with "prev_register".
10403 * frame-unwind.c (frame_unwind_find_by_pc): Return
10404 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10405 comment.
10406 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10407 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10408 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10409 (dummy_frame_unwind): Update.
10410 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10411 sentinel_frame_register_unwind.
10412 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10413 (sentinel_frame_unwinder): Update.
10414 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10415 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10416 * frame.c (create_sentinel_frame): Update. Initialize
10417 "prologue_cache" instead of "unwind_cache".
10418 (frame_register_unwind): Call this frame's prev_register with the
10419 next frame and this frame's prologue cache.
10420 (get_prev_frame): Simplify. Always call prev frame's this_id with
10421 this frame and prev frame's prologue cache. Document that this
10422 call is shifted one to the left when compared to the
10423 frame_register_unwind call.
10424 (legacy_saved_regs_prev_register): Replace
10425 frame_saved_regs_register_unwind.
10426 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10427 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10428 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10429 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10430 (d10v_frame_unwind): Update.
10431 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10432 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10433 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10434 "saved_regs" with "this_saved_regs".
10435
efd710d6
AC
104362003-03-16 Andrew Cagney <cagney@redhat.com>
10437
10438 * frame.c (frame_pop): Don't call target_store_registers. Fix
10439 problem reported by Mark Kettenis.
10440
4e259f09
MK
104412003-03-16 Mark Kettenis <kettenis@gnu.org>
10442
10443 * i386-tdep.c (i386_register_type): Renamed from
10444 i386_register_virtual_type. Adjust function signature.
10445 (i386_gdbarch_init): Set register_type instead of
10446 deprecated_max_register_raw_size,
10447 deprecated_max_register_virtual_size and register_virtual_type.
10448
055bb976
AC
104492003-03-14 Andrew Cagney <cagney@redhat.com>
10450
10451 * frame.c (get_prev_frame): When a legacy frame, always call
10452 legacy_get_prev_frame. Simplify unwind code using assumption that
10453 the unwinder is new.
10454 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10455 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10456 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10457
ac2adee5
AC
104582003-03-14 Andrew Cagney <cagney@redhat.com>
10459
10460 * frame.c (get_saved_register): Delete function.
10461 * frame.h (get_saved_register): Delete declaration.
10462 * xstormy16-tdep.c: Update comment.
10463 * regcache.h: Update comments.
10464 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10465 get_saved_register and extract_address, use
10466 frame_read_unsigned_register.
10467 (sparc_frame_saved_pc): Ditto.
10468 (sparc_get_saved_register): Instead of get_saved_register, use
10469 frame_register.
10470 (sparc_pop_frame): Ditto.
10471 * findvar.c: Update comments.
10472 (value_of_register): Call frame_register instead of
10473 get_saved_register.
10474 (value_from_register): Ditto.
10475 * config/sparc/tm-sparc.h: Update comment.
10476 * breakpoint.c: Update comment.
10477
129c1cd6
AC
104782003-03-14 Andrew Cagney <cagney@redhat.com>
10479
10480 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10481 GET_SAVED_REGISTER.
10482 * gdbarch.h, gdbarch.c: Re-generate.
10483 * frame.h: Update comments.
10484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10485 * x86-64-tdep.c (x86_64_init_abi): Update.
10486 * sparc-tdep.c (sparc_gdbarch_init): Update.
10487 * sh-tdep.c (sh_gdbarch_init): Update.
10488 * mips-tdep.c (mips_gdbarch_init): Update.
10489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10490 * cris-tdep.c (cris_gdbarch_init): Update.
10491 * ia64-tdep.c (ia64_gdbarch_init): Update.
10492 * frame.c (frame_register): Update.
10493 (get_saved_register): Update.
10494 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10495
749b82f6
AC
104962003-03-13 Andrew Cagney <cagney@redhat.com>
10497
10498 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10499 * gdbarch.h, gdbarch.c: Regenerate.
10500 * valops.c (hand_function_call): Update comment.
10501 * stack.c (return_command): Update comment.
10502 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10503 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10505 * x86-64-tdep.c (x86_64_init_abi): Update.
10506 * vax-tdep.c (vax_gdbarch_init): Update.
10507 * v850-tdep.c (v850_gdbarch_init): Update.
10508 * sparc-tdep.c (sparc_gdbarch_init): Update.
10509 * sh-tdep.c (sh_gdbarch_init): Update.
10510 * s390-tdep.c (s390_gdbarch_init): Update.
10511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10514 * mips-tdep.c (mips_gdbarch_init): Update.
10515 * mcore-tdep.c (mcore_gdbarch_init): Update.
10516 * m68k-tdep.c (m68k_gdbarch_init): Update.
10517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10518 * ia64-tdep.c (ia64_gdbarch_init): Update.
10519 * i386-tdep.c (i386_gdbarch_init): Update.
10520 * hppa-tdep.c (hppa_gdbarch_init): Update.
10521 * h8300-tdep.c (h8300_gdbarch_init): Update.
10522 * frv-tdep.c (frv_gdbarch_init): Update.
10523 * cris-tdep.c (cris_gdbarch_init): Update.
10524 * avr-tdep.c (avr_gdbarch_init): Update.
10525 * arm-tdep.c (arm_gdbarch_init): Update.
10526 * alpha-tdep.c (alpha_gdbarch_init): Update.
10527
1594fa56
AC
105282003-03-13 Andrew Cagney <cagney@redhat.com>
10529
10530 * frame.c (legacy_frame_p): New function.
10531 (get_prev_frame): Use legacy_frame_p.
10532 * frame.h (legacy_frame_p): Declare.
10533
7717fda3
V
105342003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10535
fbe586ae 10536 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10537 listing corrected.
10538
0c67cbe9
V
105392003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10540
fbe586ae 10541 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10542
03febf99
AC
105432003-03-12 Andrew Cagney <cagney@redhat.com>
10544
10545 * frame.c (get_prev_frame): Rename the frame parameter to
10546 "this_frame".
10547 (get_next_frame, legacy_get_prev_frame): Ditto.
10548
0a1e1ca1
AC
105492003-03-12 Andrew Cagney <cagney@redhat.com>
10550
10551 * frame.c (get_current_frame): Check target_has_registers before
10552 checking target_has_stack.
10553 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10554 instead of deprecated_selected_frame.
10555 * findvar.c (value_of_register): Pass "frame", not
10556 deprecated_selected_frame, to value_of_builtin_reg.
10557
a66a9c23
AC
105582003-03-12 Andrew Cagney <cagney@redhat.com>
10559
10560 * regcache.c (regcache_cooked_write_signed): New function.
10561 (regcache_cooked_write_unsigned): New function.
10562 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10563 (regcache_cooked_read_signed): Fix regnum in range assertion.
10564 * regcache.h (regcache_cooked_write_signed): Declare.
10565 (regcache_cooked_write_unsigned): Declare.
10566
8bedc050
AC
105672003-03-12 Andrew Cagney <cagney@redhat.com>
10568
10569 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10570 * gdbarch.h, gdbarch.c: Re-generate.
10571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10572 * x86-64-tdep.h: Update.
10573 * x86-64-tdep.c (x86_64_init_abi): Update.
10574 * v850-tdep.c (v850_gdbarch_init): Update.
10575 * sparc-tdep.c (sparc_gdbarch_init): Update.
10576 * sh-tdep.c (sh_gdbarch_init): Update.
10577 * s390-tdep.c (s390_gdbarch_init): Update.
10578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10579 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10580 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10581 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10582 * mips-tdep.c (mips_gdbarch_init): Update.
10583 * mcore-tdep.c (mcore_gdbarch_init): Update.
10584 * m68k-tdep.c (m68k_gdbarch_init): Update.
10585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10586 * ia64-tdep.c (ia64_gdbarch_init): Update.
10587 * i386-tdep.c (i386_gdbarch_init): Update.
10588 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10589 * hppa-tdep.c (hppa_gdbarch_init): Update.
10590 * h8300-tdep.c (h8300_gdbarch_init): Update.
10591 * frv-tdep.c (frv_gdbarch_init): Update.
10592 * cris-tdep.c (cris_gdbarch_init): Update.
10593 * avr-tdep.c (avr_gdbarch_init): Update.
10594 * arm-tdep.c (arm_gdbarch_init): Update.
10595 * alpha-tdep.c (alpha_gdbarch_init): Update.
10596 * sh-tdep.c (sh_init_extra_frame_info): Update.
10597 (sh64_init_extra_frame_info): Update.
10598 * ns32knbsd-nat.c (frame_num_args): Update.
10599 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10600 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10601 (xstormy16_frame_chain_valid): Update.
10602 * vax-tdep.c (vax_saved_pc_after_call): Update.
10603 * v850-tdep.c (v850_frame_chain): Update.
10604 (v850_pop_frame): Update.
10605 (v850_init_extra_frame_info): Update.
10606 * sparc-tdep.c (setup_arbitrary_frame): Update.
10607 * ns32k-tdep.c (umax_frame_num_args): Update.
10608 * s390-tdep.c (s390_pop_frame_regular): Update.
10609 * mn10300-tdep.c (mn10300_frame_chain): Update.
10610 (mn10300_pop_frame_regular): Update.
10611 (mn10300_init_extra_frame_info): Update.
10612 * mips-tdep.c (mips_init_frame_pc_first): Update.
10613 (mips_frame_chain): Update.
10614 (mips_pop_frame): Update.
10615 * mcore-tdep.c (mcore_frame_chain): Update.
10616 (mcore_pop_frame): Update.
10617 (mcore_init_extra_frame_info): Update.
10618 * arch-utils.c (init_frame_pc_default): Update.
10619 * m68k-tdep.c (isi_frame_num_args): Update.
10620 (delta68_frame_num_args): Update.
10621 (news_frame_num_args): Update.
10622 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10623 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10624 (alpha_frame_chain): Update.
10625 (alpha_pop_frame): Update.
10626 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10627 (hppa_init_extra_frame_info): Update.
10628 (hppa_frame_chain): Update.
10629 (hppa_frame_chain_valid): Update.
10630 * cris-tdep.c (cris_init_extra_frame_info): Update.
10631 * avr-tdep.c (avr_init_extra_frame_info): Update.
10632 * arm-tdep.c (arm_frame_chain_valid): Update.
10633 (arm_init_extra_frame_info): Update.
10634 (arm_pop_frame): Update.
10635 * frame.c (frame_pc_unwind): Update.
10636 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10637 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10638 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10639 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10640 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10641 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10642
7a25a7c1
AC
106432003-03-12 Andrew Cagney <cagney@redhat.com>
10644
10645 Eliminate the need for POP_FRAME.
10646 * frame.c (do_frame_unwind_register): New function.
10647 (frame_pop): When no POP_FRAME, pop the frame using register
10648 unwind and a scratch regcache.
10649 (frame_saved_regs_pop): Delete function.
10650 (trad_frame_unwinder): Update.
10651 * d10v-tdep.c (d10v_frame_pop): Delete function.
10652 (d10v_frame_unwind): Update.
10653 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10654 (sentinel_frame_unwinder): Update.
10655 * dummy-frame.c (dummy_frame_pop): Delete function.
10656 (dummy_frame_unwind): Update.
10657 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10658 (struct frame_unwind): Update.
10659
2f38ef89
KB
106602003-03-11 Kevin Buettner <kevinb@redhat.com>
10661
10662 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10663 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10664 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10665 Do range checks on register number obtained from debugging info.
10666 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10667 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10668 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10669 mapping function.
10670 (do_fp_register_row): Fix typo which caused double type to be
10671 used when attempting to unpack a float.
10672
552f4abf
JB
106732003-03-11 J. Brobecker <brobecker@gnat.com>
10674
10675 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10676
e0d2ae16
AC
106772003-03-11 Andrew Cagney <cagney@redhat.com>
10678
10679 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10680 frame. Problem found by Corinna Vinschen.
10681
ddbfdd06
PM
106822003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10683
10684 * doublest.c (floatformat_from_length): Accept also
10685 the real size of 'long double' type.
10686
088b2ddc 106872003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10688
088b2ddc 10689 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10690 * breakpoint.c (bpstat_copy): Copy the command lines as well
10691 as the old value, to match what is freed in bpstat_clear.
10692
f56f77c1
DC
106932003-03-10 David Carlton <carlton@math.stanford.edu>
10694
10695 * minsyms.c (add_minsym_to_hash_table): Replace
10696 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10697 (compare_minimal_symbols, compact_minimal_symbols)
10698 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10699 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10700 of DEPRECATED_SYMBOL_MATCHES_NAME.
10701 (lookup_minimal_symbol_solib_trampoline): Ditto.
10702
5602984a
AC
107032003-03-10 Andrew Cagney <cagney@redhat.com>
10704
10705 * regcache.h (regcache_cooked_read_ftype): Define.
10706 (regcache_save, regcache_restore): Add a cooked_read parameter.
10707 * regcache.c (regcache_save, regcache_restore): Update.
10708 (do_cooked_read): New function.
10709 (regcache_cpy): Pass do_cooked_read to regcache_save and
10710 regcache_restore.
10711
8bedc050
AC
107122003-03-10 Andrew Cagney <cagney@redhat.com>
10713
10714 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10715 * gdbarch.h, gdbarch.c: Re-generate.
10716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10717 * x86-64-tdep.h: Update.
10718 * x86-64-tdep.c (x86_64_init_abi): Update.
10719 * v850-tdep.c (v850_gdbarch_init): Update.
10720 * sparc-tdep.c (sparc_gdbarch_init): Update.
10721 * sh-tdep.c (sh_gdbarch_init): Update.
10722 * s390-tdep.c (s390_gdbarch_init): Update.
10723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10724 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10725 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10727 * mips-tdep.c (mips_gdbarch_init): Update.
10728 * mcore-tdep.c (mcore_gdbarch_init): Update.
10729 * m68k-tdep.c (m68k_gdbarch_init): Update.
10730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10731 * ia64-tdep.c (ia64_gdbarch_init): Update.
10732 * i386-tdep.c (i386_gdbarch_init): Update.
10733 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10734 * hppa-tdep.c (hppa_gdbarch_init): Update.
10735 * h8300-tdep.c (h8300_gdbarch_init): Update.
10736 * frv-tdep.c (frv_gdbarch_init): Update.
10737 * cris-tdep.c (cris_gdbarch_init): Update.
10738 * avr-tdep.c (avr_gdbarch_init): Update.
10739 * arm-tdep.c (arm_gdbarch_init): Update.
10740 * alpha-tdep.c (alpha_gdbarch_init): Update.
10741 * sh-tdep.c (sh_init_extra_frame_info): Update.
10742 (sh64_init_extra_frame_info): Update.
10743 * ns32knbsd-nat.c (frame_num_args): Update.
10744 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10745 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10746 (xstormy16_frame_chain_valid): Update.
10747 * vax-tdep.c (vax_saved_pc_after_call): Update.
10748 * v850-tdep.c (v850_frame_chain): Update.
10749 (v850_pop_frame): Update.
10750 (v850_init_extra_frame_info): Update.
10751 * sparc-tdep.c (setup_arbitrary_frame): Update.
10752 * ns32k-tdep.c (umax_frame_num_args): Update.
10753 * s390-tdep.c (s390_pop_frame_regular): Update.
10754 * mn10300-tdep.c (mn10300_frame_chain): Update.
10755 (mn10300_pop_frame_regular): Update.
10756 (mn10300_init_extra_frame_info): Update.
10757 * mips-tdep.c (mips_init_frame_pc_first): Update.
10758 (mips_frame_chain): Update.
10759 (mips_pop_frame): Update.
10760 * mcore-tdep.c (mcore_frame_chain): Update.
10761 (mcore_pop_frame): Update.
10762 (mcore_init_extra_frame_info): Update.
10763 * arch-utils.c (init_frame_pc_default): Update.
10764 * m68k-tdep.c (isi_frame_num_args): Update.
10765 (delta68_frame_num_args): Update.
10766 (news_frame_num_args): Update.
10767 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10768 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10769 (alpha_frame_chain): Update.
10770 (alpha_pop_frame): Update.
10771 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10772 (hppa_init_extra_frame_info): Update.
10773 (hppa_frame_chain): Update.
10774 (hppa_frame_chain_valid): Update.
10775 * cris-tdep.c (cris_init_extra_frame_info): Update.
10776 * avr-tdep.c (avr_init_extra_frame_info): Update.
10777 * arm-tdep.c (arm_frame_chain_valid): Update.
10778 (arm_init_extra_frame_info): Update.
10779 (arm_pop_frame): Update.
10780 * frame.c (frame_pc_unwind): Update.
10781 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10782 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10783 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10784 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10785 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10786 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10787
12cc2063
AC
107882003-03-10 Andrew Cagney <cagney@redhat.com>
10789
10790 * gdbarch.sh (gdbarch_unwind_pc): New method.
10791 * gdbarch.h, gdbarch.c: Regenerate.
10792 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10793 but use read_pc and FRAME_SAVED_PC as fall backs.
10794 (frame_saved_regs_pc_unwind): Delete function.
10795 (trad_frame_unwinder): Update.
10796 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10797 (struct frame_unwind): Update.
10798 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10799 (dummy_frame_unwind): Update.
10800 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10801 (sentinel_frame_unwinder): Update.
10802 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10803 (d10v_frame_unwind): Update.
10804 (d10v_unwind_pc): New function.
10805 (d10v_gdbarch_init): Set unwind_pc.
10806
ef840a37
AC
108072003-03-10 Andrew Cagney <cagney@redhat.com>
10808
a2ce2e56
AC
10809 * gdbarch.h: Re-generate.
10810
ef840a37
AC
10811 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10812 PC.
10813 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10814 the PC register.
10815
08f3424b
MK
108162003-03-08 Mark Kettenis <kettenis@gnu.org>
10817
10818 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10819
1248ede2
AC
108202003-03-08 Andrew Cagney <cagney@redhat.com>
10821
10822 * cli-out.c: Update copyright.
10823 (cli_out_data): Define typedef. Use instead of ui_out_data.
10824
f49bacc8
AC
108252003-03-08 Andrew Cagney <cagney@redhat.com>
10826
10827 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10828 the result.
10829
9b05f993
AC
108302003-03-07 Andrew Cagney <cagney@redhat.com>
10831
10832 * gdbarch.sh: Don't generate two macro definitions when an
10833 undefined macro taking no arguments.
10834 * gdbarch.h: Regenerate.
8ffd9b1b 10835
166f4c7b
ML
108362002-03-07 Michal Ludvig <mludvig@suse.cz>
10837
10838 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10839 (x86_64_unwind_dummy_id): New functions.
10840 (x86_64_init_abi): Register these two new functions.
10841
6d686a84
ML
108422003-03-07 Michal Ludvig <mludvig@suse.cz>
10843
10844 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10845 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10846 separate function.
10847 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10848
6314f104
AC
108492003-03-05 Andrew Cagney <cagney@redhat.com>
10850
10851 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10852 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10853 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10854 to use unwind_dummy_id when a dummy frame.
10855 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10856 predicate.
10857 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10858
ceea5145
AC
108592003-03-05 Andrew Cagney <cagney@redhat.com>
10860
10861 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10862 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10863 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10864 values.
10865
0d843116
AC
108662003-03-05 Andrew Cagney <cagney@redhat.com>
10867
10868 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10869 (struct d10v_unwind_cache): Delete field "frameless". Replace
10870 "next_addr" with "sp_offset". Add "r11_offset".
10871 (d10v_frame_unwind_cache): Update.
10872 (prologue_find_regs): Update. When "mv r11, sp", save the
10873 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10874 RN was saved in r11_offset.
10875
b2579786
AC
108762003-03-05 Andrew Cagney <cagney@redhat.com>
10877
10878 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10879 cached PC value in the next frame.
10880
218e5956
AC
108812003-03-05 Andrew Cagney <cagney@redhat.com>
10882
10883 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10884 "id_unwind_cache" with "id".
10885 (frame_id_unwind): Delete declaration.
10886 * frame.c (frame_id_unwind): Delete function.
10887 (get_prev_frame): Call the frame id unwind method directly. Store
10888 the returned next frame's ID value in NEXT_FRAME. Note that there
10889 is a problem with the wrong unwind ID being called with the wrong
10890 unwind cache.
10891
ed363b1b
DJ
108922003-03-05 Daniel Jacobowitz <drow@mvista.com>
10893
10894 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10895
fe1f4a5e
DJ
108962003-03-05 James Ingham <jingham@apple.com>
10897 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10900 (auto_cp_abi): New variable.
10901 (current_cp_abi, num_cp_abis): Make static.
10902 (CP_ABI_MAX): Define.
10903 (cp_abis): Turn into an array.
10904 (value_virtual_fn_field): Fix formatting.
10905 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10906 takes a pointer.
10907 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10908 (list_cp_abis, _initialize_cp_abi): New functions.
10909 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10910 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10911 switch_to_cp_abi. Update prototype for register_cp_abi.
10912 * Makefile.in (cp-abi.o): Update dependencies.
10913 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10914 instead of switch_to_cp_abi.
10915 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10916 register_cp_abi.
10917 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10918 register_cp_abi.
10919 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10920
e4adbba9
DJ
109212003-03-05 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10924 * dwarf2loc.c: Include "regcache.h".
10925 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10926 register_size.
10927 * Makefile.in (dwarf2loc.o): Update dependencies.
10928
91ccbfc1
TR
109292003-03-04 Theodore A. Roth <troth@openavr.org>
10930
10931 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10932 number of io registers reported by remote target is not a multiple of
10933 step.
10934
3d4e8fd2
DC
109352003-03-04 David Carlton <carlton@math.stanford.edu>
10936
10937 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10938 (lookup_symbol_aux_psymtabs): Update call to
10939 lookup_partial_symbol.
10940 (lookup_transparent_type, find_main_psymtab)
10941 (make_symbol_overload_list): Ditto.
10942
ed42d87b
KH
109432003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10944
10945 * MAINTAINERS (Write after approval): Update my email address.
10946
a0ed5532
AC
109472003-03-03 Andrew Cagney <cagney@redhat.com>
10948
10949 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10950 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10951 predicate. Replace MAX_REGISTER_RAW_SIZE.
10952 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10953 MAX_REGISTER_VIRTUAL_SIZE.
10954 * regcache.c (legacy_max_register_raw_size): New function.
10955 (legacy_max_register_virtual_size): New function.
10956 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10957 (MAX_REGISTER_RAW_SIZE): Define.
10958 (legacy_max_register_raw_size): Declare.
10959 (legacy_max_register_virtual_size): Declare.
10960 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10961 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10962 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10963 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10964 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10965 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10966 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10967 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10968 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10970 * vax-tdep.c (vax_gdbarch_init): Update.
10971 * v850-tdep.c (v850_gdbarch_init): Update.
10972 * sparc-tdep.c (sparc_gdbarch_init): Update.
10973 * sh-tdep.c (sh_gdbarch_init): Update.
10974 * s390-tdep.c (s390_gdbarch_init): Update.
10975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10976 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10977 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10978 * mips-tdep.c (mips_gdbarch_init): Update.
10979 * mcore-tdep.c (mcore_gdbarch_init): Update.
10980 * m68k-tdep.c (m68k_gdbarch_init): Update.
10981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10982 * ia64-tdep.c (ia64_gdbarch_init): Update.
10983 * i386-tdep.c (i386_gdbarch_init): Update.
10984 * hppa-tdep.c (hppa_gdbarch_init): Update.
10985 * h8300-tdep.c (h8300_gdbarch_init): Update.
10986 * frv-tdep.c (frv_gdbarch_init): Update.
10987 * cris-tdep.c (cris_gdbarch_init): Update.
10988 * avr-tdep.c (avr_gdbarch_init): Update.
10989 * arm-tdep.c (arm_gdbarch_init): Update.
10990 * alpha-tdep.c (alpha_gdbarch_init): Update.
10991 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10992 max_register_raw_size or max_register_virtual_size.
10993
8e437497
DC
109942003-03-03 David Carlton <carlton@math.stanford.edu>
10995
10996 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10997 SYMBOL_MATCHES_NAME, add comment.
10998 (SYMBOL_MATCHES_NATURAL_NAME): New.
10999 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11000 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11001 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11002 * symtab.c (lookup_partial_symbol): Use
11003 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11004 unhelpful comment.
11005 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11006 SYMBOL_MATCHES_NAME.
11007 Fix for PR c++/33.
11008
25120b0d
DC
110092003-03-03 David Carlton <carlton@math.stanford.edu>
11010
11011 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11012 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11013 by regexp matching against SYMBOL_NATURAL_NAME.
11014
78a11fb4
DC
110152003-03-03 David Carlton <carlton@math.stanford.edu>
11016
11017 * linespec.c (find_method): Extract code into collect_methods.
11018 (collect_methods): New.
11019
645dd519
MK
110202003-03-02 Mark Kettenis <kettenis@gnu.org>
11021
b4700d91
MK
11022 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11023 get_frame_base.
11024
645dd519
MK
11025 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11026 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11027
0aa7e1aa
SC
110282003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11029
8ffd9b1b 11030 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11031 and not regnum when summing the size of all registers up to regnum.
11032
f30ee0bc
AC
110332003-03-01 Andrew Cagney <cagney@redhat.com>
11034
11035 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11036 FRAME_INIT_SAVED_REGS.
11037 * gdbarch.h, gdbarch.c: Regenerate.
11038 * stack.c (frame_info): Update.
11039 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11040 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11041 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11042 * ns32k-tdep.c (ns32k_pop_frame): Update.
11043 * mips-tdep.c (mips_pop_frame): Update.
11044 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11045 * ia64-tdep.c (ia64_frame_chain): Update.
11046 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11047 (ia64_frameless_function_invocation): Update.
11048 (ia64_init_extra_frame_info): Update.
11049 (ia64_pop_frame_regular): Update.
11050 * frame.h (struct frame_info): Update comment.
11051 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11052 * frame.c (frame_saved_regs_register_unwind): Update.
11053 (frame_saved_regs_register_unwind): Update.
11054 (deprecated_generic_get_saved_register): Update.
11055 * cris-tdep.c: Update comment.
11056 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11057 Rename macro.
11058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11059 * x86-64-tdep.c (x86_64_init_abi): Update.
11060 * vax-tdep.c (vax_gdbarch_init): Update.
11061 * v850-tdep.c (v850_gdbarch_init): Update.
11062 * sparc-tdep.c (sparc_gdbarch_init): Update.
11063 * sh-tdep.c (sh_gdbarch_init): Update.
11064 * s390-tdep.c (s390_gdbarch_init): Update.
11065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11066 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11067 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11069 * mips-tdep.c (mips_gdbarch_init): Update.
11070 * mcore-tdep.c (mcore_gdbarch_init): Update.
11071 * m68k-tdep.c (m68k_gdbarch_init): Update.
11072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11073 * ia64-tdep.c (ia64_gdbarch_init): Update.
11074 * i386-tdep.c (i386_gdbarch_init): Update.
11075 * frv-tdep.c (frv_gdbarch_init): Update.
11076 * avr-tdep.c (avr_gdbarch_init): Update.
11077 * arm-tdep.c (arm_gdbarch_init): Update.
11078 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11079
42fa7c0f
AC
110802003-03-01 Andrew Cagney <cagney@redhat.com>
11081
11082 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11083 option enum and switch. When no windows, set the interpreter to
11084 INTERP_CONSOLE.
8ffd9b1b 11085
49c7e338
AC
110862003-03-01 Andrew Cagney <cagney@redhat.com>
11087
11088 * main.c (captured_main): Replace magic option characters with an
11089 enum.
11090
e9582e71
AC
110912003-03-01 Andrew Cagney <cagney@redhat.com>
11092
11093 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11094 INIT_EXTRA_FRAME_INFO.
11095 * gdbarch.h, gdbarch.c: Regenerate.
11096 * arm-tdep.c: Update comments.
11097 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11098 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11099 * frame.h, avr-tdep.c: Ditto.
11100 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11101 (create_new_frame, legacy_get_prev_frame): Ditto.
11102 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11103 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11105 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11106 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11107 * v850-tdep.c (v850_gdbarch_init): Ditto.
11108 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11109 * sh-tdep.c (sh_gdbarch_init): Ditto.
11110 * s390-tdep.c (s390_gdbarch_init): Ditto.
11111 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11113 * mips-tdep.c (mips_gdbarch_init): Ditto.
11114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11117 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11118 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11119 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11120 * frv-tdep.c (frv_gdbarch_init): Ditto.
11121 * cris-tdep.c (cris_gdbarch_init): Ditto.
11122 * avr-tdep.c (avr_gdbarch_init): Ditto.
11123 * arm-tdep.c (arm_gdbarch_init): Ditto.
11124 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11126
35cac7cf
AC
111272003-03-01 Andrew Cagney <cagney@redhat.com>
11128
11129 * gdbarch.sh (register_type): New function with predicate.
11130 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11131 * gdbarch.h, gdbarch.c: Re-generate.
11132 * arch-utils.c (generic_register_byte): Use generic_register_size.
11133 (generic_register_size): When available, use
11134 gdbarch_register_type.
11135 * regcache.c (init_regcache_descr): When available, initialize the
11136 register type array using gdbarch_register_type. If the
11137 architecture supplies gdbarch_register_type, do not use the legacy
11138 regcache layout.
11139 * d10v-tdep.c (d10v_register_type): Replace
11140 d10v_register_virtual_type.
11141 (d10v_gdbarch_init): Set register_type instead of
11142 register_virtual_type.
11143
7b83296f
AC
111442003-03-01 Andrew Cagney <cagney@redhat.com>
11145
11146 * Makefile.in (ax-gdb.o): Update dependencies.
11147 * ax-gdb.c: Include "regcache.h".
11148 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11149 * findvar.c (value_of_register): Ditto.
11150 * infcmd.c (default_print_registers_info): Ditto.
11151
eadc1c87
MK
111522003-03-01 Mark Kettenis <kettenis@gnu.org>
11153
11154 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11155 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11156
14143612
MK
111572003-03-01 Mark Kettenis <kettenis@gnu.org>
11158
11159 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11160 of STREQ.
11161
a55cc764
DJ
111622003-02-28 Daniel Jacobowitz <drow@mvista.com>
11163
11164 * Makefile.in (dwarf2loc.o): Update dependencies.
11165 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11166 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11167 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11168 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11169 (locexpr_tracepoint_var_ref): New function.
11170 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11171
08a617da
AC
111722003-02-28 Andrew Cagney <cagney@redhat.com>
11173
11174 * regcache.c (register_size): New function.
11175 * regcache.h (register_size): Declare
11176 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11177 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11178
4224873a
DC
111792003-02-28 David Carlton <carlton@math.stanford.edu>
11180
11181 * linespec.c (decode_compound): Extract code into find_method.
11182 (find_method): New.
11183
ccdc5d7f
JB
111842003-02-28 J. Brobecker <brobecker@gnat.com>
11185
11186 * Makefile.in: Add rules to build and link in observer.o.
11187
974e8ced
JB
111882003-02-27 J. Brobecker <brobecker@gnat.com>
11189
11190 * observer.c: Minor comments edits.
11191
7a28f973
JB
111922003-02-27 J. Brobecker <brobecker@gnat.com>
11193
11194 * observer.h, observer.c: New file.
11195
27cddce2
AC
111962003-02-27 Andrew Cagney <cagney@redhat.com>
11197
11198 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11199
b94a41a1
SC
112002003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11201
11202 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11203 (M6812_OP_STS_EXT): Likewise.
11204 (m6811_prologue): Use the above to recognize prologue.
11205 (m6812_prologue): Likewise.
11206
c8be8951
DC
112072003-02-27 David Carlton <carlton@math.stanford.edu>
11208
11209 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11210 SYMBOL_PRINT_NAME.
11211 (compare_psymbols): Ditto.
11212 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11213
d05bb1fc
MS
112142003-02-27 Michael Snyder <msnyder@redhat.com>
11215
4e845cd3
MS
11216 * f-lang.c (build_fortran_types): New function.
11217 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11218 * doublest.c (extract_floating): Fix warning text.
11219
f3824013
AC
112202003-02-27 Andrew Cagney <cagney@redhat.com>
11221
11222 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11223 predicate. Replaces PUSH_DUMMY_FRAME.
11224 * gdbarch.h, gdbarch.c: Regnerate.
11225 * valops.c (hand_function_call): Update. Call
11226 generic_push_dummy_frame directly.
11227 * vax-tdep.c (vax_gdbarch_init): Update.
11228 * sparc-tdep.c (sparc_gdbarch_init): Update.
11229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11230 * m68k-tdep.c (m68k_gdbarch_init): Update.
11231 * hppa-tdep.c (hppa_gdbarch_init): Update.
11232 * alpha-tdep.c (alpha_gdbarch_init): Update.
11233 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11234 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11235 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11237 push_dummy_frame to generic_push_dummy_frame.
11238 * v850-tdep.c (v850_gdbarch_init): Ditto.
11239 * sh-tdep.c (sh_gdbarch_init): Ditto.
11240 * s390-tdep.c (s390_gdbarch_init): Ditto.
11241 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11243 * mips-tdep.c (mips_gdbarch_init): Ditto.
11244 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11246 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11247 * i386-tdep.c (i386_gdbarch_init): Ditto.
11248 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11249 * frv-tdep.c (frv_gdbarch_init): Ditto.
11250 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11251 * cris-tdep.c (cris_gdbarch_init): Ditto.
11252 * avr-tdep.c (avr_gdbarch_init): Ditto.
11253 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11254
ad188201
KB
112552003-02-26 Kevin Buettner <kevinb@redhat.com>
11256
11257 * mips-tdep.c (show_mips_abi): New function.
11258 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11259 command ``show mips abi''.
11260
6b37567a 112612003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11262
6b37567a 11263 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11264 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11265 more sline entries have been seen for the function.
11266
d3e0a5bf
MC
112672003-02-26 Michael Chastain <mec@shout.net>
11268
11269 * configure: Regenerate with autoconf 000227.
11270
18972eea
MC
112712003-02-26 Michael Chastain <mec@shout.net>
11272
11273 Close PR build/660.
11274 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11275 for old libc5/glibc.
11276 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11277
0bbde931
KW
112782003-02-26 Kris Warkentin <kewarken@qnx.com>
11279
11280 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11281 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11282
27ca5dad
MC
112832003-02-26 Michael Chastain <mec@shout.net>
11284
11285 * configure.in: New variable HAVE_UINTPTR_T.
11286 * configure, config.in: Regenerated.
11287
6f88d630
DJ
112882003-02-26 Daniel Jacobowitz <drow@mvista.com>
11289
11290 Fix PR build/1097.
11291 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11292
b14185ce
AC
112932003-02-25 Andrew Cagney <cagney@redhat.com>
11294
11295 * frame.c (get_prev_frame): Add comment on check for
11296 inside_entry_func. Only check for inside_entry_file when not a
11297 dummy and not a sentinel. Check that the new frame is not inner
11298 to the old frame.
11299
ac2bd0a9
AC
113002003-02-25 Andrew Cagney <cagney@redhat.com>
11301
11302 * frame.c (frame_debug): New variable.
11303 (_initialize_frame): Add "set/show debug frame" command.
11304 (get_prev_frame): When frame_debug, print reason why unwind
11305 failed.
11306
b18a0fd2
MC
113072003-02-25 Michael Chastain <mec@shout.net>
11308
11309 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11310 to avoid uintptr_t definition problems.
11311
22abf04a
DC
113122003-02-25 David Carlton <carlton@math.stanford.edu>
11313
11314 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11315 (SYMBOL_LINKAGE_NAME): Ditto.
11316 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11317 SYMBOL_LINKAGE_NAME.
11318 (struct general_symbol_info): Expand comment.
11319 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11320 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11321 (SYMBOL_MATCHES_REGEXP): Ditto.
11322 * symtab.c (symbol_natural_name): New function.
11323 * objfiles.h: Replace all uses of SYMBOL_NAME by
11324 DEPRECATED_SYMBOL_NAME.
11325 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11326 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11327 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11328 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11329 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11330 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11331 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11332 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11333 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11334 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11335 * ada-exp.y: Ditto.
11336 * ada-exp.y: Update copyright.
11337 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11338 * cp-valprint.c: Ditto.
11339
1a5848f6
JJ
113402003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11341
11342 * infptrace.c (detach): Do not flag error if ptrace detach fails
11343 and errno is set to ESRCH.
11344
7343d46a
AC
113452003-02-24 Andrew Cagney <cagney@redhat.com>
11346
11347 * infptrace.c (udot_info): Change type of udot_off to long. Use
11348 paddr when printing udot_off's value.
11349
49fa1dc2
DC
113502003-02-24 David Carlton <carlton@math.stanford.edu>
11351
11352 * symtab.c (make_symbol_overload_list): Only read in partial
11353 symtabs containing a matching partial symbol.
11354
0fe19209
DC
113552003-02-24 David Carlton <carlton@math.stanford.edu>
11356
11357 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11358 do the comparison, not strcmp.
11359 * symfile.c (compare_psymbols): Ditto.
11360 * defs.h: Declare strcmp_iw_ordered.
11361 * utils.c (strcmp_iw_ordered): New function.
11362
8e3ee7b5
JB
113632003-02-24 Jim Blandy <jimb@redhat.com>
11364
11365 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11366 support, shared libs): Remove my name from here, to better reflect
11367 reality.
11368
7df1a324
KW
113692003-02-24 Kris Warkentin <kewarken@qnx.com>
11370
11371 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11372 (target_ops): Add to_have_continuable_watchpoint.
11373 * target.c (update_current_target): Add INHERIT line for
11374 to_have_continuable_watchpoint.
11375 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11376 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11377 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11378 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11379
d1c76907
EZ
113802003-02-24 Elena Zannoni <ezannoni@redhat.com>
11381
11382 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11383 maintainership.
11384
2610b0bf
KW
113852003-02-24 Kris Warkentin <kewarken@qnx.com>
11386
f46169db
KW
11387 * solib.c (solib_open): Call target defined search function after
11388 failing with solib-search-path.
11389 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11390 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11391
9a3c34fe
KW
113922003-02-24 Kris Warkentin <kewarken@qnx.com>
11393
f46169db 11394 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11395
2417dd25
SC
113962003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11397
11398 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11399
b631436b
SC
114002003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11401
11402 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11403 (m68hc11_add_reggroups): New function.
11404 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11405 (m68hc11_gdbarch_init): Install the reggroups.
11406 (_initialize_m68hc11_tdep): Initialize them.
11407
0aa8c1e4
JW
114082003-02-21 James E Wilson <wilson@tuliptree.org>
11409
11410 * MAINTAINERS: Update my email address.
11411
50ceaba5
DC
114122003-02-21 David Carlton <carlton@math.stanford.edu>
11413
11414 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11415
4c2df51b
DJ
114162003-02-21 Daniel Jacobowitz <drow@mvista.com>
11417
11418 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11419 * symtab.h: Add opaque declarations of struct axs_value and
11420 struct agent_expr.
11421 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11422 (struct location_funcs): New type.
11423 (struct symbol): Add "loc" to aux_value.
11424 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11425 * dwarf2read.c: Include "dwarf2expr.h".
11426 (dwarf2_symbol_mark_computed): New function.
11427 (read_func_scope): Use it.
11428 (var_decode_location): New function.
11429 (new_symbol): Use it.
11430 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11431
11432 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11433 (dwarf2expr_h, dwarf2loc_h): New variables.
11434 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11435 (dwarf2expr.o, dwarf2loc.o): New rules.
11436 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11437 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11438 LOC_COMPUTED_ARG.
11439 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11440 * m2-exp.y (yylex): Likewise.
11441 * printcmd.c (address_info, print_frame_args): Likewise.
11442 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11443 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11444 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11445 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11446 * symtab.c (lookup_block_symbol): Likewise.
11447
5784d15e
AF
114482003-02-20 Adam Fedor <fedor@gnu.org>
11449
11450 * symtab.h: Remove objc_specific struct
11451 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11452 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11453 Have language_objc use cplus_specific struct.
11454
d4cad8db
TT
114552003-02-20 Tom Tromey <tromey@redhat.com>
11456
11457 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11458 TYPE_NAME, when printing a String value. PR java/1075.
11459
2f9a90b4
AF
114602003-02-20 Adam Fedor <fedor@gnu.org>
11461
d38074a8 11462 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11463 * objc-lang.c (find_methods): Make static.
2f9a90b4 11464
6f17862b
CF
114652003-02-20 Christopher Faylor <cgf@redhat.com>
11466
11467 * win32-nat.c (get_image_name): Check return value from
11468 ReadProcessMemory.
11469 (child_xfer_memory): Ditto.
11470
715d1656
AO
114712003-02-20 Alexandre Oliva <aoliva@redhat.com>
11472
11473 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11474 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11475 '${exec_prefix}' (in addition to the expansion thereof) as
11476 relocatable.
11477 * configure: Rebuilt.
11478
b1262a02
DC
114792003-02-20 David Carlton <carlton@math.stanford.edu>
11480
11481 * symtab.c (search_symbols): Revert the search_symbols part of my
11482 2002-12-23 patch. Add comment.
11483
7134143f
DJ
114842002-02-20 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11487 * dbxread.c (elfstab_build_psymtabs): Don't call
11488 install_minimal_symbols.
11489 (stabsect_build_psymtabs): Likewise.
11490 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11491 earlier.
11492 * somread.c (som_symfile_read): Call install_minimal_symbols
11493 and do_cleanups earlier.
11494 * nlmread.c (nlm_symfile_read): Likewise.
11495 * mdebugread.c (elfmdebug_build_psymtabs): Call
11496 install_minimal_symbols and make appropriate cleanups.
11497
cf466558
KB
114982003-02-20 Kevin Buettner <kevinb@redhat.com>
11499
11500 * solib.c (reload_shared_libraries): New function.
11501 (_initialize_solib): Add callbacks for ``set solib-search-path''
11502 and ``set solib-absolute-prefix''.
11503
de5ad195
DC
115042003-02-20 David Carlton <carlton@math.stanford.edu>
11505
11506 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11507 expand comment.
11508 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11509 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11510 * ada-typeprint.c (ada_typedef_print): Ditto.
11511 * ax-gdb.c (gen_var_ref): Ditto.
11512 * breakpoint.c (print_one_breakpoint): Ditto.
11513 * buildsym.c (finish_block): Ditto.
11514 * c-valprint.c (c_val_print): Ditto.
11515 * expprint.c (print_subexp): Ditto.
11516 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11517 * infcmd.c (jump_command): Ditto.
11518 * linespec.c (decode_line_2, decode_compound): Ditto.
11519 * maint.c (maintenance_translate_address): Ditto.
11520 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11521 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11522 Ditto.
8ffd9b1b
AJ
11523 * p-valprint.c (pascal_val_print): Ditto.
11524 * stabsread.c (define_symbol): Ditto.
de5ad195 11525 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11526 (print_frame_arg_vars, return_command): Ditto.
11527 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11528 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11529 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11530 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11531 (rbreak_command): Ditto.
11532 * tracepoint.c (tracepoints_info): Ditto.
11533 * typeprint.c (typedef_print): Ditto.
11534 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11535 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11536 * ada-typeprint.c: Update Copyright.
11537 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11538 * tracepoint.c, cli/cli-cmds.c: Ditto.
11539
f796e4be
KB
115402003-02-20 Kevin Buettner <kevinb@redhat.com>
11541
11542 * frame.c (generic_unwind_get_saved_register): Make non-static.
11543 * frame.h (generic_unwind_get_saved_register): Declare.
11544 * mips-tdep.c (read_next_frame_reg): Fetch register from
11545 current regcache when frame is NULL.
11546 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11547 that must be NULL.
11548 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11549 instead of frame_register_unwind().
11550
836cc9f4
AC
115512003-02-20 Andrew Cagney <ac131313@redhat.com>
11552
11553 * remote-sim.c (gdbsim_insert_breakpoint)
11554 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11555 code.
11556
501eef12
AC
115572003-02-20 Andrew Cagney <ac131313@redhat.com>
11558
11559 * remote.c (_initialize_remote): Add commands "set/show remote
11560 hardware-watchpoint-limit" and "set/show remote
11561 hardware-breakpoint-limit".
11562 (remote_hw_watchpoint_limit): Initialize to -1.
11563 (remote_hw_breakpoint_limit): Ditto.
11564 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11565
1b6bc7e0
CF
115662003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11567
11568 * coff-pe-read.c: New file - support reading of minimal symbols from a
11569 portable executable using the export table.
11570 * coff-pe-read.h: New file.
11571 * coffread.c: Include coff-pe-read.h.
11572 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11573 debugging symbols found.
11574 * Makefile.in (SFILES): Add coff-pe-read.o.
11575 (coff_pe_read_h): Define.
11576 (COMMON_OBS): Add coff-pe-read.o.
11577 (coffread.o): Add coff_pe_read_h dependency.
11578 (coff-pe-read.o): New target.
11579
fe898f56
DC
115802003-02-19 David Carlton <carlton@math.stanford.edu>
11581
11582 * Makefile.in (SFILES): Add block.c.
11583 (block_h): New.
11584 (COMMON_OBS): Add block.o.
11585 (block.o): New.
11586 (x86-64-tdep.o): Add $(block_h).
11587 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11588 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11589 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11590 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11591 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11592 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11593 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11594 * value.h: Add opaque declaration for struct block.
11595 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11596 * ada-lang.h: Ditto.
11597 * x86-64-tdep.c: #include "block.h"
11598 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11599 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11600 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11601 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11602 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11603 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11604 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11605 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11606 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11607 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11608 * symtab.c (block_function): Ditto.
11609 (contained_in): Ditto.
11610 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11611 block.h. Add opaque declaration for struct block.
11612 * symtab.h: Move block_function and contained_in declarations to
11613 block.h. Add opaque declarations for struct block, struct
11614 blockvector.
11615 (struct block): Move to block.h.
11616 (struct blockvector): Ditto.
11617 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11618 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11619 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11620 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11621 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11622 Ditto.
11623 * block.c: New file.
11624 * block.h: New file.
11625
173345b5
TR
116262003-02-19 Theodore A. Roth <troth@openavr.org>
11627
11628 * avr-tdep.c (avr_extract_return_value): Remove function.
11629 (avr_store_return_value): Remove function.
11630 (avr_extract_struct_value_address): Remove function.
11631 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11632
338ef23d
AC
116332003-02-19 Andrew Cagney <ac131313@redhat.com>
11634
11635 * rs6000-tdep.c: Include "gdb_assert.h".
11636 (registers_e500): Add "acc" and "spefscr".
11637 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11638 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11639 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11640 really is "r0".
11641 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11642
5412f5f3
KS
116432003-02-18 Keith Seitz <keiths@redhat.com>
11644
11645 * Makefile.in: Add gdbtk-interps.c.
11646
881324eb
KB
116472003-02-18 Kevin Buettner <kevinb@redhat.com>
11648
11649 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11650 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11651
6a2f5abf
AC
116522003-02-18 Andrew Cagney <cagney@redhat.com>
11653
11654 * symtab.h (struct objfile): Add opaque declaration.
11655
54c7009d
EZ
116562003-02-18 Elena Zannoni <ezannoni@redhat.com>
11657
11658 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11659 * dbxread.c (process_one_symbol): Use last_function_start rather
11660 than function_start_offset to find the real beginning of the
11661 current function. The latter is just the text section offset on
11662 some systems, the former is always the real function start.
54c7009d 11663
7ee6d7eb
AC
116642003-02-17 Andrew Cagney <cagney@redhat.com>
11665
11666 * configure.in: Revert ${target} != ${host}.
11667
2846da9b
AC
116682003-02-17 Andrew Cagney <ac131313@redhat.com>
11669
11670 * configure.in (Makefile): Use the test ${target} != ${host},
11671 instead of the absence of the "nm.h" file, to determine of the
11672 configuration non-native.
11673 * configure: Regenerate.
8ffd9b1b 11674
3b27aeea
EZ
116752003-02-14 Elena Zannoni <ezannoni@redhat.com>
11676
fbe586ae 11677 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11678
11679 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11680 conditionalize tui_active test.
11681 (lookup_cmd_1): Ditto.
11682
b0b1c2c0
MK
116832003-02-14 Mark Kettenis <kettenis@gnu.org>
11684
11685 * configure.in: Add check for _etext.
11686 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11687 available.
11688 * config.in, configure: regenerated.
11689
8f05cde5
DJ
116902003-02-14 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11693
021e7609
AC
116942003-02-14 Andrew Cagney <ac131313@redhat.com>
11695
11696 * main.c (tui_version): Delete variable.
11697 (captured_main): When --tui, set interpreter_p to "tui" instead of
11698 enabling tui_version.
11699 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11700 tui_version.
11701 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11702 * cli/cli-cmds.c (disassemble_command): Ditto.
11703 * defs.h (tui_version): Delete declaration.
11704 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11705 (tui-interp.o): Add rules.
11706 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11707
e325dcec
CF
117082003-02-14 Christopher Faylor <cgf@redhat.com>
11709
36ffb041 11710 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11711 just-loaded dll.
11712
c4f90d87
JM
117132003-02-12 Jason Molenda (jmolenda@apple.com)
11714
fbe586ae
RH
11715 * symmisc.c (print_objfile_statistics): Include information about
11716 the number of psymtabs and symtabs in each object file.
c4f90d87 11717
e46e5ccd
KS
117182003-02-13 Keith R Seitz <keiths@redhat.com>
11719
11720 * main.h (struct captured_main_args): Add interpreter_p.
11721 * main.c (captured_main): Initialize interpreter_p from context.
11722 * gdb.c (main): Set interpreter_p argument.
11723 * Makefile.in (gdb.o): Add dependency for interps.h.
11724
fe97fe9c
AC
117252003-02-12 Andrew Cagney <ac131313@redhat.com>
11726
11727 * event-top.c (cli_command_loop): Delete declaration.
11728 (_initialize_event_loop): Delete function setting event_loop_hook.
11729 * event-top.h (cli_command_loop): Declare. Update copyright.
11730 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11731 * interps.c (current_interp_command_loop): When event_loop_p, call
11732 cli_command_loop.
11733
1cdac4ef
AC
117342003-02-12 Andrew Cagney <ac131313@redhat.com>
11735
11736 * interps.h (interp_command_loop_ftype): Change return type to
11737 void.
11738
48037ead
ML
117392003-02-12 Michal Ludvig <mludvig@suse.cz>
11740
11741 * x86-64-tdep.c (x86_64_extract_return_value)
11742 (x86_64_store_return_value): Use regcache instead of regbuf.
11743 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11744 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11745
033afc63
AC
117462003-02-11 Andrew Cagney <ac131313@redhat.com>
11747
11748 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11749 * aclocal.m4: Regenerate.
11750 * configure: Regenerate.
11751
11752 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11753 TCL_LD_SEARCH_FLAGS.
11754
40d02bca
ML
117552003-02-10 Michal Ludvig <mludvig@suse.cz>
11756
11757 * dwarf2cfi.c: Reindented.
11758
11308a41
AC
117592003-02-09 Andrew Cagney <ac131313@redhat.com>
11760
11761 * interps.c (clear_interpreter_hooks): Convert function definition
11762 to ISO C.
11763
e1c1c0f6
DC
117642003-02-07 David Carlton <carlton@math.stanford.edu>
11765
11766 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11767
ab5d3da6
KB
117682003-02-07 Kevin Buettner <kevinb@redhat.com>
11769
11770 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11771 (struct type): ...to here.
11772 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11773 field.
11774 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11775 (replace_type): Set length on all type variants for a given type.
11776
b8a92b82
AC
117772003-02-07 Andrew Cagney <ac131313@redhat.com>
11778
11779 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11780 <sys/stat.h>.
11781 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11782
5cb316ef
AC
117832003-02-06 Andrew Cagney <ac131313@redhat.com>
11784
2555fe1a
AC
11785 * Makefile.in (symm-nat.o): Update dependencies.
11786 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11787 (lynx-nat.o, ia64-linux-nat.): Ditto.
11788 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11789 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11790 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11791
44270758
AC
11792 * Makefile.in (inflow_h): Define.
11793 (procfs.o, inflow.o, procfs.o): Update dependencies.
11794 * inftarg.c (child_stop): Delete extern declaration of
11795 inferior_process_group. Include "inflow.h".
11796 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11797 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11798 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11799 (our_process_group, inferior_process_group): Extern declarations.
11800
df8f7274
AC
11801 * procfs.c: Include "gdb_assert.h".
11802
5cb316ef
AC
11803 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11804 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11805 * jv-typeprint.c (java_type_print_base): Ditto.
11806 * typeprint.c (typedef_print): Eliminate STREQ.
11807 * cli/cli-script.c (define_command, define_command): Ditto.
11808 * main.c (captured_main): Ditto.
11809 * values.c (lookup_internalvar): Ditto.
11810 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11811 within `if' conditional.
11812 * linespec.c (decode_line_2): Ditto.
11813 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11814 (bfd_openw_with_cleanup): Ditto.
11815
2a28ccea
MK
118162003-02-07 Mark Kettenis <kettenis@gnu.org>
11817
11818 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11819 legacy_extract_return_value and store_return_value to
11820 legacy_return_value.
11821
786b8124
CF
118222003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11823
11824 * win32-nat.c (get_relocated_section_addrs): New function. Find
11825 section load addresses for symbol handling in relocated DLLs.
11826 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11827
b871e4ec
FF
118282003-02-05 Fred Fish <fnf@intrinsity.com>
11829
11830 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11831 '=' and '!='.
11832 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11833 with '&' and '=='.
11834 (angel_RDI_info): Ditto.
11835 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11836 with '&' and '!='.
11837 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11838
4389a95a 118392003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11840 Keith Seitz <keiths@redhat.com>
11841 Elena Zannoni <ezannoni@redhat.com>
11842 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11843
11844 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11845 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11846 (SUBDIR_MI_OBS): Add "mi-interp.o".
11847 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11848 (SFILES): Add "interps.c".
11849 (COMMON_OBS): Add "interps.o".
11850 (interps_h, mi_main_h): Define.
11851 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11852 (mi-main.o, main.o, event-top.o): Update dependencies.
11853 * cli/cli-interp.c: New file.
11854 * interps.h, interps.c: New files.
11855 * top.c: (gdb_init): Don't install the default interpreter, handed
11856 by captured_main.
11857 * main.c: Include "interps.h".
11858 (interpreter_p): Note that it should malloc'ed.
11859 (captured_command_loop): Call current_interp_command_loop.
11860 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11861 xfree and xstrdup when updating interpreter_p. Install the
11862 default interpreter. Add hack to stop mi1's copyright notice
11863 being encoded.
11864 * event-top.h (gdb_setup_readline): Declare.
11865 (gdb_disable_readline): Declare.
11866 * event-top.c: Include "interps.h".
11867 (display_gdb_prompt): Call current_interp_display_prompt_p.
11868 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11869 gdb_stdlog, and gdb_stdtarg.
11870 (_initialize_event_loop): Don't call gdb_setup_readline.
11871 * cli-out.c (cli_out_set_stream): New function.
11872 * cli-out.h (cli_out_set_stream): Declare.
11873
ff3b5810
MK
118742003-02-06 Mark Kettenis <kettenis@gnu.org>
11875
11876 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11877 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11878 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11879 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11880 config/i386/i386v42mp.mt: Removed.
11881
5b729aa5
MK
118822003-02-05 Mark Kettenis <kettenis@gnu.org>
11883
11884 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11885 GDB_OSABI_SOLARIS.
11886
8cc15142
MC
118872003-02-05 Michael Chastain <mec@shout.net>
11888
11889 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11890 2.12.1 and earlier versions.
11891
5aa5d4b9
AC
118922003-02-05 Andrew Cagney <ac131313@redhat.com>
11893
11894 Remove orphaned hosts, targets and files.
11895 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11896 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11897 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11898 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11899 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11900 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11901 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11902 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11903 * config/sparc/tm-sp64sim.h: Delete.
11904 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11905 hosts.
11906 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11907 mips*-dec-mach3* targets.
11908
b68767c1
MC
119092003-02-04 Michael Chastain <mec@shout.net>
11910
11911 * NEWS: Fix typo: sepcifying -> specifying.
11912
5ae7ca1d
MC
119132003-02-04 Michael Chastain <mec@shout.net>
11914
11915 * dwarfread.c: Add documentation on the state of dwarf-1,
11916 looking towards obsoletion.
11917
d08a4280
MC
119182003-02-03 Michael Chastain <mec@shout.net>
11919
11920 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11921 gdb/testsuite/gdb.c++/pr-1023.exp.
11922
e9be73e4
AC
119232003-02-04 Andrew Cagney <ac131313@redhat.com>
11924
11925 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11926 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11927
11928 * utils.c (init_page_info): Delete reference to MPW in comments.
11929 * main.c (captured_main): Delete #ifdef MPW.
11930
05d57f6f
AC
119312003-02-04 Andrew Cagney <ac131313@redhat.com>
11932
8ffd9b1b 11933 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11934 * monitor.c (monitor_expect): Obsolete reference to m32r.
11935 * configure.tgt: Mark m32r-*-elf* as obsolete.
11936 * MAINTAINERS: Mark m32k as obsolete.
11937 * m32r-rom.c: Obsolete file.
11938 * config/m32r/m32r.mt: Obsolete file.
11939 * config/m32r/tm-m32r.h: Obsolete file.
11940 * m32r-stub.c: Obsolete file.
11941 * m32r-tdep.c: Obsolete file.
11942
8b0e5691
AC
119432003-02-04 Andrew Cagney <ac131313@redhat.com>
11944
11945 * NEWS: Mention that the z8k-zilog-none is obsolete.
11946 * MAINTAINERS: Mark z8k as obsolete.
11947 * configure.tgt: Obsolete the z8k-*-coff* target.
11948 * config/z8k/z8k.mt: Obsolete file.
11949 * config/z8k/tm-z8k.h: Obsolete file.
11950 * z8k-tdep.c: Obsolete file.
11951
67f16606
AC
119522003-02-04 Andrew Cagney <ac131313@redhat.com>
11953
11954 * NEWS: Mention that the mn10200-elf is obsolete.
11955 * configure.tgt: Obsolete mn10200-*-* target.
11956 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11957 mention that the mn10200 is obsolete.
11958 * breakpoint.h: Ditto.
11959 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11960 * config/mn10200/mn10200.mt: Obsolete file.
11961 * config/mn10200/tm-mn10200.h: Obsolete file.
11962 * mn10200-tdep.c: Obsolete file.
11963
fd2299bd
AC
119642003-02-04 Andrew Cagney <ac131313@redhat.com>
11965
11966 * MAINTAINERS: Mark h8500 as obsolete.
11967 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11968 * findvar.c (value_from_register): Ditto.
11969 * h8500-tdep.c: Mark file as obsolete.
11970 * config/h8500/h8500.mt: Ditto.
11971 * config/h8500/tm-h8500.h: Ditto.
11972 * NEWS: Mention that h8500 is obsolete.
11973
eb9a305d
DC
119742003-02-04 David Carlton <carlton@math.stanford.edu>
11975
11976 * objfiles.c (allocate_objfile): Always set name. Add comment at
11977 start of function.
11978 * jv-lang.c (get_dynamics_objfile): Add comment.
11979
406fc7fb
DC
119802003-02-04 David Carlton <carlton@math.stanford.edu>
11981
11982 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11983 * printcmd.c (build_address_symbolic): Replace uses of
11984 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11985 SYMBOL_NAME, and asm_demangle.
11986 Update copyright.
11987
93d91629
DC
119882003-02-04 David Carlton <carlton@math.stanford.edu>
11989
11990 * linespec.c (decode_compound): Extract code into
11991 lookup_prefix_sym.
11992 (lookup_prefix_sym): New function.
11993
1c5cb38e
DC
119942003-02-04 David Carlton <carlton@math.stanford.edu>
11995
11996 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11997 FLOAT_COERCION_BADNESS.
11998 * gdbtypes.c (rank_one_type): Replace all uses of
11999 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12000
0cf824c9
JB
120012003-02-04 Jim Blandy <jimb@redhat.com>
12002
12003 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12004 section, let dwarf_macinfo_section point to it, not
12005 dwarf_loc_section.
12006
a2d356b0
DJ
120072003-02-04 Daniel Jacobowitz <drow@mvista.com>
12008
12009 Pointed out by Anton Blanchard <anton@samba.org>.
12010 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12011 (ppc_linux_at_sigtramp_return_path): Use it.
12012
2de7ced7
DJ
120132003-02-04 Daniel Jacobowitz <drow@mvista.com>
12014
12015 * defs.h (streq): Add prototype.
12016 * utils.c (streq): New function.
12017
12018 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12019 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12020 * mdebugread.c (new_symbol): Likewise.
12021 * stabsread.c (define_symbol): Likewise.
12022 * coffread.c (process_coff_symbol): Likewise.
12023 * dwarfread.c (new_symbol): Likewise.
12024
12025 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12026 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12027 here.
12028 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12029 SYMBOL_INIT_DEMANGLED_NAME.
12030 * objfiles.c: Include "hashtab.h".
12031 (allocate_objfile): Call htab_set_functions_ex for the
12032 demangled_names_hash.
12033 (free_objfile): Call htab_delete for the demangled_names_hash.
12034 * objfiles.h (struct htab): Add declaration.
12035 (struct objfile): Add demangled_names_hash.
12036 * symfile.c: Include "hashtab.h".
12037 (reread_symbols): Call htab_delete for the demangled_names_hash.
12038 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12039 SYMBOL_NAME in the bcache.
12040 * symtab.c: Include "hashtab.h". Update comments.
12041 (create_demangled_names_hash, symbol_set_names): New functions.
12042 (symbol_find_demangled_name): New function, broken out from
12043 symbol_init_demangled_names.
12044 (symbol_init_demangled_names): Use it.
12045 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12046 (SYMBOL_SET_NAMES): New macro.
12047 (symbol_set_names): Add prototype.
12048
15831452
JB
120492003-02-03 Jim Blandy <jimb@redhat.com>
12050
12051 Use a single, consistent representation for an empty minimal
12052 symbol table in an objfile.
12053 * objfiles.c (terminate_minimal_symbol_table): New function.
12054 (allocate_objfile): Call it.
12055 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12056 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12057 non-NULL.
15831452
JB
12058 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12059 objfile has minimal symbols, compare minimal_symbol_count to zero,
12060 instead of comparing msymbols with NULL.
12061 * objfiles.c (have_minimal_symbols): Same.
12062 * solib-sunos.c (solib_add_common_symbols): Call
12063 terminate_minimal_symbol_table.
12064 * symfile.c (reread_symbols): Same.
8ffd9b1b 12065
ffc65945
KB
120662003-02-03 Kevin Buettner <kevinb@redhat.com>
12067
12068 * s390-tdep.c (s390_address_class_type_flags)
12069 (s390_address_class_type_flags_to_name)
12070 (s390_address_class_name_to_type_flags): New functions.
12071 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12072 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12073
f211c6d4
MS
120742003-02-03 Michael Snyder <msnyder@redhat.com>
12075
12076 * arm-tdep.c: Fix spell-o in comment.
12077
659b0389
ML
120782003-02-03 Michal Ludvig <mludvig@suse.cz>
12079
12080 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12081 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12082 error messages to contain BFD filename.
659b0389 12083
3b31d625
EZ
120842003-02-02 Elena Zannoni <ezannoni@redhat.com>
12085
997b089a 12086 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12087 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12088 (do_mixed_source_and_assembly): Use
12089 make_cleanup_ui_out_tuple_begin_end and
12090 make_cleanup_ui_out_tuple_begin_end.
12091 (do_mixed_source_and_assembly): Ditto.
12092 * thread.c (do_captured_list_thread_ids): Ditto.
12093 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12094 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12095 ui_out_tuple_end): Delete prototypes.
12096 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12097 ui_out_list_end, ui_out_tuple_end): Delete.
12098
12099 From Kevin Buettner <kevinb@redhat.com>:
12100 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12101 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12102 (do_cleanup_table_end): New functions.
12103 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12104 Use cleanups to invoke_ui_out_tuple_end().
12105 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12106 * cli/cli-setshow.c (cmd_show_list): Use
12107 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12108
5b181d62
AC
121092003-02-02 Andrew Cagney <ac131313@redhat.com>
12110
12111 * frame.c (frame_unwind_register): New function.
12112 (frame_unwind_unsigned_register): Use.
12113 (frame_unwind_signed_register): Use.
12114 (frame_read_register): New function.
12115 * frame.h (frame_unwind_register): Declare.
12116 (frame_read_register): Declare.
12117
12118 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12119 and frame_unwind_register instead of read_memory, write_register
12120 and deprecated_write_register_bytes.
12121
5f601589
AC
121222003-02-02 Andrew Cagney <ac131313@redhat.com>
12123
12124 * frame.h: Note that namelen can be negative.
12125 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12126 NAME's length.
12127
12128 * NEWS: Mention that the d10v's `regs' command is deprecated.
12129 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12130 (d10v_print_registers_info): New function.
12131 (show_regs): Call d10v_print_registers_info.
12132 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12133
6a3fe0a4
MK
121342003-02-02 Mark Kettenis <kettenis@gnu.org>
12135
12136 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12137 lost in the previous patch.
12138
075559bc
AC
121392003-02-01 Andrew Cagney <ac131313@redhat.com>
12140
12141 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12142 * stack.c (print_frame_info_base): Output complete FRAME tuple
12143 for synthesized frames.
075559bc 12144
6789195b
AC
121452003-02-02 Andrew Cagney <ac131313@redhat.com>
12146
12147 * mips-nat.c (zerobuf): Delete.
12148 (fetch_inferior_registers): Alloc local zerobuf.
12149 (fetch_core_registers): Alloc local zerobuf.
12150 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12151 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12152 * thread-db.c (thread_db_store_registers): Ditto.
12153 * sh-tdep.c (sh_do_register): Ditto.
12154 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12155 * remote-sim.c (gdbsim_store_register): Ditto.
12156 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12157 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12158 * monitor.c (monitor_supply_register): Ditto.
12159 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12160 * mips-nat.c (fetch_inferior_registers): Ditto.
12161 * m68klinux-nat.c (fetch_register): Ditto.
12162 * lynx-nat.c (fetch_inferior_registers): Ditto.
12163 (fetch_inferior_registers): Ditto.
12164 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12165 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12166 (hpux_thread_store_registers): Ditto.
12167 * hppah-nat.c (fetch_register): Ditto.
12168 * hppab-nat.c (fetch_register): Ditto.
12169 * hppa-tdep.c (pa_register_look_aside): Ditto.
12170 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12171 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12172
e669114a
AC
121732003-02-01 Andrew Cagney <ac131313@redhat.com>
12174
12175 * gdbarch.sh: Explictly specify all method levels. When a
12176 variable with an empty level, provide a non-multi-arch default.
12177 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12178 * gdbarch.h: Re-generate.
12179 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12180 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12181
9a043c1d
AC
121822003-02-01 Andrew Cagney <ac131313@redhat.com>
12183
12184 * defs.h (host_pointer_to_address): Delete declaration.
12185 (address_to_host_pointer): Delete declaration.
12186 * utils.c (host_pointer_to_address): Delete function.
12187 (address_to_host_pointer): Delete function.
12188 * procfs.c (procfs_address_to_host_pointer): New function.
12189 * procfs.c (proc_set_watchpoint): Use.
12190 (procfs_can_use_hw_breakpoint): Update comments.
12191 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12192 (som_solib_add): Use.
12193 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12194 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12195
7ca9f392
AC
121962003-02-01 Andrew Cagney <ac131313@redhat.com>
12197
94bbfd30
AC
12198 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12199 strlen d_name.
12200
7ca9f392
AC
12201 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12202 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12203 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12204 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12205 (define_symbol): Update.
12206 * symfile.c (generic_load): Remove references to nindy.
12207 * symtab.c: Remove references to nindy.
12208
31a85ea2
AC
122092003-02-01 Andrew Cagney <ac131313@redhat.com>
12210
12211 * infcmd.c (print_float_info): Delete code conditional on
12212 FLOAT_INFO.
12213 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12214 * config/m68k/nm-apollo68b.h: Ditto.
12215 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12216 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12217 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12218
f6e85fc8
MK
122192003-02-01 Mark Kettenis <kettenis@gnu.org>
12220
6015b6a0
MK
12221 * config/i386/tm-i386os9k.h: Removed.
12222
f7a30bdf
MK
12223 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12224 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12225 they're identical to i[3456]86-*-sysv* now.
12226 * config/i386/i386v32.mh: Removed.
12227 * config/i386/xm-i386v32.h: Removed.
12228 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12229
28d52111
MK
12230 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12231
4d3f6bce
MK
12232 * config/i386/i386dgux.mh: Removed.
12233 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12234
f6e85fc8
MK
12235 * configure.in: Fix typo.
12236 * configure: Regenerated.
12237
53955967
DC
122382003-01-31 David Carlton <carlton@math.stanford.edu>
12239
12240 * dwarf2read.c (dwarf2_locate_sections): Set
12241 dwarf_ranges_section.
12242
b1364885
AC
122432003-01-31 Andrew Cagney <ac131313@redhat.com>
12244
8dbb1c65
AC
12245 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12246 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12247
8731e58e
AC
12248 * utils.c: Re-indent.
12249
b1364885
AC
12250 * config/djgpp/fnchange.lst: Delete nindy files.
12251 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12252 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12253 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12254 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12255 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12256 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12257 * Makefile.in (init.c): Remove nindy references.
12258 (saber_gdb): Delete rule.
12259 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12260 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12261 and a68v-nat.c.
12262 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12263 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12264 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12265 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12266 nindy-share/stop.h.
12267 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12268 * saber.suppress: Delete file.
12269
086df311
DJ
122702003-01-31 Daniel Jacobowitz <drow@mvista.com>
12271
12272 * dbxread.c (stabs_data): New static variable.
12273 (fill_symbuf): Support an in-memory buffer for stabs data.
12274 (stabs_seek): New function.
12275 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12276 (read_ofile_symtab): Use stabs_seek.
12277 (elfstab_build_psymtabs): Take an asection* instead of
12278 an offset and size. Relocate the stabs data if necessary.
12279 Save the section* for dbx_psymtab_to_symtab.
12280 * dwarf2read.c: Add section variables for each debug section.
12281 (dwarf2_locate_sections): Fill them in.
12282 (dwarf2_read_section): Take an asection* argument.
12283 Relocate the section contents if necessary.
12284 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12285 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12286 it to dwarf2_read_section.
12287 (dwarf2_build_frame_info): Update callers.
12288 * elfread.c (elf_symfile_read): Update call to
12289 elfstab_build_psymtabs.
12290 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12291 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12292 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12293 * symfile.c (symfile_dummy_outputs): New function.
12294 (symfile_relocate_debug_section): New function.
12295 * symfile.h (symfile_relocate_debug_section): Add prototype.
12296
87d1b352
RH
122972003-01-31 Richard Henderson <rth@redhat.com>
12298
12299 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12300 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12301 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12302 * alpha-tdep.c (alpha_register_name): Add "unique".
12303 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12304 (ALPHA_UNIQUE_REGNUM): New.
12305 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12306
c48861fb
AC
123072003-01-31 Andrew Cagney <ac131313@redhat.com>
12308
12309 * README: Remove reference to Ericsson 1800 monitor.
12310 * Makefile.in (remote-es.o): Delete rule.
12311 (ALLDEPFILES): Delete remote-es.c.
12312 * remote-es.c: Delete file.
12313 * config/m68k/es1800.mt: Delete file.
12314 * config/djgpp/fnchange.lst: Update.
12315 * configure.tgt: Delete m68*-ericsson-* target.
12316
d764a824
AF
123172003-01-31 Adam Fedor <fedor@gnu.org>
12318
12319 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12320 Remove duplicate/shadowing variable of same name.
12321
fe36c4f4
JB
123222003-01-30 Jim Blandy <jimb@redhat.com>
12323
12324 * symfile.c (find_separate_debug_file): Assert that the objfile's
12325 directory name we compute ends with a slash, and then assume that
12326 that's so everywhere we use it.
12327
cb741690
DJ
123282003-01-30 Daniel Jacobowitz <drow@mvista.com>
12329
12330 * valops.c (value_assign): Flush frame cache after stores to memory
12331 also.
12332
96ee5227
AC
123332003-01-30 Andrew Cagney <ac131313@redhat.com>
12334
12335 * Makefile.in (mon960-rom.o): Delete rule.
12336 * mon960-rom.c: Delete file.
12337
7f6104a9
AC
123382003-01-30 Andrew Cagney <ac131313@redhat.com>
12339
12340 * d10v-tdep.c: Include "frame-unwind.h".
12341 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12342 list.
12343 (next_addr, uses_frame): Delete.
12344 (struct d10v_unwind_cache): Define.
12345 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12346 Use info instead of next_addr and uses_frame globals.
12347 (d10v_frame_init_saved_regs): Delete function.
12348 (d10v_init_extra_frame_info): Delete function.
12349 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12350 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12351 init_frame_pc or frame_saved_pc.
12352 (d10v_pop_frame): Delete function.
12353 (do_d10v_pop_frame): Delete function.
12354 (d10v_frame_chain): Delete function.
12355 (d10v_frame_chain_valid): Delete function.
12356 (d10v_frame_pc_unwind): New function.
12357 (d10v_frame_id_unwind): New function.
12358 (saved_regs_unwinder): New function.
12359 (d10v_frame_register_unwind): New function.
12360 (d10v_frame_pop): New function.
12361 (d10v_frame_unwind): New variable.
12362 (d10v_frame_p): New function.
12363 (d10v_frame_saved_pc): Delete function.
12364 * Makefile.in (d10v-tdep.o): Update dependencies.
12365
cad2e848
JB
123662003-01-30 J. Brobecker <brobecker@gnat.com>
12367
12368 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12369 causing some regressions due to a change in the default value
12370 for this macro.
12371
af34e669
DJ
123722003-01-29 Richard Henderson <rth@redhat.com>
12373 Elena Zannoni <ezannoni@redhat.com>
12374 Daniel Jacobowitz <drow@mvista.com>
12375
12376 Fix PR gdb/961.
8ffd9b1b 12377 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12378 variables.
12379 (RANGES_SECTION): New.
12380 (dwarf_ranges_buffer): New variable.
12381 (struct comp_unit_head): Add member "die".
12382 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12383 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12384 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12385 (dwarf2_locate_sections): Likewise.
12386 (dwarf2_build_psymtabs): Read .debug_ranges.
12387 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12388 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12389 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12390 Look for DW_AT_ranges and return the bounding box.
12391
baa93fa6
CF
123922003-01-29 Brian Ford <ford@vss.fsi.com>
12393
12394 * win32-nat.c (cygwin_pid): Removed as unused.
12395 (child_attach): Try fall back to Cygwin pid.
12396
c63f977f
JB
123972003-01-29 Jim Blandy <jimb@redhat.com>
12398
12399 * objfiles.h (struct objfile): Doc fix.
12400
d62d1979
AC
124012003-01-29 Andrew Cagney <ac131313@redhat.com>
12402
12403 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12404 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12405 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12406 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12407 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12408 (FRAME_SAVED_PC): Change to a function with predicate.
12409 * gdbarch.h, gdbarch.c: Re-generate.
12410
1ae18a04
AC
124112003-01-28 Andrew Cagney <ac131313@redhat.com>
12412
52287340
AC
12413 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12414
1ae18a04
AC
12415 * complaints.c (complain): Delete function.
12416 * complaints.h (struct deprecated_complaint): Delete definition.
12417 (complain): Delete declaration.
12418
f2c16bd6
KB
124192003-01-28 Kevin Buettner <kevinb@redhat.com>
12420
12421 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12422 dummy frames.
12423
a94dd1fd
AC
124242003-01-27 Andrew Cagney <ac131313@redhat.com>
12425
12426 * sentinel-frame.h, sentinel-frame.c: New files.
12427 * Makefile.in (frame.o): Update dependencies.
12428 (SFILES): Add sentinel-frame.c.
12429 (sentinel_frame_h): Define.
12430 (COMMON_OBS): Add sentinel-frame.o.
12431 (sentinel-frame.o): Specify dependencies.
12432 * frame.c: Include "sentinel-frame.h".
12433 (frame_register_unwind): Rewrite assuming that there is always a a
12434 ->next frame.
12435 (frame_register, generic_unwind_get_saved_register): Ditto.
12436 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12437 (create_sentinel_frame, unwind_to_current_frame): New functions.
12438 (get_current_frame): Rewrite using create_sentinel_frame and
12439 unwind_to_current_frame. When possible, always create a frame.
12440 (create_new_frame): Set next to the sentinel frame.
12441 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12442 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12443 ID cache when necessary.
12444 (frame_saved_regs_id_unwind): Use frame_relative_level.
12445 (deprecated_generic_get_saved_register): Use frame_relative_level,
12446 get_frame_saved_regs, get_frame_pc, get_frame_base and
12447 get_next_frame.
12448 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12449 frame_register.
12450
5378adc4
DJ
124512003-01-27 Daniel Jacobowitz <drow@mvista.com>
12452
12453 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12454
51ee2ddc
DJ
124552003-01-27 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12458 (maintenance_set_profile_cmd): Use error () instead of warning ().
12459
d9feb4e7
DJ
124602003-01-27 Daniel Jacobowitz <drow@mvista.com>
12461
12462 * configure.in: Check that -pg works if using --enable-profiling.
12463 Check for monstartup and _mcleanup regardless of --enable-profiling.
12464 * maint.c: Check for monstartup and _mcleanup before using them.
12465 * config.in: Regenerated.
12466 * configure: Regenerated.
12467
2d188dd3
NC
124682003-01-24 Nick Clifton <nickc@redhat.com>
12469
12470 * Add sh2e support:
12471
12472 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12473
12474 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12475 (sh2e_show_regs): New.
12476 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12477 * config/sh/tm-sh.h: Added sh2e to comments.
12478
cb3c37b2
JB
124792003-01-23 Jim Blandy <jimb@redhat.com>
12480
12481 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12482 symbols found)" message here; we haven't checked for a separate
12483 debug info file yet, so we don't know yet.
12484 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12485 we've looked everywhere. Also, there's no need to print a special
12486 message when we're loading the separate debug info file: the one
12487 symbol_file_add prints is fine.
12488
5b5d99cf
JB
124892003-01-23 Alexander Larsson <alexl@redhat.com>
12490 Jim Blandy <jimb@redhat.com>
12491
12492 Add support for executables whose debug info has been separated
12493 out into a separate file, leaving only a link behind.
12494 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12495 and separate_debug_objfile_backlink.
12496 (put_objfile_before): New declaration.
12497 * symfile.c: #include "filenames.h".
12498 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12499 debug info in a separate file, read that, too. Save the addrs
12500 argument, so we can use it again to read the separated debug info;
12501 syms_from_objfile modifies the table we pass it.
12502 (reread_symbols): After re-reading an objfile, call
12503 reread_separate_symbols to refresh its separate debug info
12504 objfile, if it has one.
12505 (reread_separate_symbols, find_separate_debug_file,
12506 get_debug_link_info, separate_debug_file_exists): New functions.
12507 (debug_file_directory): New global var.
12508 (_initialize_symfile): Initialize debug_file_directory, and
12509 provide the new `set debug-file-directory' command to let the user
12510 change it.
12511 * objfiles.c (free_objfile): If this objfile has its debug info in
12512 a separate objfile, free that one too. If this is itself a
12513 separate debug info objfile, clear our parent's backlink.
12514 (put_objfile_before): New function.
12515 * utils.c (gnu_debuglink_crc32): New function.
12516 * defs.h (gnu_debuglink_crc32): New declaration.
12517 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12518 * configure.in: Handle --with-separate-debug-dir config option.
12519 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12520 * acconfig.h (DEBUGDIR): New macro.
12521 * configure, aclocal.m4, config.in: Regenerated.
12522
7e8580c1
JB
125232003-01-22 Jim Blandy <jimb@redhat.com>
12524
7904e09f
JB
12525 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12526 like the old symbol_file_add, but taking new arguments: you can
12527 now pass in either a `struct section_addr_info' list to say where
12528 each section is loaded, or a `struct section_offsets' table. Pass
12529 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12530 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12531 with the appropriate quiescent values for the new arguments.
12532
7e8580c1
JB
12533 * symfile.c: #include "gdb_assert.h".
12534 (syms_from_objfile): Add the ability to pass in a section offset
12535 table directly, as an alternative to the section_addr_info table.
12536 Document arguments better.
12537 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12538 * symfile.h (syms_from_objfile): Update declaration.
12539 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12540 syms_from_objfile.
12541 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12542
d28f9cdf
DJ
125432003-01-22 Daniel Jacobowitz <drow@mvista.com>
12544
12545 Original patch by Tom Tromey <tromey@cygnus.com> and
12546 Jason Molenda <jmolenda@apple.com>.
12547 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12548 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12549 * NEWS: Mention profiling.
12550 * configure.in (--enable-gdbtk): Fix typo.
12551 (--enable-profiling): New. Set PROFILE_CFLAGS.
12552 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12553 Fill in function.
12554 (profiling_state): New variable.
12555 (mcleanup_wrapper): New function.
12556 (_initialize_maint): Remove NOTYET, fix call to
12557 add_setshow_boolean_cmd for "maint set profile".
12558 * configure: Regenerated.
12559
df21e465
MH
125602003-01-21 Martin M. Hunt <hunt@redhat.com>
12561
12562 * Makefile.in (install-gdbtk): Install PNG images too.
12563
73c1f219
AC
125642003-01-21 Andrew Cagney <ac131313@redhat.com>
12565
12566 * exec.c (text_start): Delete global variable.
12567 (exec_file_attach): Make text_start local to the function.
12568 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12569 * valops.c (hand_function_call): Delete code that handles
12570 BEFORE_TEXT_END and AFTER_TEXT_END.
12571 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12572 of CALL_DUMMY_LOCATION.
12573 * gdbarch.c: Regenerate.
12574 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12575 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12576 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12577 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12578 (text_end): Delete extern declaration.
12579
eb4f72c5
AC
125802003-01-21 Andrew Cagney <ac131313@redhat.com>
12581
12582 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12583 * blockframe.c (backtrace_below_main): Move to "frame.c".
12584 (frame_chain_valid): Delete check for backtrace_below_main.
12585 (_initialize_blockframe): Delete initialization, move ``set
12586 backtrace-below-main'' command to "frame.c".
12587 (do_flush_frames_sfunc): Delete function.
12588 * frame.c: Include "command.h" and "gdbcmd.h".
12589 (frame_type_from_pc): New function.
12590 (create_new_frame): Use frame_type_from_pc.
12591 (legacy_get_prev_frame): New function.
12592 (get_prev_frame): Rewrite. When an old style frame, call
12593 legacy_get_prev_frame. Otherwize, unwind the PC first.
12594 (_initialize_frame): Add ``set backtrace-below-main'' command.
12595 * Makefile.in (frame.o): Update dependencies.
12596
778ce8cc
AC
125972003-01-19 Andrew Cagney <ac131313@redhat.com>
12598
12599 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12600 DEPRECATED_REGISTERS_INFO.
12601
01c193c8
AC
126022003-01-19 Andrew Cagney <ac131313@redhat.com>
12603
12604 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12605 Maintainers'. Update `Various Maintainers'.
12606
dedc2a2b
AC
126072003-01-19 Andrew Cagney <ac131313@redhat.com>
12608
12609 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12610 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12611 Suppress actual parameters when `-'.
12612 * gdbarch.h, gdbarch.c: Regenerate.
12613
b7261c70
AC
126142003-01-19 Andrew Cagney <ac131313@redhat.com>
12615
12616 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12617 code handling dummy frames.
12618
dbe9fe58
AC
126192003-01-19 Andrew Cagney <ac131313@redhat.com>
12620
12621 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12622 (struct frame_unwind): Add field pop.
12623 * frame.h (frame_pop): Declare.
12624 * frame.c (frame_saved_regs_pop): New function.
12625 (trad_frame_unwinder): Add frame_saved_regs_pop.
12626 (frame_pop): New function.
12627 * dummy-frame.c (dummy_frame_pop): New function.
12628 (discard_innermost_dummy): New function.
12629 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12630 (dummy_frame_unwind): Add dummy_frame_pop.
12631 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12632 * valops.c (hand_function_call): Ditto.
12633 * stack.c (return_command): Ditto.
12634
570b8f7c
AC
126352003-01-18 Andrew Cagney <ac131313@redhat.com>
12636
12637 * cris-tdep.c: Fix function declaration indentation.
12638 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12639 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12640 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12641 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12642 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12643 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12644
126452003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12646
12647 * README (Unpacking and Installation -- quick overview):
12648 Warn against ".../gdb-5.3/gdb/configure".
12649
494cca16
AC
126502003-01-18 Andrew Cagney <ac131313@redhat.com>
12651
12652 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12653 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12654 (struct frame_unwind): Declare opaque.
12655 (dummy_frame_p): Declare function.
12656 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12657 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12658 * dummy-frame.c: Include "frame-unwind.h".
12659 (dummy_frame_p): New function.
12660 (dummy_frame_unwind): New variable.
12661 * frame.c: Include "frame-unwind.h".
12662 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12663 to use the new unwind field.
12664 (set_unwind_by_pc): Delete function.
12665 (create_new_frame, get_prev_frame): Set unwind field using
12666 frame_unwind_find_by_pc.
12667 (trad_frame_unwind, trad_frame_unwinder): New variables.
12668 * frame.h (trad_frame_unwind): Declare variable.
12669 (frame_id_unwind_ftype): Delete declaration.
12670 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12671 (struct frame_unwind): Declare opaque.
12672 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12673 register_unwind with a single unwind pointer.
12674 * frame-unwind.h, frame-unwind.c: New files.
12675 * Makefile.in (SFILES): Add frame-unwind.c.
12676 (frame_unwind_h): Define.
12677 (COMMON_OBS): Add frame-unwind.o.
12678 (frame-unwind.o): Specify dependencies.
12679 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12680
4efb68b1
AC
126812003-01-18 Andrew Cagney <ac131313@redhat.com>
12682
12683 * ada-valprint.c: Eliminate PTR.
12684 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12685 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12686 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12687 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12688 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12689 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12690 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12691
a84d24ee
AC
126922003-01-17 Andrew Cagney <ac131313@redhat.com>
12693
762f08a3
AC
12694 * main.c (captured_main): Don't use PTR.
12695 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12696 * gdbtypes.c (lookup_primitive_typename): Ditto.
12697 (lookup_struct_elt_type): Ditto.
12698 * f-valprint.c (info_common_command): Ditto.
12699 (list_all_visible_commons): Ditto.
12700 * jv-typeprint.c (java_type_print_base): Ditto.
12701
a84d24ee
AC
12702 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12703 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12704 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12705 i386-interix-nat.c and i386-interix-tdep.c. Rename
12706 m68klinux-nat.c and m68klinux-tdep.c. Rename
12707 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12708 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12709 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12710 * main.c (captured_main): Use xfree, not free.
12711
c170fb60
AC
127122003-01-16 Andrew Cagney <ac131313@redhat.com>
12713
12714 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12715 ID back using a parameter.
12716 * frame.c (frame_id_unwind): Update call.
12717 (frame_saved_regs_id_unwind): Update.
12718 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12719 * dummy-frame.h (struct frame_id): Add opaque declaration.
12720 (dummy_frame_id_unwind): Update declaration.
12721
867f3898
AC
127222003-01-15 Andrew Cagney <ac131313@redhat.com>
12723
12724 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12725
40622be8 127262003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12727
40622be8 12728 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12729
ae66c1fc
EZ
127302003-01-14 Elena Zannoni <ezannoni@redhat.com>
12731
997b089a 12732 Fix PR gdb/898
ae66c1fc
EZ
12733 * breakpoint.c (until_break_command): Add new argument. Use it to
12734 decide whether to stop only at the current frame or not.
12735 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12736 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12737 call.
12738 (advance_command): New function.
12739 (_initialize_infcmd): Update help string for 'until' command.
12740 Add new 'advance' command.
12741
a04257e6
DC
127422003-01-14 David Carlton <carlton@math.stanford.edu>
12743
12744 * linespec.c (decode_line_1): Normalize comments.
12745 (set_flags): Ditto.
12746 (locate_first_half): Ditto.
12747 (decode_compound): Ditto.
12748 (symtab_from_filename): Ditto.
12749 (decode_all_digits): Ditto.
12750 (decode_dollar): Ditto.
12751 (find_methods): Ditto.
12752 (find_toplevel_char): Ditto.
12753
1bac305b
AC
127542003-01-13 Andrew Cagney <ac131313@redhat.com>
12755
12756 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12757 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12758 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12759 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12760 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12761 * language.c, language.h, m32r-tdep.c: Update copyright.
12762 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12763 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12764 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12765 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12766 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12767 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12768
25caa7a8
EZ
127692003-01-13 Elena Zannoni <ezannoni@redhat.com>
12770
12771 * stabsread.h (process_later, resolve_cfront_continuation):
12772 Obsolete.
12773 Update copyright years.
12774 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12775 Update copyright year.
12776 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12777 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12778 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12779 Update copyright year.
12780 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12781 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12782 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12783 (parse_partial_symbols): Obsolete cfront support.
12784 * stabsread.c
12785 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12786 macros.
12787 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12788 read_cfront_baseclasses, read_cfront_member_functions,
12789 resolve_cfront_continuation,read_cfront_static_fields,
12790 copy_cfront_struct_fields): Obsolete functions.
12791 (define_symbol, read_one_struct_field): Obsolete cfront support.
12792 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12793 Update Copyright year.
12794
7789c6f5
EZ
127952003-01-13 Elena Zannoni <ezannoni@redhat.com>
12796
12797 * stack.c (print_frame_info, print_stack_frame_base_stub,
12798 print_stack_frame_base, show_and_print_stack_frame_stub,
12799 show_and_print_stack_frame, print_only_stack_frame_stub,
12800 print_only_stack_frame): Delete functions.
12801 (print_stack_frame_stub): Call print_frame_info instead of
12802 print_frame_info_base.
12803 (print_frame_info_base): Rename to print_frame_info.
12804 (backtrace_command_1): Call print_frame_info, instead of
12805 print_frame_info_base.
12806 (current_frame_command): Call print_stack_frame, instead of
12807 print_only_stack_frame.
12808 (frame_command): Call print_stack_frame, instead of
12809 show_and_print_stack_frame.
12810 (up_command): Ditto.
12811 (down_command): Ditto.
12812 * frame.h (print_only_stack_frame): Delete prototype.
12813 * infrun.c (normal_stop): Call print_stack_frame, instead of
12814 show_and_print_stack_frame.
12815 * thread.c (info_threads_command): Call print_stack_frame, instead
12816 of print_only_stack_frame.
12817
3f5a3016
AC
128182003-01-13 Andrew Cagney <ac131313@redhat.com>
12819
d99ba314
AC
12820 * README (Graphical interface to GDB): Update URL. Point at
12821 gdb/links/.
12822
3f5a3016
AC
12823 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12824 version match.
12825
083ae935
DJ
128262003-01-13 Daniel Jacobowitz <drow@mvista.com>
12827
12828 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12829 lines.
12830
5365276c
DJ
128312003-01-13 Daniel Jacobowitz <drow@mvista.com>
12832
12833 * thread-db.c (attach_thread): Prototype.
12834 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12835 thread information (ti), and valid flags (th_valid, ti_valid).
12836 (attach_thread): Move target_pid_to_str call to after the thread
12837 is added to GDB's list. Initialize the cache.
12838 (thread_get_info_callback, thread_db_map_id2thr)
12839 (thread_db_get_info): New functions.
12840 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12841 (thread_db_store_registers, thread_db_thread_alive)
12842 (thread_db_get_thread_local_address): Use them.
12843 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12844 of calling error() for threads in unknown state.
12845
12846 (clear_lwpid_callback): New function.
12847 (thread_db_resume): Use it to clear the cache.
12848
9fc30b6b
DJ
128492003-01-13 Daniel Jacobowitz <drow@mvista.com>
12850
12851 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12852 (resume_callback): Remove dead code.
12853
8f871025
AC
128542003-01-13 Andrew Cagney <ac131313@redhat.com>
12855
12856 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12857 predicate.
12858 * gdbarch.h, gdbarch.c: Regenerate.
12859 * stack.c (frame_info): Only initialize the saved registers when
12860 FRAME_INIT_SAVED_REGS_P.
12861 * frame.c (frame_saved_regs_register_unwind): Assert
12862 FRAME_INIT_SAVED_REGS_P.
12863 (deprecated_generic_get_saved_register): Ditto.
12864
3f565f1e
DJ
128652003-01-13 Daniel Jacobowitz <drow@mvista.com>
12866
12867 * source.c (openp): Squelch warning about "filename".
12868
072b1022
DJ
128692003-01-13 Daniel Jacobowitz <drow@mvista.com>
12870
12871 * source.c (openp): If the file does not exist don't necessarily
12872 search the path.
12873
973ccf8b
DJ
128742003-01-13 Daniel Jacobowitz <drow@mvista.com>
12875
12876 Fix PR gdb/872.
12877 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12878 (integer_types_same_name_p): New function.
12879 (rank_one_type): Use it.
12880 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12881
030292b7
DJ
128822003-01-13 Daniel Jacobowitz <drow@mvista.com>
12883
12884 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12885 variables.
12886 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12887 * configure.in: Add --with-sysroot.
12888 * configure: Regenerated.
12889 * main.c (gdb_sysroot): New variable.
12890 (captured_main): Initialize gdb_sysroot.
12891 * defs.h (gdb_sysroot): New extern declaration.
12892 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12893
afb5d334
MC
128942003-01-12 Michael Chastain <mec@shout.net>
12895
12896 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12897
751ceeb4
MC
128982003-01-12 Michael Chastain <mec@shout.net>
12899
12900 * top.c (print_gdb_version): Bump copyright year to 2003.
12901
94cd26f8
DC
129022003-01-12 David Carlton <carlton@bactrian.org>
12903
12904 * linespec.c (symtab_from_filename): Rename variable 's' to
12905 'file_symtab'.
12906
1ce79225
AC
129072003-01-12 Andrew Cagney <ac131313@redhat.com>
12908
12909 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12910 dummy frame.
12911 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12912
fa1fd571
AC
129132003-01-12 Andrew Cagney <ac131313@redhat.com>
12914
12915 * d10v-tdep.c: Include "gdb_assert.h".
12916 (d10v_store_return_value): Rewrite to match current interface.
12917 (d10v_extract_struct_value_address): Ditto.
12918 (d10v_extract_return_value): Ditto.
12919 (d10v_gdbarch_init): Set store_restore_value,
12920 extract_struct_value_address and extract_return_value.
12921
68b8d23e
JB
129222003-01-12 J. Brobecker <brobecker@gnat.com>
12923
12924 * hpread.c (set_namestring): New procedure replacing the
12925 SET_NAMESTRING macro.
12926 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12927 by calls to set_namestring.
12928
129292003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12930
12931 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12932 a compilation warning.
12933 (hpread_process_one_debug_symbol): Likewise.
12934
88d262ca
DC
129352003-01-10 David Carlton <carlton@math.stanford.edu>
12936
12937 * linespec.c (decode_line_1): Rename variable 's' to
12938 'file_symtab'.
12939 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12940 (decode_dollar): Ditto.
12941 (decode_variable): Ditto.
12942 (symbol_found): Ditto.
12943
86669319
MC
129442003-01-09 Michael Chastain <mec@shout.net>
12945
12946 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12947
616a9dc4
CV
129482003-01-07 Corinna Vinschen <vinschen@redhat.com>
12949
12950 * win32-nat.c (set_process_privilege): New function.
12951 (child_attach): Call set_process_privilege() to enable the
12952 SE_DEBUG_NAME user privilege if available in process token.
12953
3269bcfa
JB
129542003-01-10 J. Brobecker <brobecker@gnat.com>
12955
12956 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12957 compilation error in the previous revision.
12958
2b0ee454
DC
129592003-01-09 David Carlton <carlton@math.stanford.edu>
12960
12961 * linespec.c: Update copyright.
12962
b3ba1b44
DJ
129632003-01-09 Daniel Jacobowitz <drow@mvista.com>
12964
12965 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12966 than inferior_ptid.
12967 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12968
4ef3f3be
AC
129692003-01-09 Andrew Cagney <ac131313@redhat.com>
12970
479ab5a0
AC
12971 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12972 Update comments.
12973 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12974 (frame_saved_regs_zalloc): Update.
12975 (frame_saved_regs_register_unwind): Update.
12976 (create_new_frame): Update.
12977 (get_prev_frame): Update.
12978 (frame_extra_info_zalloc): Update.
12979 (deprecated_get_frame_saved_regs): Update.
12980 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12981 * cris-tdep.c: Update comment.
12982
bde58177
AC
12983 * somsolib.h: Fix function indentation.
12984 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12985 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12986 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12987 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12988 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12989
4ef3f3be
AC
12990 * infrun.c (follow_fork): Use ISO C definition.
12991 * expprint.c (print_subexp): Use xfree instead of free.
12992 * charset.c: Include "gdb_string.h" instead of <string.h>.
12993 (register_iconv_charsets): Use ISO C definition.
12994 (host_charset, target_charset): Ditto.
12995 * Makefile.in (charset.o): Update dependencies.
12996 (mi-cmd-env.o): Update dependencies.
12997
1c615f7a
AC
129982003-01-08 Andrew Cagney <cagney@redhat.com>
12999
13000 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13001 get_frame_base.
13002
c9a1dc08
AC
130032003-01-08 Andrew Cagney <ac131313@redhat.com>
13004
13005 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13006 build directories. Save edited gdb output in Mbuild.log. If a
13007 build fails, remove any final GDB executable.
13008
dbad9d94
AC
130092003-01-08 Andrew Cagney <ac131313@redhat.com>
13010
13011 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13012 replacing hex constants with function names and stripping leading
13013 file name directory prefixes.
13014
8d357cca
AC
130152003-01-08 Andrew Cagney <cagney@redhat.com>
13016
13017 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13018 get_frame_base.
13019
bca02a8a
DC
130202003-01-08 David Carlton <carlton@math.stanford.edu>
13021
13022 * linespec.c (decode_line_1): Move code into decode_variable.
13023 (decode_variable): New function.
13024
7f8ab3a0
AC
130252003-01-08 Andrew Cagney <ac131313@redhat.com>
13026
13027 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13028
7b5849cc
AC
130292003-01-08 Andrew Cagney <cagney@redhat.com>
13030
13031 * cris-tdep.c (cris_frame_init_saved_regs): Use
13032 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13033 saved_regs buffer.
13034 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13035 (sh64_nofp_frame_init_saved_regs): Ditto.
13036 (sh_fp_frame_init_saved_regs): Ditto.
13037 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13038 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13039 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13040 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13041
72a5efb3
DJ
130422003-01-08 Daniel Jacobowitz <drow@mvista.com>
13043
13044 * minsyms.c (lookup_minimal_symbol): Update comment.
13045 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13046 (lookup_minimal_symbol_solib_trampoline): Likewise.
13047
11c02a10
AC
130482003-01-08 Andrew Cagney <cagney@redhat.com>
13049
aab3ea25
AC
13050 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13051 frame_relative_level.
13052
da50a4b7
AC
13053 * alpha-tdep.c: Use get_frame_extra_info.
13054 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13055 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13056 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13057 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13058
11c02a10
AC
13059 * alpha-tdep.c: Use get_next_frame.
13060 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13061 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13062 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13063 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13064 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13065 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13066 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13067
1e2330ba
AC
130682003-01-07 Andrew Cagney <cagney@redhat.com>
13069
13070 * alpha-tdep.c: Use get_frame_base.
13071 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13072 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13073 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13074 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13075 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13076 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13077 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13078 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13079
2d75187b
AC
130802003-01-07 Andrew Cagney <cagney@redhat.com>
13081
13082 * frame.c (deprecated_get_frame_context): New function.
13083 (deprecated_set_frame_context): New function.
13084 * frame.h (deprecated_get_frame_context): Declare.
13085 (deprecated_set_frame_context): Declare.
13086 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13087 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13088
483d36b2
AC
130892003-01-07 Andrew Cagney <cagney@redhat.com>
13090
13091 * frame.c (deprecated_set_frame_next_hack): New function.
13092 (deprecated_set_frame_prev_hack): New function.
13093 * frame.h (deprecated_set_frame_next_hack): Declare.
13094 (deprecated_set_frame_prev_hack): Declare.
13095 * mcore-tdep.c (analyze_dummy_frame): Use
13096 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13097 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13098
14e91ac5
DC
130992003-01-07 David Carlton <carlton@math.stanford.edu>
13100
13101 * linespec.c (decode_line_1): Move code into decode_dollar.
13102 (decode_dollar): New function.
13103
b0c6b05c
AC
131042003-01-07 Andrew Cagney <cagney@redhat.com>
13105
13106 * arm-tdep.c (arm_init_extra_frame_info): Use
13107 deprecated_update_frame_base_hack.
13108 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13109 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13110 (fix_frame_pointer): Ditto.
13111 (mn10300_analyze_prologue): Ditto.
13112
a00a19e9
AC
131132003-01-07 Andrew Cagney <cagney@redhat.com>
13114
13115 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13116 extra_info using frame_extra_info_zalloc.
13117 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13118 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13119 (sh64_init_extra_frame_info): Ditto.
13120 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13121 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13122 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13123 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13124 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13125 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13126 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13127 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13128 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13129 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13130 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13131 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13132
13133 * mn10300-tdep.c (analyze_dummy_frame): Use
13134 deprecated_set_frame_extra_info_hack.
13135 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13136
1fb4c65b
JB
131372003-01-07 J. Brobecker <brobecker@gnat.com>
13138
13139 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13140 class is not scText. These do not define "real" procedures.
13141 (parse_partial_symbols): Likewise.
13142
9fe7d6bf
MS
131432003-01-06 Michael Snyder <msnyder@redhat.com>
13144
13145 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13146
f6c609c4
AC
131472003-01-06 Andrew Cagney <ac131313@redhat.com>
13148
13149 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13150 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13151 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13152 deprecated_frame_xmalloc_with_cleanup.
13153 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13154 deprecated_frame_xmalloc.
13155 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13156 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13157
d995ff4b
AC
131582003-01-06 Andrew Cagney <cagney@redhat.com>
13159
84dc46cb
AC
13160 * x86-64-linux-tdep.c: Include "osabi.h".
13161 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13162
d995ff4b
AC
13163 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13164
66140c26
AC
131652003-01-06 Andrew Cagney <cagney@redhat.com>
13166
13167 * MAINTAINERS (Target Instruction Set Architectures): Update
13168 arm-elf. Can be built with -Werror, has been multiarched.
13169
13170 * value.h (unpack_long): Make buffer parameter constant.
13171 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13172 * scm-lang.h (scm_parse): Ditto.
13173 * defs.h (extract_typed_address, extract_address): Ditto.
13174 (extract_long_unsigned_integer): Ditto.
13175 * inferior.h (unsigned_pointer_to_address): Ditto.
13176 (signed_pointer_to_address): Ditto.
13177 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13178 * gdbarch.h, gdbarch.c: Regenerate.
13179 * findvar.c (extract_long_unsigned_integer): Update.
13180 (extract_address): Update.
13181 (extract_typed_address): Update.
13182 (unsigned_pointer_to_address): Update.
13183 * values.c (unpack_long): Update.
13184 (unpack_double): Update.
13185 (unpack_pointer): Update.
13186 (unpack_field_as_long): Update.
13187 * d10v-tdep.c (d10v_pointer_to_address): Update.
13188 * avr-tdep.c (avr_pointer_to_address): Update.
13189 * scm-lang.c (scm_unpack): Update.
13190 * findvar.c (signed_pointer_to_address): Update.
13191
b089b3da
ML
131922003-01-06 Michal Ludvig <mludvig@suse.cz>
13193
8ffd9b1b 13194 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13195 since it is in i386-tdep.c.
13196
aff87235
JB
131972003-01-06 J. Brobecker <brobecker@gnat.com>
13198
13199 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13200 failure introduced in the previous change.
13201
34f5e845
MC
132022003-01-05 Michael Chastain <mec@shout.net>
13203
13204 * README: Remove references to deleted remote-*.c files:
13205 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13206 remote-nrom.c, remote-os9k.c, remote-udi.c.
13207
28bcfd30
MK
132082003-01-05 Mark Kettenis <kettenis@gnu.org>
13209
13210 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13211 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13212 i386_get_longjmp_target.
13213
15a5b3ee
AC
132142003-01-05 Andrew Cagney <ac131313@redhat.com>
13215
13216 * arm-tdep.c (prologue_cache): Change to a pointer.
13217 (_initialize_arm_tdep): Allocate prologue_cache.
13218 (check_prologue_cache): Update.
13219 (save_prologue_cache): Update.
13220 (arm_gdbarch_init): Update.
13221
c263362b
DJ
132222003-01-04 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * stabsread.c (update_method_name_from_physname): Call complaint()
13225 instead of error.
13226
51603483
DJ
132272003-01-04 Daniel Jacobowitz <drow@mvista.com>
13228
13229 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13230 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13231 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13232
13233 * blockframe.c: Include "gdbcmd.h" and "command.h".
13234 (backtrace_below_main): New variable.
13235 (file_frame_chain_valid, func_frame_chain_valid)
13236 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13237 (generic_func_frame_chain_valid): Remove functions.
13238 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13239 (_initialize_blockframe): New function.
13240 * Makefile.in (blockframe.o): Update dependencies.
13241 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13242 comment. Call frame_chain_valid ().
13243 * frame.h: Remove old prototypes. Add prototype for
13244 frame_chain_valid and update comments to match.
13245 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13246 Remove old comment.
13247 * gdbarch.h: Regenerated.
13248 * gdbarch.c: Regenerated.
13249
13250 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13251 set_gdbarch_frame_chain_valid.
13252 * avr-tdep.c (avr_gdbarch_init): Likewise.
13253 * cris-tdep.c (cris_gdbarch_init): Likewise.
13254 * frv-tdep.c (frv_gdbarch_init): Likewise.
13255 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13256 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13257 (i386_nw_init_abi): Likewise.
13258 (i386_gdbarch_init): Likewise.
13259 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13261 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13262 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13263 * mips-tdep.c (mips_gdbarch_init): Likewise.
13264 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13265 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13266 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13267 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13268 * s390-tdep.c (s390_gdbarch_init): Likewise.
13269 * sh-tdep.c (sh_gdbarch_init): Likewise.
13270 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13271 * v850-tdep.c (v850_gdbarch_init): Likewise.
13272 * vax-tdep.c (vax_gdbarch_init): Likewise.
13273 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13274
13275 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13276 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13277 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13278 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13279 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13280 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13281 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13282 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13283
b00a8037
DJ
132842002-01-04 Daniel Jacobowitz <drow@mvista.com>
13285
13286 * Makefile.in (acconfig_h): Remove incorrect macro.
13287 (config_h): Define.
13288 (osabi.o): Update dependencies.
13289 * configure.tgt: Set gdb_osabi based on target triplet.
13290 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13291 * configure: Regenerated.
13292 * config.in: Regenerated.
13293 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13294 (GDB_OSABI_DEFAULT): Define if not already defined.
13295 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13296 (set_osabi_string): New variables.
13297 (gdbarch_register_osabi): Add new OS ABI to
13298 gdb_osabi_available_names.
13299 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13300 (set_osabi, show_osabi): New functions.
13301 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13302
4be87837
DJ
133032003-01-04 Daniel Jacobowitz <drow@mvista.com>
13304
13305 * arch-utils.c (gdbarch_info_init): Set osabi to
13306 GDB_OSABI_UNINITIALIZED.
13307 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13308 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13309 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13310 * gdbarch.c: Regenerated.
13311 * gdbarch.h: Regenerated.
13312 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13313 there's no BFD.
13314 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13315 * osabi.h (enum gdb_osabi): Move to defs.h.
13316 (gdbarch_init_osabi): Update prototype.
13317 * defs.h (enum gdb_osabi): Moved here.
13318 * Makefile.in: Update dependencies.
13319
13320 * alpha-tdep.h: Don't include "osabi.h".
13321 (struct gdbarch_tdep): Remove osabi member.
13322 * alpha-tdep.c: Include "osabi.h".
13323 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13324 iterate over arches. Update call to gdbarch_init_osabi.
13325 (alpha_dump_tdep): Don't dump osabi.
13326 * alpha-linux-tdep.c: Include "osabi.h".
13327 * alpha-osf1-tdep.c: Include "osabi.h".
13328 * alphafbsd-tdep.c: Include "osabi.h".
13329 * alphanbsd-tdep.c: Include "osabi.h".
13330
13331 * arm-tdep.h: Don't include "osabi.h".
13332 (struct gdbarch_tdep): Remove osabi member.
13333 * arm-tdep.c: Include "osabi.h".
13334 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13335 iterate over arches. Update call to gdbarch_init_osabi.
13336 (arm_dump_tdep): Don't dump osabi.
13337 * arm-linux-tdep.c: Include "osabi.h".
13338 * armnbsd-tdep.c: Include "osabi.h".
13339
13340 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13341 Update call to gdbarch_init_osabi.
13342
13343 * i386-tdep.h: Don't include "osabi.h".
13344 (struct gdbarch_tdep): Remove osabi member.
13345 * i386-tdep.c: Include "osabi.h".
13346 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13347 iterate over arches. Update call to gdbarch_init_osabi.
13348 (i386_dump_tdep): Don't dump osabi.
13349 * i386-linux-tdep.c: Include "osabi.h".
13350 * i386-sol2-tdep.c: Include "osabi.h".
13351 * i386bsd-tdep.c: Include "osabi.h".
13352 * i386gnu-tdep.c: Include "osabi.h".
13353 * i386ly-tdep.c: Include "osabi.h".
13354 * i386nbsd-tdep.c: Include "osabi.h".
13355 * i386obsd-tdep.c: Include "osabi.h".
13356
13357 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13358 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13359 check osabi when iterating over arches. Update call to
13360 gdbarch_init_osabi.
13361 (mips_dump_tdep): Don't dump osabi.
13362
13363 * ns32k-tdep.h: Don't include "osabi.h".
13364 (struct gdbarch_tdep): Remove.
13365 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13366 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13367 allocate tdep. Update call to gdbarch_init_osabi.
13368 (ns32k_dump_tdep): Remove.
13369 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13370 * ns32knbsd-tdep.c: Include "osabi.h".
13371
13372 * ppc-tdep.h: Don't include "osabi.h".
13373 (struct gdbarch_tdep): Remove osabi member.
13374 * rs6000-tdep.c: Include "osabi.h".
13375 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13376 osabi when iterating over arches. Update call to
13377 gdbarch_init_osabi.
13378 (rs6000_dump_tdep): Don't dump osabi.
13379 * ppc-linux-tdep.c: Include "osabi.h".
13380 * ppcnbsd-tdep.c: Include "osabi.h".
13381
13382 * sh-tdep.h: Don't include "osabi.h".
13383 (struct gdbarch_tdep): Remove osabi member.
13384 * sh-tdep.c: Include "osabi.h".
13385 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13386 iterate over arches. Update call to gdbarch_init_osabi.
13387 (sh_dump_tdep): Don't dump osabi.
13388 * shnbsd-tdep.c: Include "osabi.h".
13389
13390 * sparc-tdep.c: Include "osabi.h".
13391 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13392 iterate over arches. Update call to gdbarch_init_osabi.
13393 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13394 tdep structure.
13395
13396 * vax-tdep.h: Don't include "osabi.h".
13397 (struct gdbarch_tdep): Remove.
13398 * vax-tdep.c: Include "osabi.h".
13399 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13400 iterate over arches. Don't allocate tdep. Update call
13401 to gdbarch_init_osabi.
13402 (vax_dump_tdep): Remove.
13403 (_initialize_vax_tdep): Update call to gdbarch_register.
13404
a881cf8e
DJ
134052003-01-04 Daniel Jacobowitz <drow@mvista.com>
13406
13407 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13408 entirely.
13409 (breakpoint_re_set_one): Don't fetch the value for a disabled
13410 watchpoint.
13411
1e698235
DJ
134122003-01-04 Daniel Jacobowitz <drow@mvista.com>
13413
13414 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13415 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13416 (COERCE_FLOAT_TO_DOUBLE): Remove.
13417 * gdbarch.c: Regenerate.
13418 * gdbarch.h: Regenerate.
13419 * Makefile.in: Remove value_h from gdbarch_h.
13420 * valops.c (coerce_float_to_double): New variable.
13421 (default_coerce_float_to_double): Remove.
13422 (standard_coerce_float_to_double): Remove.
13423 (value_arg_coerce): Use coerce_float_to_double.
13424 (_initialize_valops): Add "set coerce-float-to-double".
13425 * value.h (default_coerce_float_to_double): Remove prototype.
13426 (standard_coerce_float_to_double): Remove prototype.
13427
13428 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13429 prototyped.
13430 * mdebugread.c (parse_symbol): Likewise.
13431 * stabsread.c (define_symbol): Mark all functions as prototyped.
13432
13433 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13434 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13435 set_gdbarch_coerce_float_to_double.
13436 * arm-tdep.c (arm_gdbarch_init): Likewise.
13437 * frv-tdep.c (frv_gdbarch_init): Likewise.
13438 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13439 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13440 * mips-tdep.c (mips_gdbarch_init): Likewise.
13441 (mips_coerce_float_to_double): Remove.
13442 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13443 (rs6000_coerce_float_to_double): Remove.
13444 * s390-tdep.c (s390_gdbarch_init): Likewise.
13445 * sh-tdep.c (sh_gdbarch_init): Likewise.
13446 (sh_coerce_float_to_double): Remove.
13447 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13448 (sparc_coerce_float_to_double): Remove.
13449 * v850-tdep.c (v850_gdbarch_init): Likewise.
13450 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13451 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13452 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13453 (hppa_coerce_float_to_double): Remove prototype.
13454 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13455
f436a26a
DJ
134562003-01-04 Daniel Jacobowitz <drow@mvista.com>
13457
13458 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13459
248f8055
DJ
134602003-01-04 Daniel Jacobowitz <drow@mvista.com>
13461
13462 Suggested by Stewart Brown <sb24@avaya.com>:
13463 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13464 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13465 (c_type_print_varspec_suffix): Likewise.
13466
72cfdc76
MK
134672003-01-04 Mark Kettenis <kettenis@gnu.org>
13468
bfd260bb
MK
13469 * configure.in: Don't set and AC_SUBST SUBDIRS.
13470 * configure: Regenerated.
13471
72cfdc76
MK
13472 * configure.in: Remove code dealing with shared libraries.
13473 * Makefile.in: Remove HLDFLAGS and HLDENV.
13474 * configure: Regenerated.
13475
c8b8a898
AC
134762003-01-04 Andrew Cagney <ac131313@redhat.com>
13477
13478 * frame.c (deprecated_frame_xmalloc): New function.
13479 (deprecated_set_frame_saved_regs_hack): New function.
13480 (deprecated_set_frame_extra_info_hack): New function.
13481 * frame.h (deprecated_frame_xmalloc): Declare.
13482 (deprecated_set_frame_saved_regs_hack): Declare.
13483 (deprecated_set_frame_extra_info_hack): Declare.
13484
14abd0fb
MK
134852003-01-04 Mark Kettenis <kettenis@gnu.org>
13486
8ee53726
MK
13487 * configure.in: Move code that provides the --enable-gdbtk option
13488 right after the code that handles the --enable-tui option, and
13489 polish it somewhat.
13490 * configure: Regenerated.
13491
14abd0fb
MK
13492 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13493 AC_CHECK_FUNCS and remove the old check for pread64.
13494 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13495 * acconfig.h (_GNU_SOURCE): Add.
13496 (HAVE_PREAD64): Remove.
13497 * configure, aclocal.m4, config.in: Regenerated.
13498
b2fb4676
AC
134992003-01-03 Andrew Cagney <ac131313@redhat.com>
13500
13501 * alpha-tdep.c: Use get_frame_saved_regs.
13502 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13503 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13504 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13505 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13506 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13507
8dcde887
MK
135082003-01-03 Mark Kettenis <kettenis@gnu.org>
13509
13510 * configure.in: Remove all use of the SUBDIRS variable; add
13511 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13512 code providing the --enable-multi-ice option, and move it right in
13513 front of the code that checks whether gdbserver is supported.
13514 Polish that too.
13515 * configure: Regenerated.
13516 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13517 @SUBDIRS@.
13518
8ccd593b
AC
135192003-01-03 Andrew Cagney <cagney@redhat.com>
13520
13521 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13522 * avr-tdep.c, cris-tdep.c: Ditto.
13523 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13524 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13525
91151a06
MK
135262003-01-03 Mark Kettenis <kettenis@gnu.org>
13527
13528 * configure.in: Remove --enable-netrom option.
13529 * configure: Regenerated.
13530
8fe84d01
MK
135312003-01-03 Mark Kettenis <kettenis@gnu.org>
13532
13533 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13534 declaration for `struct re_pattern_buffer' instead.
13535 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13536
f0394be6
JB
135372003-01-03 J. Brobecker <brobecker@gnat.com>
13538
13539 * mdebugread.c (parse_symbol): Count until the stEnd matching
13540 the structure name.
13541
27e9bf90
MK
135422003-01-02 Mark Kettenis <kettenis@gnu.org>
13543
93d331ba
MK
13544 * configure.in: Remove --with-cpu option.
13545 subscripts. Remove evil changequotes here.
13546 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13547 * config.in, configure: Regenerated.
8ffd9b1b 13548
27e9bf90
MK
13549 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13550 * configure.in: Cleanup section that sources GDB and BFD configure
13551 subscripts. Remove evil changequotes here.
13552 * config.in, configure: Regenerated.
13553
50abf9e5
AC
135542003-01-02 Andrew Cagney <ac131313@redhat.com>
13555
13556 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13557 frame accessor methods.
13558 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13559 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13560 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13561 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13562 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13563 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13564 * z8k-tdep.c: Ditto.
8ffd9b1b 13565
287c1a40
MK
135662003-01-02 Mark Kettenis <kettenis@gnu.org>
13567
f5dbc56d
MK
13568 * configure.in: Remove UI_OUT configuration code.
13569 * ada-lang.c: Update assuming UI_OUT is always true.
13570 * Makefile.in (UIOUT_CFLAGS): Remove.
13571 * configure: Regenerated.
13572 * TODO: Remove blurb about elimination of -DUI_OUT.
13573
627af7ea
MK
13574 * configure.in: Move code that provides the --enable-gdbcli,
13575 --enable-gdbmi options right before the code that handles the
13576 --enable-tui option. Polish a bit.
13577 * configure: Regenerated.
13578
06825bd1
MK
13579 * configure.in: Rewrite check for GNU regex and the
13580 --without-included regex option, and move it into the "Checks for
13581 library functions" section. This makes us use the system regex
13582 again by default on systems with version 2 of the GNU C library.
13583 This was apparently broken.
13584 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13585 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13586 * config.in, configure: Regenerated.
13587
287c1a40
MK
13588 * configure.in: Move code that provides the --enable-tui option
13589 before the "Checks for libraries" section. Polish the code
13590 somewhat and set need_curses to yes if we build the TUI. Rewrite
13591 code that looks for a library providing termcap functionality to
13592 match more closely what's done in the Readline library, and move
13593 it into to the "Checks for libraries" section.
13594 * configure: Regenerated.
13595 * Makefile.in (TERMCAP): Remove variable.
13596 * config/i386/go32.mh (TERMCAP): Remove variable.
13597
684e56bf
AC
135982003-01-02 Andrew Cagney <ac131313@redhat.com>
13599
13600 * MAINTAINERS: Mention gdb_mbuild.sh.
13601 * gdb_mbuild.sh: Rewrite.
13602
e1ea1d75
MK
136032003-01-02 Mark Kettenis <kettenis@gnu.org>
13604
13605 * configure.in: Fix typo in last change.
13606 * config.in, configure: Regenerated.
13607
1b831c93
AC
136082003-01-02 Andrew Cagney <ac131313@redhat.com>
13609
13610 * valarith.c (value_binop): Delete obsolete code and comments.
13611 * configure.host: Ditto.
13612 * buildsym.h (make_blockvector): Ditto.
13613 * buildsym.c (make_blockvector): Ditto.
13614 * defs.h (enum language): Ditto.
13615 (chill_demangle): Ditto.
13616 * elfread.c (elf_symtab_read): Ditto.
13617 * dwarfread.c (CHILL_PRODUCER): Ditto.
13618 (set_cu_language): Ditto.
13619 (handle_producer): Ditto.
13620 * expprint.c (print_subexp): Ditto.
13621 * gdbtypes.c (chill_varying_type): Ditto.
13622 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13623 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13624 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13625 (chill_varying_type): Ditto.
13626 * language.h (_LANG_chill): Ditto.
13627 * language.c (binop_result_type, integral_type): Ditto.
13628 (character_type, string_type, structured_type): Ditto.
13629 (lang_bool_type, binop_type_check): Ditto.
13630 * stabsread.h (os9k_stabs): Ditto.
13631 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13632 (define_symbol, read_type, read_struct_fields): Ditto.
13633 (read_array_type, read_enum_type, read_huge_number): Ditto.
13634 (read_range_type, start_stabs): Ditto.
13635 * symfile.c (init_filename_language_table): Ditto.
13636 (add_psymbol_with_dem_name_to_list): Ditto.
13637 * symtab.c (symbol_init_language_specific): Ditto.
13638 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13639 * symtab.h (struct general_symbol_info): Ditto.
13640 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13641 * typeprint.c (typedef_print): Ditto.
13642 * utils.c (fprintf_symbol_filtered): Ditto.
13643 * valops.c (value_cast, search_struct_field, value_slice): Delete
13644 obsolete code.
13645 (varying_to_slice): Delete function.
13646 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13647 (varying_to_slice): Delete declaration.
13648 * MAINTAINERS: Update.
13649
8bb2c122
MK
136502003-01-02 Mark Kettenis <kettenis@gnu.org>
13651
97bf5e38
MK
13652 * configure.in: Reorganize "Checks for library functions section"
13653 a bit. Remove check for `btowc' and `isascii' functions.
13654 * configure: Regenerated.
13655
5ee754fc
MK
13656 * acconfig.h (_MSE_INT_H): Remove.
13657 * configure.in: Create "Checks for header files" section, and move
13658 appropriate tests there. Don't check for objlist.h, wchar.h,
13659 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13660 misdetection fix. Also add "Checks for types", "Checks for
13661 compiler characteristics" and "Checks for library functions"
13662 sections.
13663 * config.in, configure: Regenerated.
13664
8bb2c122
MK
13665 * configure.in: Create "Checks for programs" section, and move
13666 appropriate tests there.
13667
9a156167
MK
136682003-01-01 Mark Kettenis <kettenis@gnu.org>
13669
13670 * configure.in: Create "Checks for libraries" section, and move
13671 appropriate tests there. Cleanup check for wctype in libw. Use
13672 AC_SEARCH_LIBS to see whether we need libsocket.
13673 * configure: Regenerated.
13674
a80e2bcb 13675For older changes see ChangeLog-2002
c906108c
SS
13676\f
13677Local Variables:
13678mode: change-log
13679left-margin: 8
13680fill-column: 74
13681version-control: never
13682End:
This page took 1.400001 seconds and 4 git commands to generate.