]> Git Repo - binutils.git/blame - gdb/ChangeLog
2003-04-12 Andrew Cagney <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
da3331ec
AC
12003-04-12 Andrew Cagney <[email protected]>
2
3 * gdbarch.sh: Add missing opaque declarations.
4 * gdbarch.h: Regnerate.
5 * symtab.h: Add missing opaque declarations.
6 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
11 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
12 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
13 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
14 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
15 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
16 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
17 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
18 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
19
18adea3f
AC
202003-04-11 Andrew Cagney <[email protected]>
21
22 * frame.c (get_frame_id): Return this frame's "id".
23 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
24 function start.
25 (legacy_saved_regs_this_id): Replace function body with
26 internal-error.
27 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
28 FRAME_OBSTACK_ZALLOC.
29 (create_new_frame): Mark the frame ID as valid.
30
2252e863
AO
312003-04-11 Alexandre Oliva <[email protected]>
32
33 * Makefile.in (libbfd_h): Added missing setting.
34 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
35 according to the selected ABI.
36
a8245ab8
JJ
372003-04-11 Jeff Johnston <[email protected]>
38
39 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
40
6913c89a
AC
412003-04-11 Andrew Cagney <[email protected]>
42
43 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
44 SAVED_PC_AFTER_CALL.
45 * gdbarch.h, gdbarch.c: Regenerate.
46 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
47 * x86-64-tdep.c (x86_64_init_abi): Update.
48 * vax-tdep.c (vax_gdbarch_init): Update.
49 * v850-tdep.c (v850_gdbarch_init): Update.
50 * sparc-tdep.c (sparc_gdbarch_init): Update.
51 * sh-tdep.c (sh_gdbarch_init): Update.
52 * s390-tdep.c (s390_gdbarch_init): Update.
53 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
54 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
55 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
56 * mips-tdep.c (mips_gdbarch_init): Update.
57 * mcore-tdep.c (mcore_gdbarch_init): Update.
58 * m68k-tdep.c (m68k_gdbarch_init): Update.
59 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
60 * ia64-tdep.c (ia64_gdbarch_init): Update.
61 (ia64_saved_pc_after_call): Update declaration.
62 * i386ly-tdep.c (i386lynx_init_abi): Update.
63 * i386-tdep.c (i386_gdbarch_init): Update.
64 * hppa-tdep.c (hppa_gdbarch_init): Update.
65 * h8300-tdep.c (h8300_gdbarch_init): Update.
66 * frv-tdep.c (frv_gdbarch_init): Update.
67 * cris-tdep.c (cris_gdbarch_init): Update.
68 * avr-tdep.c (avr_gdbarch_init): Update.
69 * arm-tdep.c (arm_gdbarch_init): Update.
70 * alpha-tdep.c (alpha_gdbarch_init): Update.
71 * ns32knbsd-nat.c (frame_num_args): Update.
72 * ns32k-tdep.c (umax_frame_num_args): Update.
73 * mips-tdep.c (mips_init_frame_pc_first): Update.
74 * infrun.c (step_over_function): Update.
75 * i386-linux-tdep.c (skip_hurd_resolver): Update.
76 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
77 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
78 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
79 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
80 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
81 * arm-linux-tdep.c (skip_hurd_resolver): Update.
82 * arch-utils.c (init_frame_pc_default): Update.
83 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
84 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
85 declaration.
86
38edeab8
AC
872003-04-11 Andrew Cagney <[email protected]>
88
89 * i387-tdep.c: Update copyright.
90 (i387_to_double): Delete function.
91 (double_to_i387): Delete function.
92
81f8a206
AC
932003-04-10 Andrew Cagney <[email protected]>
94
95 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
96 frame's function's address. Simplify.
97 (d10v_frame_unwind_cache): Check that the frame's function is
98 non-zero.
99
6e691f7a
JB
1002003-04-10 Jim Blandy <[email protected]>
101
102 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
103 call to set_gdbarch_deprecated_push_arguments.
104
7f78e237
AC
1052003-04-10 Andrew Cagney <[email protected]>
106
107 * frame.c (fprint_frame_id): New function.
108 (fprint_frame_type, fprint_frame): New function.
109 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
110 (create_sentinel_frame, get_frame_id): Ditto.
111 (frame_id_p, frame_id_eq): Ditto.
112 (frame_id_inner, create_new_frame): Ditto.
113 (legacy_get_prev_frame, get_prev_frame): Ditto.
114 (deprecated_update_frame_pc_hack): Ditto.
115 (frame_register_unwind): Ditto.
116 (deprecated_update_frame_base_hack): Ditto.
117
f870b49b
CV
1182003-04-10 Corinna Vinschen <[email protected]>
119
120 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
121 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
122 frame_chain function.
123 * Makefile.in: Add dependencies due to above change.
124
7c86889b
CV
1252003-04-10 Corinna Vinschen <[email protected]>
126
127 * blockframe.c (legacy_frame_chain_valid): Move call to
128 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
129 inside_entry_file.
130
d0a55772
AC
1312003-04-09 Andrew Cagney <[email protected]>
132
133 * frame.h (struct frame_id): Replace "pc" and "base" with
134 "stack_addr" and "code_addr". Update comments.
135 (frame_id_build): Update parameter names and comment.
136 (struct frame_info): Replace "id_p" and "id" with "this_id".
137 * dummy-frame.c (dummy_frame_this_id): Update.
138 * breakpoint.c (print_one_breakpoint): Update.
139 * frame.c (get_frame_id): Update.
140 (get_frame_base, frame_id_build): Update.
141 (create_sentinel_frame, legacy_get_prev_frame): Update.
142 (deprecated_update_frame_base_hack): Update.
143 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
144 (frame_id_inner): Ditto.
145
ac16bf07
AC
1462003-04-09 Andrew Cagney <[email protected]>
147
148 * defs.h (gdb_print_host_address): Make "addr" parameter a
149 pointer constant.
150 * utils.c (gdb_print_host_address): Update.
151
366cfc9e
KB
1522003-04-09 Kevin Buettner <[email protected]>
153
154 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
155 register number for R0 is 0.
156
cd983b5c
JB
1572003-04-09 J. Brobecker <[email protected]>
158
159 * frame.h (struct gdbarch): Add opaque structure definition
160 to avoid a compilation warning on LynxOS 4.0.
161
d1340264
AC
1622003-04-09 Andrew Cagney <[email protected]>
163
164 * frame.h (struct frame_info): Delete field "pc". Replace
165 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
166 structure.
167 * frame.c (frame_pc_unwind): Update.
168 (create_sentinel_frame): Do not set "pc".
169 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
170 (get_frame_pc): Call frame_pc_unwind.
171 (deprecated_update_frame_pc_hack): Update.
172 (create_new_frame): Use "pc" not "->pc".
173
90a6fffb
AC
1742003-04-09 Andrew Cagney <[email protected]>
175
176 * frame.c (get_frame_id): Eliminate code updating "frame".
177 (legacy_get_prev_frame): Ditto.
178 (get_frame_base): Return id.base directly.
179 (deprecated_update_frame_base_hack): Update "id.base".
180 * frame.h (struct frame_info): Delete field "frame".
181
2fbce691
AC
1822003-04-09 Andrew Cagney <[email protected]>
183
184 * NEWS: Mention that the "Sequent family" is obsolete.
185 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
186 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
187 * configure.host: Obsolete i[3456]86-sequent-bsd*,
188 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
189 * config/i386/tm-ptx4.h: Obsolete file.
190 * config/i386/tm-ptx.h: Obsolete file.
191 * symm-tdep.c: Obsolete file.
192 * config/i386/symmetry.mt: Obsolete file.
193 * config/i386/tm-symmetry.h: Obsolete file.
194 * symm-nat.c: Obsolete file.
195 * config/i386/nm-symmetry.h: Obsolete file.
196 * config/i386/xm-symmetry.h: Obsolete file.
197 * config/i386/symmetry.mh: Obsolete file.
198 * config/i386/nm-ptx4.h: Obsolete file.
199 * config/i386/ptx4.mh: Obsolete file.
200 * config/i386/ptx.mt: Obsolete file.
201 * config/i386/ptx.mh: Obsolete file.
202 * config/i386/xm-ptx4.h: Obsolete file.
203 * config/i386/xm-ptx.h: Obsolete file.
204
78c43945
AC
2052003-04-09 Andrew Cagney <[email protected]>
206
207 Obsolete mips*-*-mach3*.
208 * NEWS: Mention that mips*-*-mach3* is obsolete.
209 * m3-nat.c: Obsolete file.
210 * config/nm-m3.h: Obsolete file.
211 * config/mips/tm-mipsm3.h: Obsolete file.
212 * config/mips/mipsm3.mt: Obsolete file.
213 * config/mips/mipsm3.mh: Obsolete file.
214 * config/mips/xm-mipsm3.h: Obsolete file.
215 * mipsm3-nat.c: Obsolete file.
216 * configure.host: Obsolete mips-dec-mach3*.
217 * configure.tgt: Obsolete mips*-*-mach3*.
218
f1908289
AC
2192003-04-09 Andrew Cagney <[email protected]>
220
221 * doublest.h: Update copyright.
222 (deprecated_store_floating, deprecated_extract_floating): Rename
223 store_floating and extract_floating. Update comments.
224 * doublest.c: Update copyright.
225 (extract_floating_by_length): Replace extract_floating.
226 (store_floating_by_length): Replace store_floating.
227 (deprecated_extract_floating): New function.
228 (deprecated_store_floating): New function.
229 (extract_typed_floating): Call extract_floating_by_length.
230 (store_typed_floating): Call store_floating_by_length.
231 * x86-64-tdep.c (x86_64_store_return_value): Update.
232 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
233 (sh64_extract_return_value): Update.
234 (sh_sh4_register_convert_to_virtual): Update.
235 (sh_sh64_register_convert_to_virtual): Update.
236 (sh_sh4_register_convert_to_raw): Update.
237 (sh_sh64_register_convert_to_raw): Update.
238 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
239 (rs6000_register_convert_to_raw): Update.
240 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
241 (ia64_register_convert_to_raw): Update.
242 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
243 (REGISTER_CONVERT_TO_VIRTUAL): Update.
244 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
245 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
246 (alpha_register_convert_to_raw): Update.
247
4443bd83
AC
2482003-04-08 Andrew Cagney <[email protected]>
249
250 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
251 * gdbarch.h, gdbarch.c: Re-generate.
252 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
253 (d10v_gdbarch_init): Do not set saved_pc_after_call.
254 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
255 conditionally, use frame_pc_unwind as an alternative. Add
256 comments.
257 * arch-utils.c (init_frame_pc_default): Only call
258 SAVED_PC_AFTER_CALL when available.
259
c0236d92
EZ
2602003-04-08 Elena Zannoni <[email protected]>
261
262 * infrun.c (stop_soon): Rename from stop_soon_quietly.
263 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
264 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
265 (start_remote): Ditto.
266 (handle_inferior_event): Ditto.
267 (save_inferior_status): Ditto.
268 (restore_inferior_status): Ditto.
269 * infcmd.c (attach_command): Ditto.
270 * fork-child.c (startup_inferior): Ditto.
271 * inferior.h (stop_soon): Rename from stop_soon_quietly.
272 * alpha-tdep.c (heuristic_proc_start): Ditto.
273 * mips-tdep.c (heuristic_proc_start): Ditto.
274 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
275 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
276 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
277 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
278 * remote-vx.c (vx_create_inferior): Ditto.
279
2802003-04-08 Elena Zannoni <[email protected]>
281
282 * infrun.c (stop_soon_quietly): Make it an enum, to better
283 override the default behavior of handle_inferior_event.
284 (clear_proceed_status): Update uses of stop_soon_quietly to
285 reflect that it is now an enum.
286 (start_remote): Ditto.
287 (handle_inferior_event): Change logic a bit if stop_soon_quietly
288 is set to handle the new GNU/Linux kernel behavior for
289 attach/sigstop. Update uses of stop_soon_quietly.
290 * inferior.h (enum stop_kind): New enum.
291 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
292 Reset normal handle_inferior_event behavior, afterwards.
293 * fork-child.c (startup_inferior): Update.
294 * alpha-tdep.c (heuristic_proc_start): Update.
295 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
296 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
297 * solib-osf.c (osf_solib_create_inferior_hook): Update.
298 * solib-irix.c (irix_solib_create_inferior_hook): Update.
299 * remote-vx.c (vx_create_inferior): Update.
300 * mips-tdep.c (heuristic_proc_start): Update.
301
1211bce3
EZ
3022003-04-07 Elena Zannoni <[email protected]>
303
304 * disasm.c (dump_insns): Move variables inside loop, or they will
305 be freed more than once, causing wild memory corruptions.
306 (gdb_disassembly): Look for the substring "-thread",
307 instead of "-threads" in the target name, to make sure to find
308 the 'multi-thread' target. Also, make sure we do the right thing
309 with the "core" target.
310
f0ef6b29
KB
3112003-04-07 Kevin Buettner <[email protected]>
312
313 * mips-tdep.c (mips_print_fp_register): New function, created from
314 do_fp_register_row(). Registers are now (also) printed as hex.
315 Only one register is printed per row.
316 (mips_print_register, do_fp_register_row): Print floating point
317 registers with mips_print_fp_register().
318
8cf71652
AC
3192003-04-06 Andrew Cagney <[email protected]>
320
5e488a7b
AC
321 * valprint.h (inspect_it): Add extern declaration.
322 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
323 (selectors_info, classes_info): Ditto.
324 (find_objc_msgcall): Fix indentation.
325 (objc_printstr): Delete extern declarations.
326
8cf71652
AC
327 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
328
e6ba3bc9
AC
3292003-04-06 Andrew Cagney <[email protected]>
330
331 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
332 Update comment.
333 * frame.c (legacy_saved_regs_this_id): Update.
334 (legacy_get_prev_frame): Update.
335 * xstormy16-tdep.c: Update comment.
336 * sparc-tdep.c (sparc_frame_chain): Update comment.
337 * blockframe.c (legacy_frame_chain_valid): Update.
338
55e1d7e7
AC
3392003-04-06 Andrew Cagney <[email protected]>
340
996179ee
AC
341 * valprint.c (val_print_type_code_int): Delete #ifdef
342 PRINT_TYPELESS_INTEGER code.
343
55e1d7e7
AC
344 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
345 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
346 multi-arch definition.
347 * gdbarch.h: Re-generate.
348
43bd9a9e
AC
3492003-04-05 Andrew Cagney <[email protected]>
350
351 Eliminate FRAME_FIND_SAVED_REGS.
352 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
353 Change FSR parameter to a pointer.
354 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
355 Assume FSR parameter is a pointer.
356 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
357 Make fsr a pointer.
358 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
359 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
360 saved_regs a pointer.
361 (hppa_frame_saved_pc): Ditto.
362 (find_dummy_frame_regs): Make frame_saved_regs a pointer
363 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
364 pointer.
365 (restore_pc_queue): Make fsr a pointer.
366 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
367 (hppa_frame_chain): Make saved_regs a pointer, call
368 hppa_frame_init_saved_regs.
369 * sparc-tdep.c: Include "gdb_assert.h".
370 (sparc_frame_find_saved_regs): Replace internal_error with
371 gdb_assert.
372 * remote-vxsparc.c (vx_read_register): Delete reference to
373 FRAME_FIND_SAVED_REGS.
374 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
375 * gdbarch.h: Regenerate.
376 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
377 (deprecated_get_frame_saved_regs): Delete declaration.
378 (struct frame_saved_regs): Delete definition.
379 * frame.c (deprecated_get_frame_saved_regs): Delete function.
380 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
381 (hppa_frame_find_saved_regs): Delete declaration.
382 (FRAME_FIND_SAVED_REGS): Delete macro.
383 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
384 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
385 FRAME_FIND_SAVED_REGS in comment.
386
be41e9f4
AC
3872003-04-05 Andrew Cagney <[email protected]>
388
389 * frame.c (frame_func_unwind, get_frame_func): New functions.
390 * frame.h (get_frame_func, frame_func_unwind): Declare.
391 (struct frame_info): Add field "prev_func" for caching the
392 previous frame's function address.
393 * arm-tdep.c (arm_frameless_function_invocation): Combine
394 get_pc_function_start and get_frame_pc into get_frame_func.
395 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
396 (sh64_nofp_frame_init_saved_regs): Ditto.
397 * s390-tdep.c (s390_function_start): Ditto.
398 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
399 (rs6000_frameless_function_invocation): Ditto.
400 (rs6000_frame_saved_pc): Ditto.
401 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
402 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
403 * i386-tdep.c (i386_frameless_signal_p): Ditto.
404 (i386_frame_init_saved_regs): Ditto.
405 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
406 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
407 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
408 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
409 * blockframe.c (frameless_look_for_prologue): Ditto.
410
a01dd7cc
AC
4112003-04-05 Andrew Cagney <[email protected]>
412
413 * frame.c (legacy_get_prev_frame): Link prev to next at the
414 function start. Update comments.
415
5e5592e6
AC
4162003-04-05 Andrew Cagney <[email protected]>
417
418 * frame.c (get_frame_id): Update comment.
419 (legacy_get_prev_frame): Update comment.
420 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
421 * gdbarch.h: Regenerate.
422 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
423 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
424
6fba5002
AC
4252003-04-05 Andrew Cagney <[email protected]>
426
427 * stack.c (print_frame_info): Use get_frame_pc.
428
7df05f2b
AC
4292003-04-04 Andrew Cagney <[email protected]>
430
431 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
432 the frame's type from the unwinder.
433 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
434 (create_new_frame, legacy_get_prev_frame): When the unwinder's
435 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
436 (get_frame_base_address): Use get_frame_type.
437 (get_frame_locals_address, get_frame_args_address): Ditto.
438 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
439 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
440 (struct frame_info): Add comment explaining why the frame contains
441 a "type" field.
442 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
443 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
444 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
445 NORMAL_FRAME.
446 * frame-unwind.h: Include "frame.h".
447 (struct frame_unwind): Add "type" field.
448 * Makefile.in (frame_unwind_h): Add $(frame_h).
449
11889732
AC
4502003-04-04 Andrew Cagney <[email protected]>
451
452 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
453 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
454 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
455 get_frame_base.
456 (d10v_unwind_dummy_id): Use frame_id_build.
457 * frame.c (find_frame_sal): Use get_frame_pc.
458 (create_new_frame): Use deprecated_update_frame_pc_hack and
459 deprecated_update_frame_base_hack.
460 (create_sentinel_frame): Add comment about ->pc going away.
461 (get_prev_frame): Add comment about ->pc going away.
462 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
463 frame_id_build, deprecated_update_frame_pc_hack and
464 deprecated_update_frame_base_hack.
465 (select_frame): Use get_frame_pc.
466 (legacy_saved_regs_this_id): Use frame_id_build.
467
50c46a0d
EZ
4682003-04-04 Elena Zannoni <[email protected]>
469
470 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
471 signed integer case.
472 (classify_argument): Handle enumerations and references.
473
50bbdbd9
AC
4742003-04-04 Andrew Cagney <[email protected]>
475
476 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
477 ID to NULL.
478
36018d2e
AF
4792003-04-01 Adam Fedor <[email protected]>
480
481 * gdb/objc-lang.c (selectors_info): Replace calls to
482 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
483 SYMBOL_NATURAL_NAME.
484 (classes_info, find_methods): Likewise.
485
35cec841
KB
4862003-04-03 Kevin Buettner <[email protected]>
487
488 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
489 ``mach'' to the value determined by bfd_default_set_arch_mach().
490
43136899
BR
4912003-04-02 Bob Rossi <[email protected]>
492
493 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
494 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
495 (mi-cmd-file.o): Update dependencies.
496
040b99fd
KB
4972003-04-01 Kevin Buettner <[email protected]>
498
499 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
500 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
501
9a3d7dfd
AF
5022003-04-01 Adam Fedor <[email protected]>
503
504 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
505 * language.h (struct language_defn): Add la_demangle.
506 (language_demangle): Declare.
507 * language.c (language_demangle): New function.
508 (unk_lang_demangle): Likewise.
509 (unknown_language_defn, auto_language_defn, local_language_defn):
510 Add ukn_lang_demangle.
511 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
512 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
513 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
514 (cplus_language_defn): Add cplus_demangle for la_demangle element.
515 * jv-lang.c (java_demangle): New function
516 (java_language_defn): Use it for la_demangle element.
517 * objc-lang.c (objc_demangle): Add options argument
518 (objc_language_defn): Use objc_demangle for la_demangle element.
519 * maint.c (maintenance_demangle): Replace switch with
520 call to language_demangle.
521 * utils.c (fprintf_symbol_filtered): Likewise.
522
5e074003
AC
5232003-04-01 Andrew Cagney <[email protected]>
524
525 * printcmd.c (print_frame_nameless_args): Delete #ifdef
526 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
527 PRINT_TYPELESS_INTEGER.
528 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
529 PUSH_RETURN_ADDRESS.
530
270cb5d6
AC
5312003-04-01 Andrew Cagney <[email protected]>
532
533 * Makefile.in (d10v-tdep.o): Update dependencies.
534 * d10v-tdep.c: Include "frame-base.h".
535 (d10v_frame_unwind): Make constant.
536 (d10v_frame_base_address): New function.
537 (d10v_frame_base): New variable.
538 (d10v_gdbarch_init): Set frame_base default.
539 (struct d10v_unwind_cache): Add the field "prev_sp". Update
540 comment for base.
541 (d10v_frame_unwind_cache): Set and use "prev_sp".
542 (d10v_frame_this_id): Use the previous frame's inner most stack
543 address and this frame's func address for the frame ID. Use
544 frame_id_build. Don't analyze beyond the current instruction.
545
6bfb3e36
AC
5462003-04-01 Andrew Cagney <[email protected]>
547
548 * frame.h (get_frame_locals_address, get_frame_args_address):
549 Refer to the base address, instead of the address of the first
550 local or parameter.
551
da62e633
AC
5522003-04-01 Andrew Cagney <[email protected]>
553
554 Add frame debug info addresses:
555 * frame-base.c: New file.
556 * frame-base.h: New file.
557 * frame.h (struct frame_base): Add opaque declaration.
558 (get_frame_base): Update comment.
559 (get_frame_base_address): Declare.
560 (get_frame_locals_address): Declare.
561 (get_frame_args_address): Declare.
562 (struct frame_info): Add "base" and "base_cache". Update
563 comments on the unwinder.
564 * frame.c: Include "frame-base.h".
565 (get_frame_locals_address): New function.
566 (get_frame_base_address): New function.
567 (get_frame_args_address): New function.
568 * findvar.c (read_var_value): Use get_frame_locals_address and
569 get_frame_args_address.
570 * stack.c (frame_info): Use get_frame_locals_address and
571 get_frame_args_address.
572 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
573 moved to "frame-base.c".
574 * printcmd.c (print_frame_nameless_args): Ditto.
575 * symtab.h (address_class): Update comments.
576 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
577 get_frame_base_address.
578 * dwarf2expr.c (execute_stack_op): Ditto.
579 * Makefile.in (frame_base_h): Define.
580 (frame.o): Update dependencies.
581 (frame-base.o): Add dependencies.
582 (SFILES): Add frame-base.c.
583 (COMMON_OBS): Add frame-base.o.
584
3d30e9c2
AC
5852003-04-01 Andrew Cagney <[email protected]>
586
587 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
588 CALL_DUMMY_LENGTH): Ditto.
589 * gdbarch.c: Re-generate.
590 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
591 (CALL_DUMMY_LENGTH): Delete macro.
592 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
593 * arm-tdep.c (arm_gdbarch_init): Ditto.
594 * avr-tdep.c (avr_gdbarch_init): Ditto.
595 * cris-tdep.c (cris_gdbarch_init): Ditto.
596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
597 * frv-tdep.c (frv_gdbarch_init): Ditto.
598 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
599 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
600 * i386-tdep.c (i386_gdbarch_init): Ditto.
601 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
603 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
604 * mips-tdep.c (mips_gdbarch_init): Ditto.
605 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
606 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
607 * s390-tdep.c (s390_gdbarch_init): Ditto.
608 * sh-tdep.c (sh_gdbarch_init): Ditto.
609 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
610 * v850-tdep.c (v850_gdbarch_init): Ditto.
611 * vax-tdep.c (vax_gdbarch_init): Ditto.
612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
613
ce0c7262
CV
6142003-04-01 Corinna Vinschen <[email protected]>
615
616 * frame.c (get_prev_frame): Disable call to inside_entry_file().
617
73dd234f
AC
6182003-04-01 Andrew Cagney <[email protected]>
619
620 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
621 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
622 * gdbarch.h, gdbarch.c: Re-generate.
623 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
624 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
625 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
626 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
627 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
628 * infcmd.c (run_stack_dummy): Simplify assuming
629 CALL_DUMMY_BREAKPOINT_OFFSET_P.
630 * infrun.c (handle_inferior_event): Ditto.
631 * alpha-tdep.c (alpha_gdbarch_init): Do not set
632 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
633 * arm-tdep.c (arm_gdbarch_init): Ditto.
634 * avr-tdep.c (avr_gdbarch_init): Ditto.
635 * cris-tdep.c (cris_gdbarch_init): Ditto.
636 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
637 * frv-tdep.c (frv_gdbarch_init): Ditto.
638 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
639 * i386-tdep.c (i386_gdbarch_init): Ditto.
640 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
642 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
644 * mips-tdep.c (mips_gdbarch_init): Ditto.
645 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
646 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
647 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
648 * s390-tdep.c (s390_gdbarch_init): Ditto.
649 * sh-tdep.c (sh_gdbarch_init): Ditto.
650 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
651 * v850-tdep.c (v850_gdbarch_init): Ditto.
652 * vax-tdep.c (vax_gdbarch_init): Ditto.
653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
654
97606a13
DJ
6552003-04-01 Daniel Jacobowitz <[email protected]>
656
657 * symfile.c (symfile_relocate_debug_section): Update call to
658 bfd_simple_get_relocated_section_contents.
659
e8ab51f7
AC
6602003-03-31 Andrew Cagney <[email protected]>
661
662 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
663 * gdbarch.h, gdbarch.c: Regenerate.
664 * inferior.h (FIX_CALL_DUMMY): Delete macro.
665 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
666 available.
667 * frame.h (generic_fix_call_dummy): Delete declaration.
668 * dummy-frame.h: Update comment.
669 * dummy-frame.c (generic_fix_call_dummy): Delete function.
670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
671 fix_call_dummy.
672 * sh-tdep.c (sh_gdbarch_init): Ditto.
673 * s390-tdep.c (s390_gdbarch_init): Ditto.
674 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
675 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
677 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
678 * i386-tdep.c (i386_gdbarch_init): Ditto.
679 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
680 * frv-tdep.c (frv_gdbarch_init): Ditto.
681 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
682 * cris-tdep.c (cris_gdbarch_init): Ditto.
683 * avr-tdep.c (avr_gdbarch_init): Ditto.
684 * arm-tdep.c (arm_gdbarch_init): Ditto.
685
018d1b48
JB
6862003-03-31 J. Brobecker <[email protected]>
687
688 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
689 (INIT_FRAME_AP): Likewise.
690 (EXTRA_FRAME_INFO): Likewise.
691
e9a2674e
AC
6922003-03-31 Andrew Cagney <[email protected]>
693
694 * gdbarch.sh: Include "symfile.h".
695 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
696 * gdbarch.h, gdbarch.c: Re-generate.
697 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
699 call_dummy_address, the default is at entry_point_address.
700 * v850-tdep.c (v850_gdbarch_init): Ditto.
701 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
702 * sh-tdep.c (sh_gdbarch_init): Ditto.
703 * s390-tdep.c (s390_gdbarch_init): Ditto.
704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
705 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
707 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
708 * i386-tdep.c (i386_gdbarch_init): Ditto.
709 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
710 * frv-tdep.c (frv_gdbarch_init): Ditto.
711 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
712 * cris-tdep.c (cris_gdbarch_init): Ditto.
713 * arm-tdep.c (arm_gdbarch_init): Ditto.
714
e8a8712a
AC
7152003-03-31 Andrew Cagney <[email protected]>
716
717 * gdbarch.sh (CALL_DUMMY_P): Delete.
718 * gdbarch.h, gdbarch.c: Re-generate.
719 * inferior.h (CALL_DUMMY_P): Delete macro.
720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
721 * vax-tdep.c (vax_gdbarch_init): Update.
722 * v850-tdep.c (v850_gdbarch_init): Update.
723 * sparc-tdep.c (sparc_gdbarch_init): Update.
724 * sh-tdep.c (sh_gdbarch_init): Update.
725 * s390-tdep.c (s390_gdbarch_init): Update.
726 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
727 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
729 * mips-tdep.c (mips_gdbarch_init): Update.
730 * mcore-tdep.c (mcore_gdbarch_init): Update.
731 * m68k-tdep.c (m68k_gdbarch_init): Update.
732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
733 * ia64-tdep.c (ia64_gdbarch_init): Update.
734 * i386-tdep.c (i386_gdbarch_init): Update.
735 * h8300-tdep.c (h8300_gdbarch_init): Update.
736 * frv-tdep.c (frv_gdbarch_init): Update.
737 * d10v-tdep.c (d10v_gdbarch_init): Update.
738 * cris-tdep.c (cris_gdbarch_init): Update.
739 * breakpoint.c (deprecated_frame_in_dummy): Update.
740 * avr-tdep.c (avr_gdbarch_init): Update.
741 * alpha-tdep.c (alpha_gdbarch_init): Update.
742 * arm-tdep.c (arm_gdbarch_init): Update.
743 * dummy-frame.c (dummy_frame_this_id): Update comments.
744 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
745 * frame.c (legacy_get_prev_frame): Ditto.
746 * valops.c (call_function_by_hand): Delete function.
747 (hand_function_call): Rename to call_function_by_hand
748
ed234cf8
AC
7492003-03-30 Andrew Cagney <[email protected]>
750
751 2002-11-10 Klee Dienes <[email protected]>
752 * value.h (struct value): Update comment.
753
06c77151
AC
7542003-03-30 Andrew Cagney <[email protected]>
755
6c2b5168
AC
756 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
757 D10V_FP_REGNUM.
758 (d10v_gdbarch_init): Do not set fp_regnum.
759
06c77151
AC
760 * frame.c (get_frame_base): Force ID initialization.
761 (get_prev_frame): Move computation of the frame ID from here ...
762 (get_frame_id): ... to here.
763 (legacy_get_prev_frame): Mark the frame ID as valid.
764 * frame.h (struct frame_info): Add field "id_p".
765
97a1a11c
MK
7662003-03-30 Mark Kettenis <[email protected]>
767
768 * i386-tdep.c (i386_store_struct_return): Removed.
769 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
770
6c0e89ed
AC
7712003-03-30 Andrew Cagney <[email protected]>
772
773 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
774 * gdbarch.h, gdbarch.c: Regenerate.
775 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
777 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
778 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
779 * i386-tdep.c (i386_gdbarch_init): Ditto.
780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
781 * cris-tdep.c (cris_gdbarch_init): Ditto.
782 * vax-tdep.c (vax_gdbarch_init): Ditto.
783 * s390-tdep.c (s390_gdbarch_init): Ditto.
784 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
785 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
786 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
787 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
788 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
789 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
790 * sparc-tdep.c (sparc_gdbarch_init): Update.
791 * sh-tdep.c (sh_gdbarch_init): Update.
792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
793 * mips-tdep.c (mips_gdbarch_init): Update.
794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
795 * ia64-tdep.c (ia64_gdbarch_init): Update.
796 * frv-tdep.c (frv_gdbarch_init): Update.
797 * avr-tdep.c (avr_gdbarch_init): Update.
798 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
799 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
800 instead of when push_dummy_call is not available.
801
f7dd6af2
AC
8022003-03-30 Andrew Cagney <[email protected]>
803
804 * infttrace.c: Include "gdbthread.h".
805 (parent_attach_all): Fix function signature.
806 (call_ptrace): Update call.
807 * Makefile.in (infttrace.o): Update dependencies.
808
28f617b3
AC
8092003-03-30 Andrew Cagney <[email protected]>
810
811 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
812 PUSH_RETURN_ADDRESS.
813 * gdbarch.h, gdbarch.c: Regenerate.
814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
815 * x86-64-tdep.c (x86_64_init_abi): Update.
816 * v850-tdep.c (v850_gdbarch_init): Update.
817 * sparc-tdep.c (sparc_gdbarch_init): Update.
818 * sh-tdep.c (sh_gdbarch_init): Update.
819 * s390-tdep.c (s390_gdbarch_init): Update.
820 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
821 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
822 * mips-tdep.c (mips_gdbarch_init): Update.
823 * mcore-tdep.c (mcore_gdbarch_init): Update.
824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
825 * ia64-tdep.c (ia64_gdbarch_init): Update.
826 * i386-tdep.c (i386_gdbarch_init): Update.
827 * h8300-tdep.c (h8300_gdbarch_init): Update.
828 * frv-tdep.c (frv_gdbarch_init): Update.
829 * cris-tdep.c (cris_gdbarch_init): Update.
830 * avr-tdep.c (avr_gdbarch_init): Update.
831 * arm-tdep.c (arm_gdbarch_init): Update.
832 * valops.c (hand_function_call): Update.
833
4d628cd7
AC
8342003-03-29 Andrew Cagney <[email protected]>
835
836 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
837 sizeof_call_dummy_words.
838 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
839 define.
840 * gdbarch.h: Regenerate.
841
65e82032
AC
8422003-03-29 Andrew Cagney <[email protected]>
843
844 * infttrace.h: New file.
845 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
846 (hpread_get_textlow): Detect an uninitialized dn_bufp.
847 (hpread_read_doc_function_type): Detect an initialized type1.
848 (hpread_quick_traverse): Initialize mod_name_string.
849 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
850 (som_solib_get_solib_by_pc): Declare.
851 (so_lib_thread_start_addr): Declare.
852 (no_shared_libraries): Declare.
853 * somread.c (init_import_symbols): Make static. Add forward
854 declaration.
855 * config/pa/nm-hppah.h: Include "infttrace.h" for
856 parent_attach_all.
857 (hppa_insert_hw_watchpoint): Declare.
858 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
859 * hppah-nat.c: Include "gdb_string.h".
860 (parent_attach_all): Delete extern declaration, moved to
861 "infttrace.h".
862 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
863 int.
864 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
865 * Makefile.in (infttrace_h): Define.
866 (hpread.o): Update dependencies.
867 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
868 * hppa-hpux-tdep.c: Include "gdb_string.h".
869 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
870 * infrun.c (handle_inferior_event): Always initialize
871 stepped_after_stopped_by_watchpoint. Add default and remove
872 fallthrough in switch statement.
873 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
874 parameter to int.
875 (hppa_remove_hw_watchpoint): Ditto.
876
2c3bbe77
AC
8772003-03-29 Andrew Cagney <[email protected]>
878
879 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
880 offset.
881
2dd604e7
RE
8822003-03-29 Richard Earnshaw <[email protected]>
883
884 * arm-tdep.c (arm_push_arguments): Delete.
885 (struct stack_item): New type.
886 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
887 (arm_store_struct_return): Delte.
888 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
889 arm_push_arguments or arm_store_struct_return.
890
e8933a55
AC
8912003-03-28 Andrew Cagney <[email protected]>
892
893 * Makefile.in (d10v-tdep.o): Update dependencies.
894 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
895 * d10v-tdep.c: Include "remote.h".
896 (target_resume_hook): Delete extern declaration.
897 (target_wait_loop_hook): Ditto.
898 (tdisassemble_command): Eliminate assignment in "if" conditional.
899 (d10v_ts2_register_sim_regno): Eliminate call to
900 legacy_register_sim_regno.
901 (d10v_ts3_register_sim_regno): Ditto.
902
6949171e
JJ
9032003-03-28 Jeff Johnston <[email protected]>
904
905 * thread.c: Reindented.
906 * lin-lwp.c: Ditto.
907 * linux-proc.c: Ditto.
908
98c7071f
BR
9092003-03-28 Bob Rossi <[email protected]>
910
911 * MAINTAINERS (write after approval): Add myself.
912
5edc9ca6
TR
9132003-03-27 Theodore A. Roth <[email protected]>
914
915 * objc-exp.y: Add missing semi-colons.
916
378bfd1b
AC
9172003-03-27 Andrew Cagney <[email protected]>
918
919 * regcache.c (write_sp): Delete function and references.
920 * inferior.h (write_sp): Delete declaration.
921 * valops.c (hand_function_call): Replace write_sp with
922 TARGET_WRITE_SP.
923 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
924 (sparc_pop_frame): Ditto.
925
56056df7
AC
9262003-03-27 Andrew Cagney <[email protected]>
927
928 * NEWS: Mention removal of support for hppa*-*-bsd* and
929 hppa*-*-osf* natives, and hppa*-*-pro* target.
930 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
931 * config/pa/xm-pa.h: Obsolete file.
932 * config/pa/xm-hppab.h: Obsolete file.
933 * config/pa/nm-hppab.h: Obsolete file.
934 * config/pa/tm-hppab.h: Obsolete file.
935 * config/pa/tm-hppao.h: Obsolete file.
936 * config/pa/nm-hppao.h: Obsolete file.
937 * config/pa/tm-pro.h: Obsolete file.
938 * config/pa/hppaosf.mt: Obsolete file.
939 * config/pa/hppaosf.mh: Obsolete file.
940 * config/pa/hppapro.mt: Obsolete file.
941 * config/pa/hppabsd.mt: Obsolete file.
942 * config/pa/hppabsd.mh: Obsolete file.
943 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
944 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
945 hppa*-*-osf*.
946
5873a88d
AC
9472003-03-27 Andrew Cagney <[email protected]>
948
949 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
950 push_arguments. Don't set push_return_address or write_sp.
951 (d10v_push_dummy_call): Replace d10v_push_arguments.
952 (d10v_push_return_address, d10v_write_sp): Delete function,
953 handled by push_dummy_call.
954
b81774d8
AC
9552003-03-26 Andrew Cagney <[email protected]>
956
957 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
958 (push_dummy_call): New pure multi-arch replacement with gdbarch,
959 regcache and dummy_addr parameters.
960 * gdbarch.h, gdbarch.c: Re-generate.
961 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
962 available; assume it will handle stack alignment and return
963 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
964 legacy_push_arguments.
965 (legacy_push_arguments): Rename default_push_arguments.
966 * value.h (legacy_push_arguments): Rename default_push_arguments.
967 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
968 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
969 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
970 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
971 * config/i386/tm-symmetry.h: Update.
972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
973 * x86-64-tdep.c (x86_64_init_abi): Update.
974 * v850-tdep.c (v850_gdbarch_init): Update.
975 * sparc-tdep.c (sparc_gdbarch_init): Update.
976 * sh-tdep.c (sh_gdbarch_init): Update.
977 * s390-tdep.c (s390_gdbarch_init): Update.
978 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
979 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
980 * mips-tdep.c (mips_gdbarch_init): Update.
981 * mcore-tdep.c (mcore_gdbarch_init): Update.
982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
983 * ia64-tdep.c (ia64_gdbarch_init): Update.
984 * i386-tdep.c (i386_gdbarch_init): Update.
985 * hppa-tdep.c (hppa_gdbarch_init): Update.
986 * h8300-tdep.c (h8300_gdbarch_init): Update.
987 * frv-tdep.c (frv_gdbarch_init): Update.
988 * d10v-tdep.c (d10v_gdbarch_init): Update.
989 * cris-tdep.c (cris_gdbarch_init): Update.
990 * avr-tdep.c (avr_gdbarch_init): Update.
991 * arm-tdep.c (arm_gdbarch_init): Update.
992 * arm-linux-tdep.c (arm_linux_init_abi): Update.
993 * alpha-tdep.c (alpha_gdbarch_init): Update.
994
f541410f
DJ
9952003-03-26 Daniel Jacobowitz <[email protected]>
996
997 * signals/signals.c (do_target_signal_to_host): Correct realtime
998 signal range test.
999
69f567ae
DJ
10002003-03-26 Daniel Jacobowitz <[email protected]>
1001
1002 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1003 (struct sal_chain, map_catch_names): Remove.
1004 (catch_exception_command_1): Don't call
1005 handle_gnu_4_16_catch_command.
1006
d5d14a5a
DJ
10072003-03-26 Daniel Jacobowitz <[email protected]>
1008
1009 From Mark Dettinger <[email protected]>:
1010 * dwarf2cfi.c (read_2u): Increment pointer by two.
1011
bdd73e22
DJ
10122003-03-26 Daniel Jacobowitz <[email protected]>
1013
1014 * signals/signals.c: Fix typos in last change.
1015
960cb555
DJ
10162003-03-26 Daniel Jacobowitz <[email protected]>
1017
1018 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1019 not already defined. Use __SIGRTMIN if available.
1020 (target_signal_from_host): Remove SIGRTMIN block.
1021 (do_target_signal_to_host): Remove SIGRTMIN block; check that
1022 the signal is within the realtime range.
1023
f636b87d
AF
10242003-03-25 Adam Fedor <[email protected]>
1025
1026 * Makefile.in (infrun.o): Add $(language_h)
1027 * infrun.c (handle_inferior_event): Use skip_language_trampoline
1028 for language specific trampolines.
1029 * language.h (struct language_defn): Add skip_trampoline.
1030 (skip_language_trampoline): Declare.
1031 * language.c (unk_lang_trampoline, skip_language_trampoline):
1032 New functions.
1033 (unknown_language_defn, auto_language_defn, local_language_defn):
1034 Add ukn_lang_trampoline.
1035 * ada-lang.c (ada_language_defn): Add NULL for language
1036 specific skip_trampoline.
1037 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1038 scm-lang.c: Likewise.
1039 * objc-lang.c (objc_skip_trampoline): New function.
1040 (objc_language_defn): Add objc_skip_trampoline.
1041
28f617b3 10422003-03-25 Andrew Cagney <[email protected]>
270c3b1d
AC
1043
1044 * frame.c (get_prev_frame): Delay validating a frame's ID -
1045 non-NULL, didn't go backwards - until an attempt to unwind it to
1046 the previous frame.
1047
f933a9c5
AC
10482003-03-25 Andrew Cagney <[email protected]>
1049
1050 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1051 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
1052 * gdbarch.h, gdbarch.c: Re-generate.
1053 * config/sparc/tm-sparc.h
1054 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1055 * sparc-tdep.c (sparc_gdbarch_init): Set
1056 deprecated_extra_stack_alignment_needed.
1057 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1059 extra_stack_alignment_needed.
1060 * v850-tdep.c (v850_gdbarch_init): Ditto.
1061 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1062 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1063 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1064 * cris-tdep.c (cris_gdbarch_init): Ditto.
1065 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1067
4183d812
AC
10682003-03-25 Andrew Cagney <[email protected]>
1069
1070 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1071 STORE_STRUCT_RETURN.
1072 * gdbarch.h, gdbarch.c: Regenerate.
1073 * d10v-tdep.c (d10v_store_struct_return): Delete function.
1074 (d10v_push_arguments): Set the struct return register.
1075 (d10v_gdbarch_init): Update.
1076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1077 * x86-64-tdep.c (x86_64_init_abi): Update.
1078 * vax-tdep.c (vax_gdbarch_init): Update.
1079 * v850-tdep.c (v850_gdbarch_init): Update.
1080 * sparc-tdep.c (sparc_gdbarch_init): Update.
1081 * sh-tdep.c (sh_gdbarch_init): Update.
1082 * s390-tdep.c (s390_gdbarch_init): Update.
1083 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1084 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1085 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1086 * mips-tdep.c (mips_gdbarch_init): Update.
1087 * mcore-tdep.c (mcore_gdbarch_init): Update.
1088 * m68k-tdep.c (m68k_gdbarch_init): Update.
1089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1090 * ia64-tdep.c (ia64_gdbarch_init): Update.
1091 * i386-tdep.c (i386_gdbarch_init): Update.
1092 * hppa-tdep.c (hppa_gdbarch_init): Update.
1093 * h8300-tdep.c (h8300_gdbarch_init): Update.
1094 * frv-tdep.c (frv_gdbarch_init): Update.
1095 * cris-tdep.c (cris_gdbarch_init): Update.
1096 * avr-tdep.c (avr_gdbarch_init): Update.
1097 * arm-tdep.c (arm_gdbarch_init): Update.
1098 * alpha-tdep.c (alpha_gdbarch_init): Update.
1099
1bf6d5cc
AC
11002003-03-25 Andrew Cagney <[email protected]>
1101
1102 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1103 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1104 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1105 * gdbarch.h, gdbarch.c: Regenerate.
1106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1107 call_dummy_stack_adjust_p.
1108 * vax-tdep.c (vax_gdbarch_init): Ditto.
1109 * v850-tdep.c (v850_gdbarch_init): Ditto.
1110 * sh-tdep.c (sh_gdbarch_init): Ditto.
1111 * s390-tdep.c (s390_gdbarch_init): Ditto.
1112 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1113 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1115 * mips-tdep.c (mips_gdbarch_init): Ditto.
1116 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1117 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1119 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1120 * i386-tdep.c (i386_gdbarch_init): Ditto.
1121 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1122 * frv-tdep.c (frv_gdbarch_init): Ditto.
1123 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1124 * cris-tdep.c (cris_gdbarch_init): Ditto.
1125 * avr-tdep.c (avr_gdbarch_init): Ditto.
1126 * arm-tdep.c (arm_gdbarch_init): Ditto.
1127 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1128 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1129 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1130 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1131 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1132 call_dummy_stack_adjust_p.
1133 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1134 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1135 * sparc-tdep.c (sparc32_push_arguments): Update.
1136 * valops.c (hand_function_call): Update.
1137
71c08af0
CV
11382003-03-25 Corinna Vinschen <[email protected]>
1139
1140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1141 set_gdbarch_char_signed.
1142
30757f90
RE
11432003-03-25 Richard Earnshaw <[email protected]>
1144
1145 PR cli/548
1146 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1147
03d48a7d
RE
11482003-03-25 Richard Earnshaw <[email protected]>
1149
1150 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1151 (_initialize_arm_tdep): Don't set tm_print_insn.
1152
2cf6873c
AF
11532003-03-24 Adam Fedor <[email protected]>
1154
1155 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1156 * objc-lang.h: Add multiple inclusion protection.
1157 (start_msglist, add_msglist, end_msglist): Additional declarations.
1158
17c0759e
RE
11592003-03-24 Richard Earnshaw <[email protected]>
1160
1161 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1162 value was renamed to ARM_FLOAT_SOFT_FPA.
1163
618ce49f
AC
11642003-03-23 Andrew Cagney <[email protected]>
1165
1166 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1167 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1168 * gdbarch.h, gdbarch.c: Regenerate.
1169 * valops.c (hand_function_call): Update.
1170 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1171 * frame.c (legacy_saved_regs_this_id): Update.
1172 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1173 * dummy-frame.h: Update.
1174 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1175 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1176 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1177 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1178 * config/m68k/tm-sun3.h: Update.
1179 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1181 * x86-64-tdep.c (x86_64_init_abi): Update.
1182 * vax-tdep.c (vax_gdbarch_init): Update.
1183 * v850-tdep.c (v850_gdbarch_init): Update.
1184 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1185 * sh-tdep.c (sh_gdbarch_init): Update.
1186 * s390-tdep.c (s390_gdbarch_init): Update.
1187 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1188 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1189 (frame_get_saved_regs): Update.
1190 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1193 * mips-tdep.c (mips_gdbarch_init): Update.
1194 * mcore-tdep.c (mcore_gdbarch_init): Update.
1195 * m68k-tdep.c (m68k_gdbarch_init): Update.
1196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1197 * ia64-tdep.c (ia64_gdbarch_init): Update.
1198 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1199 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1200 (i386_interix_back_one_frame): Update.
1201 * hppa-tdep.c (hppa_gdbarch_init): Update.
1202 (hppa_init_extra_frame_info): Update.
1203 * h8300-tdep.c (h8300_gdbarch_init): Update.
1204 * frv-tdep.c (frv_gdbarch_init): Update.
1205 * cris-tdep.c (cris_gdbarch_init): Update.
1206 * avr-tdep.c (avr_gdbarch_init): Update.
1207 * arm-tdep.c (arm_gdbarch_init): Update.
1208 * alpha-tdep.c (alpha_gdbarch_init): Update.
1209
fd50bc42
RE
12102003-03-22 Richard Earnshaw <[email protected]>
1211
1212 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1213 (arm_get_fp_model): Declare.
1214 * arm-tdep.c (fp_model_strings): New string array.
1215 (arm_fp_model, current_fp_model): New variables.
1216 (arm_get_fp_model): New function.
1217 (arm_set_fp): New function.
1218 (set_fp_model_sfunc): New function.
1219 (show_fp_model): New function.
1220 (_initialize_arm_tdep): Add new command to set/show the FPU.
1221 (arm_extract_return_value): Use arm_get_fp_model.
1222 (arm_store_return_value): Likewise.
1223 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1224 to initialize the floating-point data types.
1225 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1226 model is FPA.
1227
26304000
RE
12282003-03-22 Richard Earnshaw <[email protected]>
1229
1230 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1231 the current setting of each value.
1232 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1233 new_set and new_show. Use add_setshow_cmd_full and
1234 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1235 commands and add new version as subcommands of "set/show arm".
1236
afd7eef0
RE
12372003-03-22 Richard Earnshaw <[email protected]>
1238
1239 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1240 (set_arm_command, show_arm_command): New functions.
1241 (_initialize_arm_tdep): Add them.
1242 (num_disassembly_options): Renamed from num_flavor_options.
1243 (valid_disassembly_styles): Renamed from valid_flavors.
1244 (disassembly_style): Renamed from disassembly_flavor.
1245 (set_disassembly_style_sfunc): Renamed from
1246 set_disassembly_flavor_sfunc.
1247 (set_disassembly_style): Renamed from set_disassembly_flavor.
1248 (arm_othernames): Updated.
1249 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1250 command. Add "set/show arm disassembly" commands. Deprecate
1251 "othernames" command.
1252
299a7944
RE
12532003-03-22 Richard Earnshaw <[email protected]>
1254
1255 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1256 (arm-tdep.o): Depend on elf_arm_h.
1257
c1dac9e6
RE
12582003-03-22 Richard Earnshaw <[email protected]>
1259
1260 * Makefile.in (coff_internal_h): Define.
1261 (arm-tdep.o): Update dependencies.
1262
2702d96c
RE
12632003-03-22 Richard Earnshaw <[email protected]>
1264
1265 * arm-tdep.c (prologue_cache): Delete.
1266 (check_prologue_cache, save_prologue_cache): Delete.
1267 (arm_scan_prologue): Don't check or update the prologue_cache.
1268 (arm_gdb_arch_init): Don't initialize it.
1269 (_initialize_arm_tdep): Likewise.
1270
27d5d74b
SC
12712003-03-21 Stephane Carrez <[email protected]>
1272
1273 * MAINTAINERS (tui): Maintainer of tui code.
1274
1762d96d
CV
12752003-03-21 Corinna Vinschen <[email protected]>
1276
1277 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1278 (i386-cygwin-tdep.o): Add dependencies.
1279 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1280 * i386-cygwin-tdep.c: New file.
1281 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1282 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1283
4c2e2391
AC
12842003-03-20 Andrew Cagney <[email protected]>
1285
f20d38b7
AC
1286 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1287 (handle_inferior_event): Remove code calling
1288 DYNAMIC_TRAMPOLINE_NEXTPC.
1289
0022b738
AC
1290 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1291 already has a full path.
1292
864dbc90
AC
1293 * main.c (gdb_main): Return 1.
1294 (captured_main): Call error to report an invalid interpreter.
1295
4c2e2391
AC
1296 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1297 * alpha-osf1-tdep.c: Include "gdb_string.h".
1298
5ef7553b
JB
12992003-03-19 J. Brobecker <[email protected]>
1300
1301 Continuing work to convert the hppa targets to multiarch partial.
1302
1303 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1304 method, now that hppa_push_dummy_frame has a conformant prototype.
1305 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1306 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1307 for the switch to multiarch partial.
1308
7bde8967
KB
13092003-03-19 Kevin Buettner <[email protected]>
1310
1311 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1312 when iss is issNull.
1313
b006a9e9
KB
13142003-03-18 Kevin Buettner <[email protected]>
1315
1316 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1317 NUM_REGS bounds check.
1318
5e2e9765
KB
13192003-03-18 Kevin Buettner <[email protected]>
1320
1321 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1322 * mips-tdep.c (gdb_assert.h): Include.
1323 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1324 (mips_register_name): Handle integer registers explicitly. Add
1325 bounds checking.
1326 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1327 (mips_lsi33k_reg_names): Don't list integer registers; they're
1328 handled by mips_register_name() now.
1329 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1330 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1331 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1332 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1333 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1334
a2867626
AC
13352003-03-18 Andrew Cagney <[email protected]>
1336
1337 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1338 a void pointer.
1339 * gdbtypes.h (print_scalar_formatted): Update declaration.
1340 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1341
06600e06
JB
13422003-03-18 J. Brobecker <[email protected]>
1343
1344 * infrun.c (observer.h): Add #include.
1345 (normal_stop): Add call to observer_notify_normal_stop.
1346 * Makefile.in (infrun.o): Add dependency on observer.h.
1347
7daf4f5b
JB
13482003-03-18 J. Brobecker <[email protected]>
1349
1350 Continuing work to convert the hppa targets to multiarch partial.
1351 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1352 parameter. Reformat comment.
1353 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1354 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1355 to match new profile.
1356
3371ccc0
JB
13572003-03-18 J. Brobecker <[email protected]>
1358
1359 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1360 appear to be working in any case.
1361
4fbe891e
JB
13622003-03-18 J. Brobecker <[email protected]>
1363
1364 * observer.c (observer_test_first_observer): New static variable.
1365 (observer_test_second_observer): Likewise.
1366 (observer_test_third_observer): Likewise.
1367 (observer_test_first_notification_function): New static function.
1368 (observer_test_second_notification_function): Likewise.
1369 (observer_test_third_notification_function): Likewise.
1370
a7ff40e7
JB
13712003-03-17 J. Brobecker <[email protected]>
1372
1373 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1374 * somsolib.c (gdb_assert.h): Likewise.
1375 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1376 (somsolib.o): Likewise.
1377
26ca4152
AC
13782003-03-17 Andrew Cagney <[email protected]>
1379
1380 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1381 BFD. Simplify setting of di.endian.
1382
0a613259
AC
13832003-03-17 Andrew Cagney <[email protected]>
1384
1385 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1386 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1387
1388 From Elena Zannoni <[email protected]>
1389 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1390 vector and floating-point parameters.
1391 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1392 convention.
1393 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1394
1132738f
FN
13952003-03-17 Fernando Nasser <[email protected]>
1396
1397 * MAINTAINERS: Remove my name from several maintainership roles.
1398
6dc42492
AC
13992003-03-17 Andrew Cagney <[email protected]>
1400
1401 Fix frame off-by-one bug.
1402 * frame-unwind.h (frame_this_id_ftype): Replace
1403 frame_unwind_id_ftype.
1404 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1405 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1406 with "prev_register".
1407 * frame-unwind.c (frame_unwind_find_by_pc): Return
1408 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1409 comment.
1410 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1411 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1412 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1413 (dummy_frame_unwind): Update.
1414 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1415 sentinel_frame_register_unwind.
1416 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1417 (sentinel_frame_unwinder): Update.
1418 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1419 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1420 * frame.c (create_sentinel_frame): Update. Initialize
1421 "prologue_cache" instead of "unwind_cache".
1422 (frame_register_unwind): Call this frame's prev_register with the
1423 next frame and this frame's prologue cache.
1424 (get_prev_frame): Simplify. Always call prev frame's this_id with
1425 this frame and prev frame's prologue cache. Document that this
1426 call is shifted one to the left when compared to the
1427 frame_register_unwind call.
1428 (legacy_saved_regs_prev_register): Replace
1429 frame_saved_regs_register_unwind.
1430 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1431 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1432 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1433 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1434 (d10v_frame_unwind): Update.
1435 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1436 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1437 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1438 "saved_regs" with "this_saved_regs".
1439
efd710d6
AC
14402003-03-16 Andrew Cagney <[email protected]>
1441
1442 * frame.c (frame_pop): Don't call target_store_registers. Fix
1443 problem reported by Mark Kettenis.
1444
4e259f09
MK
14452003-03-16 Mark Kettenis <[email protected]>
1446
1447 * i386-tdep.c (i386_register_type): Renamed from
1448 i386_register_virtual_type. Adjust function signature.
1449 (i386_gdbarch_init): Set register_type instead of
1450 deprecated_max_register_raw_size,
1451 deprecated_max_register_virtual_size and register_virtual_type.
1452
055bb976
AC
14532003-03-14 Andrew Cagney <[email protected]>
1454
1455 * frame.c (get_prev_frame): When a legacy frame, always call
1456 legacy_get_prev_frame. Simplify unwind code using assumption that
1457 the unwinder is new.
1458 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1459 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1460 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1461
ac2adee5
AC
14622003-03-14 Andrew Cagney <[email protected]>
1463
1464 * frame.c (get_saved_register): Delete function.
1465 * frame.h (get_saved_register): Delete declaration.
1466 * xstormy16-tdep.c: Update comment.
1467 * regcache.h: Update comments.
1468 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1469 get_saved_register and extract_address, use
1470 frame_read_unsigned_register.
1471 (sparc_frame_saved_pc): Ditto.
1472 (sparc_get_saved_register): Instead of get_saved_register, use
1473 frame_register.
1474 (sparc_pop_frame): Ditto.
1475 * findvar.c: Update comments.
1476 (value_of_register): Call frame_register instead of
1477 get_saved_register.
1478 (value_from_register): Ditto.
1479 * config/sparc/tm-sparc.h: Update comment.
1480 * breakpoint.c: Update comment.
1481
129c1cd6
AC
14822003-03-14 Andrew Cagney <[email protected]>
1483
1484 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1485 GET_SAVED_REGISTER.
1486 * gdbarch.h, gdbarch.c: Re-generate.
1487 * frame.h: Update comments.
1488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1489 * x86-64-tdep.c (x86_64_init_abi): Update.
1490 * sparc-tdep.c (sparc_gdbarch_init): Update.
1491 * sh-tdep.c (sh_gdbarch_init): Update.
1492 * mips-tdep.c (mips_gdbarch_init): Update.
1493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1494 * cris-tdep.c (cris_gdbarch_init): Update.
1495 * ia64-tdep.c (ia64_gdbarch_init): Update.
1496 * frame.c (frame_register): Update.
1497 (get_saved_register): Update.
1498 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1499
749b82f6
AC
15002003-03-13 Andrew Cagney <[email protected]>
1501
1502 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1503 * gdbarch.h, gdbarch.c: Regenerate.
1504 * valops.c (hand_function_call): Update comment.
1505 * stack.c (return_command): Update comment.
1506 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1507 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1509 * x86-64-tdep.c (x86_64_init_abi): Update.
1510 * vax-tdep.c (vax_gdbarch_init): Update.
1511 * v850-tdep.c (v850_gdbarch_init): Update.
1512 * sparc-tdep.c (sparc_gdbarch_init): Update.
1513 * sh-tdep.c (sh_gdbarch_init): Update.
1514 * s390-tdep.c (s390_gdbarch_init): Update.
1515 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1516 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1517 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1518 * mips-tdep.c (mips_gdbarch_init): Update.
1519 * mcore-tdep.c (mcore_gdbarch_init): Update.
1520 * m68k-tdep.c (m68k_gdbarch_init): Update.
1521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1522 * ia64-tdep.c (ia64_gdbarch_init): Update.
1523 * i386-tdep.c (i386_gdbarch_init): Update.
1524 * hppa-tdep.c (hppa_gdbarch_init): Update.
1525 * h8300-tdep.c (h8300_gdbarch_init): Update.
1526 * frv-tdep.c (frv_gdbarch_init): Update.
1527 * cris-tdep.c (cris_gdbarch_init): Update.
1528 * avr-tdep.c (avr_gdbarch_init): Update.
1529 * arm-tdep.c (arm_gdbarch_init): Update.
1530 * alpha-tdep.c (alpha_gdbarch_init): Update.
1531
1594fa56
AC
15322003-03-13 Andrew Cagney <[email protected]>
1533
1534 * frame.c (legacy_frame_p): New function.
1535 (get_prev_frame): Use legacy_frame_p.
1536 * frame.h (legacy_frame_p): Declare.
1537
7717fda3
V
15382003-03-13 D. Venkatasubramanian <[email protected]>
1539
1540 * MAINTAINERS (write after approval): Alphabetically
1541 listing corrected.
1542
0c67cbe9
V
15432003-03-13 D. Venkatasubramanian <[email protected]>
1544
1545 * MAINTAINERS (write after approval): Add myself.
1546
03febf99
AC
15472003-03-12 Andrew Cagney <[email protected]>
1548
1549 * frame.c (get_prev_frame): Rename the frame parameter to
1550 "this_frame".
1551 (get_next_frame, legacy_get_prev_frame): Ditto.
1552
0a1e1ca1
AC
15532003-03-12 Andrew Cagney <[email protected]>
1554
1555 * frame.c (get_current_frame): Check target_has_registers before
1556 checking target_has_stack.
1557 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1558 instead of deprecated_selected_frame.
1559 * findvar.c (value_of_register): Pass "frame", not
1560 deprecated_selected_frame, to value_of_builtin_reg.
1561
a66a9c23
AC
15622003-03-12 Andrew Cagney <[email protected]>
1563
1564 * regcache.c (regcache_cooked_write_signed): New function.
1565 (regcache_cooked_write_unsigned): New function.
1566 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1567 (regcache_cooked_read_signed): Fix regnum in range assertion.
1568 * regcache.h (regcache_cooked_write_signed): Declare.
1569 (regcache_cooked_write_unsigned): Declare.
1570
8bedc050
AC
15712003-03-12 Andrew Cagney <[email protected]>
1572
1573 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1574 * gdbarch.h, gdbarch.c: Re-generate.
1575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1576 * x86-64-tdep.h: Update.
1577 * x86-64-tdep.c (x86_64_init_abi): Update.
1578 * v850-tdep.c (v850_gdbarch_init): Update.
1579 * sparc-tdep.c (sparc_gdbarch_init): Update.
1580 * sh-tdep.c (sh_gdbarch_init): Update.
1581 * s390-tdep.c (s390_gdbarch_init): Update.
1582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1583 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1586 * mips-tdep.c (mips_gdbarch_init): Update.
1587 * mcore-tdep.c (mcore_gdbarch_init): Update.
1588 * m68k-tdep.c (m68k_gdbarch_init): Update.
1589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1590 * ia64-tdep.c (ia64_gdbarch_init): Update.
1591 * i386-tdep.c (i386_gdbarch_init): Update.
1592 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1593 * hppa-tdep.c (hppa_gdbarch_init): Update.
1594 * h8300-tdep.c (h8300_gdbarch_init): Update.
1595 * frv-tdep.c (frv_gdbarch_init): Update.
1596 * cris-tdep.c (cris_gdbarch_init): Update.
1597 * avr-tdep.c (avr_gdbarch_init): Update.
1598 * arm-tdep.c (arm_gdbarch_init): Update.
1599 * alpha-tdep.c (alpha_gdbarch_init): Update.
1600 * sh-tdep.c (sh_init_extra_frame_info): Update.
1601 (sh64_init_extra_frame_info): Update.
1602 * ns32knbsd-nat.c (frame_num_args): Update.
1603 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1604 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1605 (xstormy16_frame_chain_valid): Update.
1606 * vax-tdep.c (vax_saved_pc_after_call): Update.
1607 * v850-tdep.c (v850_frame_chain): Update.
1608 (v850_pop_frame): Update.
1609 (v850_init_extra_frame_info): Update.
1610 * sparc-tdep.c (setup_arbitrary_frame): Update.
1611 * ns32k-tdep.c (umax_frame_num_args): Update.
1612 * s390-tdep.c (s390_pop_frame_regular): Update.
1613 * mn10300-tdep.c (mn10300_frame_chain): Update.
1614 (mn10300_pop_frame_regular): Update.
1615 (mn10300_init_extra_frame_info): Update.
1616 * mips-tdep.c (mips_init_frame_pc_first): Update.
1617 (mips_frame_chain): Update.
1618 (mips_pop_frame): Update.
1619 * mcore-tdep.c (mcore_frame_chain): Update.
1620 (mcore_pop_frame): Update.
1621 (mcore_init_extra_frame_info): Update.
1622 * arch-utils.c (init_frame_pc_default): Update.
1623 * m68k-tdep.c (isi_frame_num_args): Update.
1624 (delta68_frame_num_args): Update.
1625 (news_frame_num_args): Update.
1626 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1627 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1628 (alpha_frame_chain): Update.
1629 (alpha_pop_frame): Update.
1630 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1631 (hppa_init_extra_frame_info): Update.
1632 (hppa_frame_chain): Update.
1633 (hppa_frame_chain_valid): Update.
1634 * cris-tdep.c (cris_init_extra_frame_info): Update.
1635 * avr-tdep.c (avr_init_extra_frame_info): Update.
1636 * arm-tdep.c (arm_frame_chain_valid): Update.
1637 (arm_init_extra_frame_info): Update.
1638 (arm_pop_frame): Update.
1639 * frame.c (frame_pc_unwind): Update.
1640 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1641 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1643 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1644 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1645 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1646
7a25a7c1
AC
16472003-03-12 Andrew Cagney <[email protected]>
1648
1649 Eliminate the need for POP_FRAME.
1650 * frame.c (do_frame_unwind_register): New function.
1651 (frame_pop): When no POP_FRAME, pop the frame using register
1652 unwind and a scratch regcache.
1653 (frame_saved_regs_pop): Delete function.
1654 (trad_frame_unwinder): Update.
1655 * d10v-tdep.c (d10v_frame_pop): Delete function.
1656 (d10v_frame_unwind): Update.
1657 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1658 (sentinel_frame_unwinder): Update.
1659 * dummy-frame.c (dummy_frame_pop): Delete function.
1660 (dummy_frame_unwind): Update.
1661 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1662 (struct frame_unwind): Update.
1663
2f38ef89
KB
16642003-03-11 Kevin Buettner <[email protected]>
1665
1666 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1667 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1668 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1669 Do range checks on register number obtained from debugging info.
1670 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1671 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1672 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1673 mapping function.
1674 (do_fp_register_row): Fix typo which caused double type to be
1675 used when attempting to unpack a float.
1676
552f4abf
JB
16772003-03-11 J. Brobecker <[email protected]>
1678
1679 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1680
e0d2ae16
AC
16812003-03-11 Andrew Cagney <[email protected]>
1682
1683 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1684 frame. Problem found by Corinna Vinschen.
1685
ddbfdd06
PM
16862003-03-11 Pierre Muller <[email protected]>
1687
1688 * doublest.c (floatformat_from_length): Accept also
1689 the real size of 'long double' type.
1690
088b2ddc 16912003-03-10 Daniel Jacobowitz <[email protected]>
31cc81e9 1692
088b2ddc 1693 From Klee Dienes <[email protected]>:
31cc81e9
DJ
1694 * breakpoint.c (bpstat_copy): Copy the command lines as well
1695 as the old value, to match what is freed in bpstat_clear.
1696
f56f77c1
DC
16972003-03-10 David Carlton <[email protected]>
1698
1699 * minsyms.c (add_minsym_to_hash_table): Replace
1700 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1701 (compare_minimal_symbols, compact_minimal_symbols)
1702 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1703 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1704 of DEPRECATED_SYMBOL_MATCHES_NAME.
1705 (lookup_minimal_symbol_solib_trampoline): Ditto.
1706
5602984a
AC
17072003-03-10 Andrew Cagney <[email protected]>
1708
1709 * regcache.h (regcache_cooked_read_ftype): Define.
1710 (regcache_save, regcache_restore): Add a cooked_read parameter.
1711 * regcache.c (regcache_save, regcache_restore): Update.
1712 (do_cooked_read): New function.
1713 (regcache_cpy): Pass do_cooked_read to regcache_save and
1714 regcache_restore.
1715
8bedc050
AC
17162003-03-10 Andrew Cagney <[email protected]>
1717
1718 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1719 * gdbarch.h, gdbarch.c: Re-generate.
1720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1721 * x86-64-tdep.h: Update.
1722 * x86-64-tdep.c (x86_64_init_abi): Update.
1723 * v850-tdep.c (v850_gdbarch_init): Update.
1724 * sparc-tdep.c (sparc_gdbarch_init): Update.
1725 * sh-tdep.c (sh_gdbarch_init): Update.
1726 * s390-tdep.c (s390_gdbarch_init): Update.
1727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1728 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1731 * mips-tdep.c (mips_gdbarch_init): Update.
1732 * mcore-tdep.c (mcore_gdbarch_init): Update.
1733 * m68k-tdep.c (m68k_gdbarch_init): Update.
1734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1735 * ia64-tdep.c (ia64_gdbarch_init): Update.
1736 * i386-tdep.c (i386_gdbarch_init): Update.
1737 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1738 * hppa-tdep.c (hppa_gdbarch_init): Update.
1739 * h8300-tdep.c (h8300_gdbarch_init): Update.
1740 * frv-tdep.c (frv_gdbarch_init): Update.
1741 * cris-tdep.c (cris_gdbarch_init): Update.
1742 * avr-tdep.c (avr_gdbarch_init): Update.
1743 * arm-tdep.c (arm_gdbarch_init): Update.
1744 * alpha-tdep.c (alpha_gdbarch_init): Update.
1745 * sh-tdep.c (sh_init_extra_frame_info): Update.
1746 (sh64_init_extra_frame_info): Update.
1747 * ns32knbsd-nat.c (frame_num_args): Update.
1748 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1749 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1750 (xstormy16_frame_chain_valid): Update.
1751 * vax-tdep.c (vax_saved_pc_after_call): Update.
1752 * v850-tdep.c (v850_frame_chain): Update.
1753 (v850_pop_frame): Update.
1754 (v850_init_extra_frame_info): Update.
1755 * sparc-tdep.c (setup_arbitrary_frame): Update.
1756 * ns32k-tdep.c (umax_frame_num_args): Update.
1757 * s390-tdep.c (s390_pop_frame_regular): Update.
1758 * mn10300-tdep.c (mn10300_frame_chain): Update.
1759 (mn10300_pop_frame_regular): Update.
1760 (mn10300_init_extra_frame_info): Update.
1761 * mips-tdep.c (mips_init_frame_pc_first): Update.
1762 (mips_frame_chain): Update.
1763 (mips_pop_frame): Update.
1764 * mcore-tdep.c (mcore_frame_chain): Update.
1765 (mcore_pop_frame): Update.
1766 (mcore_init_extra_frame_info): Update.
1767 * arch-utils.c (init_frame_pc_default): Update.
1768 * m68k-tdep.c (isi_frame_num_args): Update.
1769 (delta68_frame_num_args): Update.
1770 (news_frame_num_args): Update.
1771 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1772 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1773 (alpha_frame_chain): Update.
1774 (alpha_pop_frame): Update.
1775 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1776 (hppa_init_extra_frame_info): Update.
1777 (hppa_frame_chain): Update.
1778 (hppa_frame_chain_valid): Update.
1779 * cris-tdep.c (cris_init_extra_frame_info): Update.
1780 * avr-tdep.c (avr_init_extra_frame_info): Update.
1781 * arm-tdep.c (arm_frame_chain_valid): Update.
1782 (arm_init_extra_frame_info): Update.
1783 (arm_pop_frame): Update.
1784 * frame.c (frame_pc_unwind): Update.
1785 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1786 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1787 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1788 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1789 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1790 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1791
12cc2063
AC
17922003-03-10 Andrew Cagney <[email protected]>
1793
1794 * gdbarch.sh (gdbarch_unwind_pc): New method.
1795 * gdbarch.h, gdbarch.c: Regenerate.
1796 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1797 but use read_pc and FRAME_SAVED_PC as fall backs.
1798 (frame_saved_regs_pc_unwind): Delete function.
1799 (trad_frame_unwinder): Update.
1800 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1801 (struct frame_unwind): Update.
1802 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1803 (dummy_frame_unwind): Update.
1804 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1805 (sentinel_frame_unwinder): Update.
1806 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1807 (d10v_frame_unwind): Update.
1808 (d10v_unwind_pc): New function.
1809 (d10v_gdbarch_init): Set unwind_pc.
1810
ef840a37
AC
18112003-03-10 Andrew Cagney <[email protected]>
1812
a2ce2e56
AC
1813 * gdbarch.h: Re-generate.
1814
ef840a37
AC
1815 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1816 PC.
1817 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1818 the PC register.
1819
08f3424b
MK
18202003-03-08 Mark Kettenis <[email protected]>
1821
1822 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1823
1248ede2
AC
18242003-03-08 Andrew Cagney <[email protected]>
1825
1826 * cli-out.c: Update copyright.
1827 (cli_out_data): Define typedef. Use instead of ui_out_data.
1828
f49bacc8
AC
18292003-03-08 Andrew Cagney <[email protected]>
1830
1831 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1832 the result.
1833
9b05f993
AC
18342003-03-07 Andrew Cagney <[email protected]>
1835
1836 * gdbarch.sh: Don't generate two macro definitions when an
1837 undefined macro taking no arguments.
1838 * gdbarch.h: Regenerate.
1839
166f4c7b
ML
18402002-03-07 Michal Ludvig <[email protected]>
1841
1842 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1843 (x86_64_unwind_dummy_id): New functions.
1844 (x86_64_init_abi): Register these two new functions.
1845
6d686a84
ML
18462003-03-07 Michal Ludvig <[email protected]>
1847
1848 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1849 (x86_64_skip_prologue): Move prologue detection to
1850 separate function.
1851 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1852
6314f104
AC
18532003-03-05 Andrew Cagney <[email protected]>
1854
1855 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1856 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1857 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1858 to use unwind_dummy_id when a dummy frame.
1859 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1860 predicate.
1861 * gdbarch.h, gdbarch.c: Regneerate.
1862
ceea5145
AC
18632003-03-05 Andrew Cagney <[email protected]>
1864
1865 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1866 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1867 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1868 values.
1869
0d843116
AC
18702003-03-05 Andrew Cagney <[email protected]>
1871
1872 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1873 (struct d10v_unwind_cache): Delete field "frameless". Replace
1874 "next_addr" with "sp_offset". Add "r11_offset".
1875 (d10v_frame_unwind_cache): Update.
1876 (prologue_find_regs): Update. When "mv r11, sp", save the
1877 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1878 RN was saved in r11_offset.
1879
b2579786
AC
18802003-03-05 Andrew Cagney <[email protected]>
1881
1882 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1883 cached PC value in the next frame.
1884
218e5956
AC
18852003-03-05 Andrew Cagney <[email protected]>
1886
1887 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1888 "id_unwind_cache" with "id".
1889 (frame_id_unwind): Delete declaration.
1890 * frame.c (frame_id_unwind): Delete function.
1891 (get_prev_frame): Call the frame id unwind method directly. Store
1892 the returned next frame's ID value in NEXT_FRAME. Note that there
1893 is a problem with the wrong unwind ID being called with the wrong
1894 unwind cache.
1895
ed363b1b
DJ
18962003-03-05 Daniel Jacobowitz <[email protected]>
1897
1898 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1899
fe1f4a5e
DJ
19002003-03-05 James Ingham <[email protected]>
1901 Daniel Jacobowitz <[email protected]>
1902
1903 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1904 (auto_cp_abi): New variable.
1905 (current_cp_abi, num_cp_abis): Make static.
1906 (CP_ABI_MAX): Define.
1907 (cp_abis): Turn into an array.
1908 (value_virtual_fn_field): Fix formatting.
1909 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1910 takes a pointer.
1911 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1912 (list_cp_abis, _initialize_cp_abi): New functions.
1913 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1914 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1915 switch_to_cp_abi. Update prototype for register_cp_abi.
1916 * Makefile.in (cp-abi.o): Update dependencies.
1917 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1918 instead of switch_to_cp_abi.
1919 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1920 register_cp_abi.
1921 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1922 register_cp_abi.
1923 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1924
e4adbba9
DJ
19252003-03-05 Daniel Jacobowitz <[email protected]>
1926
1927 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1928 * dwarf2loc.c: Include "regcache.h".
1929 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1930 register_size.
1931 * Makefile.in (dwarf2loc.o): Update dependencies.
1932
91ccbfc1
TR
19332003-03-04 Theodore A. Roth <[email protected]>
1934
1935 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1936 number of io registers reported by remote target is not a multiple of
1937 step.
1938
3d4e8fd2
DC
19392003-03-04 David Carlton <[email protected]>
1940
1941 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1942 (lookup_symbol_aux_psymtabs): Update call to
1943 lookup_partial_symbol.
1944 (lookup_transparent_type, find_main_psymtab)
1945 (make_symbol_overload_list): Ditto.
1946
ed42d87b
KH
19472003-03-04 Kazu Hirata <[email protected]>
1948
1949 * MAINTAINERS (Write after approval): Update my email address.
1950
a0ed5532
AC
19512003-03-03 Andrew Cagney <[email protected]>
1952
1953 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1954 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1955 predicate. Replace MAX_REGISTER_RAW_SIZE.
1956 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1957 MAX_REGISTER_VIRTUAL_SIZE.
1958 * regcache.c (legacy_max_register_raw_size): New function.
1959 (legacy_max_register_virtual_size): New function.
1960 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1961 (MAX_REGISTER_RAW_SIZE): Define.
1962 (legacy_max_register_raw_size): Declare.
1963 (legacy_max_register_virtual_size): Declare.
1964 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1965 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1966 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1967 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1968 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1969 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1970 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1971 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1972 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1974 * vax-tdep.c (vax_gdbarch_init): Update.
1975 * v850-tdep.c (v850_gdbarch_init): Update.
1976 * sparc-tdep.c (sparc_gdbarch_init): Update.
1977 * sh-tdep.c (sh_gdbarch_init): Update.
1978 * s390-tdep.c (s390_gdbarch_init): Update.
1979 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1982 * mips-tdep.c (mips_gdbarch_init): Update.
1983 * mcore-tdep.c (mcore_gdbarch_init): Update.
1984 * m68k-tdep.c (m68k_gdbarch_init): Update.
1985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1986 * ia64-tdep.c (ia64_gdbarch_init): Update.
1987 * i386-tdep.c (i386_gdbarch_init): Update.
1988 * hppa-tdep.c (hppa_gdbarch_init): Update.
1989 * h8300-tdep.c (h8300_gdbarch_init): Update.
1990 * frv-tdep.c (frv_gdbarch_init): Update.
1991 * cris-tdep.c (cris_gdbarch_init): Update.
1992 * avr-tdep.c (avr_gdbarch_init): Update.
1993 * arm-tdep.c (arm_gdbarch_init): Update.
1994 * alpha-tdep.c (alpha_gdbarch_init): Update.
1995 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1996 max_register_raw_size or max_register_virtual_size.
1997
8e437497
DC
19982003-03-03 David Carlton <[email protected]>
1999
2000 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2001 SYMBOL_MATCHES_NAME, add comment.
2002 (SYMBOL_MATCHES_NATURAL_NAME): New.
2003 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2004 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2005 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2006 * symtab.c (lookup_partial_symbol): Use
2007 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
2008 unhelpful comment.
2009 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2010 SYMBOL_MATCHES_NAME.
2011 Fix for PR c++/33.
2012
25120b0d
DC
20132003-03-03 David Carlton <[email protected]>
2014
2015 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2016 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2017 by regexp matching against SYMBOL_NATURAL_NAME.
2018
78a11fb4
DC
20192003-03-03 David Carlton <[email protected]>
2020
2021 * linespec.c (find_method): Extract code into collect_methods.
2022 (collect_methods): New.
2023
645dd519
MK
20242003-03-02 Mark Kettenis <[email protected]>
2025
b4700d91
MK
2026 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2027 get_frame_base.
2028
645dd519
MK
2029 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2030 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2031
0aa7e1aa
SC
20322003-03-02 Stephane Carrez <[email protected]>
2033
2034 * arch-utils.c (generic_register_byte): Fix to use the loop index
2035 and not regnum when summing the size of all registers up to regnum.
2036
f30ee0bc
AC
20372003-03-01 Andrew Cagney <[email protected]>
2038
2039 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2040 FRAME_INIT_SAVED_REGS.
2041 * gdbarch.h, gdbarch.c: Regenerate.
2042 * stack.c (frame_info): Update.
2043 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2044 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2045 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2046 * ns32k-tdep.c (ns32k_pop_frame): Update.
2047 * mips-tdep.c (mips_pop_frame): Update.
2048 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2049 * ia64-tdep.c (ia64_frame_chain): Update.
2050 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2051 (ia64_frameless_function_invocation): Update.
2052 (ia64_init_extra_frame_info): Update.
2053 (ia64_pop_frame_regular): Update.
2054 * frame.h (struct frame_info): Update comment.
2055 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2056 * frame.c (frame_saved_regs_register_unwind): Update.
2057 (frame_saved_regs_register_unwind): Update.
2058 (deprecated_generic_get_saved_register): Update.
2059 * cris-tdep.c: Update comment.
2060 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2061 Rename macro.
2062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2063 * x86-64-tdep.c (x86_64_init_abi): Update.
2064 * vax-tdep.c (vax_gdbarch_init): Update.
2065 * v850-tdep.c (v850_gdbarch_init): Update.
2066 * sparc-tdep.c (sparc_gdbarch_init): Update.
2067 * sh-tdep.c (sh_gdbarch_init): Update.
2068 * s390-tdep.c (s390_gdbarch_init): Update.
2069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2070 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2072 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2073 * mips-tdep.c (mips_gdbarch_init): Update.
2074 * mcore-tdep.c (mcore_gdbarch_init): Update.
2075 * m68k-tdep.c (m68k_gdbarch_init): Update.
2076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2077 * ia64-tdep.c (ia64_gdbarch_init): Update.
2078 * i386-tdep.c (i386_gdbarch_init): Update.
2079 * frv-tdep.c (frv_gdbarch_init): Update.
2080 * avr-tdep.c (avr_gdbarch_init): Update.
2081 * arm-tdep.c (arm_gdbarch_init): Update.
2082 * alpha-tdep.c (alpha_gdbarch_init): Update.
2083
42fa7c0f
AC
20842003-03-01 Andrew Cagney <[email protected]>
2085
2086 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2087 option enum and switch. When no windows, set the interpreter to
2088 INTERP_CONSOLE.
2089
49c7e338
AC
20902003-03-01 Andrew Cagney <[email protected]>
2091
2092 * main.c (captured_main): Replace magic option characters with an
2093 enum.
2094
e9582e71
AC
20952003-03-01 Andrew Cagney <[email protected]>
2096
2097 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2098 INIT_EXTRA_FRAME_INFO.
2099 * gdbarch.h, gdbarch.c: Regenerate.
2100 * arm-tdep.c: Update comments.
2101 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2102 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2103 * frame.h, avr-tdep.c: Ditto.
2104 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2105 (create_new_frame, legacy_get_prev_frame): Ditto.
2106 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2107 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2109 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2110 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2111 * v850-tdep.c (v850_gdbarch_init): Ditto.
2112 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2113 * sh-tdep.c (sh_gdbarch_init): Ditto.
2114 * s390-tdep.c (s390_gdbarch_init): Ditto.
2115 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2116 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2117 * mips-tdep.c (mips_gdbarch_init): Ditto.
2118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2120 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2121 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2122 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2123 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2124 * frv-tdep.c (frv_gdbarch_init): Ditto.
2125 * cris-tdep.c (cris_gdbarch_init): Ditto.
2126 * avr-tdep.c (avr_gdbarch_init): Ditto.
2127 * arm-tdep.c (arm_gdbarch_init): Ditto.
2128 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2130
35cac7cf
AC
21312003-03-01 Andrew Cagney <[email protected]>
2132
2133 * gdbarch.sh (register_type): New function with predicate.
2134 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2135 * gdbarch.h, gdbarch.c: Re-generate.
2136 * arch-utils.c (generic_register_byte): Use generic_register_size.
2137 (generic_register_size): When available, use
2138 gdbarch_register_type.
2139 * regcache.c (init_regcache_descr): When available, initialize the
2140 register type array using gdbarch_register_type. If the
2141 architecture supplies gdbarch_register_type, do not use the legacy
2142 regcache layout.
2143 * d10v-tdep.c (d10v_register_type): Replace
2144 d10v_register_virtual_type.
2145 (d10v_gdbarch_init): Set register_type instead of
2146 register_virtual_type.
2147
7b83296f
AC
21482003-03-01 Andrew Cagney <[email protected]>
2149
2150 * Makefile.in (ax-gdb.o): Update dependencies.
2151 * ax-gdb.c: Include "regcache.h".
2152 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2153 * findvar.c (value_of_register): Ditto.
2154 * infcmd.c (default_print_registers_info): Ditto.
2155
eadc1c87
MK
21562003-03-01 Mark Kettenis <[email protected]>
2157
2158 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2159 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2160
14143612
MK
21612003-03-01 Mark Kettenis <[email protected]>
2162
2163 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2164 of STREQ.
2165
a55cc764
DJ
21662003-02-28 Daniel Jacobowitz <[email protected]>
2167
2168 * Makefile.in (dwarf2loc.o): Update dependencies.
2169 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2170 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2171 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2172 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2173 (locexpr_tracepoint_var_ref): New function.
2174 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2175
08a617da
AC
21762003-02-28 Andrew Cagney <[email protected]>
2177
2178 * regcache.c (register_size): New function.
2179 * regcache.h (register_size): Declare
2180 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2181 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2182
4224873a
DC
21832003-02-28 David Carlton <[email protected]>
2184
2185 * linespec.c (decode_compound): Extract code into find_method.
2186 (find_method): New.
2187
ccdc5d7f
JB
21882003-02-28 J. Brobecker <[email protected]>
2189
2190 * Makefile.in: Add rules to build and link in observer.o.
2191
974e8ced
JB
21922003-02-27 J. Brobecker <[email protected]>
2193
2194 * observer.c: Minor comments edits.
2195
7a28f973
JB
21962003-02-27 J. Brobecker <[email protected]>
2197
2198 * observer.h, observer.c: New file.
2199
27cddce2
AC
22002003-02-27 Andrew Cagney <[email protected]>
2201
2202 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2203
b94a41a1
SC
22042003-02-27 Stephane Carrez <[email protected]>
2205
2206 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2207 (M6812_OP_STS_EXT): Likewise.
2208 (m6811_prologue): Use the above to recognize prologue.
2209 (m6812_prologue): Likewise.
2210
c8be8951
DC
22112003-02-27 David Carlton <[email protected]>
2212
2213 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2214 SYMBOL_PRINT_NAME.
2215 (compare_psymbols): Ditto.
2216 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2217
d05bb1fc
MS
22182003-02-27 Michael Snyder <[email protected]>
2219
4e845cd3
MS
2220 * f-lang.c (build_fortran_types): New function.
2221 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
2222 * doublest.c (extract_floating): Fix warning text.
2223
f3824013
AC
22242003-02-27 Andrew Cagney <[email protected]>
2225
2226 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2227 predicate. Replaces PUSH_DUMMY_FRAME.
2228 * gdbarch.h, gdbarch.c: Regnerate.
2229 * valops.c (hand_function_call): Update. Call
2230 generic_push_dummy_frame directly.
2231 * vax-tdep.c (vax_gdbarch_init): Update.
2232 * sparc-tdep.c (sparc_gdbarch_init): Update.
2233 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2234 * m68k-tdep.c (m68k_gdbarch_init): Update.
2235 * hppa-tdep.c (hppa_gdbarch_init): Update.
2236 * alpha-tdep.c (alpha_gdbarch_init): Update.
2237 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2238 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2239 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2241 push_dummy_frame to generic_push_dummy_frame.
2242 * v850-tdep.c (v850_gdbarch_init): Ditto.
2243 * sh-tdep.c (sh_gdbarch_init): Ditto.
2244 * s390-tdep.c (s390_gdbarch_init): Ditto.
2245 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2246 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2247 * mips-tdep.c (mips_gdbarch_init): Ditto.
2248 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2250 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2251 * i386-tdep.c (i386_gdbarch_init): Ditto.
2252 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2253 * frv-tdep.c (frv_gdbarch_init): Ditto.
2254 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2255 * cris-tdep.c (cris_gdbarch_init): Ditto.
2256 * avr-tdep.c (avr_gdbarch_init): Ditto.
2257 * arm-tdep.c (arm_gdbarch_init): Ditto.
2258
ad188201
KB
22592003-02-26 Kevin Buettner <[email protected]>
2260
2261 * mips-tdep.c (show_mips_abi): New function.
2262 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2263 command ``show mips abi''.
2264
6b37567a
JJ
22652003-02-26 Jeff Johnston <[email protected]>
2266
2267 From Elena Zannoni <[email protected]>
2268 * dbxread.c (process_one_symbol): Only record line 0 if one or
2269 more sline entries have been seen for the function.
2270
d3e0a5bf
MC
22712003-02-26 Michael Chastain <[email protected]>
2272
2273 * configure: Regenerate with autoconf 000227.
2274
18972eea
MC
22752003-02-26 Michael Chastain <[email protected]>
2276
2277 Close PR build/660.
2278 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2279 for old libc5/glibc.
2280 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2281
0bbde931
KW
22822003-02-26 Kris Warkentin <[email protected]>
2283
2284 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2285 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2286
27ca5dad
MC
22872003-02-26 Michael Chastain <[email protected]>
2288
2289 * configure.in: New variable HAVE_UINTPTR_T.
2290 * configure, config.in: Regenerated.
2291
6f88d630
DJ
22922003-02-26 Daniel Jacobowitz <[email protected]>
2293
2294 Fix PR build/1097.
2295 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2296
b14185ce
AC
22972003-02-25 Andrew Cagney <[email protected]>
2298
2299 * frame.c (get_prev_frame): Add comment on check for
2300 inside_entry_func. Only check for inside_entry_file when not a
2301 dummy and not a sentinel. Check that the new frame is not inner
2302 to the old frame.
2303
ac2bd0a9
AC
23042003-02-25 Andrew Cagney <[email protected]>
2305
2306 * frame.c (frame_debug): New variable.
2307 (_initialize_frame): Add "set/show debug frame" command.
2308 (get_prev_frame): When frame_debug, print reason why unwind
2309 failed.
2310
b18a0fd2
MC
23112003-02-25 Michael Chastain <[email protected]>
2312
2313 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2314 to avoid uintptr_t definition problems.
2315
22abf04a
DC
23162003-02-25 David Carlton <[email protected]>
2317
2318 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2319 (SYMBOL_LINKAGE_NAME): Ditto.
2320 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2321 SYMBOL_LINKAGE_NAME.
2322 (struct general_symbol_info): Expand comment.
2323 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2324 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2325 (SYMBOL_MATCHES_REGEXP): Ditto.
2326 * symtab.c (symbol_natural_name): New function.
2327 * objfiles.h: Replace all uses of SYMBOL_NAME by
2328 DEPRECATED_SYMBOL_NAME.
2329 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2330 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2331 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2332 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2333 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2334 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2335 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2336 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2337 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2338 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2339 * ada-exp.y: Ditto.
2340 * ada-exp.y: Update copyright.
2341 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2342 * cp-valprint.c: Ditto.
2343
1a5848f6
JJ
23442003-02-25 Jeff Johnston <[email protected]>
2345
2346 * infptrace.c (detach): Do not flag error if ptrace detach fails
2347 and errno is set to ESRCH.
2348
7343d46a
AC
23492003-02-24 Andrew Cagney <[email protected]>
2350
2351 * infptrace.c (udot_info): Change type of udot_off to long. Use
2352 paddr when printing udot_off's value.
2353
49fa1dc2
DC
23542003-02-24 David Carlton <[email protected]>
2355
2356 * symtab.c (make_symbol_overload_list): Only read in partial
2357 symtabs containing a matching partial symbol.
2358
0fe19209
DC
23592003-02-24 David Carlton <[email protected]>
2360
2361 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2362 do the comparison, not strcmp.
2363 * symfile.c (compare_psymbols): Ditto.
2364 * defs.h: Declare strcmp_iw_ordered.
2365 * utils.c (strcmp_iw_ordered): New function.
2366
8e3ee7b5
JB
23672003-02-24 Jim Blandy <[email protected]>
2368
2369 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2370 support, shared libs): Remove my name from here, to better reflect
2371 reality.
2372
7df1a324
KW
23732003-02-24 Kris Warkentin <[email protected]>
2374
2375 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2376 (target_ops): Add to_have_continuable_watchpoint.
2377 * target.c (update_current_target): Add INHERIT line for
2378 to_have_continuable_watchpoint.
2379 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2380 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2381 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2382 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2383
d1c76907
EZ
23842003-02-24 Elena Zannoni <[email protected]>
2385
2386 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2387 maintainership.
2388
2610b0bf
KW
23892003-02-24 Kris Warkentin <[email protected]>
2390
f46169db
KW
2391 * solib.c (solib_open): Call target defined search function after
2392 failing with solib-search-path.
2393 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2394 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 2395
9a3c34fe
KW
23962003-02-24 Kris Warkentin <[email protected]>
2397
f46169db 2398 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 2399
2417dd25
SC
24002003-02-23 Stephane Carrez <[email protected]>
2401
2402 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2403
b631436b
SC
24042003-02-22 Stephane Carrez <[email protected]>
2405
2406 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2407 (m68hc11_add_reggroups): New function.
2408 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2409 (m68hc11_gdbarch_init): Install the reggroups.
2410 (_initialize_m68hc11_tdep): Initialize them.
2411
0aa8c1e4
JW
24122003-02-21 James E Wilson <[email protected]>
2413
2414 * MAINTAINERS: Update my email address.
2415
50ceaba5
DC
24162003-02-21 David Carlton <[email protected]>
2417
2418 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2419
4c2df51b
DJ
24202003-02-21 Daniel Jacobowitz <[email protected]>
2421
2422 Based on a patch from Daniel Berlin ([email protected]).
2423 * symtab.h: Add opaque declarations of struct axs_value and
2424 struct agent_expr.
2425 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2426 (struct location_funcs): New type.
2427 (struct symbol): Add "loc" to aux_value.
2428 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2429 * dwarf2read.c: Include "dwarf2expr.h".
2430 (dwarf2_symbol_mark_computed): New function.
2431 (read_func_scope): Use it.
2432 (var_decode_location): New function.
2433 (new_symbol): Use it.
2434 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2435
2436 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2437 (dwarf2expr_h, dwarf2loc_h): New variables.
2438 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2439 (dwarf2expr.o, dwarf2loc.o): New rules.
2440 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2441 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2442 LOC_COMPUTED_ARG.
2443 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2444 * m2-exp.y (yylex): Likewise.
2445 * printcmd.c (address_info, print_frame_args): Likewise.
2446 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2447 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2448 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2449 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2450 * symtab.c (lookup_block_symbol): Likewise.
2451
5784d15e
AF
24522003-02-20 Adam Fedor <[email protected]>
2453
2454 * symtab.h: Remove objc_specific struct
2455 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2456 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2457 Have language_objc use cplus_specific struct.
2458
d4cad8db
TT
24592003-02-20 Tom Tromey <[email protected]>
2460
2461 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2462 TYPE_NAME, when printing a String value. PR java/1075.
2463
2f9a90b4
AF
24642003-02-20 Adam Fedor <[email protected]>
2465
d38074a8 2466 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
2467 * objc-lang.c (find_methods): Make static.
2468
6f17862b
CF
24692003-02-20 Christopher Faylor <[email protected]>
2470
2471 * win32-nat.c (get_image_name): Check return value from
2472 ReadProcessMemory.
2473 (child_xfer_memory): Ditto.
2474
715d1656
AO
24752003-02-20 Alexandre Oliva <[email protected]>
2476
2477 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2478 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2479 '${exec_prefix}' (in addition to the expansion thereof) as
2480 relocatable.
2481 * configure: Rebuilt.
2482
b1262a02
DC
24832003-02-20 David Carlton <[email protected]>
2484
2485 * symtab.c (search_symbols): Revert the search_symbols part of my
2486 2002-12-23 patch. Add comment.
2487
7134143f
DJ
24882002-02-20 Daniel Jacobowitz <[email protected]>
2489
2490 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2491 * dbxread.c (elfstab_build_psymtabs): Don't call
2492 install_minimal_symbols.
2493 (stabsect_build_psymtabs): Likewise.
2494 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2495 earlier.
2496 * somread.c (som_symfile_read): Call install_minimal_symbols
2497 and do_cleanups earlier.
2498 * nlmread.c (nlm_symfile_read): Likewise.
2499 * mdebugread.c (elfmdebug_build_psymtabs): Call
2500 install_minimal_symbols and make appropriate cleanups.
2501
cf466558
KB
25022003-02-20 Kevin Buettner <[email protected]>
2503
2504 * solib.c (reload_shared_libraries): New function.
2505 (_initialize_solib): Add callbacks for ``set solib-search-path''
2506 and ``set solib-absolute-prefix''.
2507
de5ad195
DC
25082003-02-20 David Carlton <[email protected]>
2509
2510 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2511 expand comment.
2512 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2513 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2514 * ada-typeprint.c (ada_typedef_print): Ditto.
2515 * ax-gdb.c (gen_var_ref): Ditto.
2516 * breakpoint.c (print_one_breakpoint): Ditto.
2517 * buildsym.c (finish_block): Ditto.
2518 * c-valprint.c (c_val_print): Ditto.
2519 * expprint.c (print_subexp): Ditto.
2520 * findvar.c (locate_var_value): Ditto.
2521 * infcmd.c (jump_command): Ditto.
2522 * linespec.c (decode_line_2, decode_compound): Ditto.
2523 * maint.c (maintenance_translate_address): Ditto.
2524 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2525 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2526 Ditto.
2527 * p-valprint.c (pascal_val_print): Ditto.
2528 * stabsread.c (define_symbol): Ditto.
2529 * stack.c (print_frame, frame_info, print_block_frame_locals)
2530 (print_frame_arg_vars, return_command): Ditto.
2531 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2532 * symmisc.c (print_symbol): Ditto.
2533 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2534 (compare_search_syms, print_symbol_info, print_msymbol_info)
2535 (rbreak_command): Ditto.
2536 * tracepoint.c (tracepoints_info): Ditto.
2537 * typeprint.c (typedef_print): Ditto.
2538 * valops.c (value_of_variable, hand_function_call): Ditto.
2539 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2540 * ada-typeprint.c: Update Copyright.
2541 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2542 * tracepoint.c, cli/cli-cmds.c: Ditto.
2543
f796e4be
KB
25442003-02-20 Kevin Buettner <[email protected]>
2545
2546 * frame.c (generic_unwind_get_saved_register): Make non-static.
2547 * frame.h (generic_unwind_get_saved_register): Declare.
2548 * mips-tdep.c (read_next_frame_reg): Fetch register from
2549 current regcache when frame is NULL.
2550 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2551 that must be NULL.
2552 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2553 instead of frame_register_unwind().
2554
836cc9f4
AC
25552003-02-20 Andrew Cagney <[email protected]>
2556
2557 * remote-sim.c (gdbsim_insert_breakpoint)
2558 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2559 code.
2560
501eef12
AC
25612003-02-20 Andrew Cagney <[email protected]>
2562
2563 * remote.c (_initialize_remote): Add commands "set/show remote
2564 hardware-watchpoint-limit" and "set/show remote
2565 hardware-breakpoint-limit".
2566 (remote_hw_watchpoint_limit): Initialize to -1.
2567 (remote_hw_breakpoint_limit): Ditto.
2568 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2569
1b6bc7e0
CF
25702003-02-19 Raoul Gough <[email protected]>
2571
2572 * coff-pe-read.c: New file - support reading of minimal symbols from a
2573 portable executable using the export table.
2574 * coff-pe-read.h: New file.
2575 * coffread.c: Include coff-pe-read.h.
2576 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2577 debugging symbols found.
2578 * Makefile.in (SFILES): Add coff-pe-read.o.
2579 (coff_pe_read_h): Define.
2580 (COMMON_OBS): Add coff-pe-read.o.
2581 (coffread.o): Add coff_pe_read_h dependency.
2582 (coff-pe-read.o): New target.
2583
fe898f56
DC
25842003-02-19 David Carlton <[email protected]>
2585
2586 * Makefile.in (SFILES): Add block.c.
2587 (block_h): New.
2588 (COMMON_OBS): Add block.o.
2589 (block.o): New.
2590 (x86-64-tdep.o): Add $(block_h).
2591 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2592 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2593 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2594 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2595 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2596 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2597 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2598 * value.h: Add opaque declaration for struct block.
2599 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2600 * ada-lang.h: Ditto.
2601 * x86-64-tdep.c: #include "block.h"
2602 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2603 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2604 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2605 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2606 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2607 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2608 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2609 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2610 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2611 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2612 * symtab.c (block_function): Ditto.
2613 (contained_in): Ditto.
2614 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2615 block.h. Add opaque declaration for struct block.
2616 * symtab.h: Move block_function and contained_in declarations to
2617 block.h. Add opaque declarations for struct block, struct
2618 blockvector.
2619 (struct block): Move to block.h.
2620 (struct blockvector): Ditto.
2621 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2622 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2623 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2624 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2625 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2626 Ditto.
2627 * block.c: New file.
2628 * block.h: New file.
2629
173345b5
TR
26302003-02-19 Theodore A. Roth <[email protected]>
2631
2632 * avr-tdep.c (avr_extract_return_value): Remove function.
2633 (avr_store_return_value): Remove function.
2634 (avr_extract_struct_value_address): Remove function.
2635 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2636
338ef23d
AC
26372003-02-19 Andrew Cagney <[email protected]>
2638
2639 * rs6000-tdep.c: Include "gdb_assert.h".
2640 (registers_e500): Add "acc" and "spefscr".
2641 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2642 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2643 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2644 really is "r0".
2645 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2646
5412f5f3
KS
26472003-02-18 Keith Seitz <[email protected]>
2648
2649 * Makefile.in: Add gdbtk-interps.c.
2650
881324eb
KB
26512003-02-18 Kevin Buettner <[email protected]>
2652
2653 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2654 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2655
6a2f5abf
AC
26562003-02-18 Andrew Cagney <[email protected]>
2657
2658 * symtab.h (struct objfile): Add opaque declaration.
2659
54c7009d
EZ
26602003-02-18 Elena Zannoni <[email protected]>
2661
2662 From Jim Ingham <[email protected]>:
2663 * dbxread.c (process_one_symbol): Use last_function_start rather
2664 than function_start_offset to find the real beginning of the
2665 current function. The latter is just the text section offset on
2666 some systems, the former is always the real function start.
2667
7ee6d7eb
AC
26682003-02-17 Andrew Cagney <[email protected]>
2669
2670 * configure.in: Revert ${target} != ${host}.
2671
2846da9b
AC
26722003-02-17 Andrew Cagney <[email protected]>
2673
2674 * configure.in (Makefile): Use the test ${target} != ${host},
2675 instead of the absence of the "nm.h" file, to determine of the
2676 configuration non-native.
2677 * configure: Regenerate.
2678
3b27aeea
EZ
26792003-02-14 Elena Zannoni <[email protected]>
2680
2681 From Brian Ford <[email protected]>
2682
2683 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2684 conditionalize tui_active test.
2685 (lookup_cmd_1): Ditto.
2686
b0b1c2c0
MK
26872003-02-14 Mark Kettenis <[email protected]>
2688
2689 * configure.in: Add check for _etext.
2690 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2691 available.
2692 * config.in, configure: regenerated.
2693
8f05cde5
DJ
26942003-02-14 Daniel Jacobowitz <[email protected]>
2695
2696 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2697
021e7609
AC
26982003-02-14 Andrew Cagney <[email protected]>
2699
2700 * main.c (tui_version): Delete variable.
2701 (captured_main): When --tui, set interpreter_p to "tui" instead of
2702 enabling tui_version.
2703 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2704 tui_version.
2705 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2706 * cli/cli-cmds.c (disassemble_command): Ditto.
2707 * defs.h (tui_version): Delete declaration.
2708 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2709 (tui-interp.o): Add rules.
2710 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2711
e325dcec
CF
27122003-02-14 Christopher Faylor <[email protected]>
2713
36ffb041 2714 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
2715 just-loaded dll.
2716
c4f90d87
JM
27172003-02-12 Jason Molenda ([email protected])
2718
2719 * symmisc.c (print_objfile_statistics): Include information about
2720 the number of psymtabs and symtabs in each object file.
2721
e46e5ccd
KS
27222003-02-13 Keith R Seitz <[email protected]>
2723
2724 * main.h (struct captured_main_args): Add interpreter_p.
2725 * main.c (captured_main): Initialize interpreter_p from context.
2726 * gdb.c (main): Set interpreter_p argument.
2727 * Makefile.in (gdb.o): Add dependency for interps.h.
2728
fe97fe9c
AC
27292003-02-12 Andrew Cagney <[email protected]>
2730
2731 * event-top.c (cli_command_loop): Delete declaration.
2732 (_initialize_event_loop): Delete function setting event_loop_hook.
2733 * event-top.h (cli_command_loop): Declare. Update copyright.
2734 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2735 * interps.c (current_interp_command_loop): When event_loop_p, call
2736 cli_command_loop.
2737
1cdac4ef
AC
27382003-02-12 Andrew Cagney <[email protected]>
2739
2740 * interps.h (interp_command_loop_ftype): Change return type to
2741 void.
2742
48037ead
ML
27432003-02-12 Michal Ludvig <[email protected]>
2744
2745 * x86-64-tdep.c (x86_64_extract_return_value)
2746 (x86_64_store_return_value): Use regcache instead of regbuf.
2747 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2748 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2749
033afc63
AC
27502003-02-11 Andrew Cagney <[email protected]>
2751
2752 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2753 * aclocal.m4: Regenerate.
2754 * configure: Regenerate.
2755
2756 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2757 TCL_LD_SEARCH_FLAGS.
2758
40d02bca
ML
27592003-02-10 Michal Ludvig <[email protected]>
2760
2761 * dwarf2cfi.c: Reindented.
2762
11308a41
AC
27632003-02-09 Andrew Cagney <[email protected]>
2764
2765 * interps.c (clear_interpreter_hooks): Convert function definition
2766 to ISO C.
2767
e1c1c0f6
DC
27682003-02-07 David Carlton <[email protected]>
2769
2770 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2771
ab5d3da6
KB
27722003-02-07 Kevin Buettner <[email protected]>
2773
2774 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2775 (struct type): ...to here.
2776 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2777 field.
2778 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2779 (replace_type): Set length on all type variants for a given type.
2780
b8a92b82
AC
27812003-02-07 Andrew Cagney <[email protected]>
2782
2783 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2784 <sys/stat.h>.
2785 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2786
5cb316ef
AC
27872003-02-06 Andrew Cagney <[email protected]>
2788
2555fe1a
AC
2789 * Makefile.in (symm-nat.o): Update dependencies.
2790 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2791 (lynx-nat.o, ia64-linux-nat.): Ditto.
2792 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2793 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2794 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2795
44270758
AC
2796 * Makefile.in (inflow_h): Define.
2797 (procfs.o, inflow.o, procfs.o): Update dependencies.
2798 * inftarg.c (child_stop): Delete extern declaration of
2799 inferior_process_group. Include "inflow.h".
2800 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2801 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2802 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2803 (our_process_group, inferior_process_group): Extern declarations.
2804
df8f7274
AC
2805 * procfs.c: Include "gdb_assert.h".
2806
5cb316ef
AC
2807 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2808 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2809 * jv-typeprint.c (java_type_print_base): Ditto.
2810 * typeprint.c (typedef_print): Eliminate STREQ.
2811 * cli/cli-script.c (define_command, define_command): Ditto.
2812 * main.c (captured_main): Ditto.
2813 * values.c (lookup_internalvar): Ditto.
2814 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2815 within `if' conditional.
2816 * linespec.c (decode_line_2): Ditto.
2817 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2818 (bfd_openw_with_cleanup): Ditto.
2819
2a28ccea
MK
28202003-02-07 Mark Kettenis <[email protected]>
2821
2822 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2823 legacy_extract_return_value and store_return_value to
2824 legacy_return_value.
2825
786b8124
CF
28262003-02-06 Raoul Gough <[email protected]>
2827
2828 * win32-nat.c (get_relocated_section_addrs): New function. Find
2829 section load addresses for symbol handling in relocated DLLs.
2830 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2831
b871e4ec
FF
28322003-02-05 Fred Fish <[email protected]>
2833
2834 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2835 '=' and '!='.
2836 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2837 with '&' and '=='.
2838 (angel_RDI_info): Ditto.
2839 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2840 with '&' and '!='.
2841 (threads_continue_all_with_signals): Ditto.
2842
4389a95a
AC
28432003-02-05 Jim Ingham <[email protected]>
2844 Keith Seitz <[email protected]>
2845 Elena Zannoni <[email protected]>
2846 Andrew Cagney <[email protected]>
2847
2848 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2849 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2850 (SUBDIR_MI_OBS): Add "mi-interp.o".
2851 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2852 (SFILES): Add "interps.c".
2853 (COMMON_OBS): Add "interps.o".
2854 (interps_h, mi_main_h): Define.
2855 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2856 (mi-main.o, main.o, event-top.o): Update dependencies.
2857 * cli/cli-interp.c: New file.
2858 * interps.h, interps.c: New files.
2859 * top.c: (gdb_init): Don't install the default interpreter, handed
2860 by captured_main.
2861 * main.c: Include "interps.h".
2862 (interpreter_p): Note that it should malloc'ed.
2863 (captured_command_loop): Call current_interp_command_loop.
2864 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2865 xfree and xstrdup when updating interpreter_p. Install the
2866 default interpreter. Add hack to stop mi1's copyright notice
2867 being encoded.
2868 * event-top.h (gdb_setup_readline): Declare.
2869 (gdb_disable_readline): Declare.
2870 * event-top.c: Include "interps.h".
2871 (display_gdb_prompt): Call current_interp_display_prompt_p.
2872 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2873 gdb_stdlog, and gdb_stdtarg.
2874 (_initialize_event_loop): Don't call gdb_setup_readline.
2875 * cli-out.c (cli_out_set_stream): New function.
2876 * cli-out.h (cli_out_set_stream): Declare.
2877
ff3b5810
MK
28782003-02-06 Mark Kettenis <[email protected]>
2879
2880 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2881 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2882 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2883 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2884 config/i386/i386v42mp.mt: Removed.
2885
5b729aa5
MK
28862003-02-05 Mark Kettenis <[email protected]>
2887
2888 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2889 GDB_OSABI_SOLARIS.
2890
8cc15142
MC
28912003-02-05 Michael Chastain <[email protected]>
2892
2893 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2894 2.12.1 and earlier versions.
2895
5aa5d4b9
AC
28962003-02-05 Andrew Cagney <[email protected]>
2897
2898 Remove orphaned hosts, targets and files.
2899 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2900 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2901 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2902 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2903 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2904 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2905 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2906 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2907 * config/sparc/tm-sp64sim.h: Delete.
2908 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2909 hosts.
2910 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2911 mips*-dec-mach3* targets.
2912
b68767c1
MC
29132003-02-04 Michael Chastain <[email protected]>
2914
2915 * NEWS: Fix typo: sepcifying -> specifying.
2916
5ae7ca1d
MC
29172003-02-04 Michael Chastain <[email protected]>
2918
2919 * dwarfread.c: Add documentation on the state of dwarf-1,
2920 looking towards obsoletion.
2921
d08a4280
MC
29222003-02-03 Michael Chastain <[email protected]>
2923
2924 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2925 gdb/testsuite/gdb.c++/pr-1023.exp.
2926
e9be73e4
AC
29272003-02-04 Andrew Cagney <[email protected]>
2928
2929 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2930 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2931
2932 * utils.c (init_page_info): Delete reference to MPW in comments.
2933 * main.c (captured_main): Delete #ifdef MPW.
2934
05d57f6f
AC
29352003-02-04 Andrew Cagney <[email protected]>
2936
2937 * NEWS: Note that the m32r-*-elf* is obsolete.
2938 * monitor.c (monitor_expect): Obsolete reference to m32r.
2939 * configure.tgt: Mark m32r-*-elf* as obsolete.
2940 * MAINTAINERS: Mark m32k as obsolete.
2941 * m32r-rom.c: Obsolete file.
2942 * config/m32r/m32r.mt: Obsolete file.
2943 * config/m32r/tm-m32r.h: Obsolete file.
2944 * m32r-stub.c: Obsolete file.
2945 * m32r-tdep.c: Obsolete file.
2946
8b0e5691
AC
29472003-02-04 Andrew Cagney <[email protected]>
2948
2949 * NEWS: Mention that the z8k-zilog-none is obsolete.
2950 * MAINTAINERS: Mark z8k as obsolete.
2951 * configure.tgt: Obsolete the z8k-*-coff* target.
2952 * config/z8k/z8k.mt: Obsolete file.
2953 * config/z8k/tm-z8k.h: Obsolete file.
2954 * z8k-tdep.c: Obsolete file.
2955
67f16606
AC
29562003-02-04 Andrew Cagney <[email protected]>
2957
2958 * NEWS: Mention that the mn10200-elf is obsolete.
2959 * configure.tgt: Obsolete mn10200-*-* target.
2960 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2961 mention that the mn10200 is obsolete.
2962 * breakpoint.h: Ditto.
2963 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2964 * config/mn10200/mn10200.mt: Obsolete file.
2965 * config/mn10200/tm-mn10200.h: Obsolete file.
2966 * mn10200-tdep.c: Obsolete file.
2967
fd2299bd
AC
29682003-02-04 Andrew Cagney <[email protected]>
2969
2970 * MAINTAINERS: Mark h8500 as obsolete.
2971 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2972 * findvar.c (value_from_register): Ditto.
2973 * h8500-tdep.c: Mark file as obsolete.
2974 * config/h8500/h8500.mt: Ditto.
2975 * config/h8500/tm-h8500.h: Ditto.
2976 * NEWS: Mention that h8500 is obsolete.
2977
eb9a305d
DC
29782003-02-04 David Carlton <[email protected]>
2979
2980 * objfiles.c (allocate_objfile): Always set name. Add comment at
2981 start of function.
2982 * jv-lang.c (get_dynamics_objfile): Add comment.
2983
406fc7fb
DC
29842003-02-04 David Carlton <[email protected]>
2985
2986 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2987 * printcmd.c (build_address_symbolic): Replace uses of
2988 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2989 SYMBOL_NAME, and asm_demangle.
2990 Update copyright.
2991
93d91629
DC
29922003-02-04 David Carlton <[email protected]>
2993
2994 * linespec.c (decode_compound): Extract code into
2995 lookup_prefix_sym.
2996 (lookup_prefix_sym): New function.
2997
1c5cb38e
DC
29982003-02-04 David Carlton <[email protected]>
2999
3000 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3001 FLOAT_COERCION_BADNESS.
3002 * gdbtypes.c (rank_one_type): Replace all uses of
3003 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3004
0cf824c9
JB
30052003-02-04 Jim Blandy <[email protected]>
3006
3007 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3008 section, let dwarf_macinfo_section point to it, not
3009 dwarf_loc_section.
3010
a2d356b0
DJ
30112003-02-04 Daniel Jacobowitz <[email protected]>
3012
3013 Pointed out by Anton Blanchard <[email protected]>.
3014 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3015 (ppc_linux_at_sigtramp_return_path): Use it.
3016
2de7ced7
DJ
30172003-02-04 Daniel Jacobowitz <[email protected]>
3018
3019 * defs.h (streq): Add prototype.
3020 * utils.c (streq): New function.
3021
3022 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3023 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3024 * mdebugread.c (new_symbol): Likewise.
3025 * stabsread.c (define_symbol): Likewise.
3026 * coffread.c (process_coff_symbol): Likewise.
3027 * dwarfread.c (new_symbol): Likewise.
3028
3029 * minsyms.c (prim_record_minimal_symbol_and_info): Use
3030 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
3031 here.
3032 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3033 SYMBOL_INIT_DEMANGLED_NAME.
3034 * objfiles.c: Include "hashtab.h".
3035 (allocate_objfile): Call htab_set_functions_ex for the
3036 demangled_names_hash.
3037 (free_objfile): Call htab_delete for the demangled_names_hash.
3038 * objfiles.h (struct htab): Add declaration.
3039 (struct objfile): Add demangled_names_hash.
3040 * symfile.c: Include "hashtab.h".
3041 (reread_symbols): Call htab_delete for the demangled_names_hash.
3042 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3043 SYMBOL_NAME in the bcache.
3044 * symtab.c: Include "hashtab.h". Update comments.
3045 (create_demangled_names_hash, symbol_set_names): New functions.
3046 (symbol_find_demangled_name): New function, broken out from
3047 symbol_init_demangled_names.
3048 (symbol_init_demangled_names): Use it.
3049 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3050 (SYMBOL_SET_NAMES): New macro.
3051 (symbol_set_names): Add prototype.
3052
15831452
JB
30532003-02-03 Jim Blandy <[email protected]>
3054
3055 Use a single, consistent representation for an empty minimal
3056 symbol table in an objfile.
3057 * objfiles.c (terminate_minimal_symbol_table): New function.
3058 (allocate_objfile): Call it.
3059 * objfiles.h (terminate_minimal_symbol_table): New declaration.
3060 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3061 non-NULL.
3062 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3063 objfile has minimal symbols, compare minimal_symbol_count to zero,
3064 instead of comparing msymbols with NULL.
3065 * objfiles.c (have_minimal_symbols): Same.
3066 * solib-sunos.c (solib_add_common_symbols): Call
3067 terminate_minimal_symbol_table.
3068 * symfile.c (reread_symbols): Same.
3069
ffc65945
KB
30702003-02-03 Kevin Buettner <[email protected]>
3071
3072 * s390-tdep.c (s390_address_class_type_flags)
3073 (s390_address_class_type_flags_to_name)
3074 (s390_address_class_name_to_type_flags): New functions.
3075 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3076 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3077
f211c6d4
MS
30782003-02-03 Michael Snyder <[email protected]>
3079
3080 * arm-tdep.c: Fix spell-o in comment.
3081
659b0389
ML
30822003-02-03 Michal Ludvig <[email protected]>
3083
3084 * dwarf2cfi.c (pointer_encoding): Added new parameter.
3085 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3086 error messages to contain BFD filename.
3087
3b31d625
EZ
30882003-02-02 Elena Zannoni <[email protected]>
3089
997b089a 3090 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
3091 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3092 (do_mixed_source_and_assembly): Use
3093 make_cleanup_ui_out_tuple_begin_end and
3094 make_cleanup_ui_out_tuple_begin_end.
3095 (do_mixed_source_and_assembly): Ditto.
3096 * thread.c (do_captured_list_thread_ids): Ditto.
3097 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3098 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3099 ui_out_tuple_end): Delete prototypes.
3100 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3101 ui_out_list_end, ui_out_tuple_end): Delete.
3102
3103 From Kevin Buettner <[email protected]>:
3104 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3105 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3106 (do_cleanup_table_end): New functions.
3107 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3108 Use cleanups to invoke_ui_out_tuple_end().
3109 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3110 * cli/cli-setshow.c (cmd_show_list): Use
3111 make_cleanup_ui_out_tuple_begin_end.
3112
5b181d62
AC
31132003-02-02 Andrew Cagney <[email protected]>
3114
3115 * frame.c (frame_unwind_register): New function.
3116 (frame_unwind_unsigned_register): Use.
3117 (frame_unwind_signed_register): Use.
3118 (frame_read_register): New function.
3119 * frame.h (frame_unwind_register): Declare.
3120 (frame_read_register): Declare.
3121
3122 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3123 and frame_unwind_register instead of read_memory, write_register
3124 and deprecated_write_register_bytes.
3125
5f601589
AC
31262003-02-02 Andrew Cagney <[email protected]>
3127
3128 * frame.h: Note that namelen can be negative.
3129 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3130 NAME's length.
3131
3132 * NEWS: Mention that the d10v's `regs' command is deprecated.
3133 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3134 (d10v_print_registers_info): New function.
3135 (show_regs): Call d10v_print_registers_info.
3136 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3137
6a3fe0a4
MK
31382003-02-02 Mark Kettenis <[email protected]>
3139
3140 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3141 lost in the previous patch.
3142
075559bc
AC
31432003-02-01 Andrew Cagney <[email protected]>
3144
3145 From 2002-11-09 Jason Molenda ([email protected])
3146 * stack.c (print_frame_info_base): Output complete FRAME tuple
3147 for synthesized frames.
3148
6789195b
AC
31492003-02-02 Andrew Cagney <[email protected]>
3150
3151 * mips-nat.c (zerobuf): Delete.
3152 (fetch_inferior_registers): Alloc local zerobuf.
3153 (fetch_core_registers): Alloc local zerobuf.
3154 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3155 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3156 * thread-db.c (thread_db_store_registers): Ditto.
3157 * sh-tdep.c (sh_do_register): Ditto.
3158 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3159 * remote-sim.c (gdbsim_store_register): Ditto.
3160 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3161 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3162 * monitor.c (monitor_supply_register): Ditto.
3163 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3164 * mips-nat.c (fetch_inferior_registers): Ditto.
3165 * m68klinux-nat.c (fetch_register): Ditto.
3166 * lynx-nat.c (fetch_inferior_registers): Ditto.
3167 (fetch_inferior_registers): Ditto.
3168 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3169 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3170 (hpux_thread_store_registers): Ditto.
3171 * hppah-nat.c (fetch_register): Ditto.
3172 * hppab-nat.c (fetch_register): Ditto.
3173 * hppa-tdep.c (pa_register_look_aside): Ditto.
3174 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3175 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3176
e669114a
AC
31772003-02-01 Andrew Cagney <[email protected]>
3178
3179 * gdbarch.sh: Explictly specify all method levels. When a
3180 variable with an empty level, provide a non-multi-arch default.
3181 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3182 * gdbarch.h: Re-generate.
3183 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3184 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3185
9a043c1d
AC
31862003-02-01 Andrew Cagney <[email protected]>
3187
3188 * defs.h (host_pointer_to_address): Delete declaration.
3189 (address_to_host_pointer): Delete declaration.
3190 * utils.c (host_pointer_to_address): Delete function.
3191 (address_to_host_pointer): Delete function.
3192 * procfs.c (procfs_address_to_host_pointer): New function.
3193 * procfs.c (proc_set_watchpoint): Use.
3194 (procfs_can_use_hw_breakpoint): Update comments.
3195 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3196 (som_solib_add): Use.
3197 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3198 * hppa-tdep.c (unwind_command): Use.
3199
7ca9f392
AC
32002003-02-01 Andrew Cagney <[email protected]>
3201
94bbfd30
AC
3202 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3203 strlen d_name.
3204
7ca9f392
AC
3205 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3206 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3207 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3208 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3209 (define_symbol): Update.
3210 * symfile.c (generic_load): Remove references to nindy.
3211 * symtab.c: Remove references to nindy.
3212
31a85ea2
AC
32132003-02-01 Andrew Cagney <[email protected]>
3214
3215 * infcmd.c (print_float_info): Delete code conditional on
3216 FLOAT_INFO.
3217 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3218 * config/m68k/nm-apollo68b.h: Ditto.
3219 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3220 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3221 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3222
f6e85fc8
MK
32232003-02-01 Mark Kettenis <[email protected]>
3224
6015b6a0
MK
3225 * config/i386/tm-i386os9k.h: Removed.
3226
f7a30bdf
MK
3227 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3228 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3229 they're identical to i[3456]86-*-sysv* now.
3230 * config/i386/i386v32.mh: Removed.
3231 * config/i386/xm-i386v32.h: Removed.
3232 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3233
28d52111
MK
3234 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3235
4d3f6bce
MK
3236 * config/i386/i386dgux.mh: Removed.
3237 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3238
f6e85fc8
MK
3239 * configure.in: Fix typo.
3240 * configure: Regenerated.
3241
53955967
DC
32422003-01-31 David Carlton <[email protected]>
3243
3244 * dwarf2read.c (dwarf2_locate_sections): Set
3245 dwarf_ranges_section.
3246
b1364885
AC
32472003-01-31 Andrew Cagney <[email protected]>
3248
8dbb1c65
AC
3249 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3250 * utils.c: Update comments documenting legitimate uses of PTR.
3251
8731e58e
AC
3252 * utils.c: Re-indent.
3253
b1364885
AC
3254 * config/djgpp/fnchange.lst: Delete nindy files.
3255 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3256 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3257 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3258 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3259 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3260 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3261 * Makefile.in (init.c): Remove nindy references.
3262 (saber_gdb): Delete rule.
3263 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3264 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3265 and a68v-nat.c.
3266 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3267 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3268 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3269 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3270 nindy-share/stop.h.
3271 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3272 * saber.suppress: Delete file.
3273
086df311
DJ
32742003-01-31 Daniel Jacobowitz <[email protected]>
3275
3276 * dbxread.c (stabs_data): New static variable.
3277 (fill_symbuf): Support an in-memory buffer for stabs data.
3278 (stabs_seek): New function.
3279 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3280 (read_ofile_symtab): Use stabs_seek.
3281 (elfstab_build_psymtabs): Take an asection* instead of
3282 an offset and size. Relocate the stabs data if necessary.
3283 Save the section* for dbx_psymtab_to_symtab.
3284 * dwarf2read.c: Add section variables for each debug section.
3285 (dwarf2_locate_sections): Fill them in.
3286 (dwarf2_read_section): Take an asection* argument.
3287 Relocate the section contents if necessary.
3288 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3289 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3290 it to dwarf2_read_section.
3291 (dwarf2_build_frame_info): Update callers.
3292 * elfread.c (elf_symfile_read): Update call to
3293 elfstab_build_psymtabs.
3294 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3295 (DBX_STAB_SECTION): New macro.
3296 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3297 * symfile.c (symfile_dummy_outputs): New function.
3298 (symfile_relocate_debug_section): New function.
3299 * symfile.h (symfile_relocate_debug_section): Add prototype.
3300
87d1b352
RH
33012003-01-31 Richard Henderson <[email protected]>
3302
3303 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3304 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3305 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3306 * alpha-tdep.c (alpha_register_name): Add "unique".
3307 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3308 (ALPHA_UNIQUE_REGNUM): New.
3309 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3310
c48861fb
AC
33112003-01-31 Andrew Cagney <[email protected]>
3312
3313 * README: Remove reference to Ericsson 1800 monitor.
3314 * Makefile.in (remote-es.o): Delete rule.
3315 (ALLDEPFILES): Delete remote-es.c.
3316 * remote-es.c: Delete file.
3317 * config/m68k/es1800.mt: Delete file.
3318 * config/djgpp/fnchange.lst: Update.
3319 * configure.tgt: Delete m68*-ericsson-* target.
3320
d764a824
AF
33212003-01-31 Adam Fedor <[email protected]>
3322
3323 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3324 Remove duplicate/shadowing variable of same name.
3325
fe36c4f4
JB
33262003-01-30 Jim Blandy <[email protected]>
3327
3328 * symfile.c (find_separate_debug_file): Assert that the objfile's
3329 directory name we compute ends with a slash, and then assume that
3330 that's so everywhere we use it.
3331
cb741690
DJ
33322003-01-30 Daniel Jacobowitz <[email protected]>
3333
3334 * valops.c (value_assign): Flush frame cache after stores to memory
3335 also.
3336
96ee5227
AC
33372003-01-30 Andrew Cagney <[email protected]>
3338
3339 * Makefile.in (mon960-rom.o): Delete rule.
3340 * mon960-rom.c: Delete file.
3341
7f6104a9
AC
33422003-01-30 Andrew Cagney <[email protected]>
3343
3344 * d10v-tdep.c: Include "frame-unwind.h".
3345 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3346 list.
3347 (next_addr, uses_frame): Delete.
3348 (struct d10v_unwind_cache): Define.
3349 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3350 Use info instead of next_addr and uses_frame globals.
3351 (d10v_frame_init_saved_regs): Delete function.
3352 (d10v_init_extra_frame_info): Delete function.
3353 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3354 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3355 init_frame_pc or frame_saved_pc.
3356 (d10v_pop_frame): Delete function.
3357 (do_d10v_pop_frame): Delete function.
3358 (d10v_frame_chain): Delete function.
3359 (d10v_frame_chain_valid): Delete function.
3360 (d10v_frame_pc_unwind): New function.
3361 (d10v_frame_id_unwind): New function.
3362 (saved_regs_unwinder): New function.
3363 (d10v_frame_register_unwind): New function.
3364 (d10v_frame_pop): New function.
3365 (d10v_frame_unwind): New variable.
3366 (d10v_frame_p): New function.
3367 (d10v_frame_saved_pc): Delete function.
3368 * Makefile.in (d10v-tdep.o): Update dependencies.
3369
cad2e848
JB
33702003-01-30 J. Brobecker <[email protected]>
3371
3372 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3373 causing some regressions due to a change in the default value
3374 for this macro.
3375
af34e669
DJ
33762003-01-29 Richard Henderson <[email protected]>
3377 Elena Zannoni <[email protected]>
3378 Daniel Jacobowitz <[email protected]>
3379
3380 Fix PR gdb/961.
3381 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3382 variables.
3383 (RANGES_SECTION): New.
3384 (dwarf_ranges_buffer): New variable.
3385 (struct comp_unit_head): Add member "die".
3386 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3387 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3388 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3389 (dwarf2_locate_sections): Likewise.
3390 (dwarf2_build_psymtabs): Read .debug_ranges.
3391 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3392 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3393 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3394 Look for DW_AT_ranges and return the bounding box.
3395
baa93fa6
CF
33962003-01-29 Brian Ford <[email protected]>
3397
3398 * win32-nat.c (cygwin_pid): Removed as unused.
3399 (child_attach): Try fall back to Cygwin pid.
3400
c63f977f
JB
34012003-01-29 Jim Blandy <[email protected]>
3402
3403 * objfiles.h (struct objfile): Doc fix.
3404
d62d1979
AC
34052003-01-29 Andrew Cagney <[email protected]>
3406
3407 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3408 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3409 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3410 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3411 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3412 (FRAME_SAVED_PC): Change to a function with predicate.
3413 * gdbarch.h, gdbarch.c: Re-generate.
3414
1ae18a04
AC
34152003-01-28 Andrew Cagney <[email protected]>
3416
52287340
AC
3417 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3418
1ae18a04
AC
3419 * complaints.c (complain): Delete function.
3420 * complaints.h (struct deprecated_complaint): Delete definition.
3421 (complain): Delete declaration.
3422
f2c16bd6
KB
34232003-01-28 Kevin Buettner <[email protected]>
3424
3425 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3426 dummy frames.
3427
a94dd1fd
AC
34282003-01-27 Andrew Cagney <[email protected]>
3429
3430 * sentinel-frame.h, sentinel-frame.c: New files.
3431 * Makefile.in (frame.o): Update dependencies.
3432 (SFILES): Add sentinel-frame.c.
3433 (sentinel_frame_h): Define.
3434 (COMMON_OBS): Add sentinel-frame.o.
3435 (sentinel-frame.o): Specify dependencies.
3436 * frame.c: Include "sentinel-frame.h".
3437 (frame_register_unwind): Rewrite assuming that there is always a a
3438 ->next frame.
3439 (frame_register, generic_unwind_get_saved_register): Ditto.
3440 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3441 (create_sentinel_frame, unwind_to_current_frame): New functions.
3442 (get_current_frame): Rewrite using create_sentinel_frame and
3443 unwind_to_current_frame. When possible, always create a frame.
3444 (create_new_frame): Set next to the sentinel frame.
3445 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3446 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3447 ID cache when necessary.
3448 (frame_saved_regs_id_unwind): Use frame_relative_level.
3449 (deprecated_generic_get_saved_register): Use frame_relative_level,
3450 get_frame_saved_regs, get_frame_pc, get_frame_base and
3451 get_next_frame.
3452 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3453 frame_register.
3454
5378adc4
DJ
34552003-01-27 Daniel Jacobowitz <[email protected]>
3456
3457 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3458
51ee2ddc
DJ
34592003-01-27 Daniel Jacobowitz <[email protected]>
3460
3461 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3462 (maintenance_set_profile_cmd): Use error () instead of warning ().
3463
d9feb4e7
DJ
34642003-01-27 Daniel Jacobowitz <[email protected]>
3465
3466 * configure.in: Check that -pg works if using --enable-profiling.
3467 Check for monstartup and _mcleanup regardless of --enable-profiling.
3468 * maint.c: Check for monstartup and _mcleanup before using them.
3469 * config.in: Regenerated.
3470 * configure: Regenerated.
3471
2d188dd3
NC
34722003-01-24 Nick Clifton <[email protected]>
3473
3474 * Add sh2e support:
3475
3476 2002-04-02 Elena Zannoni <[email protected]>
3477
3478 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3479 (sh2e_show_regs): New.
3480 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3481 * config/sh/tm-sh.h: Added sh2e to comments.
3482
cb3c37b2
JB
34832003-01-23 Jim Blandy <[email protected]>
3484
3485 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3486 symbols found)" message here; we haven't checked for a separate
3487 debug info file yet, so we don't know yet.
3488 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3489 we've looked everywhere. Also, there's no need to print a special
3490 message when we're loading the separate debug info file: the one
3491 symbol_file_add prints is fine.
3492
5b5d99cf
JB
34932003-01-23 Alexander Larsson <[email protected]>
3494 Jim Blandy <[email protected]>
3495
3496 Add support for executables whose debug info has been separated
3497 out into a separate file, leaving only a link behind.
3498 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3499 and separate_debug_objfile_backlink.
3500 (put_objfile_before): New declaration.
3501 * symfile.c: #include "filenames.h".
3502 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3503 debug info in a separate file, read that, too. Save the addrs
3504 argument, so we can use it again to read the separated debug info;
3505 syms_from_objfile modifies the table we pass it.
3506 (reread_symbols): After re-reading an objfile, call
3507 reread_separate_symbols to refresh its separate debug info
3508 objfile, if it has one.
3509 (reread_separate_symbols, find_separate_debug_file,
3510 get_debug_link_info, separate_debug_file_exists): New functions.
3511 (debug_file_directory): New global var.
3512 (_initialize_symfile): Initialize debug_file_directory, and
3513 provide the new `set debug-file-directory' command to let the user
3514 change it.
3515 * objfiles.c (free_objfile): If this objfile has its debug info in
3516 a separate objfile, free that one too. If this is itself a
3517 separate debug info objfile, clear our parent's backlink.
3518 (put_objfile_before): New function.
3519 * utils.c (gnu_debuglink_crc32): New function.
3520 * defs.h (gnu_debuglink_crc32): New declaration.
3521 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3522 * configure.in: Handle --with-separate-debug-dir config option.
3523 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3524 * acconfig.h (DEBUGDIR): New macro.
3525 * configure, aclocal.m4, config.in: Regenerated.
3526
7e8580c1
JB
35272003-01-22 Jim Blandy <[email protected]>
3528
7904e09f
JB
3529 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3530 like the old symbol_file_add, but taking new arguments: you can
3531 now pass in either a `struct section_addr_info' list to say where
3532 each section is loaded, or a `struct section_offsets' table. Pass
3533 these new arguments through to syms_from_objfile as appropriate.
3534 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3535 with the appropriate quiescent values for the new arguments.
3536
7e8580c1
JB
3537 * symfile.c: #include "gdb_assert.h".
3538 (syms_from_objfile): Add the ability to pass in a section offset
3539 table directly, as an alternative to the section_addr_info table.
3540 Document arguments better.
3541 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3542 * symfile.h (syms_from_objfile): Update declaration.
3543 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3544 syms_from_objfile.
3545 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3546
d28f9cdf
DJ
35472003-01-22 Daniel Jacobowitz <[email protected]>
3548
3549 Original patch by Tom Tromey <[email protected]> and
3550 Jason Molenda <[email protected]>.
3551 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3552 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3553 * NEWS: Mention profiling.
3554 * configure.in (--enable-gdbtk): Fix typo.
3555 (--enable-profiling): New. Set PROFILE_CFLAGS.
3556 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3557 Fill in function.
3558 (profiling_state): New variable.
3559 (mcleanup_wrapper): New function.
3560 (_initialize_maint): Remove NOTYET, fix call to
3561 add_setshow_boolean_cmd for "maint set profile".
3562 * configure: Regenerated.
3563
df21e465
MH
35642003-01-21 Martin M. Hunt <[email protected]>
3565
3566 * Makefile.in (install-gdbtk): Install PNG images too.
3567
73c1f219
AC
35682003-01-21 Andrew Cagney <[email protected]>
3569
3570 * exec.c (text_start): Delete global variable.
3571 (exec_file_attach): Make text_start local to the function.
3572 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3573 * valops.c (hand_function_call): Delete code that handles
3574 BEFORE_TEXT_END and AFTER_TEXT_END.
3575 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3576 of CALL_DUMMY_LOCATION.
3577 * gdbarch.c: Regenerate.
3578 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3579 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3580 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3581 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3582 (text_end): Delete extern declaration.
3583
eb4f72c5
AC
35842003-01-21 Andrew Cagney <[email protected]>
3585
3586 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3587 * blockframe.c (backtrace_below_main): Move to "frame.c".
3588 (frame_chain_valid): Delete check for backtrace_below_main.
3589 (_initialize_blockframe): Delete initialization, move ``set
3590 backtrace-below-main'' command to "frame.c".
3591 (do_flush_frames_sfunc): Delete function.
3592 * frame.c: Include "command.h" and "gdbcmd.h".
3593 (frame_type_from_pc): New function.
3594 (create_new_frame): Use frame_type_from_pc.
3595 (legacy_get_prev_frame): New function.
3596 (get_prev_frame): Rewrite. When an old style frame, call
3597 legacy_get_prev_frame. Otherwize, unwind the PC first.
3598 (_initialize_frame): Add ``set backtrace-below-main'' command.
3599 * Makefile.in (frame.o): Update dependencies.
3600
778ce8cc
AC
36012003-01-19 Andrew Cagney <[email protected]>
3602
3603 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3604 DEPRECATED_REGISTERS_INFO.
3605
01c193c8
AC
36062003-01-19 Andrew Cagney <[email protected]>
3607
3608 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3609 Maintainers'. Update `Various Maintainers'.
3610
dedc2a2b
AC
36112003-01-19 Andrew Cagney <[email protected]>
3612
3613 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3614 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3615 Suppress actual parameters when `-'.
3616 * gdbarch.h, gdbarch.c: Regenerate.
3617
b7261c70
AC
36182003-01-19 Andrew Cagney <[email protected]>
3619
3620 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3621 code handling dummy frames.
3622
dbe9fe58
AC
36232003-01-19 Andrew Cagney <[email protected]>
3624
3625 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3626 (struct frame_unwind): Add field pop.
3627 * frame.h (frame_pop): Declare.
3628 * frame.c (frame_saved_regs_pop): New function.
3629 (trad_frame_unwinder): Add frame_saved_regs_pop.
3630 (frame_pop): New function.
3631 * dummy-frame.c (dummy_frame_pop): New function.
3632 (discard_innermost_dummy): New function.
3633 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3634 (dummy_frame_unwind): Add dummy_frame_pop.
3635 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3636 * valops.c (hand_function_call): Ditto.
3637 * stack.c (return_command): Ditto.
3638
570b8f7c
AC
36392003-01-18 Andrew Cagney <[email protected]>
3640
3641 * cris-tdep.c: Fix function declaration indentation.
3642 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3643 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3644 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3645 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3646 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3647 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3648
36492003-01-18 Michael Chastain <[email protected]>
eaec4d85
MC
3650
3651 * README (Unpacking and Installation -- quick overview):
3652 Warn against ".../gdb-5.3/gdb/configure".
3653
494cca16
AC
36542003-01-18 Andrew Cagney <[email protected]>
3655
3656 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3657 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3658 (struct frame_unwind): Declare opaque.
3659 (dummy_frame_p): Declare function.
3660 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3661 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3662 * dummy-frame.c: Include "frame-unwind.h".
3663 (dummy_frame_p): New function.
3664 (dummy_frame_unwind): New variable.
3665 * frame.c: Include "frame-unwind.h".
3666 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3667 to use the new unwind field.
3668 (set_unwind_by_pc): Delete function.
3669 (create_new_frame, get_prev_frame): Set unwind field using
3670 frame_unwind_find_by_pc.
3671 (trad_frame_unwind, trad_frame_unwinder): New variables.
3672 * frame.h (trad_frame_unwind): Declare variable.
3673 (frame_id_unwind_ftype): Delete declaration.
3674 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3675 (struct frame_unwind): Declare opaque.
3676 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3677 register_unwind with a single unwind pointer.
3678 * frame-unwind.h, frame-unwind.c: New files.
3679 * Makefile.in (SFILES): Add frame-unwind.c.
3680 (frame_unwind_h): Define.
3681 (COMMON_OBS): Add frame-unwind.o.
3682 (frame-unwind.o): Specify dependencies.
3683 (frame.o, dummy-frame.o): Update dependencies.
3684
4efb68b1
AC
36852003-01-18 Andrew Cagney <[email protected]>
3686
3687 * ada-valprint.c: Eliminate PTR.
3688 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3689 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3690 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3691 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3692 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3693 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3694 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3695
a84d24ee
AC
36962003-01-17 Andrew Cagney <[email protected]>
3697
762f08a3
AC
3698 * main.c (captured_main): Don't use PTR.
3699 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3700 * gdbtypes.c (lookup_primitive_typename): Ditto.
3701 (lookup_struct_elt_type): Ditto.
3702 * f-valprint.c (info_common_command): Ditto.
3703 (list_all_visible_commons): Ditto.
3704 * jv-typeprint.c (java_type_print_base): Ditto.
3705
a84d24ee
AC
3706 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3707 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3708 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3709 i386-interix-nat.c and i386-interix-tdep.c. Rename
3710 m68klinux-nat.c and m68klinux-tdep.c. Rename
3711 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3712 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3713 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3714 * main.c (captured_main): Use xfree, not free.
3715
c170fb60
AC
37162003-01-16 Andrew Cagney <[email protected]>
3717
3718 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3719 ID back using a parameter.
3720 * frame.c (frame_id_unwind): Update call.
3721 (frame_saved_regs_id_unwind): Update.
3722 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3723 * dummy-frame.h (struct frame_id): Add opaque declaration.
3724 (dummy_frame_id_unwind): Update declaration.
3725
867f3898
AC
37262003-01-15 Andrew Cagney <[email protected]>
3727
3728 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3729
40622be8 37302003-01-15 Stephen P. Smith <[email protected]>
de3a8c23 3731
40622be8 3732 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 3733
ae66c1fc
EZ
37342003-01-14 Elena Zannoni <[email protected]>
3735
997b089a 3736 Fix PR gdb/898
ae66c1fc
EZ
3737 * breakpoint.c (until_break_command): Add new argument. Use it to
3738 decide whether to stop only at the current frame or not.
3739 * breakpoint.h (until_break_command): Update prototype.
3740 * infcmd.c (until_command): Add new argument to until_break_command
3741 call.
3742 (advance_command): New function.
3743 (_initialize_infcmd): Update help string for 'until' command.
3744 Add new 'advance' command.
3745
a04257e6
DC
37462003-01-14 David Carlton <[email protected]>
3747
3748 * linespec.c (decode_line_1): Normalize comments.
3749 (set_flags): Ditto.
3750 (locate_first_half): Ditto.
3751 (decode_compound): Ditto.
3752 (symtab_from_filename): Ditto.
3753 (decode_all_digits): Ditto.
3754 (decode_dollar): Ditto.
3755 (find_methods): Ditto.
3756 (find_toplevel_char): Ditto.
3757
1bac305b
AC
37582003-01-13 Andrew Cagney <[email protected]>
3759
3760 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3761 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3762 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3763 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3764 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3765 * language.c, language.h, m32r-tdep.c: Update copyright.
3766 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3767 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3768 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3769 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3770 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3771 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3772
25caa7a8
EZ
37732003-01-13 Elena Zannoni <[email protected]>
3774
3775 * stabsread.h (process_later, resolve_cfront_continuation):
3776 Obsolete.
3777 Update copyright years.
3778 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3779 Update copyright year.
3780 * dbxread.c(struct cont_elem): Obsolete.
3781 (process_later, process_now): Obsolete functions.
3782 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3783 Update copyright year.
3784 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3785 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3786 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3787 (parse_partial_symbols): Obsolete cfront support.
3788 * stabsread.c
3789 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3790 macros.
3791 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3792 read_cfront_baseclasses, read_cfront_member_functions,
3793 resolve_cfront_continuation,read_cfront_static_fields,
3794 copy_cfront_struct_fields): Obsolete functions.
3795 (define_symbol, read_one_struct_field): Obsolete cfront support.
3796 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3797 Update Copyright year.
3798
7789c6f5
EZ
37992003-01-13 Elena Zannoni <[email protected]>
3800
3801 * stack.c (print_frame_info, print_stack_frame_base_stub,
3802 print_stack_frame_base, show_and_print_stack_frame_stub,
3803 show_and_print_stack_frame, print_only_stack_frame_stub,
3804 print_only_stack_frame): Delete functions.
3805 (print_stack_frame_stub): Call print_frame_info instead of
3806 print_frame_info_base.
3807 (print_frame_info_base): Rename to print_frame_info.
3808 (backtrace_command_1): Call print_frame_info, instead of
3809 print_frame_info_base.
3810 (current_frame_command): Call print_stack_frame, instead of
3811 print_only_stack_frame.
3812 (frame_command): Call print_stack_frame, instead of
3813 show_and_print_stack_frame.
3814 (up_command): Ditto.
3815 (down_command): Ditto.
3816 * frame.h (print_only_stack_frame): Delete prototype.
3817 * infrun.c (normal_stop): Call print_stack_frame, instead of
3818 show_and_print_stack_frame.
3819 * thread.c (info_threads_command): Call print_stack_frame, instead
3820 of print_only_stack_frame.
3821
3f5a3016
AC
38222003-01-13 Andrew Cagney <[email protected]>
3823
d99ba314
AC
3824 * README (Graphical interface to GDB): Update URL. Point at
3825 gdb/links/.
3826
3f5a3016
AC
3827 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3828 version match.
3829
083ae935
DJ
38302003-01-13 Daniel Jacobowitz <[email protected]>
3831
3832 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3833 lines.
3834
5365276c
DJ
38352003-01-13 Daniel Jacobowitz <[email protected]>
3836
3837 * thread-db.c (attach_thread): Prototype.
3838 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3839 thread information (ti), and valid flags (th_valid, ti_valid).
3840 (attach_thread): Move target_pid_to_str call to after the thread
3841 is added to GDB's list. Initialize the cache.
3842 (thread_get_info_callback, thread_db_map_id2thr)
3843 (thread_db_get_info): New functions.
3844 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3845 (thread_db_store_registers, thread_db_thread_alive)
3846 (thread_db_get_thread_local_address): Use them.
3847 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3848 of calling error() for threads in unknown state.
3849
3850 (clear_lwpid_callback): New function.
3851 (thread_db_resume): Use it to clear the cache.
3852
9fc30b6b
DJ
38532003-01-13 Daniel Jacobowitz <[email protected]>
3854
3855 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3856 (resume_callback): Remove dead code.
3857
8f871025
AC
38582003-01-13 Andrew Cagney <[email protected]>
3859
3860 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3861 predicate.
3862 * gdbarch.h, gdbarch.c: Regenerate.
3863 * stack.c (frame_info): Only initialize the saved registers when
3864 FRAME_INIT_SAVED_REGS_P.
3865 * frame.c (frame_saved_regs_register_unwind): Assert
3866 FRAME_INIT_SAVED_REGS_P.
3867 (deprecated_generic_get_saved_register): Ditto.
3868
3f565f1e
DJ
38692003-01-13 Daniel Jacobowitz <[email protected]>
3870
3871 * source.c (openp): Squelch warning about "filename".
3872
072b1022
DJ
38732003-01-13 Daniel Jacobowitz <[email protected]>
3874
3875 * source.c (openp): If the file does not exist don't necessarily
3876 search the path.
3877
973ccf8b
DJ
38782003-01-13 Daniel Jacobowitz <[email protected]>
3879
3880 Fix PR gdb/872.
3881 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3882 (integer_types_same_name_p): New function.
3883 (rank_one_type): Use it.
3884 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3885
030292b7
DJ
38862003-01-13 Daniel Jacobowitz <[email protected]>
3887
3888 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3889 variables.
3890 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3891 * configure.in: Add --with-sysroot.
3892 * configure: Regenerated.
3893 * main.c (gdb_sysroot): New variable.
3894 (captured_main): Initialize gdb_sysroot.
3895 * defs.h (gdb_sysroot): New extern declaration.
3896 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3897
afb5d334
MC
38982003-01-12 Michael Chastain <[email protected]>
3899
3900 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3901
751ceeb4
MC
39022003-01-12 Michael Chastain <[email protected]>
3903
3904 * top.c (print_gdb_version): Bump copyright year to 2003.
3905
94cd26f8
DC
39062003-01-12 David Carlton <[email protected]>
3907
3908 * linespec.c (symtab_from_filename): Rename variable 's' to
3909 'file_symtab'.
3910
1ce79225
AC
39112003-01-12 Andrew Cagney <[email protected]>
3912
3913 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3914 dummy frame.
3915 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3916
fa1fd571
AC
39172003-01-12 Andrew Cagney <[email protected]>
3918
3919 * d10v-tdep.c: Include "gdb_assert.h".
3920 (d10v_store_return_value): Rewrite to match current interface.
3921 (d10v_extract_struct_value_address): Ditto.
3922 (d10v_extract_return_value): Ditto.
3923 (d10v_gdbarch_init): Set store_restore_value,
3924 extract_struct_value_address and extract_return_value.
3925
68b8d23e
JB
39262003-01-12 J. Brobecker <[email protected]>
3927
3928 * hpread.c (set_namestring): New procedure replacing the
3929 SET_NAMESTRING macro.
3930 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3931 by calls to set_namestring.
3932
39332003-01-11 J. Brobecker <[email protected]>
1fb309ea
JB
3934
3935 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3936 a compilation warning.
3937 (hpread_process_one_debug_symbol): Likewise.
3938
88d262ca
DC
39392003-01-10 David Carlton <[email protected]>
3940
3941 * linespec.c (decode_line_1): Rename variable 's' to
3942 'file_symtab'.
3943 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3944 (decode_dollar): Ditto.
3945 (decode_variable): Ditto.
3946 (symbol_found): Ditto.
3947
86669319
MC
39482003-01-09 Michael Chastain <[email protected]>
3949
3950 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3951
616a9dc4
CV
39522003-01-07 Corinna Vinschen <[email protected]>
3953
3954 * win32-nat.c (set_process_privilege): New function.
3955 (child_attach): Call set_process_privilege() to enable the
3956 SE_DEBUG_NAME user privilege if available in process token.
3957
3269bcfa
JB
39582003-01-10 J. Brobecker <[email protected]>
3959
3960 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3961 compilation error in the previous revision.
3962
2b0ee454
DC
39632003-01-09 David Carlton <[email protected]>
3964
3965 * linespec.c: Update copyright.
3966
b3ba1b44
DJ
39672003-01-09 Daniel Jacobowitz <[email protected]>
3968
3969 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3970 than inferior_ptid.
3971 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3972
4ef3f3be
AC
39732003-01-09 Andrew Cagney <[email protected]>
3974
479ab5a0
AC
3975 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3976 Update comments.
3977 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3978 (frame_saved_regs_zalloc): Update.
3979 (frame_saved_regs_register_unwind): Update.
3980 (create_new_frame): Update.
3981 (get_prev_frame): Update.
3982 (frame_extra_info_zalloc): Update.
3983 (deprecated_get_frame_saved_regs): Update.
3984 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3985 * cris-tdep.c: Update comment.
3986
bde58177
AC
3987 * somsolib.h: Fix function indentation.
3988 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3989 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3990 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3991 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3992 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3993
4ef3f3be
AC
3994 * infrun.c (follow_fork): Use ISO C definition.
3995 * expprint.c (print_subexp): Use xfree instead of free.
3996 * charset.c: Include "gdb_string.h" instead of <string.h>.
3997 (register_iconv_charsets): Use ISO C definition.
3998 (host_charset, target_charset): Ditto.
3999 * Makefile.in (charset.o): Update dependencies.
4000 (mi-cmd-env.o): Update dependencies.
4001
1c615f7a
AC
40022003-01-08 Andrew Cagney <[email protected]>
4003
4004 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4005 get_frame_base.
4006
c9a1dc08
AC
40072003-01-08 Andrew Cagney <[email protected]>
4008
4009 * gdb_mbuild.sh: Add --keep option. When specified, keep the
4010 build directories. Save edited gdb output in Mbuild.log. If a
4011 build fails, remove any final GDB executable.
4012
dbad9d94
AC
40132003-01-08 Andrew Cagney <[email protected]>
4014
4015 * gdb_mbuild.sh: Edit the output of `maint print architecture'
4016 replacing hex constants with function names and stripping leading
4017 file name directory prefixes.
4018
8d357cca
AC
40192003-01-08 Andrew Cagney <[email protected]>
4020
4021 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4022 get_frame_base.
4023
bca02a8a
DC
40242003-01-08 David Carlton <[email protected]>
4025
4026 * linespec.c (decode_line_1): Move code into decode_variable.
4027 (decode_variable): New function.
4028
7f8ab3a0
AC
40292003-01-08 Andrew Cagney <[email protected]>
4030
4031 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4032
7b5849cc
AC
40332003-01-08 Andrew Cagney <[email protected]>
4034
4035 * cris-tdep.c (cris_frame_init_saved_regs): Use
4036 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4037 saved_regs buffer.
4038 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4039 (sh64_nofp_frame_init_saved_regs): Ditto.
4040 (sh_fp_frame_init_saved_regs): Ditto.
4041 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4042 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4043 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4044 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4045
72a5efb3
DJ
40462003-01-08 Daniel Jacobowitz <[email protected]>
4047
4048 * minsyms.c (lookup_minimal_symbol): Update comment.
4049 (lookup_minimal_symbol_text): Update comment. Use the hash table.
4050 (lookup_minimal_symbol_solib_trampoline): Likewise.
4051
11c02a10
AC
40522003-01-08 Andrew Cagney <[email protected]>
4053
aab3ea25
AC
4054 * d10v-tdep.c (d10v_init_extra_frame_info): Use
4055 frame_relative_level.
4056
da50a4b7
AC
4057 * alpha-tdep.c: Use get_frame_extra_info.
4058 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4059 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4060 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4061 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4062
11c02a10
AC
4063 * alpha-tdep.c: Use get_next_frame.
4064 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4065 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4066 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4067 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4068 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4069 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4070 * xstormy16-tdep.c: Ditto.
4071
1e2330ba
AC
40722003-01-07 Andrew Cagney <[email protected]>
4073
4074 * alpha-tdep.c: Use get_frame_base.
4075 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4076 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4077 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4078 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4079 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4080 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4081 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4082 * config/sparc/tm-sparc.h: Ditto.
4083
2d75187b
AC
40842003-01-07 Andrew Cagney <[email protected]>
4085
4086 * frame.c (deprecated_get_frame_context): New function.
4087 (deprecated_set_frame_context): New function.
4088 * frame.h (deprecated_get_frame_context): Declare.
4089 (deprecated_set_frame_context): Declare.
4090 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4091 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4092
483d36b2
AC
40932003-01-07 Andrew Cagney <[email protected]>
4094
4095 * frame.c (deprecated_set_frame_next_hack): New function.
4096 (deprecated_set_frame_prev_hack): New function.
4097 * frame.h (deprecated_set_frame_next_hack): Declare.
4098 (deprecated_set_frame_prev_hack): Declare.
4099 * mcore-tdep.c (analyze_dummy_frame): Use
4100 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4101 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4102
14e91ac5
DC
41032003-01-07 David Carlton <[email protected]>
4104
4105 * linespec.c (decode_line_1): Move code into decode_dollar.
4106 (decode_dollar): New function.
4107
b0c6b05c
AC
41082003-01-07 Andrew Cagney <[email protected]>
4109
4110 * arm-tdep.c (arm_init_extra_frame_info): Use
4111 deprecated_update_frame_base_hack.
4112 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4113 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4114 (fix_frame_pointer): Ditto.
4115 (mn10300_analyze_prologue): Ditto.
4116
a00a19e9
AC
41172003-01-07 Andrew Cagney <[email protected]>
4118
4119 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4120 extra_info using frame_extra_info_zalloc.
4121 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4122 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4123 (sh64_init_extra_frame_info): Ditto.
4124 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4125 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4126 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4127 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4128 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4129 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4130 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4131 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4132 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4133 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4134 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4135 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4136
4137 * mn10300-tdep.c (analyze_dummy_frame): Use
4138 deprecated_set_frame_extra_info_hack.
4139 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4140
1fb4c65b
JB
41412003-01-07 J. Brobecker <[email protected]>
4142
4143 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4144 class is not scText. These do not define "real" procedures.
4145 (parse_partial_symbols): Likewise.
4146
9fe7d6bf
MS
41472003-01-06 Michael Snyder <[email protected]>
4148
4149 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4150
f6c609c4
AC
41512003-01-06 Andrew Cagney <[email protected]>
4152
4153 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4154 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4155 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4156 deprecated_frame_xmalloc_with_cleanup.
4157 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4158 deprecated_frame_xmalloc.
4159 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4160 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4161
d995ff4b
AC
41622003-01-06 Andrew Cagney <[email protected]>
4163
84dc46cb
AC
4164 * x86-64-linux-tdep.c: Include "osabi.h".
4165 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4166
d995ff4b
AC
4167 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4168
66140c26
AC
41692003-01-06 Andrew Cagney <[email protected]>
4170
4171 * MAINTAINERS (Target Instruction Set Architectures): Update
4172 arm-elf. Can be built with -Werror, has been multiarched.
4173
4174 * value.h (unpack_long): Make buffer parameter constant.
4175 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4176 * scm-lang.h (scm_parse): Ditto.
4177 * defs.h (extract_typed_address, extract_address): Ditto.
4178 (extract_long_unsigned_integer): Ditto.
4179 * inferior.h (unsigned_pointer_to_address): Ditto.
4180 (signed_pointer_to_address): Ditto.
4181 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4182 * gdbarch.h, gdbarch.c: Regenerate.
4183 * findvar.c (extract_long_unsigned_integer): Update.
4184 (extract_address): Update.
4185 (extract_typed_address): Update.
4186 (unsigned_pointer_to_address): Update.
4187 * values.c (unpack_long): Update.
4188 (unpack_double): Update.
4189 (unpack_pointer): Update.
4190 (unpack_field_as_long): Update.
4191 * d10v-tdep.c (d10v_pointer_to_address): Update.
4192 * avr-tdep.c (avr_pointer_to_address): Update.
4193 * scm-lang.c (scm_unpack): Update.
4194 * findvar.c (signed_pointer_to_address): Update.
4195
b089b3da
ML
41962003-01-06 Michal Ludvig <[email protected]>
4197
4198 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4199 since it is in i386-tdep.c.
4200
aff87235
JB
42012003-01-06 J. Brobecker <[email protected]>
4202
4203 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4204 failure introduced in the previous change.
4205
34f5e845
MC
42062003-01-05 Michael Chastain <[email protected]>
4207
4208 * README: Remove references to deleted remote-*.c files:
4209 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4210 remote-nrom.c, remote-os9k.c, remote-udi.c.
4211
28bcfd30
MK
42122003-01-05 Mark Kettenis <[email protected]>
4213
4214 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4215 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4216 i386_get_longjmp_target.
4217
15a5b3ee
AC
42182003-01-05 Andrew Cagney <[email protected]>
4219
4220 * arm-tdep.c (prologue_cache): Change to a pointer.
4221 (_initialize_arm_tdep): Allocate prologue_cache.
4222 (check_prologue_cache): Update.
4223 (save_prologue_cache): Update.
4224 (arm_gdbarch_init): Update.
4225
c263362b
DJ
42262003-01-04 Daniel Jacobowitz <[email protected]>
4227
4228 * stabsread.c (update_method_name_from_physname): Call complaint()
4229 instead of error.
4230
51603483
DJ
42312003-01-04 Daniel Jacobowitz <[email protected]>
4232
4233 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4234 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4235 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4236
4237 * blockframe.c: Include "gdbcmd.h" and "command.h".
4238 (backtrace_below_main): New variable.
4239 (file_frame_chain_valid, func_frame_chain_valid)
4240 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4241 (generic_func_frame_chain_valid): Remove functions.
4242 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4243 (_initialize_blockframe): New function.
4244 * Makefile.in (blockframe.o): Update dependencies.
4245 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4246 comment. Call frame_chain_valid ().
4247 * frame.h: Remove old prototypes. Add prototype for
4248 frame_chain_valid and update comments to match.
4249 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4250 Remove old comment.
4251 * gdbarch.h: Regenerated.
4252 * gdbarch.c: Regenerated.
4253
4254 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4255 set_gdbarch_frame_chain_valid.
4256 * avr-tdep.c (avr_gdbarch_init): Likewise.
4257 * cris-tdep.c (cris_gdbarch_init): Likewise.
4258 * frv-tdep.c (frv_gdbarch_init): Likewise.
4259 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4260 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4261 (i386_nw_init_abi): Likewise.
4262 (i386_gdbarch_init): Likewise.
4263 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4265 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4266 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4267 * mips-tdep.c (mips_gdbarch_init): Likewise.
4268 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4269 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4270 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4271 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4272 * s390-tdep.c (s390_gdbarch_init): Likewise.
4273 * sh-tdep.c (sh_gdbarch_init): Likewise.
4274 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4275 * v850-tdep.c (v850_gdbarch_init): Likewise.
4276 * vax-tdep.c (vax_gdbarch_init): Likewise.
4277 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4278
4279 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4280 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4281 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4282 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4283 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4284 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4285 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4286 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4287
b00a8037
DJ
42882002-01-04 Daniel Jacobowitz <[email protected]>
4289
4290 * Makefile.in (acconfig_h): Remove incorrect macro.
4291 (config_h): Define.
4292 (osabi.o): Update dependencies.
4293 * configure.tgt: Set gdb_osabi based on target triplet.
4294 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4295 * configure: Regenerated.
4296 * config.in: Regenerated.
4297 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4298 (GDB_OSABI_DEFAULT): Define if not already defined.
4299 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4300 (set_osabi_string): New variables.
4301 (gdbarch_register_osabi): Add new OS ABI to
4302 gdb_osabi_available_names.
4303 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4304 (set_osabi, show_osabi): New functions.
4305 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4306
4be87837
DJ
43072003-01-04 Daniel Jacobowitz <[email protected]>
4308
4309 * arch-utils.c (gdbarch_info_init): Set osabi to
4310 GDB_OSABI_UNINITIALIZED.
4311 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4312 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4313 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4314 * gdbarch.c: Regenerated.
4315 * gdbarch.h: Regenerated.
4316 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4317 there's no BFD.
4318 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4319 * osabi.h (enum gdb_osabi): Move to defs.h.
4320 (gdbarch_init_osabi): Update prototype.
4321 * defs.h (enum gdb_osabi): Moved here.
4322 * Makefile.in: Update dependencies.
4323
4324 * alpha-tdep.h: Don't include "osabi.h".
4325 (struct gdbarch_tdep): Remove osabi member.
4326 * alpha-tdep.c: Include "osabi.h".
4327 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4328 iterate over arches. Update call to gdbarch_init_osabi.
4329 (alpha_dump_tdep): Don't dump osabi.
4330 * alpha-linux-tdep.c: Include "osabi.h".
4331 * alpha-osf1-tdep.c: Include "osabi.h".
4332 * alphafbsd-tdep.c: Include "osabi.h".
4333 * alphanbsd-tdep.c: Include "osabi.h".
4334
4335 * arm-tdep.h: Don't include "osabi.h".
4336 (struct gdbarch_tdep): Remove osabi member.
4337 * arm-tdep.c: Include "osabi.h".
4338 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4339 iterate over arches. Update call to gdbarch_init_osabi.
4340 (arm_dump_tdep): Don't dump osabi.
4341 * arm-linux-tdep.c: Include "osabi.h".
4342 * armnbsd-tdep.c: Include "osabi.h".
4343
4344 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4345 Update call to gdbarch_init_osabi.
4346
4347 * i386-tdep.h: Don't include "osabi.h".
4348 (struct gdbarch_tdep): Remove osabi member.
4349 * i386-tdep.c: Include "osabi.h".
4350 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4351 iterate over arches. Update call to gdbarch_init_osabi.
4352 (i386_dump_tdep): Don't dump osabi.
4353 * i386-linux-tdep.c: Include "osabi.h".
4354 * i386-sol2-tdep.c: Include "osabi.h".
4355 * i386bsd-tdep.c: Include "osabi.h".
4356 * i386gnu-tdep.c: Include "osabi.h".
4357 * i386ly-tdep.c: Include "osabi.h".
4358 * i386nbsd-tdep.c: Include "osabi.h".
4359 * i386obsd-tdep.c: Include "osabi.h".
4360
4361 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4362 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4363 check osabi when iterating over arches. Update call to
4364 gdbarch_init_osabi.
4365 (mips_dump_tdep): Don't dump osabi.
4366
4367 * ns32k-tdep.h: Don't include "osabi.h".
4368 (struct gdbarch_tdep): Remove.
4369 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4370 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4371 allocate tdep. Update call to gdbarch_init_osabi.
4372 (ns32k_dump_tdep): Remove.
4373 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4374 * ns32knbsd-tdep.c: Include "osabi.h".
4375
4376 * ppc-tdep.h: Don't include "osabi.h".
4377 (struct gdbarch_tdep): Remove osabi member.
4378 * rs6000-tdep.c: Include "osabi.h".
4379 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4380 osabi when iterating over arches. Update call to
4381 gdbarch_init_osabi.
4382 (rs6000_dump_tdep): Don't dump osabi.
4383 * ppc-linux-tdep.c: Include "osabi.h".
4384 * ppcnbsd-tdep.c: Include "osabi.h".
4385
4386 * sh-tdep.h: Don't include "osabi.h".
4387 (struct gdbarch_tdep): Remove osabi member.
4388 * sh-tdep.c: Include "osabi.h".
4389 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4390 iterate over arches. Update call to gdbarch_init_osabi.
4391 (sh_dump_tdep): Don't dump osabi.
4392 * shnbsd-tdep.c: Include "osabi.h".
4393
4394 * sparc-tdep.c: Include "osabi.h".
4395 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4396 iterate over arches. Update call to gdbarch_init_osabi.
4397 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4398 tdep structure.
4399
4400 * vax-tdep.h: Don't include "osabi.h".
4401 (struct gdbarch_tdep): Remove.
4402 * vax-tdep.c: Include "osabi.h".
4403 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4404 iterate over arches. Don't allocate tdep. Update call
4405 to gdbarch_init_osabi.
4406 (vax_dump_tdep): Remove.
4407 (_initialize_vax_tdep): Update call to gdbarch_register.
4408
a881cf8e
DJ
44092003-01-04 Daniel Jacobowitz <[email protected]>
4410
4411 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4412 entirely.
4413 (breakpoint_re_set_one): Don't fetch the value for a disabled
4414 watchpoint.
4415
1e698235
DJ
44162003-01-04 Daniel Jacobowitz <[email protected]>
4417
4418 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4419 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4420 (COERCE_FLOAT_TO_DOUBLE): Remove.
4421 * gdbarch.c: Regenerate.
4422 * gdbarch.h: Regenerate.
4423 * Makefile.in: Remove value_h from gdbarch_h.
4424 * valops.c (coerce_float_to_double): New variable.
4425 (default_coerce_float_to_double): Remove.
4426 (standard_coerce_float_to_double): Remove.
4427 (value_arg_coerce): Use coerce_float_to_double.
4428 (_initialize_valops): Add "set coerce-float-to-double".
4429 * value.h (default_coerce_float_to_double): Remove prototype.
4430 (standard_coerce_float_to_double): Remove prototype.
4431
4432 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4433 prototyped.
4434 * mdebugread.c (parse_symbol): Likewise.
4435 * stabsread.c (define_symbol): Mark all functions as prototyped.
4436
4437 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4438 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4439 set_gdbarch_coerce_float_to_double.
4440 * arm-tdep.c (arm_gdbarch_init): Likewise.
4441 * frv-tdep.c (frv_gdbarch_init): Likewise.
4442 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4443 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4444 * mips-tdep.c (mips_gdbarch_init): Likewise.
4445 (mips_coerce_float_to_double): Remove.
4446 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4447 (rs6000_coerce_float_to_double): Remove.
4448 * s390-tdep.c (s390_gdbarch_init): Likewise.
4449 * sh-tdep.c (sh_gdbarch_init): Likewise.
4450 (sh_coerce_float_to_double): Remove.
4451 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4452 (sparc_coerce_float_to_double): Remove.
4453 * v850-tdep.c (v850_gdbarch_init): Likewise.
4454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4455 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4456 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4457 (hppa_coerce_float_to_double): Remove prototype.
4458 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4459
f436a26a
DJ
44602003-01-04 Daniel Jacobowitz <[email protected]>
4461
4462 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4463
248f8055
DJ
44642003-01-04 Daniel Jacobowitz <[email protected]>
4465
4466 Suggested by Stewart Brown <[email protected]>:
4467 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4468 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4469 (c_type_print_varspec_suffix): Likewise.
4470
72cfdc76
MK
44712003-01-04 Mark Kettenis <[email protected]>
4472
bfd260bb
MK
4473 * configure.in: Don't set and AC_SUBST SUBDIRS.
4474 * configure: Regenerated.
4475
72cfdc76
MK
4476 * configure.in: Remove code dealing with shared libraries.
4477 * Makefile.in: Remove HLDFLAGS and HLDENV.
4478 * configure: Regenerated.
4479
c8b8a898
AC
44802003-01-04 Andrew Cagney <[email protected]>
4481
4482 * frame.c (deprecated_frame_xmalloc): New function.
4483 (deprecated_set_frame_saved_regs_hack): New function.
4484 (deprecated_set_frame_extra_info_hack): New function.
4485 * frame.h (deprecated_frame_xmalloc): Declare.
4486 (deprecated_set_frame_saved_regs_hack): Declare.
4487 (deprecated_set_frame_extra_info_hack): Declare.
4488
14abd0fb
MK
44892003-01-04 Mark Kettenis <[email protected]>
4490
8ee53726
MK
4491 * configure.in: Move code that provides the --enable-gdbtk option
4492 right after the code that handles the --enable-tui option, and
4493 polish it somewhat.
4494 * configure: Regenerated.
4495
14abd0fb
MK
4496 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4497 AC_CHECK_FUNCS and remove the old check for pread64.
4498 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4499 * acconfig.h (_GNU_SOURCE): Add.
4500 (HAVE_PREAD64): Remove.
4501 * configure, aclocal.m4, config.in: Regenerated.
4502
b2fb4676
AC
45032003-01-03 Andrew Cagney <[email protected]>
4504
4505 * alpha-tdep.c: Use get_frame_saved_regs.
4506 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4507 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4508 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4509 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4510 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4511
8dcde887
MK
45122003-01-03 Mark Kettenis <[email protected]>
4513
4514 * configure.in: Remove all use of the SUBDIRS variable; add
4515 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4516 code providing the --enable-multi-ice option, and move it right in
4517 front of the code that checks whether gdbserver is supported.
4518 Polish that too.
4519 * configure: Regenerated.
4520 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4521 @SUBDIRS@.
4522
8ccd593b
AC
45232003-01-03 Andrew Cagney <[email protected]>
4524
4525 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4526 * avr-tdep.c, cris-tdep.c: Ditto.
4527 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4528 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4529
91151a06
MK
45302003-01-03 Mark Kettenis <[email protected]>
4531
4532 * configure.in: Remove --enable-netrom option.
4533 * configure: Regenerated.
4534
8fe84d01
MK
45352003-01-03 Mark Kettenis <[email protected]>
4536
4537 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4538 declaration for `struct re_pattern_buffer' instead.
4539 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4540
f0394be6
JB
45412003-01-03 J. Brobecker <[email protected]>
4542
4543 * mdebugread.c (parse_symbol): Count until the stEnd matching
4544 the structure name.
4545
27e9bf90
MK
45462003-01-02 Mark Kettenis <[email protected]>
4547
93d331ba
MK
4548 * configure.in: Remove --with-cpu option.
4549 subscripts. Remove evil changequotes here.
4550 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4551 * config.in, configure: Regenerated.
4552
27e9bf90
MK
4553 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4554 * configure.in: Cleanup section that sources GDB and BFD configure
4555 subscripts. Remove evil changequotes here.
4556 * config.in, configure: Regenerated.
4557
50abf9e5
AC
45582003-01-02 Andrew Cagney <[email protected]>
4559
4560 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4561 frame accessor methods.
4562 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4563 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4564 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4565 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4566 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4567 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4568 * z8k-tdep.c: Ditto.
4569
287c1a40
MK
45702003-01-02 Mark Kettenis <[email protected]>
4571
f5dbc56d
MK
4572 * configure.in: Remove UI_OUT configuration code.
4573 * ada-lang.c: Update assuming UI_OUT is always true.
4574 * Makefile.in (UIOUT_CFLAGS): Remove.
4575 * configure: Regenerated.
4576 * TODO: Remove blurb about elimination of -DUI_OUT.
4577
627af7ea
MK
4578 * configure.in: Move code that provides the --enable-gdbcli,
4579 --enable-gdbmi options right before the code that handles the
4580 --enable-tui option. Polish a bit.
4581 * configure: Regenerated.
4582
06825bd1
MK
4583 * configure.in: Rewrite check for GNU regex and the
4584 --without-included regex option, and move it into the "Checks for
4585 library functions" section. This makes us use the system regex
4586 again by default on systems with version 2 of the GNU C library.
4587 This was apparently broken.
4588 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4589 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4590 * config.in, configure: Regenerated.
4591
287c1a40
MK
4592 * configure.in: Move code that provides the --enable-tui option
4593 before the "Checks for libraries" section. Polish the code
4594 somewhat and set need_curses to yes if we build the TUI. Rewrite
4595 code that looks for a library providing termcap functionality to
4596 match more closely what's done in the Readline library, and move
4597 it into to the "Checks for libraries" section.
4598 * configure: Regenerated.
4599 * Makefile.in (TERMCAP): Remove variable.
4600 * config/i386/go32.mh (TERMCAP): Remove variable.
4601
684e56bf
AC
46022003-01-02 Andrew Cagney <[email protected]>
4603
4604 * MAINTAINERS: Mention gdb_mbuild.sh.
4605 * gdb_mbuild.sh: Rewrite.
4606
e1ea1d75
MK
46072003-01-02 Mark Kettenis <[email protected]>
4608
4609 * configure.in: Fix typo in last change.
4610 * config.in, configure: Regenerated.
4611
1b831c93
AC
46122003-01-02 Andrew Cagney <[email protected]>
4613
4614 * valarith.c (value_binop): Delete obsolete code and comments.
4615 * configure.host: Ditto.
4616 * buildsym.h (make_blockvector): Ditto.
4617 * buildsym.c (make_blockvector): Ditto.
4618 * defs.h (enum language): Ditto.
4619 (chill_demangle): Ditto.
4620 * elfread.c (elf_symtab_read): Ditto.
4621 * dwarfread.c (CHILL_PRODUCER): Ditto.
4622 (set_cu_language): Ditto.
4623 (handle_producer): Ditto.
4624 * expprint.c (print_subexp): Ditto.
4625 * gdbtypes.c (chill_varying_type): Ditto.
4626 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4627 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4628 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4629 (chill_varying_type): Ditto.
4630 * language.h (_LANG_chill): Ditto.
4631 * language.c (binop_result_type, integral_type): Ditto.
4632 (character_type, string_type, structured_type): Ditto.
4633 (lang_bool_type, binop_type_check): Ditto.
4634 * stabsread.h (os9k_stabs): Ditto.
4635 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4636 (define_symbol, read_type, read_struct_fields): Ditto.
4637 (read_array_type, read_enum_type, read_huge_number): Ditto.
4638 (read_range_type, start_stabs): Ditto.
4639 * symfile.c (init_filename_language_table): Ditto.
4640 (add_psymbol_with_dem_name_to_list): Ditto.
4641 * symtab.c (symbol_init_language_specific): Ditto.
4642 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4643 * symtab.h (struct general_symbol_info): Ditto.
4644 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4645 * typeprint.c (typedef_print): Ditto.
4646 * utils.c (fprintf_symbol_filtered): Ditto.
4647 * valops.c (value_cast, search_struct_field, value_slice): Delete
4648 obsolete code.
4649 (varying_to_slice): Delete function.
4650 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4651 (varying_to_slice): Delete declaration.
4652 * MAINTAINERS: Update.
4653
8bb2c122
MK
46542003-01-02 Mark Kettenis <[email protected]>
4655
97bf5e38
MK
4656 * configure.in: Reorganize "Checks for library functions section"
4657 a bit. Remove check for `btowc' and `isascii' functions.
4658 * configure: Regenerated.
4659
5ee754fc
MK
4660 * acconfig.h (_MSE_INT_H): Remove.
4661 * configure.in: Create "Checks for header files" section, and move
4662 appropriate tests there. Don't check for objlist.h, wchar.h,
4663 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4664 misdetection fix. Also add "Checks for types", "Checks for
4665 compiler characteristics" and "Checks for library functions"
4666 sections.
4667 * config.in, configure: Regenerated.
4668
8bb2c122
MK
4669 * configure.in: Create "Checks for programs" section, and move
4670 appropriate tests there.
4671
9a156167
MK
46722003-01-01 Mark Kettenis <[email protected]>
4673
4674 * configure.in: Create "Checks for libraries" section, and move
4675 appropriate tests there. Cleanup check for wctype in libw. Use
4676 AC_SEARCH_LIBS to see whether we need libsocket.
4677 * configure: Regenerated.
4678
a80e2bcb 4679For older changes see ChangeLog-2002
c906108c
SS
4680\f
4681Local Variables:
4682mode: change-log
4683left-margin: 8
4684fill-column: 74
4685version-control: never
4686End:
This page took 1.391475 seconds and 4 git commands to generate.