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