*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
27d5d74b
SC
12003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2
3 * MAINTAINERS (tui): Maintainer of tui code.
4
1762d96d
CV
52003-03-21 Corinna Vinschen <vinschen@redhat.com>
6
7 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8 (i386-cygwin-tdep.o): Add dependencies.
9 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10 * i386-cygwin-tdep.c: New file.
11 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
12 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
13
4c2e2391
AC
142003-03-20 Andrew Cagney <cagney@redhat.com>
15
f20d38b7
AC
16 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
17 (handle_inferior_event): Remove code calling
18 DYNAMIC_TRAMPOLINE_NEXTPC.
19
0022b738
AC
20 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
21 already has a full path.
22
864dbc90
AC
23 * main.c (gdb_main): Return 1.
24 (captured_main): Call error to report an invalid interpreter.
25
4c2e2391
AC
26 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
27 * alpha-osf1-tdep.c: Include "gdb_string.h".
28
5ef7553b
JB
292003-03-19 J. Brobecker <brobecker@gnat.com>
30
31 Continuing work to convert the hppa targets to multiarch partial.
32
33 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
34 method, now that hppa_push_dummy_frame has a conformant prototype.
35 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
36 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
37 for the switch to multiarch partial.
38
7bde8967
KB
392003-03-19 Kevin Buettner <kevinb@redhat.com>
40
41 * mdebugread.c (parse_symbol): For stEnd, we're done counting
42 when iss is issNull.
43
b006a9e9
KB
442003-03-18 Kevin Buettner <kevinb@redhat.com>
45
46 * mips-tdep.c (mips_register_name): Fix fencepost error involving
47 NUM_REGS bounds check.
48
5e2e9765
KB
492003-03-18 Kevin Buettner <kevinb@redhat.com>
50
51 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
52 * mips-tdep.c (gdb_assert.h): Include.
53 (mips_generic_reg_names, mips_processor_reg_names): Make static.
54 (mips_register_name): Handle integer registers explicitly. Add
55 bounds checking.
56 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
57 (mips_lsi33k_reg_names): Don't list integer registers; they're
58 handled by mips_register_name() now.
59 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
60 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
61 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
62 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
63 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
64
a2867626
AC
652003-03-18 Andrew Cagney <cagney@redhat.com>
66
67 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
68 a void pointer.
69 * gdbtypes.h (print_scalar_formatted): Update declaration.
70 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
71
06600e06
JB
722003-03-18 J. Brobecker <brobecker@gnat.com>
73
74 * infrun.c (observer.h): Add #include.
75 (normal_stop): Add call to observer_notify_normal_stop.
76 * Makefile.in (infrun.o): Add dependency on observer.h.
77
7daf4f5b
JB
782003-03-18 J. Brobecker <brobecker@gnat.com>
79
80 Continuing work to convert the hppa targets to multiarch partial.
81 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
82 parameter. Reformat comment.
83 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
84 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
85 to match new profile.
86
3371ccc0
JB
872003-03-18 J. Brobecker <brobecker@gnat.com>
88
89 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
90 appear to be working in any case.
91
4fbe891e
JB
922003-03-18 J. Brobecker <brobecker@gnat.com>
93
94 * observer.c (observer_test_first_observer): New static variable.
95 (observer_test_second_observer): Likewise.
96 (observer_test_third_observer): Likewise.
97 (observer_test_first_notification_function): New static function.
98 (observer_test_second_notification_function): Likewise.
99 (observer_test_third_notification_function): Likewise.
100
a7ff40e7
JB
1012003-03-17 J. Brobecker <brobecker@gnat.com>
102
103 * hppa-tdep.c (gdb_assert.h): Add missing #include.
104 * somsolib.c (gdb_assert.h): Likewise.
105 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
106 (somsolib.o): Likewise.
107
26ca4152
AC
1082003-03-17 Andrew Cagney <cagney@redhat.com>
109
110 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
111 BFD. Simplify setting of di.endian.
112
0a613259
AC
1132003-03-17 Andrew Cagney <cagney@redhat.com>
114
115 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
116 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
117
118 From Elena Zannoni <ezannoni@redhat.com>
119 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
120 vector and floating-point parameters.
121 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
122 convention.
123 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
124
1132738f
FN
1252003-03-17 Fernando Nasser <fnasser@redhat.com>
126
127 * MAINTAINERS: Remove my name from several maintainership roles.
128
6dc42492
AC
1292003-03-17 Andrew Cagney <cagney@redhat.com>
130
131 Fix frame off-by-one bug.
132 * frame-unwind.h (frame_this_id_ftype): Replace
133 frame_unwind_id_ftype.
134 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
135 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
136 with "prev_register".
137 * frame-unwind.c (frame_unwind_find_by_pc): Return
138 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
139 comment.
140 * dummy-frame.c (cached_find_dummy_frame): Delete function.
141 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
142 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
143 (dummy_frame_unwind): Update.
144 * sentinel-frame.c (sentinel_frame_prev_register): Replace
145 sentinel_frame_register_unwind.
146 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
147 (sentinel_frame_unwinder): Update.
148 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
149 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
150 * frame.c (create_sentinel_frame): Update. Initialize
151 "prologue_cache" instead of "unwind_cache".
152 (frame_register_unwind): Call this frame's prev_register with the
153 next frame and this frame's prologue cache.
154 (get_prev_frame): Simplify. Always call prev frame's this_id with
155 this frame and prev frame's prologue cache. Document that this
156 call is shifted one to the left when compared to the
157 frame_register_unwind call.
158 (legacy_saved_regs_prev_register): Replace
159 frame_saved_regs_register_unwind.
160 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
161 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
162 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
163 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
164 (d10v_frame_unwind): Update.
165 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
166 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
167 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
168 "saved_regs" with "this_saved_regs".
169
efd710d6
AC
1702003-03-16 Andrew Cagney <cagney@redhat.com>
171
172 * frame.c (frame_pop): Don't call target_store_registers. Fix
173 problem reported by Mark Kettenis.
174
4e259f09
MK
1752003-03-16 Mark Kettenis <kettenis@gnu.org>
176
177 * i386-tdep.c (i386_register_type): Renamed from
178 i386_register_virtual_type. Adjust function signature.
179 (i386_gdbarch_init): Set register_type instead of
180 deprecated_max_register_raw_size,
181 deprecated_max_register_virtual_size and register_virtual_type.
182
055bb976
AC
1832003-03-14 Andrew Cagney <cagney@redhat.com>
184
185 * frame.c (get_prev_frame): When a legacy frame, always call
186 legacy_get_prev_frame. Simplify unwind code using assumption that
187 the unwinder is new.
188 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
189 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
190 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
191
ac2adee5
AC
1922003-03-14 Andrew Cagney <cagney@redhat.com>
193
194 * frame.c (get_saved_register): Delete function.
195 * frame.h (get_saved_register): Delete declaration.
196 * xstormy16-tdep.c: Update comment.
197 * regcache.h: Update comments.
198 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
199 get_saved_register and extract_address, use
200 frame_read_unsigned_register.
201 (sparc_frame_saved_pc): Ditto.
202 (sparc_get_saved_register): Instead of get_saved_register, use
203 frame_register.
204 (sparc_pop_frame): Ditto.
205 * findvar.c: Update comments.
206 (value_of_register): Call frame_register instead of
207 get_saved_register.
208 (value_from_register): Ditto.
209 * config/sparc/tm-sparc.h: Update comment.
210 * breakpoint.c: Update comment.
211
129c1cd6
AC
2122003-03-14 Andrew Cagney <cagney@redhat.com>
213
214 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
215 GET_SAVED_REGISTER.
216 * gdbarch.h, gdbarch.c: Re-generate.
217 * frame.h: Update comments.
218 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
219 * x86-64-tdep.c (x86_64_init_abi): Update.
220 * sparc-tdep.c (sparc_gdbarch_init): Update.
221 * sh-tdep.c (sh_gdbarch_init): Update.
222 * mips-tdep.c (mips_gdbarch_init): Update.
223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
224 * cris-tdep.c (cris_gdbarch_init): Update.
225 * ia64-tdep.c (ia64_gdbarch_init): Update.
226 * frame.c (frame_register): Update.
227 (get_saved_register): Update.
228 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
229
749b82f6
AC
2302003-03-13 Andrew Cagney <cagney@redhat.com>
231
232 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
233 * gdbarch.h, gdbarch.c: Regenerate.
234 * valops.c (hand_function_call): Update comment.
235 * stack.c (return_command): Update comment.
236 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
237 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
239 * x86-64-tdep.c (x86_64_init_abi): Update.
240 * vax-tdep.c (vax_gdbarch_init): Update.
241 * v850-tdep.c (v850_gdbarch_init): Update.
242 * sparc-tdep.c (sparc_gdbarch_init): Update.
243 * sh-tdep.c (sh_gdbarch_init): Update.
244 * s390-tdep.c (s390_gdbarch_init): Update.
245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
246 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
248 * mips-tdep.c (mips_gdbarch_init): Update.
249 * mcore-tdep.c (mcore_gdbarch_init): Update.
250 * m68k-tdep.c (m68k_gdbarch_init): Update.
251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
252 * ia64-tdep.c (ia64_gdbarch_init): Update.
253 * i386-tdep.c (i386_gdbarch_init): Update.
254 * hppa-tdep.c (hppa_gdbarch_init): Update.
255 * h8300-tdep.c (h8300_gdbarch_init): Update.
256 * frv-tdep.c (frv_gdbarch_init): Update.
257 * cris-tdep.c (cris_gdbarch_init): Update.
258 * avr-tdep.c (avr_gdbarch_init): Update.
259 * arm-tdep.c (arm_gdbarch_init): Update.
260 * alpha-tdep.c (alpha_gdbarch_init): Update.
261
1594fa56
AC
2622003-03-13 Andrew Cagney <cagney@redhat.com>
263
264 * frame.c (legacy_frame_p): New function.
265 (get_prev_frame): Use legacy_frame_p.
266 * frame.h (legacy_frame_p): Declare.
267
7717fda3
V
2682003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
269
270 * MAINTAINERS (write after approval): Alphabetically
271 listing corrected.
272
0c67cbe9
V
2732003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
274
275 * MAINTAINERS (write after approval): Add myself.
276
03febf99
AC
2772003-03-12 Andrew Cagney <cagney@redhat.com>
278
279 * frame.c (get_prev_frame): Rename the frame parameter to
280 "this_frame".
281 (get_next_frame, legacy_get_prev_frame): Ditto.
282
0a1e1ca1
AC
2832003-03-12 Andrew Cagney <cagney@redhat.com>
284
285 * frame.c (get_current_frame): Check target_has_registers before
286 checking target_has_stack.
287 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
288 instead of deprecated_selected_frame.
289 * findvar.c (value_of_register): Pass "frame", not
290 deprecated_selected_frame, to value_of_builtin_reg.
291
a66a9c23
AC
2922003-03-12 Andrew Cagney <cagney@redhat.com>
293
294 * regcache.c (regcache_cooked_write_signed): New function.
295 (regcache_cooked_write_unsigned): New function.
296 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
297 (regcache_cooked_read_signed): Fix regnum in range assertion.
298 * regcache.h (regcache_cooked_write_signed): Declare.
299 (regcache_cooked_write_unsigned): Declare.
300
8bedc050
AC
3012003-03-12 Andrew Cagney <cagney@redhat.com>
302
303 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
304 * gdbarch.h, gdbarch.c: Re-generate.
305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
306 * x86-64-tdep.h: Update.
307 * x86-64-tdep.c (x86_64_init_abi): Update.
308 * v850-tdep.c (v850_gdbarch_init): Update.
309 * sparc-tdep.c (sparc_gdbarch_init): Update.
310 * sh-tdep.c (sh_gdbarch_init): Update.
311 * s390-tdep.c (s390_gdbarch_init): Update.
312 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
313 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
316 * mips-tdep.c (mips_gdbarch_init): Update.
317 * mcore-tdep.c (mcore_gdbarch_init): Update.
318 * m68k-tdep.c (m68k_gdbarch_init): Update.
319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
320 * ia64-tdep.c (ia64_gdbarch_init): Update.
321 * i386-tdep.c (i386_gdbarch_init): Update.
322 * i386-interix-tdep.c (i386_interix_init_abi): Update.
323 * hppa-tdep.c (hppa_gdbarch_init): Update.
324 * h8300-tdep.c (h8300_gdbarch_init): Update.
325 * frv-tdep.c (frv_gdbarch_init): Update.
326 * cris-tdep.c (cris_gdbarch_init): Update.
327 * avr-tdep.c (avr_gdbarch_init): Update.
328 * arm-tdep.c (arm_gdbarch_init): Update.
329 * alpha-tdep.c (alpha_gdbarch_init): Update.
330 * sh-tdep.c (sh_init_extra_frame_info): Update.
331 (sh64_init_extra_frame_info): Update.
332 * ns32knbsd-nat.c (frame_num_args): Update.
333 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
334 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
335 (xstormy16_frame_chain_valid): Update.
336 * vax-tdep.c (vax_saved_pc_after_call): Update.
337 * v850-tdep.c (v850_frame_chain): Update.
338 (v850_pop_frame): Update.
339 (v850_init_extra_frame_info): Update.
340 * sparc-tdep.c (setup_arbitrary_frame): Update.
341 * ns32k-tdep.c (umax_frame_num_args): Update.
342 * s390-tdep.c (s390_pop_frame_regular): Update.
343 * mn10300-tdep.c (mn10300_frame_chain): Update.
344 (mn10300_pop_frame_regular): Update.
345 (mn10300_init_extra_frame_info): Update.
346 * mips-tdep.c (mips_init_frame_pc_first): Update.
347 (mips_frame_chain): Update.
348 (mips_pop_frame): Update.
349 * mcore-tdep.c (mcore_frame_chain): Update.
350 (mcore_pop_frame): Update.
351 (mcore_init_extra_frame_info): Update.
352 * arch-utils.c (init_frame_pc_default): Update.
353 * m68k-tdep.c (isi_frame_num_args): Update.
354 (delta68_frame_num_args): Update.
355 (news_frame_num_args): Update.
356 * ia64-tdep.c (ia64_pop_frame_regular): Update.
357 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
358 (alpha_frame_chain): Update.
359 (alpha_pop_frame): Update.
360 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
361 (hppa_init_extra_frame_info): Update.
362 (hppa_frame_chain): Update.
363 (hppa_frame_chain_valid): Update.
364 * cris-tdep.c (cris_init_extra_frame_info): Update.
365 * avr-tdep.c (avr_init_extra_frame_info): Update.
366 * arm-tdep.c (arm_frame_chain_valid): Update.
367 (arm_init_extra_frame_info): Update.
368 (arm_pop_frame): Update.
369 * frame.c (frame_pc_unwind): Update.
370 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
371 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
372 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
373 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
374 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
375 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
376
7a25a7c1
AC
3772003-03-12 Andrew Cagney <cagney@redhat.com>
378
379 Eliminate the need for POP_FRAME.
380 * frame.c (do_frame_unwind_register): New function.
381 (frame_pop): When no POP_FRAME, pop the frame using register
382 unwind and a scratch regcache.
383 (frame_saved_regs_pop): Delete function.
384 (trad_frame_unwinder): Update.
385 * d10v-tdep.c (d10v_frame_pop): Delete function.
386 (d10v_frame_unwind): Update.
387 * sentinel-frame.c (sentinel_frame_pop): Delete function.
388 (sentinel_frame_unwinder): Update.
389 * dummy-frame.c (dummy_frame_pop): Delete function.
390 (dummy_frame_unwind): Update.
391 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
392 (struct frame_unwind): Update.
393
2f38ef89
KB
3942003-03-11 Kevin Buettner <kevinb@redhat.com>
395
396 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
397 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
398 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
399 Do range checks on register number obtained from debugging info.
400 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
401 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
402 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
403 mapping function.
404 (do_fp_register_row): Fix typo which caused double type to be
405 used when attempting to unpack a float.
406
552f4abf
JB
4072003-03-11 J. Brobecker <brobecker@gnat.com>
408
409 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
410
e0d2ae16
AC
4112003-03-11 Andrew Cagney <cagney@redhat.com>
412
413 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
414 frame. Problem found by Corinna Vinschen.
415
ddbfdd06
PM
4162003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
417
418 * doublest.c (floatformat_from_length): Accept also
419 the real size of 'long double' type.
420
088b2ddc 4212003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 422
088b2ddc 423 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
424 * breakpoint.c (bpstat_copy): Copy the command lines as well
425 as the old value, to match what is freed in bpstat_clear.
426
f56f77c1
DC
4272003-03-10 David Carlton <carlton@math.stanford.edu>
428
429 * minsyms.c (add_minsym_to_hash_table): Replace
430 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
431 (compare_minimal_symbols, compact_minimal_symbols)
432 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
433 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
434 of DEPRECATED_SYMBOL_MATCHES_NAME.
435 (lookup_minimal_symbol_solib_trampoline): Ditto.
436
5602984a
AC
4372003-03-10 Andrew Cagney <cagney@redhat.com>
438
439 * regcache.h (regcache_cooked_read_ftype): Define.
440 (regcache_save, regcache_restore): Add a cooked_read parameter.
441 * regcache.c (regcache_save, regcache_restore): Update.
442 (do_cooked_read): New function.
443 (regcache_cpy): Pass do_cooked_read to regcache_save and
444 regcache_restore.
445
8bedc050
AC
4462003-03-10 Andrew Cagney <cagney@redhat.com>
447
448 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
449 * gdbarch.h, gdbarch.c: Re-generate.
450 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
451 * x86-64-tdep.h: Update.
452 * x86-64-tdep.c (x86_64_init_abi): Update.
453 * v850-tdep.c (v850_gdbarch_init): Update.
454 * sparc-tdep.c (sparc_gdbarch_init): Update.
455 * sh-tdep.c (sh_gdbarch_init): Update.
456 * s390-tdep.c (s390_gdbarch_init): Update.
457 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
458 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
459 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
460 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
461 * mips-tdep.c (mips_gdbarch_init): Update.
462 * mcore-tdep.c (mcore_gdbarch_init): Update.
463 * m68k-tdep.c (m68k_gdbarch_init): Update.
464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
465 * ia64-tdep.c (ia64_gdbarch_init): Update.
466 * i386-tdep.c (i386_gdbarch_init): Update.
467 * i386-interix-tdep.c (i386_interix_init_abi): Update.
468 * hppa-tdep.c (hppa_gdbarch_init): Update.
469 * h8300-tdep.c (h8300_gdbarch_init): Update.
470 * frv-tdep.c (frv_gdbarch_init): Update.
471 * cris-tdep.c (cris_gdbarch_init): Update.
472 * avr-tdep.c (avr_gdbarch_init): Update.
473 * arm-tdep.c (arm_gdbarch_init): Update.
474 * alpha-tdep.c (alpha_gdbarch_init): Update.
475 * sh-tdep.c (sh_init_extra_frame_info): Update.
476 (sh64_init_extra_frame_info): Update.
477 * ns32knbsd-nat.c (frame_num_args): Update.
478 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
479 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
480 (xstormy16_frame_chain_valid): Update.
481 * vax-tdep.c (vax_saved_pc_after_call): Update.
482 * v850-tdep.c (v850_frame_chain): Update.
483 (v850_pop_frame): Update.
484 (v850_init_extra_frame_info): Update.
485 * sparc-tdep.c (setup_arbitrary_frame): Update.
486 * ns32k-tdep.c (umax_frame_num_args): Update.
487 * s390-tdep.c (s390_pop_frame_regular): Update.
488 * mn10300-tdep.c (mn10300_frame_chain): Update.
489 (mn10300_pop_frame_regular): Update.
490 (mn10300_init_extra_frame_info): Update.
491 * mips-tdep.c (mips_init_frame_pc_first): Update.
492 (mips_frame_chain): Update.
493 (mips_pop_frame): Update.
494 * mcore-tdep.c (mcore_frame_chain): Update.
495 (mcore_pop_frame): Update.
496 (mcore_init_extra_frame_info): Update.
497 * arch-utils.c (init_frame_pc_default): Update.
498 * m68k-tdep.c (isi_frame_num_args): Update.
499 (delta68_frame_num_args): Update.
500 (news_frame_num_args): Update.
501 * ia64-tdep.c (ia64_pop_frame_regular): Update.
502 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
503 (alpha_frame_chain): Update.
504 (alpha_pop_frame): Update.
505 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
506 (hppa_init_extra_frame_info): Update.
507 (hppa_frame_chain): Update.
508 (hppa_frame_chain_valid): Update.
509 * cris-tdep.c (cris_init_extra_frame_info): Update.
510 * avr-tdep.c (avr_init_extra_frame_info): Update.
511 * arm-tdep.c (arm_frame_chain_valid): Update.
512 (arm_init_extra_frame_info): Update.
513 (arm_pop_frame): Update.
514 * frame.c (frame_pc_unwind): Update.
515 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
516 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
517 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
518 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
519 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
520 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
521
12cc2063
AC
5222003-03-10 Andrew Cagney <cagney@redhat.com>
523
524 * gdbarch.sh (gdbarch_unwind_pc): New method.
525 * gdbarch.h, gdbarch.c: Regenerate.
526 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
527 but use read_pc and FRAME_SAVED_PC as fall backs.
528 (frame_saved_regs_pc_unwind): Delete function.
529 (trad_frame_unwinder): Update.
530 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
531 (struct frame_unwind): Update.
532 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
533 (dummy_frame_unwind): Update.
534 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
535 (sentinel_frame_unwinder): Update.
536 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
537 (d10v_frame_unwind): Update.
538 (d10v_unwind_pc): New function.
539 (d10v_gdbarch_init): Set unwind_pc.
540
ef840a37
AC
5412003-03-10 Andrew Cagney <cagney@redhat.com>
542
a2ce2e56
AC
543 * gdbarch.h: Re-generate.
544
ef840a37
AC
545 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
546 PC.
547 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
548 the PC register.
549
08f3424b
MK
5502003-03-08 Mark Kettenis <kettenis@gnu.org>
551
552 * gdbarch.sh (save_dummy_frame_tos): Add comment.
553
1248ede2
AC
5542003-03-08 Andrew Cagney <cagney@redhat.com>
555
556 * cli-out.c: Update copyright.
557 (cli_out_data): Define typedef. Use instead of ui_out_data.
558
f49bacc8
AC
5592003-03-08 Andrew Cagney <cagney@redhat.com>
560
561 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
562 the result.
563
9b05f993
AC
5642003-03-07 Andrew Cagney <cagney@redhat.com>
565
566 * gdbarch.sh: Don't generate two macro definitions when an
567 undefined macro taking no arguments.
568 * gdbarch.h: Regenerate.
569
166f4c7b
ML
5702002-03-07 Michal Ludvig <mludvig@suse.cz>
571
572 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
573 (x86_64_unwind_dummy_id): New functions.
574 (x86_64_init_abi): Register these two new functions.
575
6d686a84
ML
5762003-03-07 Michal Ludvig <mludvig@suse.cz>
577
578 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
579 (x86_64_skip_prologue): Move prologue detection to
580 separate function.
581 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
582
6314f104
AC
5832003-03-05 Andrew Cagney <cagney@redhat.com>
584
585 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
586 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
587 * frame.c (get_prev_frame): Restructure the frame ID unwind code
588 to use unwind_dummy_id when a dummy frame.
589 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
590 predicate.
591 * gdbarch.h, gdbarch.c: Regneerate.
592
ceea5145
AC
5932003-03-05 Andrew Cagney <cagney@redhat.com>
594
595 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
596 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
597 Do not use d10v_read_sp or d10v_read_fp when obtaining register
598 values.
599
0d843116
AC
6002003-03-05 Andrew Cagney <cagney@redhat.com>
601
602 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
603 (struct d10v_unwind_cache): Delete field "frameless". Replace
604 "next_addr" with "sp_offset". Add "r11_offset".
605 (d10v_frame_unwind_cache): Update.
606 (prologue_find_regs): Update. When "mv r11, sp", save the
607 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
608 RN was saved in r11_offset.
609
b2579786
AC
6102003-03-05 Andrew Cagney <cagney@redhat.com>
611
612 * frame.c (deprecated_update_frame_pc_hack): Also update the the
613 cached PC value in the next frame.
614
218e5956
AC
6152003-03-05 Andrew Cagney <cagney@redhat.com>
616
617 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
618 "id_unwind_cache" with "id".
619 (frame_id_unwind): Delete declaration.
620 * frame.c (frame_id_unwind): Delete function.
621 (get_prev_frame): Call the frame id unwind method directly. Store
622 the returned next frame's ID value in NEXT_FRAME. Note that there
623 is a problem with the wrong unwind ID being called with the wrong
624 unwind cache.
625
ed363b1b
DJ
6262003-03-05 Daniel Jacobowitz <drow@mvista.com>
627
628 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
629
fe1f4a5e
DJ
6302003-03-05 James Ingham <jingham@apple.com>
631 Daniel Jacobowitz <drow@mvista.com>
632
633 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
634 (auto_cp_abi): New variable.
635 (current_cp_abi, num_cp_abis): Make static.
636 (CP_ABI_MAX): Define.
637 (cp_abis): Turn into an array.
638 (value_virtual_fn_field): Fix formatting.
639 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
640 takes a pointer.
641 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
642 (list_cp_abis, _initialize_cp_abi): New functions.
643 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
644 declarations for cp_abis, num_cp_abis, current_cp_abi, and
645 switch_to_cp_abi. Update prototype for register_cp_abi.
646 * Makefile.in (cp-abi.o): Update dependencies.
647 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
648 instead of switch_to_cp_abi.
649 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
650 register_cp_abi.
651 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
652 register_cp_abi.
653 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
654
e4adbba9
DJ
6552003-03-05 Daniel Jacobowitz <drow@mvista.com>
656
657 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
658 * dwarf2loc.c: Include "regcache.h".
659 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
660 register_size.
661 * Makefile.in (dwarf2loc.o): Update dependencies.
662
91ccbfc1
TR
6632003-03-04 Theodore A. Roth <troth@openavr.org>
664
665 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
666 number of io registers reported by remote target is not a multiple of
667 step.
668
3d4e8fd2
DC
6692003-03-04 David Carlton <carlton@math.stanford.edu>
670
671 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
672 (lookup_symbol_aux_psymtabs): Update call to
673 lookup_partial_symbol.
674 (lookup_transparent_type, find_main_psymtab)
675 (make_symbol_overload_list): Ditto.
676
ed42d87b
KH
6772003-03-04 Kazu Hirata <kazu@cs.umass.edu>
678
679 * MAINTAINERS (Write after approval): Update my email address.
680
a0ed5532
AC
6812003-03-03 Andrew Cagney <cagney@redhat.com>
682
683 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
684 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
685 predicate. Replace MAX_REGISTER_RAW_SIZE.
686 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
687 MAX_REGISTER_VIRTUAL_SIZE.
688 * regcache.c (legacy_max_register_raw_size): New function.
689 (legacy_max_register_virtual_size): New function.
690 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
691 (MAX_REGISTER_RAW_SIZE): Define.
692 (legacy_max_register_raw_size): Declare.
693 (legacy_max_register_virtual_size): Declare.
694 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
695 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
696 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
697 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
698 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
699 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
700 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
701 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
702 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
704 * vax-tdep.c (vax_gdbarch_init): Update.
705 * v850-tdep.c (v850_gdbarch_init): Update.
706 * sparc-tdep.c (sparc_gdbarch_init): Update.
707 * sh-tdep.c (sh_gdbarch_init): Update.
708 * s390-tdep.c (s390_gdbarch_init): Update.
709 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
710 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
712 * mips-tdep.c (mips_gdbarch_init): Update.
713 * mcore-tdep.c (mcore_gdbarch_init): Update.
714 * m68k-tdep.c (m68k_gdbarch_init): Update.
715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
716 * ia64-tdep.c (ia64_gdbarch_init): Update.
717 * i386-tdep.c (i386_gdbarch_init): Update.
718 * hppa-tdep.c (hppa_gdbarch_init): Update.
719 * h8300-tdep.c (h8300_gdbarch_init): Update.
720 * frv-tdep.c (frv_gdbarch_init): Update.
721 * cris-tdep.c (cris_gdbarch_init): Update.
722 * avr-tdep.c (avr_gdbarch_init): Update.
723 * arm-tdep.c (arm_gdbarch_init): Update.
724 * alpha-tdep.c (alpha_gdbarch_init): Update.
725 * d10v-tdep.c (d10v_gdbarch_init): Do not set
726 max_register_raw_size or max_register_virtual_size.
727
8e437497
DC
7282003-03-03 David Carlton <carlton@math.stanford.edu>
729
730 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
731 SYMBOL_MATCHES_NAME, add comment.
732 (SYMBOL_MATCHES_NATURAL_NAME): New.
733 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
734 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
735 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
736 * symtab.c (lookup_partial_symbol): Use
737 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
738 unhelpful comment.
739 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
740 SYMBOL_MATCHES_NAME.
741 Fix for PR c++/33.
742
25120b0d
DC
7432003-03-03 David Carlton <carlton@math.stanford.edu>
744
745 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
746 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
747 by regexp matching against SYMBOL_NATURAL_NAME.
748
78a11fb4
DC
7492003-03-03 David Carlton <carlton@math.stanford.edu>
750
751 * linespec.c (find_method): Extract code into collect_methods.
752 (collect_methods): New.
753
645dd519
MK
7542003-03-02 Mark Kettenis <kettenis@gnu.org>
755
b4700d91
MK
756 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
757 get_frame_base.
758
645dd519
MK
759 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
760 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
761
0aa7e1aa
SC
7622003-03-02 Stephane Carrez <stcarrez@nerim.fr>
763
764 * arch-utils.c (generic_register_byte): Fix to use the loop index
765 and not regnum when summing the size of all registers up to regnum.
766
f30ee0bc
AC
7672003-03-01 Andrew Cagney <cagney@redhat.com>
768
769 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
770 FRAME_INIT_SAVED_REGS.
771 * gdbarch.h, gdbarch.c: Regenerate.
772 * stack.c (frame_info): Update.
773 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
774 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
775 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
776 * ns32k-tdep.c (ns32k_pop_frame): Update.
777 * mips-tdep.c (mips_pop_frame): Update.
778 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
779 * ia64-tdep.c (ia64_frame_chain): Update.
780 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
781 (ia64_frameless_function_invocation): Update.
782 (ia64_init_extra_frame_info): Update.
783 (ia64_pop_frame_regular): Update.
784 * frame.h (struct frame_info): Update comment.
785 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
786 * frame.c (frame_saved_regs_register_unwind): Update.
787 (frame_saved_regs_register_unwind): Update.
788 (deprecated_generic_get_saved_register): Update.
789 * cris-tdep.c: Update comment.
790 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
791 Rename macro.
792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
793 * x86-64-tdep.c (x86_64_init_abi): Update.
794 * vax-tdep.c (vax_gdbarch_init): Update.
795 * v850-tdep.c (v850_gdbarch_init): Update.
796 * sparc-tdep.c (sparc_gdbarch_init): Update.
797 * sh-tdep.c (sh_gdbarch_init): Update.
798 * s390-tdep.c (s390_gdbarch_init): Update.
799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
800 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
801 * ns32k-tdep.c (ns32k_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 * m68k-tdep.c (m68k_gdbarch_init): Update.
806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
807 * ia64-tdep.c (ia64_gdbarch_init): Update.
808 * i386-tdep.c (i386_gdbarch_init): Update.
809 * frv-tdep.c (frv_gdbarch_init): Update.
810 * avr-tdep.c (avr_gdbarch_init): Update.
811 * arm-tdep.c (arm_gdbarch_init): Update.
812 * alpha-tdep.c (alpha_gdbarch_init): Update.
813
42fa7c0f
AC
8142003-03-01 Andrew Cagney <cagney@redhat.com>
815
816 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
817 option enum and switch. When no windows, set the interpreter to
818 INTERP_CONSOLE.
819
49c7e338
AC
8202003-03-01 Andrew Cagney <cagney@redhat.com>
821
822 * main.c (captured_main): Replace magic option characters with an
823 enum.
824
e9582e71
AC
8252003-03-01 Andrew Cagney <cagney@redhat.com>
826
827 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
828 INIT_EXTRA_FRAME_INFO.
829 * gdbarch.h, gdbarch.c: Regenerate.
830 * arm-tdep.c: Update comments.
831 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
832 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
833 * frame.h, avr-tdep.c: Ditto.
834 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
835 (create_new_frame, legacy_get_prev_frame): Ditto.
836 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
837 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
839 deprecated_init_extra_frame_info instead of init_extra_frame_info.
840 * x86-64-tdep.c (x86_64_init_abi): Ditto.
841 * v850-tdep.c (v850_gdbarch_init): Ditto.
842 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
843 * sh-tdep.c (sh_gdbarch_init): Ditto.
844 * s390-tdep.c (s390_gdbarch_init): Ditto.
845 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
846 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
847 * mips-tdep.c (mips_gdbarch_init): Ditto.
848 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
850 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
851 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
852 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
854 * frv-tdep.c (frv_gdbarch_init): Ditto.
855 * cris-tdep.c (cris_gdbarch_init): Ditto.
856 * avr-tdep.c (avr_gdbarch_init): Ditto.
857 * arm-tdep.c (arm_gdbarch_init): Ditto.
858 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
859 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
860
35cac7cf
AC
8612003-03-01 Andrew Cagney <cagney@redhat.com>
862
863 * gdbarch.sh (register_type): New function with predicate.
864 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
865 * gdbarch.h, gdbarch.c: Re-generate.
866 * arch-utils.c (generic_register_byte): Use generic_register_size.
867 (generic_register_size): When available, use
868 gdbarch_register_type.
869 * regcache.c (init_regcache_descr): When available, initialize the
870 register type array using gdbarch_register_type. If the
871 architecture supplies gdbarch_register_type, do not use the legacy
872 regcache layout.
873 * d10v-tdep.c (d10v_register_type): Replace
874 d10v_register_virtual_type.
875 (d10v_gdbarch_init): Set register_type instead of
876 register_virtual_type.
877
7b83296f
AC
8782003-03-01 Andrew Cagney <cagney@redhat.com>
879
880 * Makefile.in (ax-gdb.o): Update dependencies.
881 * ax-gdb.c: Include "regcache.h".
882 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
883 * findvar.c (value_of_register): Ditto.
884 * infcmd.c (default_print_registers_info): Ditto.
885
eadc1c87
MK
8862003-03-01 Mark Kettenis <kettenis@gnu.org>
887
888 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
889 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
890
14143612
MK
8912003-03-01 Mark Kettenis <kettenis@gnu.org>
892
893 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
894 of STREQ.
895
a55cc764
DJ
8962003-02-28 Daniel Jacobowitz <drow@mvista.com>
897
898 * Makefile.in (dwarf2loc.o): Update dependencies.
899 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
900 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
901 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
902 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
903 (locexpr_tracepoint_var_ref): New function.
904 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
905
08a617da
AC
9062003-02-28 Andrew Cagney <cagney@redhat.com>
907
908 * regcache.c (register_size): New function.
909 * regcache.h (register_size): Declare
910 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
911 max_register_size instead of MAX_REGISTER_RAW_SIZE.
912
4224873a
DC
9132003-02-28 David Carlton <carlton@math.stanford.edu>
914
915 * linespec.c (decode_compound): Extract code into find_method.
916 (find_method): New.
917
ccdc5d7f
JB
9182003-02-28 J. Brobecker <brobecker@gnat.com>
919
920 * Makefile.in: Add rules to build and link in observer.o.
921
974e8ced
JB
9222003-02-27 J. Brobecker <brobecker@gnat.com>
923
924 * observer.c: Minor comments edits.
925
7a28f973
JB
9262003-02-27 J. Brobecker <brobecker@gnat.com>
927
928 * observer.h, observer.c: New file.
929
27cddce2
AC
9302003-02-27 Andrew Cagney <cagney@redhat.com>
931
932 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
933
b94a41a1
SC
9342003-02-27 Stephane Carrez <stcarrez@nerim.fr>
935
936 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
937 (M6812_OP_STS_EXT): Likewise.
938 (m6811_prologue): Use the above to recognize prologue.
939 (m6812_prologue): Likewise.
940
c8be8951
DC
9412003-02-27 David Carlton <carlton@math.stanford.edu>
942
943 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
944 SYMBOL_PRINT_NAME.
945 (compare_psymbols): Ditto.
946 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
947
d05bb1fc
MS
9482003-02-27 Michael Snyder <msnyder@redhat.com>
949
4e845cd3
MS
950 * f-lang.c (build_fortran_types): New function.
951 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
952 * doublest.c (extract_floating): Fix warning text.
953
f3824013
AC
9542003-02-27 Andrew Cagney <cagney@redhat.com>
955
956 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
957 predicate. Replaces PUSH_DUMMY_FRAME.
958 * gdbarch.h, gdbarch.c: Regnerate.
959 * valops.c (hand_function_call): Update. Call
960 generic_push_dummy_frame directly.
961 * vax-tdep.c (vax_gdbarch_init): Update.
962 * sparc-tdep.c (sparc_gdbarch_init): Update.
963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
964 * m68k-tdep.c (m68k_gdbarch_init): Update.
965 * hppa-tdep.c (hppa_gdbarch_init): Update.
966 * alpha-tdep.c (alpha_gdbarch_init): Update.
967 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
968 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
969 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
971 push_dummy_frame to generic_push_dummy_frame.
972 * v850-tdep.c (v850_gdbarch_init): Ditto.
973 * sh-tdep.c (sh_gdbarch_init): Ditto.
974 * s390-tdep.c (s390_gdbarch_init): Ditto.
975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
977 * mips-tdep.c (mips_gdbarch_init): Ditto.
978 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
980 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
981 * i386-tdep.c (i386_gdbarch_init): Ditto.
982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
983 * frv-tdep.c (frv_gdbarch_init): Ditto.
984 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
985 * cris-tdep.c (cris_gdbarch_init): Ditto.
986 * avr-tdep.c (avr_gdbarch_init): Ditto.
987 * arm-tdep.c (arm_gdbarch_init): Ditto.
988
ad188201
KB
9892003-02-26 Kevin Buettner <kevinb@redhat.com>
990
991 * mips-tdep.c (show_mips_abi): New function.
992 (_initialize_mips_tdep): Use show_mips_abi() to implement the
993 command ``show mips abi''.
994
6b37567a
JJ
9952003-02-26 Jeff Johnston <jjohnstn@redhat.com>
996
997 From Elena Zannoni <ezannoni@redhat.com>
998 * dbxread.c (process_one_symbol): Only record line 0 if one or
999 more sline entries have been seen for the function.
1000
d3e0a5bf
MC
10012003-02-26 Michael Chastain <mec@shout.net>
1002
1003 * configure: Regenerate with autoconf 000227.
1004
18972eea
MC
10052003-02-26 Michael Chastain <mec@shout.net>
1006
1007 Close PR build/660.
1008 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1009 for old libc5/glibc.
1010 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1011
0bbde931
KW
10122003-02-26 Kris Warkentin <kewarken@qnx.com>
1013
1014 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1015 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1016
27ca5dad
MC
10172003-02-26 Michael Chastain <mec@shout.net>
1018
1019 * configure.in: New variable HAVE_UINTPTR_T.
1020 * configure, config.in: Regenerated.
1021
6f88d630
DJ
10222003-02-26 Daniel Jacobowitz <drow@mvista.com>
1023
1024 Fix PR build/1097.
1025 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1026
b14185ce
AC
10272003-02-25 Andrew Cagney <cagney@redhat.com>
1028
1029 * frame.c (get_prev_frame): Add comment on check for
1030 inside_entry_func. Only check for inside_entry_file when not a
1031 dummy and not a sentinel. Check that the new frame is not inner
1032 to the old frame.
1033
ac2bd0a9
AC
10342003-02-25 Andrew Cagney <cagney@redhat.com>
1035
1036 * frame.c (frame_debug): New variable.
1037 (_initialize_frame): Add "set/show debug frame" command.
1038 (get_prev_frame): When frame_debug, print reason why unwind
1039 failed.
1040
b18a0fd2
MC
10412003-02-25 Michael Chastain <mec@shout.net>
1042
1043 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1044 to avoid uintptr_t definition problems.
1045
22abf04a
DC
10462003-02-25 David Carlton <carlton@math.stanford.edu>
1047
1048 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1049 (SYMBOL_LINKAGE_NAME): Ditto.
1050 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1051 SYMBOL_LINKAGE_NAME.
1052 (struct general_symbol_info): Expand comment.
1053 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1054 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1055 (SYMBOL_MATCHES_REGEXP): Ditto.
1056 * symtab.c (symbol_natural_name): New function.
1057 * objfiles.h: Replace all uses of SYMBOL_NAME by
1058 DEPRECATED_SYMBOL_NAME.
1059 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1060 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1061 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1062 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1063 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1064 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1065 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1066 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1067 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1068 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1069 * ada-exp.y: Ditto.
1070 * ada-exp.y: Update copyright.
1071 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1072 * cp-valprint.c: Ditto.
1073
1a5848f6
JJ
10742003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1075
1076 * infptrace.c (detach): Do not flag error if ptrace detach fails
1077 and errno is set to ESRCH.
1078
7343d46a
AC
10792003-02-24 Andrew Cagney <cagney@redhat.com>
1080
1081 * infptrace.c (udot_info): Change type of udot_off to long. Use
1082 paddr when printing udot_off's value.
1083
49fa1dc2
DC
10842003-02-24 David Carlton <carlton@math.stanford.edu>
1085
1086 * symtab.c (make_symbol_overload_list): Only read in partial
1087 symtabs containing a matching partial symbol.
1088
0fe19209
DC
10892003-02-24 David Carlton <carlton@math.stanford.edu>
1090
1091 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1092 do the comparison, not strcmp.
1093 * symfile.c (compare_psymbols): Ditto.
1094 * defs.h: Declare strcmp_iw_ordered.
1095 * utils.c (strcmp_iw_ordered): New function.
1096
8e3ee7b5
JB
10972003-02-24 Jim Blandy <jimb@redhat.com>
1098
1099 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1100 support, shared libs): Remove my name from here, to better reflect
1101 reality.
1102
7df1a324
KW
11032003-02-24 Kris Warkentin <kewarken@qnx.com>
1104
1105 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1106 (target_ops): Add to_have_continuable_watchpoint.
1107 * target.c (update_current_target): Add INHERIT line for
1108 to_have_continuable_watchpoint.
1109 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1110 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1111 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1112 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1113
d1c76907
EZ
11142003-02-24 Elena Zannoni <ezannoni@redhat.com>
1115
1116 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1117 maintainership.
1118
2610b0bf
KW
11192003-02-24 Kris Warkentin <kewarken@qnx.com>
1120
f46169db
KW
1121 * solib.c (solib_open): Call target defined search function after
1122 failing with solib-search-path.
1123 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1124 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1125
9a3c34fe
KW
11262003-02-24 Kris Warkentin <kewarken@qnx.com>
1127
f46169db 1128 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1129
2417dd25
SC
11302003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1131
1132 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1133
b631436b
SC
11342003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1135
1136 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1137 (m68hc11_add_reggroups): New function.
1138 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1139 (m68hc11_gdbarch_init): Install the reggroups.
1140 (_initialize_m68hc11_tdep): Initialize them.
1141
0aa8c1e4
JW
11422003-02-21 James E Wilson <wilson@tuliptree.org>
1143
1144 * MAINTAINERS: Update my email address.
1145
50ceaba5
DC
11462003-02-21 David Carlton <carlton@math.stanford.edu>
1147
1148 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1149
4c2df51b
DJ
11502003-02-21 Daniel Jacobowitz <drow@mvista.com>
1151
1152 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1153 * symtab.h: Add opaque declarations of struct axs_value and
1154 struct agent_expr.
1155 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1156 (struct location_funcs): New type.
1157 (struct symbol): Add "loc" to aux_value.
1158 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1159 * dwarf2read.c: Include "dwarf2expr.h".
1160 (dwarf2_symbol_mark_computed): New function.
1161 (read_func_scope): Use it.
1162 (var_decode_location): New function.
1163 (new_symbol): Use it.
1164 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1165
1166 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1167 (dwarf2expr_h, dwarf2loc_h): New variables.
1168 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1169 (dwarf2expr.o, dwarf2loc.o): New rules.
1170 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1171 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1172 LOC_COMPUTED_ARG.
1173 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1174 * m2-exp.y (yylex): Likewise.
1175 * printcmd.c (address_info, print_frame_args): Likewise.
1176 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1177 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1178 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1179 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1180 * symtab.c (lookup_block_symbol): Likewise.
1181
5784d15e
AF
11822003-02-20 Adam Fedor <fedor@gnu.org>
1183
1184 * symtab.h: Remove objc_specific struct
1185 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1186 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1187 Have language_objc use cplus_specific struct.
1188
d4cad8db
TT
11892003-02-20 Tom Tromey <tromey@redhat.com>
1190
1191 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1192 TYPE_NAME, when printing a String value. PR java/1075.
1193
2f9a90b4
AF
11942003-02-20 Adam Fedor <fedor@gnu.org>
1195
d38074a8 1196 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1197 * objc-lang.c (find_methods): Make static.
1198
6f17862b
CF
11992003-02-20 Christopher Faylor <cgf@redhat.com>
1200
1201 * win32-nat.c (get_image_name): Check return value from
1202 ReadProcessMemory.
1203 (child_xfer_memory): Ditto.
1204
715d1656
AO
12052003-02-20 Alexandre Oliva <aoliva@redhat.com>
1206
1207 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1208 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1209 '${exec_prefix}' (in addition to the expansion thereof) as
1210 relocatable.
1211 * configure: Rebuilt.
1212
b1262a02
DC
12132003-02-20 David Carlton <carlton@math.stanford.edu>
1214
1215 * symtab.c (search_symbols): Revert the search_symbols part of my
1216 2002-12-23 patch. Add comment.
1217
7134143f
DJ
12182002-02-20 Daniel Jacobowitz <drow@mvista.com>
1219
1220 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1221 * dbxread.c (elfstab_build_psymtabs): Don't call
1222 install_minimal_symbols.
1223 (stabsect_build_psymtabs): Likewise.
1224 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1225 earlier.
1226 * somread.c (som_symfile_read): Call install_minimal_symbols
1227 and do_cleanups earlier.
1228 * nlmread.c (nlm_symfile_read): Likewise.
1229 * mdebugread.c (elfmdebug_build_psymtabs): Call
1230 install_minimal_symbols and make appropriate cleanups.
1231
cf466558
KB
12322003-02-20 Kevin Buettner <kevinb@redhat.com>
1233
1234 * solib.c (reload_shared_libraries): New function.
1235 (_initialize_solib): Add callbacks for ``set solib-search-path''
1236 and ``set solib-absolute-prefix''.
1237
de5ad195
DC
12382003-02-20 David Carlton <carlton@math.stanford.edu>
1239
1240 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1241 expand comment.
1242 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1243 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1244 * ada-typeprint.c (ada_typedef_print): Ditto.
1245 * ax-gdb.c (gen_var_ref): Ditto.
1246 * breakpoint.c (print_one_breakpoint): Ditto.
1247 * buildsym.c (finish_block): Ditto.
1248 * c-valprint.c (c_val_print): Ditto.
1249 * expprint.c (print_subexp): Ditto.
1250 * findvar.c (locate_var_value): Ditto.
1251 * infcmd.c (jump_command): Ditto.
1252 * linespec.c (decode_line_2, decode_compound): Ditto.
1253 * maint.c (maintenance_translate_address): Ditto.
1254 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1255 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1256 Ditto.
1257 * p-valprint.c (pascal_val_print): Ditto.
1258 * stabsread.c (define_symbol): Ditto.
1259 * stack.c (print_frame, frame_info, print_block_frame_locals)
1260 (print_frame_arg_vars, return_command): Ditto.
1261 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1262 * symmisc.c (print_symbol): Ditto.
1263 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1264 (compare_search_syms, print_symbol_info, print_msymbol_info)
1265 (rbreak_command): Ditto.
1266 * tracepoint.c (tracepoints_info): Ditto.
1267 * typeprint.c (typedef_print): Ditto.
1268 * valops.c (value_of_variable, hand_function_call): Ditto.
1269 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1270 * ada-typeprint.c: Update Copyright.
1271 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1272 * tracepoint.c, cli/cli-cmds.c: Ditto.
1273
f796e4be
KB
12742003-02-20 Kevin Buettner <kevinb@redhat.com>
1275
1276 * frame.c (generic_unwind_get_saved_register): Make non-static.
1277 * frame.h (generic_unwind_get_saved_register): Declare.
1278 * mips-tdep.c (read_next_frame_reg): Fetch register from
1279 current regcache when frame is NULL.
1280 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1281 that must be NULL.
1282 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1283 instead of frame_register_unwind().
1284
836cc9f4
AC
12852003-02-20 Andrew Cagney <ac131313@redhat.com>
1286
1287 * remote-sim.c (gdbsim_insert_breakpoint)
1288 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1289 code.
1290
501eef12
AC
12912003-02-20 Andrew Cagney <ac131313@redhat.com>
1292
1293 * remote.c (_initialize_remote): Add commands "set/show remote
1294 hardware-watchpoint-limit" and "set/show remote
1295 hardware-breakpoint-limit".
1296 (remote_hw_watchpoint_limit): Initialize to -1.
1297 (remote_hw_breakpoint_limit): Ditto.
1298 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1299
1b6bc7e0
CF
13002003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1301
1302 * coff-pe-read.c: New file - support reading of minimal symbols from a
1303 portable executable using the export table.
1304 * coff-pe-read.h: New file.
1305 * coffread.c: Include coff-pe-read.h.
1306 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1307 debugging symbols found.
1308 * Makefile.in (SFILES): Add coff-pe-read.o.
1309 (coff_pe_read_h): Define.
1310 (COMMON_OBS): Add coff-pe-read.o.
1311 (coffread.o): Add coff_pe_read_h dependency.
1312 (coff-pe-read.o): New target.
1313
fe898f56
DC
13142003-02-19 David Carlton <carlton@math.stanford.edu>
1315
1316 * Makefile.in (SFILES): Add block.c.
1317 (block_h): New.
1318 (COMMON_OBS): Add block.o.
1319 (block.o): New.
1320 (x86-64-tdep.o): Add $(block_h).
1321 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1322 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1323 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1324 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1325 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1326 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1327 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1328 * value.h: Add opaque declaration for struct block.
1329 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1330 * ada-lang.h: Ditto.
1331 * x86-64-tdep.c: #include "block.h"
1332 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1333 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1334 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1335 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1336 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1337 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1338 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1339 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1340 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1341 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1342 * symtab.c (block_function): Ditto.
1343 (contained_in): Ditto.
1344 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1345 block.h. Add opaque declaration for struct block.
1346 * symtab.h: Move block_function and contained_in declarations to
1347 block.h. Add opaque declarations for struct block, struct
1348 blockvector.
1349 (struct block): Move to block.h.
1350 (struct blockvector): Ditto.
1351 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1352 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1353 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1354 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1355 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1356 Ditto.
1357 * block.c: New file.
1358 * block.h: New file.
1359
173345b5
TR
13602003-02-19 Theodore A. Roth <troth@openavr.org>
1361
1362 * avr-tdep.c (avr_extract_return_value): Remove function.
1363 (avr_store_return_value): Remove function.
1364 (avr_extract_struct_value_address): Remove function.
1365 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1366
338ef23d
AC
13672003-02-19 Andrew Cagney <ac131313@redhat.com>
1368
1369 * rs6000-tdep.c: Include "gdb_assert.h".
1370 (registers_e500): Add "acc" and "spefscr".
1371 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1372 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1373 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1374 really is "r0".
1375 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1376
5412f5f3
KS
13772003-02-18 Keith Seitz <keiths@redhat.com>
1378
1379 * Makefile.in: Add gdbtk-interps.c.
1380
881324eb
KB
13812003-02-18 Kevin Buettner <kevinb@redhat.com>
1382
1383 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1384 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1385
6a2f5abf
AC
13862003-02-18 Andrew Cagney <cagney@redhat.com>
1387
1388 * symtab.h (struct objfile): Add opaque declaration.
1389
54c7009d
EZ
13902003-02-18 Elena Zannoni <ezannoni@redhat.com>
1391
1392 From Jim Ingham <jingham@apple.com>:
1393 * dbxread.c (process_one_symbol): Use last_function_start rather
1394 than function_start_offset to find the real beginning of the
1395 current function. The latter is just the text section offset on
1396 some systems, the former is always the real function start.
1397
7ee6d7eb
AC
13982003-02-17 Andrew Cagney <cagney@redhat.com>
1399
1400 * configure.in: Revert ${target} != ${host}.
1401
2846da9b
AC
14022003-02-17 Andrew Cagney <ac131313@redhat.com>
1403
1404 * configure.in (Makefile): Use the test ${target} != ${host},
1405 instead of the absence of the "nm.h" file, to determine of the
1406 configuration non-native.
1407 * configure: Regenerate.
1408
3b27aeea
EZ
14092003-02-14 Elena Zannoni <ezannoni@redhat.com>
1410
1411 From Brian Ford <ford@vss.fsi.com>
1412
1413 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1414 conditionalize tui_active test.
1415 (lookup_cmd_1): Ditto.
1416
b0b1c2c0
MK
14172003-02-14 Mark Kettenis <kettenis@gnu.org>
1418
1419 * configure.in: Add check for _etext.
1420 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1421 available.
1422 * config.in, configure: regenerated.
1423
8f05cde5
DJ
14242003-02-14 Daniel Jacobowitz <drow@mvista.com>
1425
1426 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1427
021e7609
AC
14282003-02-14 Andrew Cagney <ac131313@redhat.com>
1429
1430 * main.c (tui_version): Delete variable.
1431 (captured_main): When --tui, set interpreter_p to "tui" instead of
1432 enabling tui_version.
1433 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1434 tui_version.
1435 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1436 * cli/cli-cmds.c (disassemble_command): Ditto.
1437 * defs.h (tui_version): Delete declaration.
1438 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1439 (tui-interp.o): Add rules.
1440 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1441
e325dcec
CF
14422003-02-14 Christopher Faylor <cgf@redhat.com>
1443
36ffb041 1444 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
1445 just-loaded dll.
1446
c4f90d87
JM
14472003-02-12 Jason Molenda (jmolenda@apple.com)
1448
1449 * symmisc.c (print_objfile_statistics): Include information about
1450 the number of psymtabs and symtabs in each object file.
1451
e46e5ccd
KS
14522003-02-13 Keith R Seitz <keiths@redhat.com>
1453
1454 * main.h (struct captured_main_args): Add interpreter_p.
1455 * main.c (captured_main): Initialize interpreter_p from context.
1456 * gdb.c (main): Set interpreter_p argument.
1457 * Makefile.in (gdb.o): Add dependency for interps.h.
1458
fe97fe9c
AC
14592003-02-12 Andrew Cagney <ac131313@redhat.com>
1460
1461 * event-top.c (cli_command_loop): Delete declaration.
1462 (_initialize_event_loop): Delete function setting event_loop_hook.
1463 * event-top.h (cli_command_loop): Declare. Update copyright.
1464 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1465 * interps.c (current_interp_command_loop): When event_loop_p, call
1466 cli_command_loop.
1467
1cdac4ef
AC
14682003-02-12 Andrew Cagney <ac131313@redhat.com>
1469
1470 * interps.h (interp_command_loop_ftype): Change return type to
1471 void.
1472
48037ead
ML
14732003-02-12 Michal Ludvig <mludvig@suse.cz>
1474
1475 * x86-64-tdep.c (x86_64_extract_return_value)
1476 (x86_64_store_return_value): Use regcache instead of regbuf.
1477 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1478 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1479
033afc63
AC
14802003-02-11 Andrew Cagney <ac131313@redhat.com>
1481
1482 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1483 * aclocal.m4: Regenerate.
1484 * configure: Regenerate.
1485
1486 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1487 TCL_LD_SEARCH_FLAGS.
1488
40d02bca
ML
14892003-02-10 Michal Ludvig <mludvig@suse.cz>
1490
1491 * dwarf2cfi.c: Reindented.
1492
11308a41
AC
14932003-02-09 Andrew Cagney <ac131313@redhat.com>
1494
1495 * interps.c (clear_interpreter_hooks): Convert function definition
1496 to ISO C.
1497
e1c1c0f6
DC
14982003-02-07 David Carlton <carlton@math.stanford.edu>
1499
1500 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1501
ab5d3da6
KB
15022003-02-07 Kevin Buettner <kevinb@redhat.com>
1503
1504 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1505 (struct type): ...to here.
1506 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1507 field.
1508 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1509 (replace_type): Set length on all type variants for a given type.
1510
b8a92b82
AC
15112003-02-07 Andrew Cagney <ac131313@redhat.com>
1512
1513 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1514 <sys/stat.h>.
1515 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1516
5cb316ef
AC
15172003-02-06 Andrew Cagney <ac131313@redhat.com>
1518
2555fe1a
AC
1519 * Makefile.in (symm-nat.o): Update dependencies.
1520 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1521 (lynx-nat.o, ia64-linux-nat.): Ditto.
1522 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1523 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1524 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1525
44270758
AC
1526 * Makefile.in (inflow_h): Define.
1527 (procfs.o, inflow.o, procfs.o): Update dependencies.
1528 * inftarg.c (child_stop): Delete extern declaration of
1529 inferior_process_group. Include "inflow.h".
1530 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1531 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1532 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1533 (our_process_group, inferior_process_group): Extern declarations.
1534
df8f7274
AC
1535 * procfs.c: Include "gdb_assert.h".
1536
5cb316ef
AC
1537 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1538 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1539 * jv-typeprint.c (java_type_print_base): Ditto.
1540 * typeprint.c (typedef_print): Eliminate STREQ.
1541 * cli/cli-script.c (define_command, define_command): Ditto.
1542 * main.c (captured_main): Ditto.
1543 * values.c (lookup_internalvar): Ditto.
1544 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1545 within `if' conditional.
1546 * linespec.c (decode_line_2): Ditto.
1547 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1548 (bfd_openw_with_cleanup): Ditto.
1549
2a28ccea
MK
15502003-02-07 Mark Kettenis <kettenis@gnu.org>
1551
1552 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1553 legacy_extract_return_value and store_return_value to
1554 legacy_return_value.
1555
786b8124
CF
15562003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1557
1558 * win32-nat.c (get_relocated_section_addrs): New function. Find
1559 section load addresses for symbol handling in relocated DLLs.
1560 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1561
b871e4ec
FF
15622003-02-05 Fred Fish <fnf@intrinsity.com>
1563
1564 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1565 '=' and '!='.
1566 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1567 with '&' and '=='.
1568 (angel_RDI_info): Ditto.
1569 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1570 with '&' and '!='.
1571 (threads_continue_all_with_signals): Ditto.
1572
4389a95a
AC
15732003-02-05 Jim Ingham <jingham@apple.com>
1574 Keith Seitz <keiths@redhat.com>
1575 Elena Zannoni <ezannoni@redhat.com>
1576 Andrew Cagney <ac131313@redhat.com>
1577
1578 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1579 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1580 (SUBDIR_MI_OBS): Add "mi-interp.o".
1581 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1582 (SFILES): Add "interps.c".
1583 (COMMON_OBS): Add "interps.o".
1584 (interps_h, mi_main_h): Define.
1585 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1586 (mi-main.o, main.o, event-top.o): Update dependencies.
1587 * cli/cli-interp.c: New file.
1588 * interps.h, interps.c: New files.
1589 * top.c: (gdb_init): Don't install the default interpreter, handed
1590 by captured_main.
1591 * main.c: Include "interps.h".
1592 (interpreter_p): Note that it should malloc'ed.
1593 (captured_command_loop): Call current_interp_command_loop.
1594 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1595 xfree and xstrdup when updating interpreter_p. Install the
1596 default interpreter. Add hack to stop mi1's copyright notice
1597 being encoded.
1598 * event-top.h (gdb_setup_readline): Declare.
1599 (gdb_disable_readline): Declare.
1600 * event-top.c: Include "interps.h".
1601 (display_gdb_prompt): Call current_interp_display_prompt_p.
1602 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1603 gdb_stdlog, and gdb_stdtarg.
1604 (_initialize_event_loop): Don't call gdb_setup_readline.
1605 * cli-out.c (cli_out_set_stream): New function.
1606 * cli-out.h (cli_out_set_stream): Declare.
1607
ff3b5810
MK
16082003-02-06 Mark Kettenis <kettenis@gnu.org>
1609
1610 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1611 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1612 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1613 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1614 config/i386/i386v42mp.mt: Removed.
1615
5b729aa5
MK
16162003-02-05 Mark Kettenis <kettenis@gnu.org>
1617
1618 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1619 GDB_OSABI_SOLARIS.
1620
8cc15142
MC
16212003-02-05 Michael Chastain <mec@shout.net>
1622
1623 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1624 2.12.1 and earlier versions.
1625
5aa5d4b9
AC
16262003-02-05 Andrew Cagney <ac131313@redhat.com>
1627
1628 Remove orphaned hosts, targets and files.
1629 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1630 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1631 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1632 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1633 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1634 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1635 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1636 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1637 * config/sparc/tm-sp64sim.h: Delete.
1638 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1639 hosts.
1640 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1641 mips*-dec-mach3* targets.
1642
b68767c1
MC
16432003-02-04 Michael Chastain <mec@shout.net>
1644
1645 * NEWS: Fix typo: sepcifying -> specifying.
1646
5ae7ca1d
MC
16472003-02-04 Michael Chastain <mec@shout.net>
1648
1649 * dwarfread.c: Add documentation on the state of dwarf-1,
1650 looking towards obsoletion.
1651
d08a4280
MC
16522003-02-03 Michael Chastain <mec@shout.net>
1653
1654 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1655 gdb/testsuite/gdb.c++/pr-1023.exp.
1656
e9be73e4
AC
16572003-02-04 Andrew Cagney <ac131313@redhat.com>
1658
1659 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1660 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1661
1662 * utils.c (init_page_info): Delete reference to MPW in comments.
1663 * main.c (captured_main): Delete #ifdef MPW.
1664
05d57f6f
AC
16652003-02-04 Andrew Cagney <ac131313@redhat.com>
1666
1667 * NEWS: Note that the m32r-*-elf* is obsolete.
1668 * monitor.c (monitor_expect): Obsolete reference to m32r.
1669 * configure.tgt: Mark m32r-*-elf* as obsolete.
1670 * MAINTAINERS: Mark m32k as obsolete.
1671 * m32r-rom.c: Obsolete file.
1672 * config/m32r/m32r.mt: Obsolete file.
1673 * config/m32r/tm-m32r.h: Obsolete file.
1674 * m32r-stub.c: Obsolete file.
1675 * m32r-tdep.c: Obsolete file.
1676
8b0e5691
AC
16772003-02-04 Andrew Cagney <ac131313@redhat.com>
1678
1679 * NEWS: Mention that the z8k-zilog-none is obsolete.
1680 * MAINTAINERS: Mark z8k as obsolete.
1681 * configure.tgt: Obsolete the z8k-*-coff* target.
1682 * config/z8k/z8k.mt: Obsolete file.
1683 * config/z8k/tm-z8k.h: Obsolete file.
1684 * z8k-tdep.c: Obsolete file.
1685
67f16606
AC
16862003-02-04 Andrew Cagney <ac131313@redhat.com>
1687
1688 * NEWS: Mention that the mn10200-elf is obsolete.
1689 * configure.tgt: Obsolete mn10200-*-* target.
1690 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1691 mention that the mn10200 is obsolete.
1692 * breakpoint.h: Ditto.
1693 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1694 * config/mn10200/mn10200.mt: Obsolete file.
1695 * config/mn10200/tm-mn10200.h: Obsolete file.
1696 * mn10200-tdep.c: Obsolete file.
1697
fd2299bd
AC
16982003-02-04 Andrew Cagney <ac131313@redhat.com>
1699
1700 * MAINTAINERS: Mark h8500 as obsolete.
1701 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1702 * findvar.c (value_from_register): Ditto.
1703 * h8500-tdep.c: Mark file as obsolete.
1704 * config/h8500/h8500.mt: Ditto.
1705 * config/h8500/tm-h8500.h: Ditto.
1706 * NEWS: Mention that h8500 is obsolete.
1707
eb9a305d
DC
17082003-02-04 David Carlton <carlton@math.stanford.edu>
1709
1710 * objfiles.c (allocate_objfile): Always set name. Add comment at
1711 start of function.
1712 * jv-lang.c (get_dynamics_objfile): Add comment.
1713
406fc7fb
DC
17142003-02-04 David Carlton <carlton@math.stanford.edu>
1715
1716 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1717 * printcmd.c (build_address_symbolic): Replace uses of
1718 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1719 SYMBOL_NAME, and asm_demangle.
1720 Update copyright.
1721
93d91629
DC
17222003-02-04 David Carlton <carlton@math.stanford.edu>
1723
1724 * linespec.c (decode_compound): Extract code into
1725 lookup_prefix_sym.
1726 (lookup_prefix_sym): New function.
1727
1c5cb38e
DC
17282003-02-04 David Carlton <carlton@math.stanford.edu>
1729
1730 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1731 FLOAT_COERCION_BADNESS.
1732 * gdbtypes.c (rank_one_type): Replace all uses of
1733 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1734
0cf824c9
JB
17352003-02-04 Jim Blandy <jimb@redhat.com>
1736
1737 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1738 section, let dwarf_macinfo_section point to it, not
1739 dwarf_loc_section.
1740
a2d356b0
DJ
17412003-02-04 Daniel Jacobowitz <drow@mvista.com>
1742
1743 Pointed out by Anton Blanchard <anton@samba.org>.
1744 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1745 (ppc_linux_at_sigtramp_return_path): Use it.
1746
2de7ced7
DJ
17472003-02-04 Daniel Jacobowitz <drow@mvista.com>
1748
1749 * defs.h (streq): Add prototype.
1750 * utils.c (streq): New function.
1751
1752 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1753 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1754 * mdebugread.c (new_symbol): Likewise.
1755 * stabsread.c (define_symbol): Likewise.
1756 * coffread.c (process_coff_symbol): Likewise.
1757 * dwarfread.c (new_symbol): Likewise.
1758
1759 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1760 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1761 here.
1762 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1763 SYMBOL_INIT_DEMANGLED_NAME.
1764 * objfiles.c: Include "hashtab.h".
1765 (allocate_objfile): Call htab_set_functions_ex for the
1766 demangled_names_hash.
1767 (free_objfile): Call htab_delete for the demangled_names_hash.
1768 * objfiles.h (struct htab): Add declaration.
1769 (struct objfile): Add demangled_names_hash.
1770 * symfile.c: Include "hashtab.h".
1771 (reread_symbols): Call htab_delete for the demangled_names_hash.
1772 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1773 SYMBOL_NAME in the bcache.
1774 * symtab.c: Include "hashtab.h". Update comments.
1775 (create_demangled_names_hash, symbol_set_names): New functions.
1776 (symbol_find_demangled_name): New function, broken out from
1777 symbol_init_demangled_names.
1778 (symbol_init_demangled_names): Use it.
1779 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1780 (SYMBOL_SET_NAMES): New macro.
1781 (symbol_set_names): Add prototype.
1782
15831452
JB
17832003-02-03 Jim Blandy <jimb@redhat.com>
1784
1785 Use a single, consistent representation for an empty minimal
1786 symbol table in an objfile.
1787 * objfiles.c (terminate_minimal_symbol_table): New function.
1788 (allocate_objfile): Call it.
1789 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1790 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1791 non-NULL.
1792 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1793 objfile has minimal symbols, compare minimal_symbol_count to zero,
1794 instead of comparing msymbols with NULL.
1795 * objfiles.c (have_minimal_symbols): Same.
1796 * solib-sunos.c (solib_add_common_symbols): Call
1797 terminate_minimal_symbol_table.
1798 * symfile.c (reread_symbols): Same.
1799
ffc65945
KB
18002003-02-03 Kevin Buettner <kevinb@redhat.com>
1801
1802 * s390-tdep.c (s390_address_class_type_flags)
1803 (s390_address_class_type_flags_to_name)
1804 (s390_address_class_name_to_type_flags): New functions.
1805 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1806 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1807
f211c6d4
MS
18082003-02-03 Michael Snyder <msnyder@redhat.com>
1809
1810 * arm-tdep.c: Fix spell-o in comment.
1811
659b0389
ML
18122003-02-03 Michal Ludvig <mludvig@suse.cz>
1813
1814 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1815 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1816 error messages to contain BFD filename.
1817
3b31d625
EZ
18182003-02-02 Elena Zannoni <ezannoni@redhat.com>
1819
997b089a 1820 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
1821 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1822 (do_mixed_source_and_assembly): Use
1823 make_cleanup_ui_out_tuple_begin_end and
1824 make_cleanup_ui_out_tuple_begin_end.
1825 (do_mixed_source_and_assembly): Ditto.
1826 * thread.c (do_captured_list_thread_ids): Ditto.
1827 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1828 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1829 ui_out_tuple_end): Delete prototypes.
1830 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1831 ui_out_list_end, ui_out_tuple_end): Delete.
1832
1833 From Kevin Buettner <kevinb@redhat.com>:
1834 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1835 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1836 (do_cleanup_table_end): New functions.
1837 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1838 Use cleanups to invoke_ui_out_tuple_end().
1839 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1840 * cli/cli-setshow.c (cmd_show_list): Use
1841 make_cleanup_ui_out_tuple_begin_end.
1842
5b181d62
AC
18432003-02-02 Andrew Cagney <ac131313@redhat.com>
1844
1845 * frame.c (frame_unwind_register): New function.
1846 (frame_unwind_unsigned_register): Use.
1847 (frame_unwind_signed_register): Use.
1848 (frame_read_register): New function.
1849 * frame.h (frame_unwind_register): Declare.
1850 (frame_read_register): Declare.
1851
1852 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1853 and frame_unwind_register instead of read_memory, write_register
1854 and deprecated_write_register_bytes.
1855
5f601589
AC
18562003-02-02 Andrew Cagney <ac131313@redhat.com>
1857
1858 * frame.h: Note that namelen can be negative.
1859 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1860 NAME's length.
1861
1862 * NEWS: Mention that the d10v's `regs' command is deprecated.
1863 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1864 (d10v_print_registers_info): New function.
1865 (show_regs): Call d10v_print_registers_info.
1866 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1867
6a3fe0a4
MK
18682003-02-02 Mark Kettenis <kettenis@gnu.org>
1869
1870 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1871 lost in the previous patch.
1872
075559bc
AC
18732003-02-01 Andrew Cagney <ac131313@redhat.com>
1874
1875 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1876 * stack.c (print_frame_info_base): Output complete FRAME tuple
1877 for synthesized frames.
1878
6789195b
AC
18792003-02-02 Andrew Cagney <ac131313@redhat.com>
1880
1881 * mips-nat.c (zerobuf): Delete.
1882 (fetch_inferior_registers): Alloc local zerobuf.
1883 (fetch_core_registers): Alloc local zerobuf.
1884 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1885 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1886 * thread-db.c (thread_db_store_registers): Ditto.
1887 * sh-tdep.c (sh_do_register): Ditto.
1888 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1889 * remote-sim.c (gdbsim_store_register): Ditto.
1890 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1891 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1892 * monitor.c (monitor_supply_register): Ditto.
1893 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1894 * mips-nat.c (fetch_inferior_registers): Ditto.
1895 * m68klinux-nat.c (fetch_register): Ditto.
1896 * lynx-nat.c (fetch_inferior_registers): Ditto.
1897 (fetch_inferior_registers): Ditto.
1898 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1899 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1900 (hpux_thread_store_registers): Ditto.
1901 * hppah-nat.c (fetch_register): Ditto.
1902 * hppab-nat.c (fetch_register): Ditto.
1903 * hppa-tdep.c (pa_register_look_aside): Ditto.
1904 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1905 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1906
e669114a
AC
19072003-02-01 Andrew Cagney <ac131313@redhat.com>
1908
1909 * gdbarch.sh: Explictly specify all method levels. When a
1910 variable with an empty level, provide a non-multi-arch default.
1911 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1912 * gdbarch.h: Re-generate.
1913 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1914 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1915
9a043c1d
AC
19162003-02-01 Andrew Cagney <ac131313@redhat.com>
1917
1918 * defs.h (host_pointer_to_address): Delete declaration.
1919 (address_to_host_pointer): Delete declaration.
1920 * utils.c (host_pointer_to_address): Delete function.
1921 (address_to_host_pointer): Delete function.
1922 * procfs.c (procfs_address_to_host_pointer): New function.
1923 * procfs.c (proc_set_watchpoint): Use.
1924 (procfs_can_use_hw_breakpoint): Update comments.
1925 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1926 (som_solib_add): Use.
1927 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1928 * hppa-tdep.c (unwind_command): Use.
1929
7ca9f392
AC
19302003-02-01 Andrew Cagney <ac131313@redhat.com>
1931
94bbfd30
AC
1932 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1933 strlen d_name.
1934
7ca9f392
AC
1935 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1936 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1937 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1938 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1939 (define_symbol): Update.
1940 * symfile.c (generic_load): Remove references to nindy.
1941 * symtab.c: Remove references to nindy.
1942
31a85ea2
AC
19432003-02-01 Andrew Cagney <ac131313@redhat.com>
1944
1945 * infcmd.c (print_float_info): Delete code conditional on
1946 FLOAT_INFO.
1947 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1948 * config/m68k/nm-apollo68b.h: Ditto.
1949 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1950 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1951 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1952
f6e85fc8
MK
19532003-02-01 Mark Kettenis <kettenis@gnu.org>
1954
6015b6a0
MK
1955 * config/i386/tm-i386os9k.h: Removed.
1956
f7a30bdf
MK
1957 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1958 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1959 they're identical to i[3456]86-*-sysv* now.
1960 * config/i386/i386v32.mh: Removed.
1961 * config/i386/xm-i386v32.h: Removed.
1962 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1963
28d52111
MK
1964 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1965
4d3f6bce
MK
1966 * config/i386/i386dgux.mh: Removed.
1967 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1968
f6e85fc8
MK
1969 * configure.in: Fix typo.
1970 * configure: Regenerated.
1971
53955967
DC
19722003-01-31 David Carlton <carlton@math.stanford.edu>
1973
1974 * dwarf2read.c (dwarf2_locate_sections): Set
1975 dwarf_ranges_section.
1976
b1364885
AC
19772003-01-31 Andrew Cagney <ac131313@redhat.com>
1978
8dbb1c65
AC
1979 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1980 * utils.c: Update comments documenting legitimate uses of PTR.
1981
8731e58e
AC
1982 * utils.c: Re-indent.
1983
b1364885
AC
1984 * config/djgpp/fnchange.lst: Delete nindy files.
1985 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1986 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1987 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1988 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1989 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1990 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1991 * Makefile.in (init.c): Remove nindy references.
1992 (saber_gdb): Delete rule.
1993 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1994 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1995 and a68v-nat.c.
1996 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1997 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1998 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1999 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2000 nindy-share/stop.h.
2001 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2002 * saber.suppress: Delete file.
2003
086df311
DJ
20042003-01-31 Daniel Jacobowitz <drow@mvista.com>
2005
2006 * dbxread.c (stabs_data): New static variable.
2007 (fill_symbuf): Support an in-memory buffer for stabs data.
2008 (stabs_seek): New function.
2009 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2010 (read_ofile_symtab): Use stabs_seek.
2011 (elfstab_build_psymtabs): Take an asection* instead of
2012 an offset and size. Relocate the stabs data if necessary.
2013 Save the section* for dbx_psymtab_to_symtab.
2014 * dwarf2read.c: Add section variables for each debug section.
2015 (dwarf2_locate_sections): Fill them in.
2016 (dwarf2_read_section): Take an asection* argument.
2017 Relocate the section contents if necessary.
2018 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2019 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2020 it to dwarf2_read_section.
2021 (dwarf2_build_frame_info): Update callers.
2022 * elfread.c (elf_symfile_read): Update call to
2023 elfstab_build_psymtabs.
2024 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2025 (DBX_STAB_SECTION): New macro.
2026 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2027 * symfile.c (symfile_dummy_outputs): New function.
2028 (symfile_relocate_debug_section): New function.
2029 * symfile.h (symfile_relocate_debug_section): Add prototype.
2030
87d1b352
RH
20312003-01-31 Richard Henderson <rth@redhat.com>
2032
2033 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2034 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2035 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2036 * alpha-tdep.c (alpha_register_name): Add "unique".
2037 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2038 (ALPHA_UNIQUE_REGNUM): New.
2039 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2040
c48861fb
AC
20412003-01-31 Andrew Cagney <ac131313@redhat.com>
2042
2043 * README: Remove reference to Ericsson 1800 monitor.
2044 * Makefile.in (remote-es.o): Delete rule.
2045 (ALLDEPFILES): Delete remote-es.c.
2046 * remote-es.c: Delete file.
2047 * config/m68k/es1800.mt: Delete file.
2048 * config/djgpp/fnchange.lst: Update.
2049 * configure.tgt: Delete m68*-ericsson-* target.
2050
d764a824
AF
20512003-01-31 Adam Fedor <fedor@gnu.org>
2052
2053 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2054 Remove duplicate/shadowing variable of same name.
2055
fe36c4f4
JB
20562003-01-30 Jim Blandy <jimb@redhat.com>
2057
2058 * symfile.c (find_separate_debug_file): Assert that the objfile's
2059 directory name we compute ends with a slash, and then assume that
2060 that's so everywhere we use it.
2061
cb741690
DJ
20622003-01-30 Daniel Jacobowitz <drow@mvista.com>
2063
2064 * valops.c (value_assign): Flush frame cache after stores to memory
2065 also.
2066
96ee5227
AC
20672003-01-30 Andrew Cagney <ac131313@redhat.com>
2068
2069 * Makefile.in (mon960-rom.o): Delete rule.
2070 * mon960-rom.c: Delete file.
2071
7f6104a9
AC
20722003-01-30 Andrew Cagney <ac131313@redhat.com>
2073
2074 * d10v-tdep.c: Include "frame-unwind.h".
2075 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2076 list.
2077 (next_addr, uses_frame): Delete.
2078 (struct d10v_unwind_cache): Define.
2079 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2080 Use info instead of next_addr and uses_frame globals.
2081 (d10v_frame_init_saved_regs): Delete function.
2082 (d10v_init_extra_frame_info): Delete function.
2083 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2084 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2085 init_frame_pc or frame_saved_pc.
2086 (d10v_pop_frame): Delete function.
2087 (do_d10v_pop_frame): Delete function.
2088 (d10v_frame_chain): Delete function.
2089 (d10v_frame_chain_valid): Delete function.
2090 (d10v_frame_pc_unwind): New function.
2091 (d10v_frame_id_unwind): New function.
2092 (saved_regs_unwinder): New function.
2093 (d10v_frame_register_unwind): New function.
2094 (d10v_frame_pop): New function.
2095 (d10v_frame_unwind): New variable.
2096 (d10v_frame_p): New function.
2097 (d10v_frame_saved_pc): Delete function.
2098 * Makefile.in (d10v-tdep.o): Update dependencies.
2099
cad2e848
JB
21002003-01-30 J. Brobecker <brobecker@gnat.com>
2101
2102 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2103 causing some regressions due to a change in the default value
2104 for this macro.
2105
af34e669
DJ
21062003-01-29 Richard Henderson <rth@redhat.com>
2107 Elena Zannoni <ezannoni@redhat.com>
2108 Daniel Jacobowitz <drow@mvista.com>
2109
2110 Fix PR gdb/961.
2111 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2112 variables.
2113 (RANGES_SECTION): New.
2114 (dwarf_ranges_buffer): New variable.
2115 (struct comp_unit_head): Add member "die".
2116 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2117 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2118 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2119 (dwarf2_locate_sections): Likewise.
2120 (dwarf2_build_psymtabs): Read .debug_ranges.
2121 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2122 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2123 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2124 Look for DW_AT_ranges and return the bounding box.
2125
baa93fa6
CF
21262003-01-29 Brian Ford <ford@vss.fsi.com>
2127
2128 * win32-nat.c (cygwin_pid): Removed as unused.
2129 (child_attach): Try fall back to Cygwin pid.
2130
c63f977f
JB
21312003-01-29 Jim Blandy <jimb@redhat.com>
2132
2133 * objfiles.h (struct objfile): Doc fix.
2134
d62d1979
AC
21352003-01-29 Andrew Cagney <ac131313@redhat.com>
2136
2137 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2138 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2139 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2140 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2141 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2142 (FRAME_SAVED_PC): Change to a function with predicate.
2143 * gdbarch.h, gdbarch.c: Re-generate.
2144
1ae18a04
AC
21452003-01-28 Andrew Cagney <ac131313@redhat.com>
2146
52287340
AC
2147 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2148
1ae18a04
AC
2149 * complaints.c (complain): Delete function.
2150 * complaints.h (struct deprecated_complaint): Delete definition.
2151 (complain): Delete declaration.
2152
f2c16bd6
KB
21532003-01-28 Kevin Buettner <kevinb@redhat.com>
2154
2155 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2156 dummy frames.
2157
a94dd1fd
AC
21582003-01-27 Andrew Cagney <ac131313@redhat.com>
2159
2160 * sentinel-frame.h, sentinel-frame.c: New files.
2161 * Makefile.in (frame.o): Update dependencies.
2162 (SFILES): Add sentinel-frame.c.
2163 (sentinel_frame_h): Define.
2164 (COMMON_OBS): Add sentinel-frame.o.
2165 (sentinel-frame.o): Specify dependencies.
2166 * frame.c: Include "sentinel-frame.h".
2167 (frame_register_unwind): Rewrite assuming that there is always a a
2168 ->next frame.
2169 (frame_register, generic_unwind_get_saved_register): Ditto.
2170 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2171 (create_sentinel_frame, unwind_to_current_frame): New functions.
2172 (get_current_frame): Rewrite using create_sentinel_frame and
2173 unwind_to_current_frame. When possible, always create a frame.
2174 (create_new_frame): Set next to the sentinel frame.
2175 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2176 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2177 ID cache when necessary.
2178 (frame_saved_regs_id_unwind): Use frame_relative_level.
2179 (deprecated_generic_get_saved_register): Use frame_relative_level,
2180 get_frame_saved_regs, get_frame_pc, get_frame_base and
2181 get_next_frame.
2182 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2183 frame_register.
2184
5378adc4
DJ
21852003-01-27 Daniel Jacobowitz <drow@mvista.com>
2186
2187 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2188
51ee2ddc
DJ
21892003-01-27 Daniel Jacobowitz <drow@mvista.com>
2190
2191 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2192 (maintenance_set_profile_cmd): Use error () instead of warning ().
2193
d9feb4e7
DJ
21942003-01-27 Daniel Jacobowitz <drow@mvista.com>
2195
2196 * configure.in: Check that -pg works if using --enable-profiling.
2197 Check for monstartup and _mcleanup regardless of --enable-profiling.
2198 * maint.c: Check for monstartup and _mcleanup before using them.
2199 * config.in: Regenerated.
2200 * configure: Regenerated.
2201
2d188dd3
NC
22022003-01-24 Nick Clifton <nickc@redhat.com>
2203
2204 * Add sh2e support:
2205
2206 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2207
2208 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2209 (sh2e_show_regs): New.
2210 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2211 * config/sh/tm-sh.h: Added sh2e to comments.
2212
cb3c37b2
JB
22132003-01-23 Jim Blandy <jimb@redhat.com>
2214
2215 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2216 symbols found)" message here; we haven't checked for a separate
2217 debug info file yet, so we don't know yet.
2218 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2219 we've looked everywhere. Also, there's no need to print a special
2220 message when we're loading the separate debug info file: the one
2221 symbol_file_add prints is fine.
2222
5b5d99cf
JB
22232003-01-23 Alexander Larsson <alexl@redhat.com>
2224 Jim Blandy <jimb@redhat.com>
2225
2226 Add support for executables whose debug info has been separated
2227 out into a separate file, leaving only a link behind.
2228 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2229 and separate_debug_objfile_backlink.
2230 (put_objfile_before): New declaration.
2231 * symfile.c: #include "filenames.h".
2232 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2233 debug info in a separate file, read that, too. Save the addrs
2234 argument, so we can use it again to read the separated debug info;
2235 syms_from_objfile modifies the table we pass it.
2236 (reread_symbols): After re-reading an objfile, call
2237 reread_separate_symbols to refresh its separate debug info
2238 objfile, if it has one.
2239 (reread_separate_symbols, find_separate_debug_file,
2240 get_debug_link_info, separate_debug_file_exists): New functions.
2241 (debug_file_directory): New global var.
2242 (_initialize_symfile): Initialize debug_file_directory, and
2243 provide the new `set debug-file-directory' command to let the user
2244 change it.
2245 * objfiles.c (free_objfile): If this objfile has its debug info in
2246 a separate objfile, free that one too. If this is itself a
2247 separate debug info objfile, clear our parent's backlink.
2248 (put_objfile_before): New function.
2249 * utils.c (gnu_debuglink_crc32): New function.
2250 * defs.h (gnu_debuglink_crc32): New declaration.
2251 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2252 * configure.in: Handle --with-separate-debug-dir config option.
2253 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2254 * acconfig.h (DEBUGDIR): New macro.
2255 * configure, aclocal.m4, config.in: Regenerated.
2256
7e8580c1
JB
22572003-01-22 Jim Blandy <jimb@redhat.com>
2258
7904e09f
JB
2259 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2260 like the old symbol_file_add, but taking new arguments: you can
2261 now pass in either a `struct section_addr_info' list to say where
2262 each section is loaded, or a `struct section_offsets' table. Pass
2263 these new arguments through to syms_from_objfile as appropriate.
2264 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2265 with the appropriate quiescent values for the new arguments.
2266
7e8580c1
JB
2267 * symfile.c: #include "gdb_assert.h".
2268 (syms_from_objfile): Add the ability to pass in a section offset
2269 table directly, as an alternative to the section_addr_info table.
2270 Document arguments better.
2271 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2272 * symfile.h (syms_from_objfile): Update declaration.
2273 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2274 syms_from_objfile.
2275 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2276
d28f9cdf
DJ
22772003-01-22 Daniel Jacobowitz <drow@mvista.com>
2278
2279 Original patch by Tom Tromey <tromey@cygnus.com> and
2280 Jason Molenda <jmolenda@apple.com>.
2281 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2282 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2283 * NEWS: Mention profiling.
2284 * configure.in (--enable-gdbtk): Fix typo.
2285 (--enable-profiling): New. Set PROFILE_CFLAGS.
2286 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2287 Fill in function.
2288 (profiling_state): New variable.
2289 (mcleanup_wrapper): New function.
2290 (_initialize_maint): Remove NOTYET, fix call to
2291 add_setshow_boolean_cmd for "maint set profile".
2292 * configure: Regenerated.
2293
df21e465
MH
22942003-01-21 Martin M. Hunt <hunt@redhat.com>
2295
2296 * Makefile.in (install-gdbtk): Install PNG images too.
2297
73c1f219
AC
22982003-01-21 Andrew Cagney <ac131313@redhat.com>
2299
2300 * exec.c (text_start): Delete global variable.
2301 (exec_file_attach): Make text_start local to the function.
2302 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2303 * valops.c (hand_function_call): Delete code that handles
2304 BEFORE_TEXT_END and AFTER_TEXT_END.
2305 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2306 of CALL_DUMMY_LOCATION.
2307 * gdbarch.c: Regenerate.
2308 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2309 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2310 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2311 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2312 (text_end): Delete extern declaration.
2313
eb4f72c5
AC
23142003-01-21 Andrew Cagney <ac131313@redhat.com>
2315
2316 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2317 * blockframe.c (backtrace_below_main): Move to "frame.c".
2318 (frame_chain_valid): Delete check for backtrace_below_main.
2319 (_initialize_blockframe): Delete initialization, move ``set
2320 backtrace-below-main'' command to "frame.c".
2321 (do_flush_frames_sfunc): Delete function.
2322 * frame.c: Include "command.h" and "gdbcmd.h".
2323 (frame_type_from_pc): New function.
2324 (create_new_frame): Use frame_type_from_pc.
2325 (legacy_get_prev_frame): New function.
2326 (get_prev_frame): Rewrite. When an old style frame, call
2327 legacy_get_prev_frame. Otherwize, unwind the PC first.
2328 (_initialize_frame): Add ``set backtrace-below-main'' command.
2329 * Makefile.in (frame.o): Update dependencies.
2330
778ce8cc
AC
23312003-01-19 Andrew Cagney <ac131313@redhat.com>
2332
2333 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2334 DEPRECATED_REGISTERS_INFO.
2335
01c193c8
AC
23362003-01-19 Andrew Cagney <ac131313@redhat.com>
2337
2338 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2339 Maintainers'. Update `Various Maintainers'.
2340
dedc2a2b
AC
23412003-01-19 Andrew Cagney <ac131313@redhat.com>
2342
2343 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2344 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2345 Suppress actual parameters when `-'.
2346 * gdbarch.h, gdbarch.c: Regenerate.
2347
b7261c70
AC
23482003-01-19 Andrew Cagney <ac131313@redhat.com>
2349
2350 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2351 code handling dummy frames.
2352
dbe9fe58
AC
23532003-01-19 Andrew Cagney <ac131313@redhat.com>
2354
2355 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2356 (struct frame_unwind): Add field pop.
2357 * frame.h (frame_pop): Declare.
2358 * frame.c (frame_saved_regs_pop): New function.
2359 (trad_frame_unwinder): Add frame_saved_regs_pop.
2360 (frame_pop): New function.
2361 * dummy-frame.c (dummy_frame_pop): New function.
2362 (discard_innermost_dummy): New function.
2363 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2364 (dummy_frame_unwind): Add dummy_frame_pop.
2365 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2366 * valops.c (hand_function_call): Ditto.
2367 * stack.c (return_command): Ditto.
2368
570b8f7c
AC
23692003-01-18 Andrew Cagney <ac131313@redhat.com>
2370
2371 * cris-tdep.c: Fix function declaration indentation.
2372 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2373 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2374 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2375 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2376 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2377 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2378
23792003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
2380
2381 * README (Unpacking and Installation -- quick overview):
2382 Warn against ".../gdb-5.3/gdb/configure".
2383
494cca16
AC
23842003-01-18 Andrew Cagney <ac131313@redhat.com>
2385
2386 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2387 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2388 (struct frame_unwind): Declare opaque.
2389 (dummy_frame_p): Declare function.
2390 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2391 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2392 * dummy-frame.c: Include "frame-unwind.h".
2393 (dummy_frame_p): New function.
2394 (dummy_frame_unwind): New variable.
2395 * frame.c: Include "frame-unwind.h".
2396 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2397 to use the new unwind field.
2398 (set_unwind_by_pc): Delete function.
2399 (create_new_frame, get_prev_frame): Set unwind field using
2400 frame_unwind_find_by_pc.
2401 (trad_frame_unwind, trad_frame_unwinder): New variables.
2402 * frame.h (trad_frame_unwind): Declare variable.
2403 (frame_id_unwind_ftype): Delete declaration.
2404 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2405 (struct frame_unwind): Declare opaque.
2406 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2407 register_unwind with a single unwind pointer.
2408 * frame-unwind.h, frame-unwind.c: New files.
2409 * Makefile.in (SFILES): Add frame-unwind.c.
2410 (frame_unwind_h): Define.
2411 (COMMON_OBS): Add frame-unwind.o.
2412 (frame-unwind.o): Specify dependencies.
2413 (frame.o, dummy-frame.o): Update dependencies.
2414
4efb68b1
AC
24152003-01-18 Andrew Cagney <ac131313@redhat.com>
2416
2417 * ada-valprint.c: Eliminate PTR.
2418 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2419 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2420 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2421 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2422 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2423 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2424 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2425
a84d24ee
AC
24262003-01-17 Andrew Cagney <ac131313@redhat.com>
2427
762f08a3
AC
2428 * main.c (captured_main): Don't use PTR.
2429 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2430 * gdbtypes.c (lookup_primitive_typename): Ditto.
2431 (lookup_struct_elt_type): Ditto.
2432 * f-valprint.c (info_common_command): Ditto.
2433 (list_all_visible_commons): Ditto.
2434 * jv-typeprint.c (java_type_print_base): Ditto.
2435
a84d24ee
AC
2436 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2437 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2438 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2439 i386-interix-nat.c and i386-interix-tdep.c. Rename
2440 m68klinux-nat.c and m68klinux-tdep.c. Rename
2441 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2442 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2443 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2444 * main.c (captured_main): Use xfree, not free.
2445
c170fb60
AC
24462003-01-16 Andrew Cagney <ac131313@redhat.com>
2447
2448 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2449 ID back using a parameter.
2450 * frame.c (frame_id_unwind): Update call.
2451 (frame_saved_regs_id_unwind): Update.
2452 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2453 * dummy-frame.h (struct frame_id): Add opaque declaration.
2454 (dummy_frame_id_unwind): Update declaration.
2455
867f3898
AC
24562003-01-15 Andrew Cagney <ac131313@redhat.com>
2457
2458 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2459
40622be8 24602003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 2461
40622be8 2462 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 2463
ae66c1fc
EZ
24642003-01-14 Elena Zannoni <ezannoni@redhat.com>
2465
997b089a 2466 Fix PR gdb/898
ae66c1fc
EZ
2467 * breakpoint.c (until_break_command): Add new argument. Use it to
2468 decide whether to stop only at the current frame or not.
2469 * breakpoint.h (until_break_command): Update prototype.
2470 * infcmd.c (until_command): Add new argument to until_break_command
2471 call.
2472 (advance_command): New function.
2473 (_initialize_infcmd): Update help string for 'until' command.
2474 Add new 'advance' command.
2475
a04257e6
DC
24762003-01-14 David Carlton <carlton@math.stanford.edu>
2477
2478 * linespec.c (decode_line_1): Normalize comments.
2479 (set_flags): Ditto.
2480 (locate_first_half): Ditto.
2481 (decode_compound): Ditto.
2482 (symtab_from_filename): Ditto.
2483 (decode_all_digits): Ditto.
2484 (decode_dollar): Ditto.
2485 (find_methods): Ditto.
2486 (find_toplevel_char): Ditto.
2487
1bac305b
AC
24882003-01-13 Andrew Cagney <ac131313@redhat.com>
2489
2490 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2491 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2492 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2493 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2494 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2495 * language.c, language.h, m32r-tdep.c: Update copyright.
2496 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2497 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2498 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2499 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2500 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2501 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2502
25caa7a8
EZ
25032003-01-13 Elena Zannoni <ezannoni@redhat.com>
2504
2505 * stabsread.h (process_later, resolve_cfront_continuation):
2506 Obsolete.
2507 Update copyright years.
2508 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2509 Update copyright year.
2510 * dbxread.c(struct cont_elem): Obsolete.
2511 (process_later, process_now): Obsolete functions.
2512 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2513 Update copyright year.
2514 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2515 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2516 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2517 (parse_partial_symbols): Obsolete cfront support.
2518 * stabsread.c
2519 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2520 macros.
2521 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2522 read_cfront_baseclasses, read_cfront_member_functions,
2523 resolve_cfront_continuation,read_cfront_static_fields,
2524 copy_cfront_struct_fields): Obsolete functions.
2525 (define_symbol, read_one_struct_field): Obsolete cfront support.
2526 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2527 Update Copyright year.
2528
7789c6f5
EZ
25292003-01-13 Elena Zannoni <ezannoni@redhat.com>
2530
2531 * stack.c (print_frame_info, print_stack_frame_base_stub,
2532 print_stack_frame_base, show_and_print_stack_frame_stub,
2533 show_and_print_stack_frame, print_only_stack_frame_stub,
2534 print_only_stack_frame): Delete functions.
2535 (print_stack_frame_stub): Call print_frame_info instead of
2536 print_frame_info_base.
2537 (print_frame_info_base): Rename to print_frame_info.
2538 (backtrace_command_1): Call print_frame_info, instead of
2539 print_frame_info_base.
2540 (current_frame_command): Call print_stack_frame, instead of
2541 print_only_stack_frame.
2542 (frame_command): Call print_stack_frame, instead of
2543 show_and_print_stack_frame.
2544 (up_command): Ditto.
2545 (down_command): Ditto.
2546 * frame.h (print_only_stack_frame): Delete prototype.
2547 * infrun.c (normal_stop): Call print_stack_frame, instead of
2548 show_and_print_stack_frame.
2549 * thread.c (info_threads_command): Call print_stack_frame, instead
2550 of print_only_stack_frame.
2551
3f5a3016
AC
25522003-01-13 Andrew Cagney <ac131313@redhat.com>
2553
d99ba314
AC
2554 * README (Graphical interface to GDB): Update URL. Point at
2555 gdb/links/.
2556
3f5a3016
AC
2557 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2558 version match.
2559
083ae935
DJ
25602003-01-13 Daniel Jacobowitz <drow@mvista.com>
2561
2562 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2563 lines.
2564
5365276c
DJ
25652003-01-13 Daniel Jacobowitz <drow@mvista.com>
2566
2567 * thread-db.c (attach_thread): Prototype.
2568 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2569 thread information (ti), and valid flags (th_valid, ti_valid).
2570 (attach_thread): Move target_pid_to_str call to after the thread
2571 is added to GDB's list. Initialize the cache.
2572 (thread_get_info_callback, thread_db_map_id2thr)
2573 (thread_db_get_info): New functions.
2574 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2575 (thread_db_store_registers, thread_db_thread_alive)
2576 (thread_db_get_thread_local_address): Use them.
2577 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2578 of calling error() for threads in unknown state.
2579
2580 (clear_lwpid_callback): New function.
2581 (thread_db_resume): Use it to clear the cache.
2582
9fc30b6b
DJ
25832003-01-13 Daniel Jacobowitz <drow@mvista.com>
2584
2585 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2586 (resume_callback): Remove dead code.
2587
8f871025
AC
25882003-01-13 Andrew Cagney <ac131313@redhat.com>
2589
2590 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2591 predicate.
2592 * gdbarch.h, gdbarch.c: Regenerate.
2593 * stack.c (frame_info): Only initialize the saved registers when
2594 FRAME_INIT_SAVED_REGS_P.
2595 * frame.c (frame_saved_regs_register_unwind): Assert
2596 FRAME_INIT_SAVED_REGS_P.
2597 (deprecated_generic_get_saved_register): Ditto.
2598
3f565f1e
DJ
25992003-01-13 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * source.c (openp): Squelch warning about "filename".
2602
072b1022
DJ
26032003-01-13 Daniel Jacobowitz <drow@mvista.com>
2604
2605 * source.c (openp): If the file does not exist don't necessarily
2606 search the path.
2607
973ccf8b
DJ
26082003-01-13 Daniel Jacobowitz <drow@mvista.com>
2609
2610 Fix PR gdb/872.
2611 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2612 (integer_types_same_name_p): New function.
2613 (rank_one_type): Use it.
2614 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2615
030292b7
DJ
26162003-01-13 Daniel Jacobowitz <drow@mvista.com>
2617
2618 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2619 variables.
2620 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2621 * configure.in: Add --with-sysroot.
2622 * configure: Regenerated.
2623 * main.c (gdb_sysroot): New variable.
2624 (captured_main): Initialize gdb_sysroot.
2625 * defs.h (gdb_sysroot): New extern declaration.
2626 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2627
afb5d334
MC
26282003-01-12 Michael Chastain <mec@shout.net>
2629
2630 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2631
751ceeb4
MC
26322003-01-12 Michael Chastain <mec@shout.net>
2633
2634 * top.c (print_gdb_version): Bump copyright year to 2003.
2635
94cd26f8
DC
26362003-01-12 David Carlton <carlton@bactrian.org>
2637
2638 * linespec.c (symtab_from_filename): Rename variable 's' to
2639 'file_symtab'.
2640
1ce79225
AC
26412003-01-12 Andrew Cagney <ac131313@redhat.com>
2642
2643 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2644 dummy frame.
2645 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2646
fa1fd571
AC
26472003-01-12 Andrew Cagney <ac131313@redhat.com>
2648
2649 * d10v-tdep.c: Include "gdb_assert.h".
2650 (d10v_store_return_value): Rewrite to match current interface.
2651 (d10v_extract_struct_value_address): Ditto.
2652 (d10v_extract_return_value): Ditto.
2653 (d10v_gdbarch_init): Set store_restore_value,
2654 extract_struct_value_address and extract_return_value.
2655
68b8d23e
JB
26562003-01-12 J. Brobecker <brobecker@gnat.com>
2657
2658 * hpread.c (set_namestring): New procedure replacing the
2659 SET_NAMESTRING macro.
2660 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2661 by calls to set_namestring.
2662
26632003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
2664
2665 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2666 a compilation warning.
2667 (hpread_process_one_debug_symbol): Likewise.
2668
88d262ca
DC
26692003-01-10 David Carlton <carlton@math.stanford.edu>
2670
2671 * linespec.c (decode_line_1): Rename variable 's' to
2672 'file_symtab'.
2673 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2674 (decode_dollar): Ditto.
2675 (decode_variable): Ditto.
2676 (symbol_found): Ditto.
2677
86669319
MC
26782003-01-09 Michael Chastain <mec@shout.net>
2679
2680 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2681
616a9dc4
CV
26822003-01-07 Corinna Vinschen <vinschen@redhat.com>
2683
2684 * win32-nat.c (set_process_privilege): New function.
2685 (child_attach): Call set_process_privilege() to enable the
2686 SE_DEBUG_NAME user privilege if available in process token.
2687
3269bcfa
JB
26882003-01-10 J. Brobecker <brobecker@gnat.com>
2689
2690 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2691 compilation error in the previous revision.
2692
2b0ee454
DC
26932003-01-09 David Carlton <carlton@math.stanford.edu>
2694
2695 * linespec.c: Update copyright.
2696
b3ba1b44
DJ
26972003-01-09 Daniel Jacobowitz <drow@mvista.com>
2698
2699 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2700 than inferior_ptid.
2701 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2702
4ef3f3be
AC
27032003-01-09 Andrew Cagney <ac131313@redhat.com>
2704
479ab5a0
AC
2705 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2706 Update comments.
2707 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2708 (frame_saved_regs_zalloc): Update.
2709 (frame_saved_regs_register_unwind): Update.
2710 (create_new_frame): Update.
2711 (get_prev_frame): Update.
2712 (frame_extra_info_zalloc): Update.
2713 (deprecated_get_frame_saved_regs): Update.
2714 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2715 * cris-tdep.c: Update comment.
2716
bde58177
AC
2717 * somsolib.h: Fix function indentation.
2718 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2719 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2720 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2721 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2722 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2723
4ef3f3be
AC
2724 * infrun.c (follow_fork): Use ISO C definition.
2725 * expprint.c (print_subexp): Use xfree instead of free.
2726 * charset.c: Include "gdb_string.h" instead of <string.h>.
2727 (register_iconv_charsets): Use ISO C definition.
2728 (host_charset, target_charset): Ditto.
2729 * Makefile.in (charset.o): Update dependencies.
2730 (mi-cmd-env.o): Update dependencies.
2731
1c615f7a
AC
27322003-01-08 Andrew Cagney <cagney@redhat.com>
2733
2734 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2735 get_frame_base.
2736
c9a1dc08
AC
27372003-01-08 Andrew Cagney <ac131313@redhat.com>
2738
2739 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2740 build directories. Save edited gdb output in Mbuild.log. If a
2741 build fails, remove any final GDB executable.
2742
dbad9d94
AC
27432003-01-08 Andrew Cagney <ac131313@redhat.com>
2744
2745 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2746 replacing hex constants with function names and stripping leading
2747 file name directory prefixes.
2748
8d357cca
AC
27492003-01-08 Andrew Cagney <cagney@redhat.com>
2750
2751 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2752 get_frame_base.
2753
bca02a8a
DC
27542003-01-08 David Carlton <carlton@math.stanford.edu>
2755
2756 * linespec.c (decode_line_1): Move code into decode_variable.
2757 (decode_variable): New function.
2758
7f8ab3a0
AC
27592003-01-08 Andrew Cagney <ac131313@redhat.com>
2760
2761 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2762
7b5849cc
AC
27632003-01-08 Andrew Cagney <cagney@redhat.com>
2764
2765 * cris-tdep.c (cris_frame_init_saved_regs): Use
2766 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2767 saved_regs buffer.
2768 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2769 (sh64_nofp_frame_init_saved_regs): Ditto.
2770 (sh_fp_frame_init_saved_regs): Ditto.
2771 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2772 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2773 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2774 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2775
72a5efb3
DJ
27762003-01-08 Daniel Jacobowitz <drow@mvista.com>
2777
2778 * minsyms.c (lookup_minimal_symbol): Update comment.
2779 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2780 (lookup_minimal_symbol_solib_trampoline): Likewise.
2781
11c02a10
AC
27822003-01-08 Andrew Cagney <cagney@redhat.com>
2783
aab3ea25
AC
2784 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2785 frame_relative_level.
2786
da50a4b7
AC
2787 * alpha-tdep.c: Use get_frame_extra_info.
2788 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2789 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2790 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2791 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2792
11c02a10
AC
2793 * alpha-tdep.c: Use get_next_frame.
2794 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2795 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2796 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2797 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2798 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2799 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2800 * xstormy16-tdep.c: Ditto.
2801
1e2330ba
AC
28022003-01-07 Andrew Cagney <cagney@redhat.com>
2803
2804 * alpha-tdep.c: Use get_frame_base.
2805 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2806 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2807 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2808 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2809 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2810 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2811 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2812 * config/sparc/tm-sparc.h: Ditto.
2813
2d75187b
AC
28142003-01-07 Andrew Cagney <cagney@redhat.com>
2815
2816 * frame.c (deprecated_get_frame_context): New function.
2817 (deprecated_set_frame_context): New function.
2818 * frame.h (deprecated_get_frame_context): Declare.
2819 (deprecated_set_frame_context): Declare.
2820 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2821 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2822
483d36b2
AC
28232003-01-07 Andrew Cagney <cagney@redhat.com>
2824
2825 * frame.c (deprecated_set_frame_next_hack): New function.
2826 (deprecated_set_frame_prev_hack): New function.
2827 * frame.h (deprecated_set_frame_next_hack): Declare.
2828 (deprecated_set_frame_prev_hack): Declare.
2829 * mcore-tdep.c (analyze_dummy_frame): Use
2830 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2831 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2832
14e91ac5
DC
28332003-01-07 David Carlton <carlton@math.stanford.edu>
2834
2835 * linespec.c (decode_line_1): Move code into decode_dollar.
2836 (decode_dollar): New function.
2837
b0c6b05c
AC
28382003-01-07 Andrew Cagney <cagney@redhat.com>
2839
2840 * arm-tdep.c (arm_init_extra_frame_info): Use
2841 deprecated_update_frame_base_hack.
2842 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2843 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2844 (fix_frame_pointer): Ditto.
2845 (mn10300_analyze_prologue): Ditto.
2846
a00a19e9
AC
28472003-01-07 Andrew Cagney <cagney@redhat.com>
2848
2849 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2850 extra_info using frame_extra_info_zalloc.
2851 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2852 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2853 (sh64_init_extra_frame_info): Ditto.
2854 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2855 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2856 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2857 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2858 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2859 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2860 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2861 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2862 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2863 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2864 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2865 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2866
2867 * mn10300-tdep.c (analyze_dummy_frame): Use
2868 deprecated_set_frame_extra_info_hack.
2869 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2870
1fb4c65b
JB
28712003-01-07 J. Brobecker <brobecker@gnat.com>
2872
2873 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2874 class is not scText. These do not define "real" procedures.
2875 (parse_partial_symbols): Likewise.
2876
9fe7d6bf
MS
28772003-01-06 Michael Snyder <msnyder@redhat.com>
2878
2879 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2880
f6c609c4
AC
28812003-01-06 Andrew Cagney <ac131313@redhat.com>
2882
2883 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2884 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2885 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2886 deprecated_frame_xmalloc_with_cleanup.
2887 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2888 deprecated_frame_xmalloc.
2889 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2890 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2891
d995ff4b
AC
28922003-01-06 Andrew Cagney <cagney@redhat.com>
2893
84dc46cb
AC
2894 * x86-64-linux-tdep.c: Include "osabi.h".
2895 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2896
d995ff4b
AC
2897 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2898
66140c26
AC
28992003-01-06 Andrew Cagney <cagney@redhat.com>
2900
2901 * MAINTAINERS (Target Instruction Set Architectures): Update
2902 arm-elf. Can be built with -Werror, has been multiarched.
2903
2904 * value.h (unpack_long): Make buffer parameter constant.
2905 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2906 * scm-lang.h (scm_parse): Ditto.
2907 * defs.h (extract_typed_address, extract_address): Ditto.
2908 (extract_long_unsigned_integer): Ditto.
2909 * inferior.h (unsigned_pointer_to_address): Ditto.
2910 (signed_pointer_to_address): Ditto.
2911 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2912 * gdbarch.h, gdbarch.c: Regenerate.
2913 * findvar.c (extract_long_unsigned_integer): Update.
2914 (extract_address): Update.
2915 (extract_typed_address): Update.
2916 (unsigned_pointer_to_address): Update.
2917 * values.c (unpack_long): Update.
2918 (unpack_double): Update.
2919 (unpack_pointer): Update.
2920 (unpack_field_as_long): Update.
2921 * d10v-tdep.c (d10v_pointer_to_address): Update.
2922 * avr-tdep.c (avr_pointer_to_address): Update.
2923 * scm-lang.c (scm_unpack): Update.
2924 * findvar.c (signed_pointer_to_address): Update.
2925
b089b3da
ML
29262003-01-06 Michal Ludvig <mludvig@suse.cz>
2927
2928 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2929 since it is in i386-tdep.c.
2930
aff87235
JB
29312003-01-06 J. Brobecker <brobecker@gnat.com>
2932
2933 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2934 failure introduced in the previous change.
2935
34f5e845
MC
29362003-01-05 Michael Chastain <mec@shout.net>
2937
2938 * README: Remove references to deleted remote-*.c files:
2939 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2940 remote-nrom.c, remote-os9k.c, remote-udi.c.
2941
28bcfd30
MK
29422003-01-05 Mark Kettenis <kettenis@gnu.org>
2943
2944 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2945 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2946 i386_get_longjmp_target.
2947
15a5b3ee
AC
29482003-01-05 Andrew Cagney <ac131313@redhat.com>
2949
2950 * arm-tdep.c (prologue_cache): Change to a pointer.
2951 (_initialize_arm_tdep): Allocate prologue_cache.
2952 (check_prologue_cache): Update.
2953 (save_prologue_cache): Update.
2954 (arm_gdbarch_init): Update.
2955
c263362b
DJ
29562003-01-04 Daniel Jacobowitz <drow@mvista.com>
2957
2958 * stabsread.c (update_method_name_from_physname): Call complaint()
2959 instead of error.
2960
51603483
DJ
29612003-01-04 Daniel Jacobowitz <drow@mvista.com>
2962
2963 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2964 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2965 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2966
2967 * blockframe.c: Include "gdbcmd.h" and "command.h".
2968 (backtrace_below_main): New variable.
2969 (file_frame_chain_valid, func_frame_chain_valid)
2970 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2971 (generic_func_frame_chain_valid): Remove functions.
2972 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2973 (_initialize_blockframe): New function.
2974 * Makefile.in (blockframe.o): Update dependencies.
2975 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2976 comment. Call frame_chain_valid ().
2977 * frame.h: Remove old prototypes. Add prototype for
2978 frame_chain_valid and update comments to match.
2979 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2980 Remove old comment.
2981 * gdbarch.h: Regenerated.
2982 * gdbarch.c: Regenerated.
2983
2984 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2985 set_gdbarch_frame_chain_valid.
2986 * avr-tdep.c (avr_gdbarch_init): Likewise.
2987 * cris-tdep.c (cris_gdbarch_init): Likewise.
2988 * frv-tdep.c (frv_gdbarch_init): Likewise.
2989 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2990 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2991 (i386_nw_init_abi): Likewise.
2992 (i386_gdbarch_init): Likewise.
2993 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2995 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2996 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2997 * mips-tdep.c (mips_gdbarch_init): Likewise.
2998 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2999 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3000 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3001 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3002 * s390-tdep.c (s390_gdbarch_init): Likewise.
3003 * sh-tdep.c (sh_gdbarch_init): Likewise.
3004 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3005 * v850-tdep.c (v850_gdbarch_init): Likewise.
3006 * vax-tdep.c (vax_gdbarch_init): Likewise.
3007 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3008
3009 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3010 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3011 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3012 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3013 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3014 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3015 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3016 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3017
b00a8037
DJ
30182002-01-04 Daniel Jacobowitz <drow@mvista.com>
3019
3020 * Makefile.in (acconfig_h): Remove incorrect macro.
3021 (config_h): Define.
3022 (osabi.o): Update dependencies.
3023 * configure.tgt: Set gdb_osabi based on target triplet.
3024 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3025 * configure: Regenerated.
3026 * config.in: Regenerated.
3027 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3028 (GDB_OSABI_DEFAULT): Define if not already defined.
3029 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3030 (set_osabi_string): New variables.
3031 (gdbarch_register_osabi): Add new OS ABI to
3032 gdb_osabi_available_names.
3033 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3034 (set_osabi, show_osabi): New functions.
3035 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3036
4be87837
DJ
30372003-01-04 Daniel Jacobowitz <drow@mvista.com>
3038
3039 * arch-utils.c (gdbarch_info_init): Set osabi to
3040 GDB_OSABI_UNINITIALIZED.
3041 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3042 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3043 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3044 * gdbarch.c: Regenerated.
3045 * gdbarch.h: Regenerated.
3046 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3047 there's no BFD.
3048 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3049 * osabi.h (enum gdb_osabi): Move to defs.h.
3050 (gdbarch_init_osabi): Update prototype.
3051 * defs.h (enum gdb_osabi): Moved here.
3052 * Makefile.in: Update dependencies.
3053
3054 * alpha-tdep.h: Don't include "osabi.h".
3055 (struct gdbarch_tdep): Remove osabi member.
3056 * alpha-tdep.c: Include "osabi.h".
3057 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3058 iterate over arches. Update call to gdbarch_init_osabi.
3059 (alpha_dump_tdep): Don't dump osabi.
3060 * alpha-linux-tdep.c: Include "osabi.h".
3061 * alpha-osf1-tdep.c: Include "osabi.h".
3062 * alphafbsd-tdep.c: Include "osabi.h".
3063 * alphanbsd-tdep.c: Include "osabi.h".
3064
3065 * arm-tdep.h: Don't include "osabi.h".
3066 (struct gdbarch_tdep): Remove osabi member.
3067 * arm-tdep.c: Include "osabi.h".
3068 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3069 iterate over arches. Update call to gdbarch_init_osabi.
3070 (arm_dump_tdep): Don't dump osabi.
3071 * arm-linux-tdep.c: Include "osabi.h".
3072 * armnbsd-tdep.c: Include "osabi.h".
3073
3074 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3075 Update call to gdbarch_init_osabi.
3076
3077 * i386-tdep.h: Don't include "osabi.h".
3078 (struct gdbarch_tdep): Remove osabi member.
3079 * i386-tdep.c: Include "osabi.h".
3080 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3081 iterate over arches. Update call to gdbarch_init_osabi.
3082 (i386_dump_tdep): Don't dump osabi.
3083 * i386-linux-tdep.c: Include "osabi.h".
3084 * i386-sol2-tdep.c: Include "osabi.h".
3085 * i386bsd-tdep.c: Include "osabi.h".
3086 * i386gnu-tdep.c: Include "osabi.h".
3087 * i386ly-tdep.c: Include "osabi.h".
3088 * i386nbsd-tdep.c: Include "osabi.h".
3089 * i386obsd-tdep.c: Include "osabi.h".
3090
3091 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3092 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3093 check osabi when iterating over arches. Update call to
3094 gdbarch_init_osabi.
3095 (mips_dump_tdep): Don't dump osabi.
3096
3097 * ns32k-tdep.h: Don't include "osabi.h".
3098 (struct gdbarch_tdep): Remove.
3099 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3100 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3101 allocate tdep. Update call to gdbarch_init_osabi.
3102 (ns32k_dump_tdep): Remove.
3103 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3104 * ns32knbsd-tdep.c: Include "osabi.h".
3105
3106 * ppc-tdep.h: Don't include "osabi.h".
3107 (struct gdbarch_tdep): Remove osabi member.
3108 * rs6000-tdep.c: Include "osabi.h".
3109 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3110 osabi when iterating over arches. Update call to
3111 gdbarch_init_osabi.
3112 (rs6000_dump_tdep): Don't dump osabi.
3113 * ppc-linux-tdep.c: Include "osabi.h".
3114 * ppcnbsd-tdep.c: Include "osabi.h".
3115
3116 * sh-tdep.h: Don't include "osabi.h".
3117 (struct gdbarch_tdep): Remove osabi member.
3118 * sh-tdep.c: Include "osabi.h".
3119 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3120 iterate over arches. Update call to gdbarch_init_osabi.
3121 (sh_dump_tdep): Don't dump osabi.
3122 * shnbsd-tdep.c: Include "osabi.h".
3123
3124 * sparc-tdep.c: Include "osabi.h".
3125 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3126 iterate over arches. Update call to gdbarch_init_osabi.
3127 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3128 tdep structure.
3129
3130 * vax-tdep.h: Don't include "osabi.h".
3131 (struct gdbarch_tdep): Remove.
3132 * vax-tdep.c: Include "osabi.h".
3133 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3134 iterate over arches. Don't allocate tdep. Update call
3135 to gdbarch_init_osabi.
3136 (vax_dump_tdep): Remove.
3137 (_initialize_vax_tdep): Update call to gdbarch_register.
3138
a881cf8e
DJ
31392003-01-04 Daniel Jacobowitz <drow@mvista.com>
3140
3141 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3142 entirely.
3143 (breakpoint_re_set_one): Don't fetch the value for a disabled
3144 watchpoint.
3145
1e698235
DJ
31462003-01-04 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3149 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3150 (COERCE_FLOAT_TO_DOUBLE): Remove.
3151 * gdbarch.c: Regenerate.
3152 * gdbarch.h: Regenerate.
3153 * Makefile.in: Remove value_h from gdbarch_h.
3154 * valops.c (coerce_float_to_double): New variable.
3155 (default_coerce_float_to_double): Remove.
3156 (standard_coerce_float_to_double): Remove.
3157 (value_arg_coerce): Use coerce_float_to_double.
3158 (_initialize_valops): Add "set coerce-float-to-double".
3159 * value.h (default_coerce_float_to_double): Remove prototype.
3160 (standard_coerce_float_to_double): Remove prototype.
3161
3162 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3163 prototyped.
3164 * mdebugread.c (parse_symbol): Likewise.
3165 * stabsread.c (define_symbol): Mark all functions as prototyped.
3166
3167 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3168 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3169 set_gdbarch_coerce_float_to_double.
3170 * arm-tdep.c (arm_gdbarch_init): Likewise.
3171 * frv-tdep.c (frv_gdbarch_init): Likewise.
3172 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3173 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3174 * mips-tdep.c (mips_gdbarch_init): Likewise.
3175 (mips_coerce_float_to_double): Remove.
3176 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3177 (rs6000_coerce_float_to_double): Remove.
3178 * s390-tdep.c (s390_gdbarch_init): Likewise.
3179 * sh-tdep.c (sh_gdbarch_init): Likewise.
3180 (sh_coerce_float_to_double): Remove.
3181 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3182 (sparc_coerce_float_to_double): Remove.
3183 * v850-tdep.c (v850_gdbarch_init): Likewise.
3184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3185 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3186 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3187 (hppa_coerce_float_to_double): Remove prototype.
3188 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3189
f436a26a
DJ
31902003-01-04 Daniel Jacobowitz <drow@mvista.com>
3191
3192 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3193
248f8055
DJ
31942003-01-04 Daniel Jacobowitz <drow@mvista.com>
3195
3196 Suggested by Stewart Brown <sb24@avaya.com>:
3197 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3198 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3199 (c_type_print_varspec_suffix): Likewise.
3200
72cfdc76
MK
32012003-01-04 Mark Kettenis <kettenis@gnu.org>
3202
bfd260bb
MK
3203 * configure.in: Don't set and AC_SUBST SUBDIRS.
3204 * configure: Regenerated.
3205
72cfdc76
MK
3206 * configure.in: Remove code dealing with shared libraries.
3207 * Makefile.in: Remove HLDFLAGS and HLDENV.
3208 * configure: Regenerated.
3209
c8b8a898
AC
32102003-01-04 Andrew Cagney <ac131313@redhat.com>
3211
3212 * frame.c (deprecated_frame_xmalloc): New function.
3213 (deprecated_set_frame_saved_regs_hack): New function.
3214 (deprecated_set_frame_extra_info_hack): New function.
3215 * frame.h (deprecated_frame_xmalloc): Declare.
3216 (deprecated_set_frame_saved_regs_hack): Declare.
3217 (deprecated_set_frame_extra_info_hack): Declare.
3218
14abd0fb
MK
32192003-01-04 Mark Kettenis <kettenis@gnu.org>
3220
8ee53726
MK
3221 * configure.in: Move code that provides the --enable-gdbtk option
3222 right after the code that handles the --enable-tui option, and
3223 polish it somewhat.
3224 * configure: Regenerated.
3225
14abd0fb
MK
3226 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3227 AC_CHECK_FUNCS and remove the old check for pread64.
3228 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3229 * acconfig.h (_GNU_SOURCE): Add.
3230 (HAVE_PREAD64): Remove.
3231 * configure, aclocal.m4, config.in: Regenerated.
3232
b2fb4676
AC
32332003-01-03 Andrew Cagney <ac131313@redhat.com>
3234
3235 * alpha-tdep.c: Use get_frame_saved_regs.
3236 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3237 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3238 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3239 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3240 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3241
8dcde887
MK
32422003-01-03 Mark Kettenis <kettenis@gnu.org>
3243
3244 * configure.in: Remove all use of the SUBDIRS variable; add
3245 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3246 code providing the --enable-multi-ice option, and move it right in
3247 front of the code that checks whether gdbserver is supported.
3248 Polish that too.
3249 * configure: Regenerated.
3250 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3251 @SUBDIRS@.
3252
8ccd593b
AC
32532003-01-03 Andrew Cagney <cagney@redhat.com>
3254
3255 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3256 * avr-tdep.c, cris-tdep.c: Ditto.
3257 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3258 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3259
91151a06
MK
32602003-01-03 Mark Kettenis <kettenis@gnu.org>
3261
3262 * configure.in: Remove --enable-netrom option.
3263 * configure: Regenerated.
3264
8fe84d01
MK
32652003-01-03 Mark Kettenis <kettenis@gnu.org>
3266
3267 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3268 declaration for `struct re_pattern_buffer' instead.
3269 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3270
f0394be6
JB
32712003-01-03 J. Brobecker <brobecker@gnat.com>
3272
3273 * mdebugread.c (parse_symbol): Count until the stEnd matching
3274 the structure name.
3275
27e9bf90
MK
32762003-01-02 Mark Kettenis <kettenis@gnu.org>
3277
93d331ba
MK
3278 * configure.in: Remove --with-cpu option.
3279 subscripts. Remove evil changequotes here.
3280 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3281 * config.in, configure: Regenerated.
3282
27e9bf90
MK
3283 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3284 * configure.in: Cleanup section that sources GDB and BFD configure
3285 subscripts. Remove evil changequotes here.
3286 * config.in, configure: Regenerated.
3287
50abf9e5
AC
32882003-01-02 Andrew Cagney <ac131313@redhat.com>
3289
3290 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3291 frame accessor methods.
3292 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3293 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3294 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3295 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3296 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3297 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3298 * z8k-tdep.c: Ditto.
3299
287c1a40
MK
33002003-01-02 Mark Kettenis <kettenis@gnu.org>
3301
f5dbc56d
MK
3302 * configure.in: Remove UI_OUT configuration code.
3303 * ada-lang.c: Update assuming UI_OUT is always true.
3304 * Makefile.in (UIOUT_CFLAGS): Remove.
3305 * configure: Regenerated.
3306 * TODO: Remove blurb about elimination of -DUI_OUT.
3307
627af7ea
MK
3308 * configure.in: Move code that provides the --enable-gdbcli,
3309 --enable-gdbmi options right before the code that handles the
3310 --enable-tui option. Polish a bit.
3311 * configure: Regenerated.
3312
06825bd1
MK
3313 * configure.in: Rewrite check for GNU regex and the
3314 --without-included regex option, and move it into the "Checks for
3315 library functions" section. This makes us use the system regex
3316 again by default on systems with version 2 of the GNU C library.
3317 This was apparently broken.
3318 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3319 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3320 * config.in, configure: Regenerated.
3321
287c1a40
MK
3322 * configure.in: Move code that provides the --enable-tui option
3323 before the "Checks for libraries" section. Polish the code
3324 somewhat and set need_curses to yes if we build the TUI. Rewrite
3325 code that looks for a library providing termcap functionality to
3326 match more closely what's done in the Readline library, and move
3327 it into to the "Checks for libraries" section.
3328 * configure: Regenerated.
3329 * Makefile.in (TERMCAP): Remove variable.
3330 * config/i386/go32.mh (TERMCAP): Remove variable.
3331
684e56bf
AC
33322003-01-02 Andrew Cagney <ac131313@redhat.com>
3333
3334 * MAINTAINERS: Mention gdb_mbuild.sh.
3335 * gdb_mbuild.sh: Rewrite.
3336
e1ea1d75
MK
33372003-01-02 Mark Kettenis <kettenis@gnu.org>
3338
3339 * configure.in: Fix typo in last change.
3340 * config.in, configure: Regenerated.
3341
1b831c93
AC
33422003-01-02 Andrew Cagney <ac131313@redhat.com>
3343
3344 * valarith.c (value_binop): Delete obsolete code and comments.
3345 * configure.host: Ditto.
3346 * buildsym.h (make_blockvector): Ditto.
3347 * buildsym.c (make_blockvector): Ditto.
3348 * defs.h (enum language): Ditto.
3349 (chill_demangle): Ditto.
3350 * elfread.c (elf_symtab_read): Ditto.
3351 * dwarfread.c (CHILL_PRODUCER): Ditto.
3352 (set_cu_language): Ditto.
3353 (handle_producer): Ditto.
3354 * expprint.c (print_subexp): Ditto.
3355 * gdbtypes.c (chill_varying_type): Ditto.
3356 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3357 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3358 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3359 (chill_varying_type): Ditto.
3360 * language.h (_LANG_chill): Ditto.
3361 * language.c (binop_result_type, integral_type): Ditto.
3362 (character_type, string_type, structured_type): Ditto.
3363 (lang_bool_type, binop_type_check): Ditto.
3364 * stabsread.h (os9k_stabs): Ditto.
3365 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3366 (define_symbol, read_type, read_struct_fields): Ditto.
3367 (read_array_type, read_enum_type, read_huge_number): Ditto.
3368 (read_range_type, start_stabs): Ditto.
3369 * symfile.c (init_filename_language_table): Ditto.
3370 (add_psymbol_with_dem_name_to_list): Ditto.
3371 * symtab.c (symbol_init_language_specific): Ditto.
3372 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3373 * symtab.h (struct general_symbol_info): Ditto.
3374 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3375 * typeprint.c (typedef_print): Ditto.
3376 * utils.c (fprintf_symbol_filtered): Ditto.
3377 * valops.c (value_cast, search_struct_field, value_slice): Delete
3378 obsolete code.
3379 (varying_to_slice): Delete function.
3380 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3381 (varying_to_slice): Delete declaration.
3382 * MAINTAINERS: Update.
3383
8bb2c122
MK
33842003-01-02 Mark Kettenis <kettenis@gnu.org>
3385
97bf5e38
MK
3386 * configure.in: Reorganize "Checks for library functions section"
3387 a bit. Remove check for `btowc' and `isascii' functions.
3388 * configure: Regenerated.
3389
5ee754fc
MK
3390 * acconfig.h (_MSE_INT_H): Remove.
3391 * configure.in: Create "Checks for header files" section, and move
3392 appropriate tests there. Don't check for objlist.h, wchar.h,
3393 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3394 misdetection fix. Also add "Checks for types", "Checks for
3395 compiler characteristics" and "Checks for library functions"
3396 sections.
3397 * config.in, configure: Regenerated.
3398
8bb2c122
MK
3399 * configure.in: Create "Checks for programs" section, and move
3400 appropriate tests there.
3401
9a156167
MK
34022003-01-01 Mark Kettenis <kettenis@gnu.org>
3403
3404 * configure.in: Create "Checks for libraries" section, and move
3405 appropriate tests there. Cleanup check for wctype in libw. Use
3406 AC_SEARCH_LIBS to see whether we need libsocket.
3407 * configure: Regenerated.
3408
a80e2bcb 3409For older changes see ChangeLog-2002
c906108c
SS
3410\f
3411Local Variables:
3412mode: change-log
3413left-margin: 8
3414fill-column: 74
3415version-control: never
3416End:
This page took 0.542905 seconds and 4 git commands to generate.