* target-descriptions.c (tdesc_predefined_types): New.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
81adfced
DJ
12007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * target-descriptions.c (tdesc_predefined_types): New.
4 (tdesc_named_type): Use it.
5 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
6 (_intialize_target_descriptions): Register "maint print c-tdesc".
7 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
8 (cfiles, %.c): New rules.
9 * features/arm-with-iwmmxt.c, features/mips-linux.c,
10 features/mips64-linux.c: New generated files.
11
12 * arm-linux-nat.c: Include preparsed description instead of
13 "xml-support.h".
14 (super_xfer_partial, arm_linux_xfer_partial): Remove.
15 (arm_linux_read_description): New function.
16 (_initialize_arm_linux_nat): Set to_read_description instead of
17 to_xfer_partial. Initialize preparsed description.
18 * config/arm/linux.mh (TDEP_XML): Delete.
19 * mips-linux-nat.c: Include preparsed descriptions instead of
20 "xml-support.h".
21 (super_xfer_partial, mips_linux_xfer_partial): Remove.
22 (mips_linux_read_description): New function.
23 (_initialize_mips_linux_nat): Set to_read_description instead of
24 to_xfer_partial. Initialize preparsed description.
25 * config/mips/linux.mh (TDEP_XML): Delete.
26 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
27 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
28 (mips64_linux_c): New macros.
29 (arm-linux-nat.o, mips-linux-nat.o): Update.
30
0dfdb8ba
PM
312007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
32
33 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
34 Replace xasprintf by xstrprintf.
35 symfile-mem.c (add_vsyscall_page): Ditto.
36
2685572f
UW
372007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
38
39 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
40 replacing use of global current_gdbarch.
41 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
42 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
43
44 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
45 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
46 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
47 (ia64_sigtramp_frame_cache): Update caller.
48
c1874924
UW
492007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
50
51 * gdbarch.sh (deprecated_use_struct_convention): Remove.
52 (extract_return_value, store_return_value): Remove.
53 (return_value): Remove default implementation.
54 * gdbarch.c, gdbarch.h: Regenerate.
55
56 * stack.c (return_command): Remove compatibility hack.
57 * arch-utils.c (legacy_return_value): Remove.
58 * arch-utils.h (legacy_return_value): Likewise.
59
60 * arch-utils.c (always_use_struct_convention): Remove.
61 * arch-utils.h (always_use_struct_convention): Likewise.
62 * value.c (generic_use_struct_convention): Remove.
63 * defs.h (generic_use_struct_convention): Likewise.
64
4c8b6ae0
UW
652007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
66
67 * avr-tdep.c (avr_return_value): New function.
68 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
69 set_gdbarch_extract_return_value.
70
71 * fvr-tdep.c (frv_return_value): New function.
72 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
73 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
74 and set_gdbarch_deprecated_use_struct_convention.
75
76 * ia64-tdep.c (ia64_use_struct_convention): Make static.
77 Add check for structure, union, or array types.
78 (ia64_extract_return_value): Make static.
79 (ia64_store_return_value): Make static. Support multi-word values.
80 (ia64_return_value): New function.
81 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
82 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
83 and set_gdbarch_deprecated_use_struct_convention.
84
899cff7a
JB
852007-10-12 Joel Brobecker <brobecker@adacore.com>
86
87 * solib-target.c (solib_target_parse_libraries)
88 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
89
d41ebd5d
JB
902007-10-12 Jim Blandy <jimb@codesourcery.com>
91
92 * serial.h (struct serial_ops): Document read_prim to return zero
93 at EOF.
94 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
95 read_prim returns zero, not SERIAL_TIMEOUT.
96
62f6180c
UW
972007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
98
99 * alpha-mdebug-tdep.c: Include "gdb_string.h".
100 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
101 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
102 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
103
104 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
105 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
106 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
107 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
108 * config/alpha/tm-alpha.h: Remove file.
109
ee53e872
UW
1102007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
111
112 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
113 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
114
115 * config/pa/tm-hppa.h: Delete file.
116 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
117 * config/pa/hppahpux.mt: Likewise.
118 * config/pa/hppa.mt: Likewise.
119 * config/pa/linux.mt: Likewise.
120 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
121
3d5e6107
UW
1222007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
123
124 * config/arm/nm-nbsdaout.h: Remove file.
125 * config/nm-nbsdaout.h: Likewise.
126 * config/nm-nbsd.h: Likewise.
127
82585c72
UW
1282007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
129
130 * block.h (struct block): Remove "gcc_compile_flag" member.
131 (BLOCK_GCC_COMPILED): Remove.
132 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
133 * buildsym.c (finish_block): Do not set it.
134 * symmisc.c (dump_symtab_1): Do not dump it.
135
136 * value.h (using_struct_return): Remove "gcc_p" argument.
137 * value.c (using_struct_return): Likewise.
138 * eval.c (evaluate_subexp_standard): Adapt callers.
139 * infcall.c (call_function_by_hand): Likewise.
140 * stack.c (return_command): Likewise.
141 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
142
143 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
144 * gdbarch.c, gdbarch.h: Regenerate.
145 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
146 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
147 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
148 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
149 (push_dummy_code, call_function_by_hand): Adapt callers.
150
8f536afe
UW
1512007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
152
153 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
154 (finish_command_continuation, finish_command): Adapt callers.
155
f156e33b
UW
1562007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
157
158 * infcall.c (call_function_by_hand): Remove special handling
159 for HP aCC compiled code.
160
f6e56ab3
UW
1612007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
162
163 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
164 reference. Fix endianness bugs.
165 (cris_reg_struct_has_address): Remove.
166 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
167 and set_gdbarch_deprecated_use_struct_convention calls.
168
169 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
170 * gdbarch.c, gdbarch.h: Regenerate.
171 * infcall.c (call_function_by_hand): Remove handling of
172 deprecated_reg_struct_has_addr.
173
b4c291bb
KH
1742007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
175 Kazu Hirata <kazu@codesourcery.com>
176
177 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
178 checking watchpoint resources.
179
56cf5405
KH
1802007-10-11 Kazu Hirata <kazu@codesourcery.com>
181
182 * memattr.c (inaccessible_by_default): Change the initial
183 value to 1.
184
3b016d57
DJ
1852007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
186
187 PR gdb/2280
188 * coffread.c (read_one_sym): Check for read errors.
189
e9efe249
UW
1902007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
191
192 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
193 instead of "Linux 2.6.19" in comment.
194 (linux_xfer_partial): Use "GNU/Linux target" instead of
195 "Linux target" in comment.
196 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
197 (m68k_linux_get_sigtramp_info): Likewise.
198
b33682a7
DJ
1992007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
200
201 * MAINTAINERS (language support): List Joel and Paul as
202 Ada maintainers.
203
35156bae
DJ
2042007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
205
206 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
207 checks.
208 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
209 not set DEPRECATED_TM_FILE.
210 * config/arm/tm-arm.h: Delete file.
211
3d47173c
LM
2122007-10-11 Luis Machado <luisgpm@br.ibm.com>
213
214 * MAINTAINERS (Write After Approval): Add self.
215
607ae575
DJ
2162007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
217
218 * buildsym.c (record_line): Remove empty lines followed by
219 end-of-sequence markers.
220
b8d5e0ac
KH
2212007-10-11 Kazu Hirata <kazu@codesourcery.com>
222
223 * configure.tgt: Recognize fido-*-elf.
224
86f26d2f 2252007-10-10 Joel Brobecker <brobecker@adacore.com>
226
227 GDB 6.7 released.
228
7500260a
UW
2292007-10-10 Markus Deuling <deuling@de.ibm.com>
230
231 * stack.c (print_frame_args, frame_info, return_command): Use
232 get_regcache_arch or get_frame_arch to get at the current architecture
233 by regcache or by frame, respectively.
234
8b164abb
UW
2352007-10-10 Markus Deuling <deuling@de.ibm.com>
236
237 * rs6000-nat.c (fetch_register, store_register)
238 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
239 get_regcache_arch to get at the current architecture by regcache.
240
241 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
242 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
243 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
244 current_gdbarch by gdbarch.
245 (rs6000_skip_trampoline_code, rs6000_register_to_value)
246 (rs6000_value_to_register): Use get_frame_arch to get at the current
247 architecture by frame_info.
248
e6d4f032
UW
2492007-10-10 Markus Deuling <deuling@de.ibm.com>
250
251 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
252 get_regcache_arch to get at the current architecture by regcache.
253
254 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
255 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
256 get_regcache_arch to get at the current architecture by regcache.
257
258 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
259 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
260 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
261 current architecture by regcache.
262
2eb4d78b
UW
2632007-10-10 Markus Deuling <deuling@de.ibm.com>
264
265 * remote-mips.c (mips_wait, mips_fetch_registers)
266 (mips_store_registers): Use get_regcache_arch to get at the
267 current architecture by regcache.
268
269 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
270 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
271 get at the current architecture by regcache.
272 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
273 architecture by frame_info.
274
275 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
276 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
277 the current architecture by regcache.
278
279 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
280 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
281 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
282 current architecture by frame_info.
283 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
284 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
285 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
286 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
287 get at the current architecture by regcache.
288
289 * mips-linux-nat.c (mips_linux_register_addr)
290 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
291 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
292 (mips64_linux_regsets_fetch_registers)
293 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
294 the current architecture by regcache.
295
296 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
297 get at the current architecture by frame_info.
298
72a155b4
UW
2992007-10-10 Markus Deuling <deuling@de.ibm.com>
300
301 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
302 current architecture by regcache.
303 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
304 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
305 (mips_stub_frame_cache, mips_read_fp_register_single)
306 (mips_read_fp_register_double, mips_print_fp_register)
307 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
308 at the current architecture by frame_info.
309 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
310 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
311 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
312 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
313 (mips_o32_push_dummy_call, mips_o32_return_value)
314 (mips_o64_push_dummy_call, mips_o64_return_value)
315 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
316 gdbarch.
317
6b50c0b0
UW
3182007-10-10 Markus Deuling <deuling@de.ibm.com>
319
320 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
321 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
322 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
323 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
324 (xtensa_register_write_masked, xtensa_register_read_masked)
325 (xtensa_supply_gregset, xtensa_store_return_value)
326 (xtensa_extract_return_value): Use get_regcache_arch to get at the
327 current architecture by regcache.
328 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
329 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
330 architecture by frame_info.
331
4be43953
DJ
3322007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
333
334 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
335 (thumb_analyze_prologue): Move pv_area_store_would_trash call
336 out of loop. Do not set cache->frameoffset.
337 (arm_scan_prologue): Use prologue-value mechanism. Do not set
338 frameoffset. Simplify framesize.
339 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
340 frameoffset.
341 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
342
b4b61fdb
DJ
3432007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
344
345 * target.c (update_current_target): Call setup_target_debug.
346 (push_target): Do not call it here.
347
8bb6c669
MS
3482007-10-09 Michael Snyder <msnyder@specifix.com>
349
350 * MAINTAINERS: Update my email address.
351
304fe255
UW
3522007-10-09 Markus Deuling <deuling@de.ibm.com>
353
354 * xtensa-tdep.c: Replace following current-gdbarch based macros by
355 their expression:
356 (xtensa_pseudo_register_read)
357 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
358 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
359 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
360 (xtensa_pseudo_register_read)
361 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
362 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
363 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
364 (xtensa_frame_prev_register): NUM_AREGS.
365 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
366 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
367 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
368 (xtensa_supply_gregset, xtensa_frame_cache)
369 (xtensa_frame_prev_register): WS_REGNUM.
370 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
371 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
372 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
373 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
374 (xtensa_register_reggroup_p): REGMAP.
375 (call0_track_op): LITBASE_REGNUM.
376 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
377 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
378 (xtensa_frame_prev_register, AREG_NUMBER)
379 (xtensa_register_type): AR_BASE.
380 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
381 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
382 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
383 (xtensa_frame_cache, xtensa_frame_prev_register)
384 (xtensa_extract_return_value, xtensa_store_return_value)
385 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
386 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
387 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
388 (xtensa_frame_prev_register, xtensa_push_dummy_call)
389 (call0_frame_cache): A1_REGNUM.
390 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
391 (xtensa_push_dummy_call): A4_REGNUM.
392 (ARGS_FIRST_REG): A6_REGNUM.
393 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
394 (xtensa_frame_prev_register): A15_REGNUM.
395 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
396 them in the appropriate source file:
397 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
398 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
399 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
400 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
401 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
402 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
403 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
404 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
405 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
406 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
407 A13_REGNUM, A14_REGNUM, A15_REGNUM.
408
ea78bae4
UW
4092007-10-09 Markus Deuling <deuling@de.ibm.com>
410
411 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
412 the current architecture by frame_info.
413 (h8300_frame_prev_register
414 (h8300_print_register): Replace current_gdbarch by gdbarch.
415 (h8300_print_registers_info, h8300_register_type)
416 (h8300_register_type): Likewise.
417
875f8d0e
UW
4182007-10-09 Markus Deuling <deuling@de.ibm.com>
419
420 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
421 the current architecture by regcache.
422 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
423 (i386_linux_fetch_inferior_registers)
424 (i386_linux_store_inferior_registers): Likewise.
425 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
426 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
427 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
428 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
429 (i386_extract_return_value, i386_store_return_value): Likewise.
430 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
431 the current architecture by frame_info.
432 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
433 (i386_register_to_value, i386_value_to_register): Likewise.
434
9b072297
UW
4352007-10-09 Markus Deuling <deuling@de.ibm.com>
436
437 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
438 the current architecture by regcache.
439 (monitor_store_register, monitor_store_registers): Likewise.
440
e76e7474
UW
4412007-10-09 Markus Deuling <deuling@de.ibm.com>
442
443 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
444 the current architecture by regcache.
445
d4f91178
UW
4462007-10-09 Markus Deuling <deuling@de.ibm.com>
447
448 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
449 gdbarch.
450
b1bd0044
UW
4512007-10-09 Markus Deuling <deuling@de.ibm.com>
452
453 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
454 architecture by frame.
455 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
456 (inside_main_func, frame_sp_unwind): Likewise.
457
2ec9a4f8
DJ
4582007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
459
460 * solib-svr4.c (enable_break): Add the dynamic linker also if
461 auxv succeeds.
462
7068dd53
CES
4632007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
464
465 * MAINTAINERS (Write After Approval): Add self.
466
51e9e0d4
PA
4672007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
468
469 * stabsread.c (read_huge_number): Initialize local variable to 0.
470
cd6c7346
PM
4712007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
472
473 * p-lang.h (pascal_main_name): Add declaration.
474 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
475 (GPC_MAIN_PROGRAM_NAME_2): New constants.
476 (pascal_main_name): New function.
477 * symtab.c: Include p-lang.h.
478 (find_main_name): Add call to pascal_main_name.
479 * Makefile.in (symtab.o): Add dependency on p-lang.h.
480
a2699720
PA
4812007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
482
483 * stabsread.c (read_huge_number): Fix handling of octal
484 representation when the bit width is known.
485 (read_range_type): Record unsigned integral types with their size,
486 when the type size is known.
487
e05ebff4
TJB
4882007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
489
490 * MAINTAINERS (Write After Approval): Add self.
491
0c6773c1
PM
4922007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
493
494 * breakpoint.c (print_one_breakpoint_location): ARI fix:
495 Replace asprintf by xstrprintf.
496
91c06669
PM
4972007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
498
499 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
500 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
501
3c61c145
PM
5022007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
503
504 * linux-fork.c: Move "gdb_wait.h" include back to the position of
505 <sys/wait.h> include before last commit.
506
313628cc
MR
5072007-10-08 Maciej W. Rozycki <macro@mips.com>
508
509 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
510
c7f30c7a
UW
5112007-10-08 Markus Deuling <deuling@de.ibm.com>
512
513 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
514 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
515 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
516 (store_regs_user_thread, store_regs_kernel_thread): Use
517 get_regcache_arch or get_frame_arch to get at the current architecture
518 by regcache or by frame, respectively.
519
58643501
UW
5202007-10-08 Markus Deuling <deuling@de.ibm.com>
521
522 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
523 (sh64_pseudo_register_read, sh64_pseudo_register_write)
524 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
525 (sh64_print_register, sh64_media_print_registers_info)
526 (sh64_compact_print_registers_info, sh64_unwind_sp)
527 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
528 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
529 (sh64_frame_prev_register): Use FRAME to recognize current
530 architecture.
531
b47193f7
UW
5322007-10-08 Markus Deuling <deuling@de.ibm.com>
533
534 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
535 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
536 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
537 current_gdbarch by gdbarch.
538 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
539 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
540 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
541 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
542 recognize current architecture.
543
4a22f64d
UW
5442007-10-08 Markus Deuling <deuling@de.ibm.com>
545
546 * remote.c (init_remote_state, fetch_register_using_p)
547 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
548 (store_register_using_P, store_registers_using_G)
549 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
550 get at the current architecture by regcache or by frame, respectively.
551
c984b7ff
UW
5522007-10-08 Markus Deuling <deuling@de.ibm.com>
553
554 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
555 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
556 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
557 get_regcache_arch or get_frame_arch to get at the current architecture
558 by regcache or by frame, respectively.
559 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
560 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
561 (store_register, old_store_inferior_registers, supply_gregset)
562 (supply_fpregset, fill_fpregset): Likewise.
563 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
564 Replace current_gdbarch by gdbarch.
565
d611717a
UW
5662007-10-08 Markus Deuling <deuling@de.ibm.com>
567
568 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
569 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
570 get_frame_arch to get at the current architecture by regcache or by
571 frame, respectively.
572
088568da
UW
5732007-10-08 Markus Deuling <deuling@de.ibm.com>
574
575 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
576 Replace current_gdbarch by gdbarch.
577 * ia64-tdep.c (ia64_frame_prev_register
578 (ia64_sigtramp_frame_prev_register)
579 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
580 get_frame_arch to get at the current architecture by regcache or by
581 frame, respectively.
582 * ia64-linux-nat.c (ia64_linux_fetch_register)
583 (ia64_linux_fetch_registers, ia64_linux_store_register)
584 (ia64_linux_store_registers): Likewise.
585
464963c9
UW
5862007-10-08 Markus Deuling <deuling@de.ibm.com>
587
588 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
589 current_gdbarch by gdbarch.
590 * hppa-linux-nat.c (fetch_register, store_register)
591 (hppa_linux_fetch_inferior_registers)
592 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
593 get_frame_arch to get at the current architecture by regcache or by
594 frame, respectively.
595 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
596 (hppa_hpux_unwind_adjust_stub): Likewise.
597 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
598 (hppa_hpux_fetch_inferior_registers)
599 (hppa_hpux_store_inferior_registers): Likewise.
600
7fbe2eba
UW
6012007-10-08 Markus Deuling <deuling@de.ibm.com>
602
603 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
604 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
605 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
606 or get_frame_arch to get at the current architecture by regcache or by
607 frame, respectively.
608 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
609 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
610 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
611 current_gdbarch by gdbarch.
612
2af46ca0
UW
6132007-10-08 Markus Deuling <deuling@de.ibm.com>
614
615 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
616 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
617 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
618 get at the current architecture by regcache or by·frame, respectively.
619 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
620 gdbarch.
621
2ae02b47
UW
6222007-10-08 Markus Deuling <deuling@de.ibm.com>
623
624 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
625 Use get_regcache_arch or get_frame_arch to get at the current
626 architecture by regcache or by frame, respectively.
627 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
628 * amd64-nat.c (amd64_supply_native_gregset)
629 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
630
ec7cc0e8
UW
6312007-10-08 Markus Deuling <deuling@de.ibm.com>
632
633 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
634 gdbarch.
635 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
636 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
637 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
638 get_frame_arch to get at the current architecture by regcache or by
639 frame, respectively.
640 * alpha-nat.c (fetch_osf_core_registers): Likewise.
641
ad010def
UW
6422007-10-08 Markus Deuling <deuling@de.ibm.com>
643
644 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
645 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
646 current_gdbarch by gdbarch.
647 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
648
214e098a
UW
6492007-10-08 Markus Deuling <deuling@de.ibm.com>
650
651 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
652 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
653 * regcache.c (regcache_raw_write): Use get_regcache_arch or
654 get_frame_arch to get at the current architecture by regcache or by
655 frame, respectively.
656
e9e45075
UW
6572007-10-08 Markus Deuling <deuling@de.ibm.com>
658
659 * findvar.c (value_of_register, locate_var_value): Use
660 get_regcache_arch or get_frame_arch to get at the current architecture
661 by regcache or by frame, respectively.
662 * findvar.c (default_value_from_register, value_from_register): Replace
663 current_gdbarch by gdbarch.
664
136855cd
PM
6652007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
666
667 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
668
cdf43007
PM
6692007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
670
671 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
672 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
673
9ef895d6
DJ
6742007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
675
676 * remote.c (get_offsets): Only call free_symfile_segment_data if
677 data was allocated.
678
cada2e7b
PM
6792007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
680
681 * objc-exp.y: ARI fix: remove 4 PARAMS.
682
8d5f9c6f
DJ
6832007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
684
685 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
686 news. Mention XML support for M68K in GDB 6.7.
687
1969d2ed
DJ
6882007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
689
690 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
691 bounds.
692 (init_vector_type): Use builtin_type_int32.
693
e31dcd20
UW
6942007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
695
696 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
697 size to enable bi-arch generate-core-file support.
698
b94c4f7d
UW
6992007-10-02 Markus Deuling <deuling@de.ibm.com>
700
701 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
702
9612b5ec
UW
7032007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
704
705 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
706 signal handler.
707 * tui/tui-win.c (tui_initialize_win): New function for
708 initializing tui's SIGWINCH signal handler.
709 * tui/tui-win.h (tui_initialize_win): Declare.
710
407f1a2e
UW
7112007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
712
713 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
714 pointer to uintptr_t before casting to CORE_ADDR.
715
02d3ff8c
UW
7162007-10-02 Markus Deuling <deuling@de.ibm.com>
717
718 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
719
4577549b
DJ
7202007-10-02 Mark Mitchell <mark@codesourcery.com>
721
722 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
723 * ser-mingw.c (enum select_thread_state): New type.
724 (struct ser_console_state): Add have_started and thread_state.
725 (select_thread_wait): New function.
726 (thread_fn_type): New type.
727 (create_select_thread): New function.
728 (destroy_select_thread): Likewise.
729 (start_select_thread): Likewise.
730 (stop_select_thread): Likewise.
731 (console_select_thread): Use new functions.
732 (pipe_select_thread): Likewise.
733 (file_select_thread): Likewise.
734 (ser_console_wait_handle): Likewise.
735 (ser_console_done_wait_handle): Likewise.
736 (ser_console_close): Likewise.
737 (free_pipe_state): Likewise.
738 (pipe_wait_handle): Likewise.
739 (pipe_done_wait_handle): Likewise.
740 (struct net_windows_state): Derive from ser_console_state.
741 (net_windows_select_thread): Use new functions.
742 (net_windows_wait_handle): Likewise.
743 (net_windows_done_wait_handle): Likewise.
744 (net_windows_close): Likewise.
745
b0b951d9
DJ
7462007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
747
748 * inflow.c (terminal_ours_1): Remove useless line.
749
82e91389
DJ
7502007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
751
752 * mips-tdep.c (mips_read_fp_register_double): Correct check for
753 odd FP registers.
754 (mips_print_fp_register): Correct check for even FP registers.
755 (mips_virtual_frame_pointer): New function.
756 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
757
c4a3d09a
MF
7582007-09-30 Mike Frysinger <vapier@gentoo.org>
759
760 * value.h (lookup_only_internalvar): New prototype.
761 (create_internalvar): Likewise.
762 * value.c (lookup_only_internalvar): New function.
763 (create_internalvar): Likewise.
764 (lookup_internalvar): Use new lookup_only_internalvar and
765 create_internalvar functions.
766 * parse.c (write_dollar_variable): Look up $ symbols in internal
767 table first rather than last.
768
9f0bdab8
DJ
7692007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
770
771 * linux-nat.c (linux_nat_new_thread): New variable.
772 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
773 linux_nat_switch_fork.
774 (lwp_list): Make public.
775 (add_lwp): Call linux_nat_new_thread.
776 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
777 the new thread.
778 (resume_callback): Clear lp->siginfo. Remove unused variable.
779 (linux_nat_resume): Assert that the LWP list is already initialized.
780 Clear lp->siginfo.
781 (save_siginfo): New.
782 (stop_wait_callback, linux_nat_wait): Call it.
783 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
784 * linux-nat.h (struct lwp_info): Add siginfo.
785 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
786 (ALL_LWPS): Define.
787
788 * amd64-linux-nat.c (amd64_linux_dr): New.
789 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
790 (amd64_linux_dr_set): Take a PTID argument.
791 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
792 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
793 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
794 (amd64_linux_new_thread): New.
795 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
796 * i386-linux-nat.c (i386_linux_dr): New.
797 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
798 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
799 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
800 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
801 (i386_linux_new_thread): New.
802 (i386_linux_resume): Remove unnecessary PID check.
803 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
804 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
805 (fetch_debug_register, fetch_debug_register_pair): Delete.
806 (debug_registers): New.
807 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
808 ALL_LWPS and debug_registers.
809 (ia64_linux_new_thread): New.
810 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
811 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
812 * ppc-linux-nat.c (last_stopped_data_address): Delete.
813 (saved_dabr_value): New.
814 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
815 ALL_LWPS.
816 (ppc_linux_new_thread): New.
817 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
818 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
819 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
820 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
821 after reading it.
822 (s390_fix_watch_points): Take a PTID argument.
823 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
824 (_initialize_s390_nat): Call linux_nat_set_new_thread.
825
d983da9c
DJ
8262007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
827 Jeff Johnston <jjohnstn@redhat.com>
828
829 * breakpoint.c (watchpoints_triggered): New.
830 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
831 Check watchpoint_triggered instead. Combine handling for software
832 and hardware watchpoints. Do not use target_stopped_data_address
833 here. Always check a watchpoint if its scope breakpoint triggers.
834 Do not stop for thread or overlay events. Improve check for
835 triggered watchpoints without a value change.
836 (watch_command_1): Insert the scope breakpoint first. Link the
837 scope breakpoint to the watchpoint.
838 * breakpoint.h (enum watchpoint_triggered): New.
839 (struct breakpoint): Add watchpoint_triggered.
840 (bpstat_stop_status): Update prototype.
841 (watchpoints_triggered): Declare.
842 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
843 (stepped_after_stopped_by_watchpoint): Delete.
844 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
845 local. Handle infwait_step_watch_state. Update calls to
846 bpstat_stop_status. Use watchpoints_triggered to check
847 watchpoints.
848 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
849 (remote_stopped_data_address): Do not check it.
850
7921a279
DJ
8512007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
852
853 * configure.ac: Add $LIBINTL when testing libbfd.
854 * configure: Regenerated.
855
fe6fbf8b
VP
8562007-09-28 Vladimir Prus <vladimir@codesourcery.com>
857
858 * NEW: Mention pending breakpoint changes and
859 support for breakpoints at multiple locations.
860
daddc3c1
DJ
8612007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * arm-linux-tdep.c (arm_linux_software_single_step): New.
864 (arm_linux_init_abi): Use it.
865 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
866 condition correctly.
867 * arm-tdep.h (arm_get_next_pc): Declare.
868 * Makefile.in (arm-linux-tdep.o): Update.
869
7a4d50bf
VP
8702007-09-26 Vladimir Prus <vladimir@codesourcery.com>
871
872 * varobj.c (install_new_value): Don't
873 call value_get_print_value when a value is
874 lazy. Update the print_value member in a
875 single place.
876
d32a6982
VP
8772007-09-26 Vladimir Prus <vladimir@codesourcery.com>
878
879 * breakpoint.c (create_breakpoint): Set
880 condition on each location, not on the first
881 location of breakpoint.
882
489eaeba
JB
8832007-09-26 Jim Blandy <jimb@codesourcery.com>
884
885 * remote.c (getpkt_sane): Fix error message. No animals were
886 harmed in the making of this debugger.
887
3e9313ab
PM
8882007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
889
890 * p-typeprint.c: Fix 11 ARI reported problems.
891 (pascal_print_type): Fix 4 operator at end of line.
892 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
893 using strncmp function.
894 (pascal_type_print_base): Fix 2 operator at end of line.
895 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
896 using strncmp function.
897
898
5b8101ae
PM
8992007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
900
901 * Fix PR pascal/2231
902 dwarf2read.c (read_subroutine_type):
903 All pascal functions are prototyped.
904
c45f11da
PM
9052007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
906
907 * Fix PR pascal/2283
908 p-valprint.c (pascal_val_print): correct current language check.
909 Also print array of char as strings.
910
911
59aa1faa
MR
9122007-09-26 David Ung <davidu@mips.com>
913 Maciej W. Rozycki <macro@mips.com>
914
915 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
916
0b058123
PM
9172007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
918
919 * p-exp.y: Fix 12 ARI reported problems.
920 (name_not_typename): Fix 2 operator at end of line issues.
921 (yylex): Fix 3 operator at end of line issues.
922 Replace 7 DEPRECATED_STREQ macros using strcmp function.
923
b18bb924
MR
9242007-09-25 David Ung <davidu@mips.com>
925 Maciej W. Rozycki <macro@mips.com>
926
927 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
928 rules return composite types in registers as appropriate.
929
28c32713
JB
9302007-09-24 Jim Blandy <jimb@codesourcery.com>
931
932 * symfile.h (struct symfile_segment_data): Doc fixes.
933 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
934 Assert that we were passed some loaded segment addresses,
935 and that sections' segment numbers are valid.
936 Simplify offset calculation.
937 * remote.c (get_offsets): Clarify selection of relocate-by-segment
938 strategy, and set num_segments correctly. Delete redundant
939 assignments to do_sections.
940
32276632
DJ
9412007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
942
943 * frame.c (get_prev_frame_1): Also check for PC in the same register.
944
ed0616c6
VP
9452007-09-24 Vladimir Prus <vladimir@codesourcery.com>
946
947 * breakpoint.c (remove_sal): New.
948 (expand_line_sal_maybe): New.
949 (create_breakpoints): Call expand_line_sal_maybe.
950 (clear_command): Add comment.
951 (breakpoint_re_set_one): Call expand_line_sal_maybe.
952 * linespec.c (decode_indirect): Set explicit_pc to 1.
953 (decode_all_digits): Set explicit_line to 1.
954 (append_expanded_sal): New.
955 (expand_line_sal): New.
956 * linespec.h (expand_line_sal): Declare.
957 * symtab.c (init_sal): Initialize explicit_pc
958 and explicit_line.
959 * symtab.h (struct symtab_and_line): New fields
960 explicit_pc and explicit_line.
961
41f1b697
DJ
9622007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
963
964 * infcall.c (call_function_by_hand): Handle language-specific
965 pass and return by reference.
966
967 * cp-abi.c (cp_pass_by_reference): New.
968 * cp-abi.h (cp_pass_by_reference): Declare.
969 (struct cp_abi_ops): Add pass_by_reference.
970 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
971 (init_gnuv3_ops): Set pass_by_reference.
972
973 * language.c (language_pass_by_reference): New.
974 (default_pass_by_reference): New.
975 (unknown_language_defn, auto_language_defn, local_language_defn): Add
976 default_pass_by_reference.
977 * langauge.h (struct language_defn): Add la_pass_by_reference.
978 (language_pass_by_reference, default_pass_by_reference): Declare.
979 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
980 * c-lang.c (c_language_defn, asm_language_defn)
981 (minimal_language_defn): Likewise.
982 (cplus_language_defn): Add cp_pass_by_reference.
983 * f-lang.c (f_language_defn): Add default_pass_by_reference.
984 * jv-lang.c (java_language_defn): Likewise.
985 * m2-lang.c (m2_language_defn): Likewise.
986 * objc-lang.c (objc_language_defn): Likewise.
987 * p-lang.c (pascal_language_defn): Likewise.
988 * scm-lang.c (scm_language_defn): Likewise
989
0d381245
VP
9902007-09-23 Vladimir Prus <vladimir@codesourcery.com>
991
992 Allow a code breakpoint to have several locations
993 associated with it.
994 * breakpoint.h (enum enable_state): Remove the
995 bp_shlib_disabled enumerator.
996 (struct bp_location): New members shlib_disabled,
997 global_next, enabled and function_name.
998 Rename pending to condition_not_parsed.
999
1000 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1001 (ALL_BP_LOCATIONS_SAFE): Likewise.
1002 (breakpoint_enabled): Don't check for pending.
1003 (condition_command): Free and update all locations of
1004 a breakpoint.
1005 (insert_bp_location): Adjust.
1006 (software_breakpoint_inserted_here_p): Don't care
1007 if breakpoint is enabled, as soon as it's inserted.
1008 (print_it_typical): Print bpstat's location, not
1009 bpstat's breakpoint's location.
1010 (bpstat_stop_status): Iterate over all locations, not
1011 all breakpoints.
1012 (print_breakpoint_location): New.
1013 (print_one_breakpoint): Renamed to
1014 (print_one_breakpoint_location): ...this. Take
1015 parameters to describe which location is being
1016 printed. Modify code to properly print header
1017 for several locations and individual locations.
1018 (print_one_breakpoint): Print all locations.
1019 (breakpoint_has_pc): New.
1020 (describe_other_breakpoints): Use the above.
1021 (check_duplicates): Renamed to...
1022 (check_duplicates_for): .. this.
1023 (check_duplicates): Use check_duplicates_for.
1024 (allocate_bp_location): Adjust.
1025 (set_raw_breakpoint_without_location): New,
1026 extracted from set_raw_breakpoint.
1027 (set_breakpoint_location_function): New.
1028 (set_raw_breakpoint): Use
1029 set_raw_breakpoint_without_location.
1030 (make_breakpoint_permanent): Mark all locations
1031 as inserted.
1032 (disable_breakpoints_in_shlibs): Iterate over
1033 locations.
1034 (disable_breakpoints_in_unloaded_shlib): Likewise.
1035 (re_enable_breakpoints_in_shlibs): Likewise.
1036 (mention): Say "pending" when breakpoint has
1037 zero locations. If breakpoint has more than one
1038 location, say so.
1039 (add_location_to_breakpoint): New.
1040 (create_breakpoint): Accept symtabs_and_lines, not
1041 symtab_and_line. Pass extra sals to
1042 add_location_to_breakpoint.
1043 (create_breakpoints): Pass symtabs_and_lines to
1044 create_breakpoints.
1045 (break_command_1): Make pending breakpoints
1046 have zero locations.
1047 (do_captured_breakpoint): Remove wrong allocation.
1048 (clear_command): Iterate over all locations.
1049 (unlink_locations_from_global_list): Renamed
1050 from unlink_location_from_global_list. Remove
1051 all locations.
1052 (delete_breakpoint): Remove all locations.
1053 Iterate over all locations when deciding which
1054 other location to re-enable.
1055 (all_locations_are_pending): New.
1056 (update_breakpoint_locations): Renamed from
1057 update_breakpoint_location. Try to match old
1058 and new locations using names of containing
1059 functions.
1060 (breakpoint_re_set_one): Adjust.
1061 (find_location_by_number): New.
1062 (disable_command): Allow disabling individual location.
1063 (enable_command): Allow enabling individual location.
1064 * breakpoint.c: Adjust all uses of breakpoint's
1065 enable state to for bp_shlib_disabled change.
1066
fe3f5fa8
VP
10672007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1068
1069 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1070 (resolve_pending_breakpoint): Remove.
1071 (re_enable_breakpoints_in_shlibs): Remove.
1072 (unlink_locations_from_global_list): New.
1073 (update_breakpoint_locations): New.
1074 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1075 Use parse_condition and update_breakpoint_location to
1076 reset breakpoint. Ignore 'symbol not found' error from
1077 decode_line_1.
1078 (breakpoint_re_set): Don't emit newline before the
1079 reason why breakpoint is not reset.
1080 (do_enable_breakpoint): Don't specially process pending
1081 breakpoints.
1082 (free_bp_location): New.
1083 (break_command_1): For pending breakpoints, initialize
1084 all fields of a sal with zeroes.
1085 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1086 * infcmd.c (post_create_inferior): Don't call
1087 re_enable_breakpoints_in_shlibs.
1088 * infrun.c (handle_inferior_event): Likewise.
1089 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1090 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1091 * win32-nat.c (get_win32_debug_event): Likewise.
1092
511a6cd4
VP
10932007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1094
018d34a4
VP
1095 * breakpoint.c (create_breakpoint): Split from
1096 create_breakpoints, implementing most of its logic.
1097 Take just a single sal, single address string and
1098 single condition. Do not take parsed condition at
1099 all.
1100 (create_breakpoints): Just call create_breakpoint
1101 for each sal.
1102 (find_condition_and_thread): New.
1103 (break_command_1): Use find_condition_and_thread.
1104 Do not keep parsed conditions.
1105 (do_captured_breakpoint): Don't convert
1106 condition string to struct expression.
1107
11082007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1109
511a6cd4
VP
1110 * breakpoint.h (struct breakpoint): Move the cond
1111 field to...
1112 (struct bp_location): Here.
1113 * breakpoint.c (condition_command, bpstat_stop_status)
1114 (print_one_breakpoint, allocate_bp_location)
1115 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1116 (create_exec_event_catchpoint, create_breakpoints)
1117 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1118 (create_ada_exception_breakpoint, set_breakpoint_sal)
1119 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1120 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1121
4f8d1dc6
VP
11222007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1123
1124 Associate bp_stat with bp_location, not breakpoint.
1125 * breakpoint.h (breakpoint_at): Change type
1126 to bp_location*.
1127 * breakpoint.c (bpstat_alloc): Take bp_location,
1128 not breakpoint.
1129 (bpstat_find_breakpoint): Look at bpstat's location's
1130 owner, not at bpstat->breakpoint_at.
1131 (bpstat_find_step_resume_breakpoint): Likewise.
1132 (bpstat_num): Likewise.
1133 (print_it_typical): Likewise.
1134 (print_bp_stop_message): Likewise.
1135 (watchpoint_check): Likewise.
1136 (bpstat_what): Likewise.
1137 (bpstat_get_triggered_catchpoints): Likewise.
1138 (breakpoint_auto_delete): Likewise.
1139 (delete_breakpoint): Likewise.
1140 (bpstat_stop_status): Pass location, not breakpoint,
1141 to bpstat_alloc. Look at bpstat's location's
1142 owner, not at bpstat->breakpoint_at.
1143
32623386
JB
11442007-09-21 Jim Blandy <jimb@codesourcery.com>
1145
1146 * macrotab.h (new_macro_table): Document that removing information
1147 from an obstack/bcache-managed macro table leaks memory.
1148 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1149 that data is never freed in obstack/bcache-managed macro tables,
1150 just leak the storage.
1151 (macro_undef): If we're undefining a macro at exactly the same
1152 source location that we defined it, simply remove the definition
1153 altogether.
1154
c295b2e5
JB
11552007-09-21 Joel Brobecker <brobecker@adacore.com>
1156
1157 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1158 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1159 Adjust the struct sym_fns object accordingly by setting
1160 the new field to NULL.
1161 * xcoffread.c (aix_process_linenos): Make static.
1162 (xcoff_sym_fns): Set new field to aix_process_linenos.
1163 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1164 by call to new the new sym_fns sym_read_linetable function.
1165 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1166 * config/rs6000/tm-rs6000.h: Delete.
1167
ab2e1992
MR
11682007-09-21 David Ung <davidu@mips.com>
1169 Maciej W. Rozycki <macro@mips.com>
1170
1171 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1172 rules do not treat composite types specially.
1173
97ab0fdd
MR
11742007-09-20 Maciej W. Rozycki <macro@mips.com>
1175
1176 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1177 (mips16_in_function_epilogue_p): Likewise.
1178 (mips_in_function_epilogue_p): Likewise.
1179 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1180
01fe12f6
JB
11812007-09-19 Joel Brobecker <brobecker@adacore.com>
1182
1183 * configure.ac: Add check for "etext".
1184 * configure, config.in: Regenerate.
1185 * maint.c (TEXTEND): Only define if either _etext or etext
1186 are available.
1187 Disable the profiling functionality if TEXTEND is not defined.
1188
aa6c981f
DJ
11892007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1190
1191 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1192 address register. Correct the call to frame_id_build.
1193 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1194 is invalid.
1195
39312971
JB
11962007-09-18 Joel Brobecker <brobecker@adacore.com>
1197
1198 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1199 the linetable past the function end.
1200
558dc30a
JW
12012007-09-18 James E. Wilson <wilson@specifix.com>
1202
1203 * MAINTAINERS: Update my email address.
1204
60e2c248
JG
12052007-09-18 Jerome Guitton <guitton@adacore.com>
1206
1207 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1208 (inf_ttrace_delete_dying_threads_callback): New function.
1209 (inf_ttrace_resume): After resuming the execution, iterate over
1210 the dying threads to delete them for the thread list.
1211 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1212 mark the corresponding thread as dying instead of removing it
1213 from the thread list.
1214 (inf_ttrace_thread_alive): return 0 for dying threads.
1215
f4c1edd8
JB
12162007-09-17 Joel Brobecker <brobecker@adacore.com>
1217
1218 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1219 that return_frame is not null.
1220
8d4e36ba
JB
12212007-09-17 Joel Brobecker <brobecker@adacore.com>
1222
1223 * solib-svr4.c: Add include of "auxv.h".
1224 (enable_break): Use the AT_BASE auxiliary entry if available.
1225 * Makefile.in (solib-svr4.o): Update dependencies.
1226
f9ed52be
JB
12272007-09-17 Joel Brobecker <brobecker@adacore.com>
1228
1229 * NEWS: Create a new section for the next release branch.
1230 Rename the section of the current branch, now that it has
1231 been cut.
1232
eff4f95e
JG
12332007-09-17 Jerome Guitton <guitton@adacore.com>
1234
1235 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1236 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1237
084344da
VP
12382007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1239
1240 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1241 * mi/mi-cmds.h (mi_cmd_list_features): New.
1242 * mi/mi-main.c (mi_cmd_list_features): New.
1243
50c7215d 12442007-09-11 Joel Brobecker <brobecker@adacore.com>
1245
1246 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1247 * version.in: Bump version to 6.7.50-20070911-cvs.
1248
4d8453a5
DJ
12492007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1250
1251 * thread.c (free_thread): Do not delete the step resume breakpoint
1252 right away.
1253
4eb0ad19
DJ
12542007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1255
1256 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1257 * corelow.c (core_read_description): New.
1258 (init_core_ops): Set to_read_description.
1259 * gdbarch.sh: Add gdbarch_core_read_description.
1260 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1261 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1262 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1263 (mips_register_g_packet_guesses): Use them.
1264 (_initialize_mips_tdep): Initialize them.
1265 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1266 * gdbarch.h, gdbarch.c: Regenerated.
1267
6a6b96b9
UW
12682007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1269
1270 * infrun.c (stepping_past_breakpoint): New global variable.
1271 (stepping_past_breakpoint_ptid): Likewise.
1272 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1273 Only switch threads if we need to single-step over a breakpoint hit
1274 in the previously selected thread. If stepping, remember previous
1275 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1276 switch_to_thread instead of copying its contents.
1277 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1278 prepare_to_proceed returns true.
1279 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1280 (context_switch): Call switch_to_thread.
1281 (handle_inferior_event): Switch back to previous thread if requested
1282 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1283 * gdbthread.h (switch_to_thread): Add prototype.
1284 * thread.c (switch_to_thread): Make global.
1285
0b058123 12862007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
b20a3440
PM
1287
1288 * p-valprint.c: Fix 7 ARI reported problems.
1289 (pascal_val_print): Fix one operator at end of line issue.
1290 Use paddress function to remove use of
1291 deprecated_print_address_numeric function (2 times).
1292 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1293 (pascal_value_print): Fix 3 operator at end of line issues.
1294
faa95490
DJ
12952007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1296
1297 PR gdb/2103
1298 * arm-tdep.c (arm_in_call_stub): Delete.
1299 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1300
f0027ce2
DJ
13012007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1302
1303 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1304 types.
1305
ea37ba09
DJ
13062007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1307 Jim Blandy <jimb@codesourcery.com>
1308
1309 * NEWS: Update description of string changes. Mention print/s.
1310 * c-valprint.c (textual_element_type): New.
1311 (c_val_print): Use it. Do not skip address printing for pointers
1312 with a string format.
1313 (c_value_print): Doc update.
1314 * dwarf2read.c (read_array_type): Use make_vector_type.
1315 * gdbtypes.c (make_vector_type): New.
1316 (init_vector_type): Use it.
1317 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1318 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1319 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1320 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1321 (make_vector_type): New.
1322 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1323 Call the language print routine for string format.
1324 (print_scalar_formatted): Call val_print for string format. Handle
1325 unsigned original types for char format.
1326 (validate_format): Do not reject string format.
1327 * stabsread.c (read_type): Use make_vector_type.
1328 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1329
8fb822e0
MS
13302007-09-04 Michael Snyder <msnyder@access-company.com>
1331
fcd776e5
MS
1332 * expprint.c (print_subexp_standard): Check strchr for null.
1333 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1334
7d63ec12
MS
1335 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1336
8fb822e0
MS
1337 * stabsread.c (patch_block_status): Guard against null.
1338 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1339
2025a643
DJ
13402007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1341
1342 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1343 in internal error message.
1344
de1b3c3d
PA
13452007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1346 Daniel Jacobowitz <dan@codesourcery.com>
1347
1348 * infcmd.c (post_create_inferior): Update comment.
1349 (run_command_1): Always call post_create_inferior with 0 as
1350 from_tty.
1351
1352 * i386-cygwin-tdep.h: New.
1353 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1354 (win32_xfer_shared_library): Make it extern.
1355
1356 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1357 i386-cygwin-tdep.h.
1358 (win32_so_ops): Delete.
1359 (get_relocated_section_addrs): Delete.
1360 (solib_symbols_add): Delete.
1361 (register_loaded_dll): Delete.
1362 (win32_make_so): New.
1363 (handle_load_dll): Use win32_make_so.
1364 (win32_free_so): Free the passed in so.
1365 (win32_relocate_section_addresses): Delete.
1366 (win32_solib_create_inferior_hook): Delete.
1367 (handle_unload_dll): Don't add PE offset here. Free so with
1368 win32_free_so instead of free_so.
1369 (win32_special_symbol_handling): Delete.
1370 (get_win32_debug_event): Remove unneeded calls. Set state to
1371 TARGET_WAITKIND_LOADED on a dll unload.
1372 (do_initial_win32_stuff): Clear cygwin_load_start and
1373 cygwin_load_end.
1374 (map_code_section_args): Delete.
1375 (dll_code_sections_add): Delete.
1376 (core_section_load_dll_symbols): Delete.
1377 (win32_xfer_shared_libraries): New.
1378 (win32_current_sos): Delete.
1379 (win32_xfer_partial): New.
1380 (open_symbol_file_object): Delete.
1381 (in_dynsym_resolve_code): Delete.
1382 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1383 of win32_ops. Remove win32_so_ops settings. Don't set
1384 current_target_so_ops here.
1385
1386 * Makefile.in (i386_cygwin_tdep_h): New variable.
1387 (i386-cygwin-tdep.o): Update dependencies.
1388 (win32-nat.o): Update dependencies.
1389
de584861
PA
13902007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1391 Daniel Jacobowitz <dan@codesourcery.com>
1392
1393 * gdbarch.sh (core_xfer_shared_libraries): New.
1394
1395 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1396
1397 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1398
1399 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1400 (xml_escape_text): New.
1401 * xml-support.h (xml_escape_text): Declare.
1402
1403 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1404 * config/i386/cygwin.mt (TDEPFILES): ... here.
1405
1406 * win32-nat.c: (fetch_elf_core_registers): Delete.
1407 (win32_elf_core_fn): Delete.
1408 (_initialize_core_win32): Delete.
1409
1410 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1411 "xml-support.h" and "gdbcore.h".
1412 (i386_win32_gregset_reg_offset): New.
1413 (I386_WIN32_SIZEOF_GREGSET): New.
1414 (i386_win32_regset_from_core_section): New.
1415 (win32_xfer_shared_library): New.
1416 (struct cpms_data): New.
1417 (core_process_module_section): New.
1418 (win32_core_xfer_shared_libraries): New.
1419 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1420 gregset_num_regs, sizeof_gregset members of tdep. Register
1421 regset_from_core_section and core_xfer_shared_libraries callbacks.
1422
1423 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1424 * gdbarch.h, gdbarch.c: Regenerate.
1425
7160c4c3
PA
14262007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1427
1428 * corelow.c (core_xfer_partial): Pass writebuf to
1429 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1430
6dc13412
PA
14312007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1432
1433 * arm-tdep.h (arm_skip_stub): Declare.
1434 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1435 "gdbcore.h".
1436 (arm_pe_skip_trampoline_code): New function.
1437 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1438 gdbarch_skip_trampoline_code callback.
1439 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1440
ca8385e5
DJ
14412007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1442
1443 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1444
5c39566f
DJ
14452007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1446
1447 * configure.ac: Add --with-expat.
1448 * configure: Regenerated.
1449
6a30b0a5
AS
14502007-09-03 Andreas Schwab <schwab@suse.de>
1451
1452 * configure.ac: Accept --with-system-readline.
1453 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1454 * configure: Regenerate.
1455 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1456 substituted values.
1457 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1458
edff0c0a
DJ
14592007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1460 Daniel Jacobowitz <dan@codesourcery.com>
1461
1462 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1463
0b93d57c
JK
14642007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1467
b8533aec
DJ
14682007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1469
1470 * top.c (print_gdb_version): Update for GPL version 3.
1471
f5db8714
JK
14722007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1473
1474 * NEWS: Mention the build-id .debug files verification.
1475
d99148ef
JK
14762007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1479
77069918
JK
14802007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * Makefile.in (symfile.o): Update dependencies.
1483 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1484 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1485 (struct build_id): New structure.
1486 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1487 (find_separate_debug_file): New variable BUILD_ID.
1488 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1489
202ddcaa
VP
14902007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1491
1492 * varobj.c (struct varobj): Fix comment
1493 for the type member not to lie when it can be
1494 NULL.
1495
02142340
VP
14962007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1497
1498 Implement -var-info-path-expression.
1499
1500 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1501 Declare.
1502 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1503 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1504 * varobj.c (struct varobj): New field 'path_expr'.
1505 (c_path_expr_of_child, cplus_path_expr_of_child)
1506 (java_path_expr_of_child): New.
1507 (struct language_specific): New field path_expr_of_child.
1508 (varobj_create): Initialize the path_expr field.
1509 (varobj_get_path_expr): New.
1510 (new_variable): Initialize the path_expr field.
1511 (free_variable): Free the path_expr field.
1512 (adjust_value_for_children_access): New parameter
1513 WAS_TYPE.
1514 (c_number_of_children): Adjust.
1515 (c_describe_child): New parameter CFULL_EXPRESSION.
1516 Compute full expression.
1517 (c_value_of_child, c_type_of_child): Adjust.
1518 (cplus_number_of_children): Adjust.
1519 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1520 Compute full expression.
1521 (cplus_name_of_child, cplus_value_of_child)
1522 (cplus_type_of_child): Adjust.
1523 * varobj.h (varobj_get_path_expr): Declare.
1524
bccc275a
VP
15252007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1526
1527 * mi/mi-cmd-var.c (print_varobj): If a varobj
1528 type is NULL, don't try to print it.
1529
f2db237a
AM
15302007-08-30 Alan Modra <amodra@bigpond.net.au>
1531
1532 * ppc-linux-nat.c (right_fill_reg): Delete.
1533 (supply_gregset): Use ppc_supply_gregset.
1534 (supply_fpregset): Use ppc_supply_fpregset.
1535 (fill_gregset): Use ppc_collect_gregset.
1536 (fill_fpregset): Use ppc_collect_fpregset.
1537 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1538 (right_supply_register, ppc_linux_supply_gregset): Delete.
1539 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1540 (ppc_linux_supply_fpregset): Delete.
1541 (ppc_linux_collect_gregset): New function.
1542 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1543 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1544 ppc_linux_supply_gregset, and ppc_collect_gregset.
1545 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1546 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1547 (ppc_linux_regset_from_core_section): Update.
1548 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1549 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1550 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1551 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1552 (ppcobsd_collect_gregset): Likewise.
1553 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1554 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1555 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1556 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1557 (rs6000_aix64_reg_offsets): Likewise.
1558 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1559 ppc_floating_point_unit_p.
1560 (rs6000_aix_collect_regset): Similarly.
1561 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1562 when regsize is larger than regcache register size.
1563 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1564 regcache register size.
1565 (ppc_greg_offset): New function, split out from..
1566 (ppc_supply_gregset): ..here. Separate code handling all regs from
1567 single reg case. Correct xer offset.
1568 (ppc_fpreg_offset): New function, split out from..
1569 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1570 single reg case.
1571 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1572 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1573 a fp unit, instead return if no fp.
1574
fe5aea2e
JB
15752007-08-29 Jim Blandy <jimb@codesourcery.com>
1576
1577 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1578 this code has not been compiled for two years.
1579
13ce7133
MS
15802007-08-29 Michael Snyder <msnyder@access-company.com>
1581
1582 * event-top.c (gdb_readline2): Return after EOF.
1583
fd4a0f2f
JB
15842007-08-29 Joel Brobecker <brobecker@adacore.com>
1585
1586 * symtab.c: Remove a function that has been commented out 3 years ago.
1587
d037d088
CD
15882007-08-29 Randolph Chung <tausq@debian.org>
1589
1590 * hppa-tdep.c (hppa32_cannot_fetch_register)
1591 (hppa64_cannot_fetch_register): New functions.
1592 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1593 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1594
19d378fc
MS
15952007-08-28 Michael Snyder <msnyder@access-company.com>
1596
57cdecd2
MS
1597 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1598 check for null before calling check_typedef.
1599
19d378fc
MS
1600 * NEWS: Mention Coverity bug fixes.
1601
36acd84e
UW
16022007-08-27 Markus Deuling <deuling@de.ibm.com>
1603
1604 * spu-tdep.c (spu_pointer_to_address): New function.
1605 (spu_integer_to_address): Likewise.
1606 (spu_gdbarch_init): Add spu_pointer_to_address and
1607 spu_integer_to_address to gdbarch.
1608
8ad7c2b9
PA
16092007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1610
1611 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1612
4de6a07e
JB
16132007-08-23 Joel Brobecker <brobecker@adacore.com>
1614
1615 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1616 that contains the GDB license.
1617 * copying.awk: Adjust to the GPLv3 wording.
1618 * copying.c: Regenerate.
1619
07aed0eb
JB
16202007-08-23 Joel Brobecker <brobecker@adacore.com>
1621
01d4100f 1622 * copying.awk: Protoization, and i18n markup.
07aed0eb 1623
50efebf8
JB
16242007-08-23 Joel Brobecker <brobecker@adacore.com>
1625
1626 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1627 * copyright.sh: Likewise.
1628 * gdb-events.sh: Likewise.
1629 * gdb_gcore.sh: Likewise.
1630 * gdb_mbuild.sh: Likewise.
1631 * gdbarch.sh: Likewise.
1632 * observer.sh: Likewise.
1633 * features/feature_to_c.sh: Likewise.
1634 * regformats/regdat.sh: Likewise.
1635
16362007-08-23 Joel Brobecker <brobecker@adacore.com>
a9762ec7
JB
1637
1638 Switch the license of all .c files to GPLv3.
1639 Switch the license of all .h files to GPLv3.
1640 Switch the license of all .cc files to GPLv3.
1641
5a0e3bd0
JB
16422007-08-23 Joel Brobecker <brobecker@adacore.com>
1643
1644 * configure.ac: Switch license to GPLv3.
1645
609ca2b9
DJ
16462007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1647
1648 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1649 determine the file's FPU type.
1650
8d26208a
DJ
16512007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1652
1653 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1654 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1655 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1656
65728c26
DJ
16572007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1658
1659 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1660 Fix formatting.
1661 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1662 (elf_lookup_lib_symbol): Fix formatting.
1663
a2ca50ae
MS
16642007-08-21 Michael Snyder <msnyder@access-company.com>
1665
6b2d86bd
MS
1666 * dbxread.c (read_dbx_symtab): Guard null deref.
1667 Break up long line.
1668
a2ca50ae
MS
1669 * valops.c (find_overload_match): Guard against NULL.
1670
54e116dd
DJ
16712007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1672
1673 * MAINTAINERS (Patch Champions): Remove self.
1674
f429d7d0
DJ
16752007-08-21 Chris Smith <chris.smith@st.com>
1676
1677 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1678 line.
1679
a2ca50ae 16802007-08-18 Michael Snyder <msnyder@access-company.com>
a287cea6 1681
31e9f6b6
MS
1682 * stabsread.c (dbx_lookup_type): Memory leak.
1683
32107cd5
MS
1684 * event-loop.c (delete_async_signal_handler): Move pointer null
1685 test to before pointer dereference.
1686
44db85f8
MS
1687 * ui-out.c (append_header_to_list): Possible cut and paste error.
1688
a287cea6
MS
1689 * MAINTAINERS: white space tweak.
1690
0bd9908d
MS
16912007-08-17 Michael Snyder <msnyder@access-company.com>
1692
f91162e1
MS
1693 * stack.c (print_frame): Memory leak.
1694
1e8189fb
MS
1695 * completer.c (filename_completer): Avoid memory leak.
1696 Remove unnecessary nested block.
1697
348038cd
MS
1698 * c-exp.y (parse_number): Memory leak.
1699
1f20ed91
MS
1700 * completer.c (location_completer): Must free 'fn_list', except
1701 in the one case where it is returned (as 'list').
1702
74dddad3
MS
1703 * varobj.c (value_of_root): Memory leak.
1704
0bd9908d
MS
1705 * gdbtypes.h (virtual_base_list): Remove export decl.
1706 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1707 (virtual_base_index): Memory leak.
1708 (virtual_base_index_skip_primaries): Ditto.
1709
bdb4c075
MG
17102007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1711
1712 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1713 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1714 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1715 (xtensa_read_register): New function.
1716 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1717 (xtensa_insn_kind): New types.
1718 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1719 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1720 (xtensa_verify_config, xtensa_pseudo_register_read)
1721 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1722 (xtensa_store_return_value)
1723 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1724 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1725 (xtensa_frame_this_id, xtensa_frame_prev_register)
1726 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1727 (call0_frame_cache, call0_frame_get_reg_at_entry)
1728 (call0_classify_opcode, call0_track_op)
1729 (call0_analyze_prologue, call0_frame_cache): New functions.
1730
198757a8
VP
17312007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1732
1733 * breakpoint.c (bpstat_free): New.
1734 (bpstat_clear): Use bpstat_free.
1735 (delete_breakpoint): Document why we cannot
1736 remove bpstats from stop_bpstat.
1737 * breakpoint.h (bpstat_free): Declare.
1738
dc66ab8a
MS
17392007-08-16 Michael Snyder <msnyder@access-company.com>
1740
1741 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1742
40c8aaa9
JB
17432007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1744 Joel Brobecker <brobecker@adacore.com>
1745
1746 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1747
ee90b9ab
JB
17482007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1749 Joel Brobecker <brobecker@adacore.com>
1750
1751 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1752 checkin guarding against NULL.
1753
5b6fe301
MS
17542007-08-14 Michael Snyder <msnyder@access-company.com>
1755
e5908723
MS
1756 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1757 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1758 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1759 go at beginning of new line.
1760
08ef48c5
MS
1761 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1762 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1763 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1764 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1765 tui-winsource.h, tui.c, tui.h: Function declarations and
1766 definitions, wrap long lines.
1767
ef5eab5a
MS
1768 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1769 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1770 Reformat block comments to GNU standard.
1771
1cc6d956
MS
1772 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1773 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1774 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1775 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1776 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1777 spaces after periods, etc).
1778
5b6fe301
MS
1779 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1780 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1781 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1782 tui-winsource.h: Whitespace changes, fix pointer declarations
1783 to be consistant.
1784
64a1bf19
JB
17852007-08-14 Joel Brobecker <brobecker@adacore.com>
1786 Michael Snyder <msnyder@access-company.com>
1787
1788 * ada-lang.c (field_alignment): Guard against NULL.
1789
e933291e
JB
17902007-08-14 Joel Brobecker <brobecker@adacore.com>
1791
1792 * MAINTAINERS (Global Maintainers): Add self.
1793
348144ba
MS
17942007-08-14 Michael Snyder <msnyder@access-company.com>
1795
068acb6c
MS
1796 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1797
6d307763
MS
1798 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1799
348144ba
MS
1800 * varobj.c (cplus_describe_child): Guard against null.
1801 Use "NULL" instead of "0" to initialize pointers.
1802
b8926edc
DJ
18032007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1804
1805 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1806 to match any gdbarch with matching OSABI. Set default ABI and FPU
1807 after running the OSABI handler.
1808
cdd6623c
DJ
18092007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1810
1811 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1812 * config/i386/linux.mt (TDEPFILES): ...to here.
1813
cb851954
VP
18142007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1815
cb851954
VP
1816 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1817 the 'silent' parameter and code to implement that.
1818 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1819 prototype.
1820 * win32-nat.c: Adjust.
1821 * solib.c: Adjust.
1822
e14a792b
VP
18232007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1824
e14a792b
VP
1825 * breakpoint.c (update_breakpoints_after_exec): Don't
1826 set address to zero.
1827
be8ca11b
MS
18282007-08-13 Michael Snyder <msnyder@access-company.com>
1829
ac3eeb49
MS
1830 * valops.c: Whitespace clean-up.
1831
81b7c67a
MS
1832 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1833
f5b73fbb
MS
1834 * event-top.c (command_line_handler): Memory leak.
1835
b538c234
MS
1836 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1837 No need to make copy.
1838
be8ca11b
MS
1839 * source.c (find_source_lines): Require symtab 's'.
1840
489f0516
MS
18412007-08-11 Michael Snyder <msnyder@access-company.com>
1842
1843 * completer.c: Spelling fix in comments.
1844
9c3f90bd
MS
18452007-08-10 Michael Snyder <msnyder@access-company.com>
1846
687d6395 1847 * gdbtypes.c: Coding standard cleanup.
7ba81444
MS
1848 * gdbtypes.c: Comment/whitespace cleanup.
1849
6aef78af
MS
1850 * stabsread.c (read_huge_number): Attempt to compute value before
1851 values that it depends on.
1852
46be51c4
MS
1853 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1854 (decode_objc): Use "NULL" instead of 0.
1855 (find_method): Ditto.
1856 (decode_all_digits): Ditto.
1857 (decode_dollar): Ditto.
1858
412bbd6c
MS
1859 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1860
76bd6e0b
MS
1861 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1862
518f9d3c
MS
1863 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1864 after closing bfd.
1865
9c3f90bd
MS
1866 * completer.c: Comment/whitespace cleanup.
1867
adee0206
JB
18682007-08-10 Joel Brobecker <brobecker@adacore.com>
1869
1870 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1871
18722007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
9f8e6999
MG
1873
1874 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1875 allocated file descriptors.
1876
271a27b8
JB
18772007-08-10 Joel Brobecker <brobecker@adacore.com>
1878
1879 * Makefile.in: Minor cleanup throughout; add some missing variables,
1880 add some missing rules, remove some rules that are no longer needed,
1881 and fix the dependencies in several rules.
1882
57da7796
LC
18832007-08-10 Ludovic Courtès <ludo@gnu.org>
1884
d4310edb
LC
1885 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1886 (scm_lang_h, scm_tags_h): New.
1887 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1888 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1889 * defs.h (enum language): Add `language_scm'.
1890
57da7796
LC
1891 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1892 opening.
1893
93c06293
LC
18942007-08-09 Ludovic Courtès <ludo@gnu.org>
1895
1896 * MAINTAINERS (Write After Approval): Add myself.
1897
0997b535
MS
18982007-08-09 Michael Snyder <msnyder@access-company.com>
1899
1900 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1901
4fec86cf
JB
19022007-08-09 Joel Brobecker <brobecker@adacore.com>
1903
1904 * solib-som.c (som_relocate_section_addresses): Stop saving
1905 the $CODE$ section in the so_list structure.
1906
7b871568
MG
19072007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1908
1909 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1910 (xtensa_register_group_t): Add entries for coprocessors.
1911 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1912 (xtensa_add_reggroups): Likewise.
1913 (xtensa_register_reggroup_p): Likewise.
1914 (xtensa_coprocessor_register_group): New function.
1915 (xtensa_cp): New.
1916
652aaa24
JK
19172007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1918
1919 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1920
decbce07
MS
19212007-08-08 Michael Snyder <msnyder@access-company.com>
1922
6217bf3e
MS
1923 * target.c (target_read_string): Guard against null.
1924
6225abfa
MS
1925 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1926
3e40160c 1927 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3277c0e0 1928 (tui_set_layout_for_display_command): Mem leak.
3e40160c 1929
91d2803c
MS
1930 * top.c (command_line_input): Memory leak.
1931
ea5bf0a1
MS
1932 * solib-svr4.c (open_symbol_file_object): Memory leak.
1933 (svr4_current_sos): Ditto.
1934 (enable_break): Ditto.
1935
34e2dfde
MS
1936 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1937
decbce07
MS
1938 * dwarf2read.c (add_partial_symbol): Memory leak.
1939
4cdfadb1
MS
19402007-08-06 Michael Snyder <msnyder@access-company.com>
1941
1942 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1943
b1ddacc7
JB
19442007-08-05 Jim Blandy <jimb@codesourcery.com>
1945
1946 * macroexp.c (init_buffer): Remove testing code that overrides the
1947 caller's length guess.
1948 (gather_arguments): Use a larger initial size, now that the vector
1949 growth code has been exercised.
1950
5d9643ba
PA
19512007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1952
1953 * solib-target.c (solib_target_relocate_section_addresses): Add
1954 orig_delta to addr_high.
1955
27e06d3e
MS
19562007-08-04 Michael Snyder <msnyder@access-company.com>
1957
1ed489bd
MS
1958 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1959
c1f5197e
MS
1960 * breakpoint.c (print_one_breakpoint): Off by one error.
1961
27e06d3e
MS
1962 * tracepoint.c (add_register): Off by one error.
1963 (stringify_collection_list): Free malloc buffer.
1964
03b4bca2
MS
19652007-08-03 Michael Snyder <msnyder@access-company.com>
1966
474d0d0c
MS
1967 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1968 stop memory leak, straighten out cleanups.
1969
03b4bca2
MS
1970 * jv-lang.c (java_link_class_type): Guard against NULL.
1971
423c0af8
MS
19722007-08-02 Michael Snyder <msnyder@access-company.com>
1973
f9780d5b
MS
1974 * gdbtypes.c (create_set_type): Test should only be done within
1975 the preceeding if block. Otherwise, variable is uninitialized.
1976
423c0af8
MS
1977 * gdbtypes.c (check_typedef): Guard NULL.
1978
c0645fb5
MS
19792007-08-01 Michael Snyder <msnyder@access-company.com>
1980
3cebf8d8
MS
1981 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1982 avoid dereference in lookup_cmd_1.
1983
c0645fb5
MS
1984 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1985 clean up long lines.
1986 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1987 (tui_alloc_win_info): Ditto.
1988 (tui_add_content_elements): Ditto.
1989 * tui/tui-file.c (tui_file_magic): Ditto.
1990
abe34c35
MS
19912007-07-31 Michael Snyder <msnyder@access-company.com>
1992
967af18d
MS
1993 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1994 True and false paths are mutually exclusive.
1995
40742ab6
MS
1996 * event-top.c (command_line_handler): Add pedantic return.
1997
7c6e0d48
MS
1998 * f-valprint.c (info_common_command): Bail out to prevent null
1999 pointer deref. Break up a long line.
2000
c7b1adc9
MS
2001 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2002
73780b3c
MS
2003 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2004
abe34c35
MS
2005 * printcmd.c (build_address_symbolic): Remove dead code and dead
2006 variable.
2007
e48883f7
DJ
20082007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2009
2010 * linespec.c (minsym_found): Advance to the next line if possible.
2011
57204837
PA
20122007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2013
2014 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2015 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2016 solib-svr4.o, and add solib-target.o
2017
fed8b01e
MS
20182007-07-27 Michael Snyder <msnyder@access-company.com>
2019
2020 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2021
9ceb0b4c
MR
20222007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2023
2024 * MAINTAINERS (Write After Approval): Add myself.
2025
c80a96a8
MR
20262007-07-26 Maciej W. Rozycki <macro@mips.com>
2027
2028 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2029 for include files.
2030
5b311828
MR
20312007-07-25 Maciej W. Rozycki <macro@mips.com>
2032
2033 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2034
f52df7d9 20352007-07-24 Michael Snyder <msnyder@access-company.com>
55765a25 2036
f52df7d9
MS
2037 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2038 'buffer' must cover both branches that call strcmp (Coverity).
55765a25 2039
f52df7d9 2040 * stack.c (print_frame_args): Check return value of lookup_symbol.
747f3d18
MS
2041
2042 * ax-gdb.c (find_field): Guard against null ptr.
2043
69ae91d3
UW
20442007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2045
2046 * regformats/reg-spu.dat: Fix order of npc, id registers.
2047
98646950
UW
20482007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2049
2050 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2051 sections should always go to the executable file.
2052
193774b3
MR
20532004-07-20 Chris Dearman <chris@mips.com>
2054
2055 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2056 prologue instructions.
2057
ce1f96de
MR
20582007-07-20 Maciej W. Rozycki <macro@mips.com>
2059
2060 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2061 a direct test.
2062
bcf1ea1e
MR
20632007-07-20 Chris Dearman <chris@mips.com>
2064 Maciej W. Rozycki <macro@mips.com>
2065
2066 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2067 description.
2068
255e7678
DJ
20692007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2070 Daniel Jacobowitz <dan@codesourcery.com>
2071
2072 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2073 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2074 printf.
2075 * NEWS: Mention gdbserver DLL support.
2076
a8c50c1f
DJ
20772007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2078
2079 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2080
2e024c20
L
20812007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2082
2083 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2084 warning bug.
2085
f219aedc
KB
20862007-07-13 Kevin Buettner <kevinb@redhat.com>
2087
2088 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2089 instruction case.
2090
1ba3e7a3
KB
20912007-07-12 Kevin Buettner <kevinb@redhat.com>
2092
2093 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2094 (mep_analyze_prologue): Add case for BRA instruction.
2095
f1e55806
UW
20962007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2097
2098 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2099
d9f71b56
NR
21002007-07-10 Nick Roberts <nickrob@snap.net.nz>
2101
2102 * breakpoint.c: Include "top.h".
2103 (breakpoint_1): Don't set convenience variable $_ if server prefix
2104 is used.
2105 (_initialize_breakpoint): Describe this behaviour in command help.
2106
358eb95e
PA
21072007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2108
2109 * solib-target.c (library_list_start_segment): Cast address to
2110 CORE_ADDR.
2111
a4e7b2e7
MK
21122007-07-06 Mark Kettenis <kettenis@gnu.org>
2113
2114 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2115 for terminated processes.
2116
2ed23f5f
MS
21172007-07-05 Michael Snyder <msnyder@access-company.com>
2118
2119 * event-top.c (cli_command_loop): Prompt string can (and should)
2120 be freed after call to readline (Coverity). Also move local var
2121 declarations into block where they are used.
2122
2123 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2124 should) be freed after call to readline (Coverity). Also move
2125 local var declarations into block where they are used.
2126
a25694b4
AS
21272007-07-03 Andreas Schwab <schwab@suse.de>
2128
2129 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2130 /proc/../stat.
2131
2bbe3cc1
DJ
21322007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2133 Thiago Bauermann <bauerman@br.ibm.com>
2134 Joseph S. Myers <joseph@codesourcery.com>
2135 Daniel Jacobowitz <dan@codesourcery.com>
2136
2137 * remote.c (remote_check_symbols): Use
2138 gdbarch_convert_from_func_ptr_addr.
2139 * infcall.c (find_function_addr): Handle function descriptors
2140 without debugging information.
2141 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2142 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2143 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2144 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2145 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2146 allow SEC_CODE and SEC_DATA.
2147 (enable_break): Update calls. Pass current_target to solib_add.
2148 Use gdbarch_convert_from_func_ptr_addr.
2149
9f43d28c
DJ
21502007-07-03 Ilko Iliev <iliev@ronetix.at>
2151 Daniel Jacobowitz <dan@codesourcery.com>
2152
2153 * symfile.c (print_transfer_performance): Avoid integer overflow.
2154 Use larger units.
2155
3a40aaa0
UW
21562007-07-03 Markus Deuling <deuling@de.ibm.com>
2157
2158 * cp-namespace.c (lookup_symbol_file): Add block to
2159 lookup_symbol_global call.
2160 * Makefile.in (solist_h): Add dependency on symtab header.
2161 (symtab.o): Add dependency on solist header.
2162 * solib.c (solib_global_lookup): New function.
2163 * solib-svr4.c (scan_dyntag): Likewise.
2164 (elf_locate_base): Call helper routine scan_dyntag.
2165 (elf_lookup_lib_symbol): New function.
2166 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2167 * solist.h (symtab.h): New include.
2168 (struct target_so_ops): New member lookup_lib_global_symbol.
2169 (solib_global_lookup): New prototype.
2170 * symtab.c: New include solist.h.
2171 (lookup_objfile_from_block): New function.
2172 (lookup_global_symbol_from_objfile): New function.
2173 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2174 (lookup_symbol_global): Call library-specific lookup procedure.
2175 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2176
2177 * NEWS: Document framework.
2178
c8c12293
DJ
21792007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2180
2181 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2182 to NULL.
2183
2184 * cli/cli-script.c (build_command_line): Update NULL check.
2185
7877e977
MS
21862007-07-02 Michael Snyder <msnyder@access-company.com>
2187
2188 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2189
cfa9d6d9
DJ
21902007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2191
2192 * Makefile.in (XMLFILES): Add library-list.dtd.
2193 (ALLDEPFILES): Add solib-target.o.
2194 (solib-target.o): New rule.
2195 * remote.c (PACKET_qXfer_libraries): New constant.
2196 (remote_protocol_features): Add qXfer:libraries:read.
2197 (remote_wait): Recognize library stop replies.
2198 (remote_async_wait): Likewise. Fix typo.
2199 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2200 (init_remote_async_ops): Fix typo.
2201 (_initialize_remote): Register "set remote library-info-packet".
2202 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2203 * solib-target.c: New file.
2204 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2205 of textsection.
2206 (info_sharedlibrary_command): Likewise.
2207 (solib_add_library, solib_remove_library): New.
2208 * solist.h (struct so_list): Replace textsection with addr_low and
2209 addr_high.
2210 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2211 * NEWS: Describe new qXfer:libraries:read and shared library
2212 event support.
2213 * features/library-list.dtd: New.
2214
b0f4b84b
DJ
22152007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2216
2217 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2218 (start_remote): Use STOP_QUIETLY_REMOTE.
2219 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2220 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2221 Update to match shared library event breakpoint support. Only
2222 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2223 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2224 * fork-child.c (startup_inferior): Do not set
2225 inferior_ignoring_startup_exec_events
2226 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2227 declaration.
2228 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2229
9bbf65bb
UW
22302007-07-02 Markus Deuling <deuling@de.ibm.com>
2231
2232 * breakpoint.c (insert_bp_location): Remove dead code
2233 (DISABLE_UNSETTABLE_BREAK).
2234 (disable_breakpoints_in_shlibs)
2235 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2236
a4954f26
DJ
22372007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2238
2239 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2240 Call insert_bp_location.
2241
b48516f9
L
22422007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2243
2244 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2245 alias warning bug.
2246
96225718
DJ
22472007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2248
2249 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2250 objfiles.
2251
1b05479a
DJ
22522007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2253
2254 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2255 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2256 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2257 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2258 to display_gdb_prompt.
2259
5ad3a4ca
DJ
22602007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2261
2262 PR symtab/2161
2263 * target.c (memory_xfer_partial): Do not continue past targets with
2264 all memory.
2265
4ed77933
AS
22662007-06-30 Andreas Schwab <schwab@suse.de>
2267
4713453b
AS
2268 * m68k-tdep.c (m68k_ps_type): New.
2269 (m68k_init_types): New.
2270 (m68k_register_type): Use m68k_ps_type for PS register.
2271 (_initialize_m68k_tdep): Call m68k_init_types.
2272
4ed77933
AS
2273 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2274 from the generic m68k arch.
2275
dd3526aa
MS
22762007-06-28 Michael Snyder <msnyder@access-company.com>
2277
f08312c2
MS
2278 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2279 (Coverity).
2280
a787bedf
MS
2281 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2282 gdb_assert before using return value of find_thread_pid (Coverity).
2283
77accacd
MS
2284 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2285
dd3526aa
MS
2286 * cli/cli-script.c (build_command_line): Add null pointer guard
2287 (Coverity).
2288
4105de34
DJ
22892007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2290
2291 * linux-thread-db.c (thread_db_attach): Delete.
2292 (thread_db_detach): Typo fix. Call target_mourn_inferior
2293 instead of fixing up proc_handle.
2294 (have_threads_callback, have_threads): New functions.
2295 (thread_db_wait): Remove dead proc_handle.pid check. Only
2296 translate PTIDs if we have registered threads. Check for new
2297 threads if we have none.
2298 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2299 (find_new_threads_callback): Only enable event reporting if TID == 0.
2300 (same_ptid_callback): New.
2301 (thread_db_get_thread_local_address): Check for new threads.
2302 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2303 or to_post_startup_inferior.
2304
1c0fdd0e
UW
23052007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2306
2307 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2308 is always active if SOFTWARE_SINGLE_STEP_P is true.
2309 (resume): Use gdbarch_software_single_step[_p] instead of
2310 SOFTWARE_SINGLE_STEP[_P].
2311 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2312
2313 * gdbarch.sh (software_single_step): Remove target macro.
2314 * gdbarch.h, gdbarch.c: Regenerate.
2315
e487cc15
UW
23162007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2317
2318 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2319 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2320 (struct gdbarch_swap, struct gdbarch_swap_registration,
2321 struct gdbarch_swap_registry, gdbarch_swap_registry,
2322 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2323 current_gdbarch_swap_in_hack): Remove.
2324 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2325 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2326 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2327 (deprecated_current_gdbarch_select_hack): Likewise.
2328 * gdbarch.h, gdbarch.c: Regenerate.
2329
d5c31457
UW
23302007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2331
2332 * infrun.c (clear_proceed_status): Clean up stop_registers.
2333 (normal_stop): Allocate regcache for stop_registers.
2334 (struct inferior_status): Remove stop_registers member.
2335 (save_inferior_status): Do not save stop_registers.
2336 (restore_inferior_status): Do not restore stop_registers.
2337 (discard_inferior_status): Do not discard stop_registers.
2338 (build_infrun): Remove.
2339 (_initialize_infrun): Do not swap stop_registers.
2340
911c95a5
UW
23412007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2342
2343 * remote.c (remote_address_masked): If remote_address_size is zero,
2344 default to target address size.
2345 (build_remote_gdbarch_data): Remove.
2346 (_initialize_remote): Do not swap remote_address_size.
2347
5674de60
UW
23482007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2349
2350 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2351 builtin_type_char, builtin_type_short, builtin_type_int,
2352 builtin_type_long, builtin_type_signed_char,
2353 builtin_type_unsigned_char, builtin_type_unsigned_short,
2354 builtin_type_unsigned_int, builtin_type_unsigned_long,
2355 builtin_type_float, builtin_type_double, builtin_type_long_double,
2356 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2357 builtin_type_bool, builtin_type_long_long,
2358 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2359 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2360 variable declaration with compatibility macro.
2361 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2362 builtin_type_char, builtin_type_short, builtin_type_int,
2363 builtin_type_long, builtin_type_signed_char,
2364 builtin_type_unsigned_char, builtin_type_unsigned_short,
2365 builtin_type_unsigned_int, builtin_type_unsigned_long,
2366 builtin_type_float, builtin_type_double, builtin_type_long_double,
2367 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2368 builtin_type_bool, builtin_type_long_long,
2369 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2370 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2371 (build_gdbtypes): Remove.
2372 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2373 opaque-type-resolution command here. Do not call
2374 deprecated_register_gdbarch_swap.
2375
64c50499
UW
23762007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2379 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2380 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2381
2382 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2383 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2384 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2385 (build_parse): Remove.
2386 (_initialize_parse): Do not call build_parse. Do not register
2387 msym_ types for gdbarch-swapping.
2388
2389 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2390 instead of creating private type.
2391
2392 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2393 (_initialize_xcoffread): Do not initialized them.
2394 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2395
2396 * mdebugread.c (nodebug_func_symbol_type): Remove.
2397 (nodebug_var_symbol_type): Remove.
2398 (_initialize_mdebugread): Do not initialize them.
2399 (parse_symbol): Use builtin nodebug_ type instead of them.
2400 (parse_procedure): Likewise.
2401
6a2eb474
MR
24022007-06-21 Chris Dearman <chris@mips.com>
2403
2404 * printcmd.c (do_one_display): If display/i, start with an initial
2405 line feed to avoid bad layout if there is a branch delay slot.
2406
a4642986
MR
24072007-06-21 Nigel Stephens <nigel@mips.com>
2408 Maciej W. Rozycki <macro@mips.com>
2409
2410 * disasm.c (gdb_print_insn): Return the number of branch delay
2411 slot instructions too.
2412 * disasm.h (gdb_print_insn): Update prototype.
2413 * printcmd.c (branch_delay_insns): New variable to record the
2414 number of delay slot instructions after disassembling a branch.
2415 (print_formatted): Record the number of branch delay slot
2416 instructions.
2417 (do_examine): When disassembling, if the last instruction
2418 disassembled has any branch delay slots, then bump the count so
2419 that they get disassembled too.
2420 * tui/tui-disasm.c (tui_disassemble): Update the call to
2421 gdb_print_insn().
2422 * NEWS: Document the new behaviour.
2423
ade28716
AS
24242007-06-21 Andreas Schwab <schwab@suse.de>
2425
2426 * regcache.c (write_pc_pid): Restore missing else.
2427
28c38f10
UW
24282007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2429
2430 * regcache.c (regcache_print): Use get_current_regcache ()
2431 instead of current_regcache.
2432
52b57208
L
24332007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2434
2435 PR 4606
2436 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2437 instead of bfd_make_section_anyway.
2438 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2439 when clearing SEC_LOAD.
2440
8bf8793c
JM
24412007-06-19 Joseph Myers <joseph@codesourcery.com>
2442
2443 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2444 registers for big-endian.
2445
7f5c84d3
UW
24462007-06-19 Markus Deuling <deuling@de.ibm.com>
2447
2448 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2449 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2450 * gdbarch.c, gdbarch.h: Regenerate.
2451
f73e88f9
UW
24522007-06-19 Markus Deuling <deuling@de.ibm.com>
2453
2454 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2455 gdbarch_believe_pcc_promotion.
2456 * stabsread.c (define_symbol): Likewise.
2457 Remove unnecessary definition.
2458 * coffread.c (process_coff_symbol): Remove unnecessary code.
2459 * gdbarch.c, gdbarch.h: Regenerate.
2460
cab58a69
DJ
24612007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2462
2463 * configure.ac: Do not use ${objdir}.
2464 * configure: Regenerated.
2465
f0c9063c
UW
24662007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2467
2468 * gdbarch.sh (deprecated_register_size): Remove.
2469 * gdbarch.h, gdbarch.c: Regenerate.
2470
2471 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2472 by INT_REGISTER_SIZE.
2473 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2474 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2475 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2476 set_gdbarch_deprecated_register_size.
2477
064f5156
UW
24782007-06-18 Markus Deuling <deuling@de.ibm.com>
2479
2480 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2481 gdbarch_deprecated_fp_regnum.
2482 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2483 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2484 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2485 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2486 (comment).
2487 * gdbarch.c, gdbarch.h: Regenerate.
2488
24892007-06-18 Markus Deuling <deuling@de.ibm.com>
2490
2491 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2492 gdbarch_extract_return_value.
2493 * value.c (generic_use_struct_convention): Likewise (comment).
2494 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2495 * arch-utils.c (legacy_return_value): Likewise.
2496 * arch-utils.h (legacy_return_value): Likewise (comment).
2497 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2498 gdbarch_store_return_value.
2499 * stack.c (return_command): Likewise (comment).
2500 * arch-utils.h (legacy_return_value): Likewise (comment).
2501 * arch-utils.c (legacy_return_value): Likewise.
2502 * gdbarch.c, gdbarch.h: Regenerate.
2503
b187c476
UW
25042007-06-18 Markus Deuling <deuling@de.ibm.com>
2505
2506 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2507 gdbarch_deprecated_use_struct_convention.
2508 * arch-utils.c (legacy_return_value): Likewise.
2509 * gdbarch.c, gdbarch.h: Regenerate.
2510
cbf3b44a
UW
25112007-06-18 Markus Deuling <deuling@de.ibm.com>
2512
2513 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2514 gdbarch_deprecated_function_start_offset.
2515 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2516 * linespec.c (minsym_found): Likewise.
2517 * infrun.c (handle_inferior_event): Likewise.
2518 * infcall.c (find_function_addr): Likewise.
2519 * cli/cli-cmds.c (disassemble_command): Likewise.
2520 * gdbarch.c, gdbarch.h: Regenerate.
2521
bceb6e50
UW
25222007-06-18 Markus Deuling <deuling@de.ibm.com>
2523
2524 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2525 gdbarch_deprecated_reg_struct_has_addr.
2526 * infcall.c (call_function_by_hand): Likewise.
2527 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2528 * gdbarch_deprecated_reg_struct_has_addr_p.
2529 * infcall.c (call_function_by_hand): Likewise.
2530 * gdbarch.c, gdbarch.h: Regenerate.
2531
8ed6a7ba
UW
25322007-06-18 Markus Deuling <deuling@de.ibm.com>
2533
2534 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2535 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2536 (sh_gdbarch_init): Remove
2537 set_gdbarch_deprecated_extract_struct_value_address.
2538 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2539 (sh64_gdbarch_init): Remove
2540 set_gdbarch_deprecated_extract_struct_value_address.
2541 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2542 (ia64_gdbarch_init): Remove
2543 set_gdbarch_deprecated_extract_struct_value_address.
2544 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2545 (frv_gdbarch_init): Remove
2546 set_gdbarch_deprecated_extract_struct_value_address.
2547 * gdbarch.c, gdbarch.h: Regenerate.
2548
3e8c568d
UW
25492007-06-18 Markus Deuling <deuling@de.ibm.com>
2550
2551 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2552 * v850-tdep.c (v850_unwind_sp): Likewise.
2553 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2554 * stack.c (frame_info): Likewise.
2555 * stabsread.c (define_symbol): Likewise.
2556 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2557 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2558 (sh_unwind_sp): Likewise.
2559 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2560 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2561 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2562 (rs6000_frame_cache): Likewise.
2563 * rs6000-nat.c (store_register): Likewise.
2564 * remote-mips.c (mips_wait): Likewise.
2565 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2566 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2567 (ppc64_sysv_abi_push_dummy_call): Likewise.
2568 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2569 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2570 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2571 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2572 * m32r-rom.c (m32r_supply_register): Likewise.
2573 * frame.c (frame_sp_unwind): Likewise.
2574 * mips-tdep.c (mips_insn16_frame_cache)
2575 (mips_insn32_frame_cache): Likewise (comment).
2576 * m68klinux-nat.c (supply_gregset): Likewise.
2577 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2578 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2579 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2580 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2581 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2582 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2583 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2584 (cris_register_type, crisv32_register_type)
2585 (cris_dwarf2_frame_init_reg): Likewise.
2586 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2587 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2588 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2589 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2590
2591 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2592 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2593 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2594 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2595 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2596 * v850-tdep.c (v850_unwind_pc): Likewise.
2597 * stack.c (frame_info): Likewise.
2598 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2599 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2600 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2601 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2602 (sh_dsp_show_regs): Likewise.
2603 * shnbsd-tdep.c (shnbsd_supply_gregset)
2604 (shnbsd_collect_gregset): Likewise.
2605 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2606 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2607 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2608 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2609 (6000_register_reggroup_p, rs6000_unwind_pc)
2610 (rs6000_frame_cache): Likewise.
2611 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2612 (rs6000_store_inferior_registers): Likewise.
2613 * remote-mips.c (mips_wait, mips_load): Likewise.
2614 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2615 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2616 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2617 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2618 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2619 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2620 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2621 (store_ppc_registers, fill_gregset): Likewise.
2622 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2623 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2624 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2625 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2626 * m68klinux-nat.c (supply_gregset): Likewise.
2627 * irix5-nat.c (fill_gregset): Likewise.
2628 * i386-tdep.c (i386_unwind_pc): Likewise.
2629 * i386-linux-nat.c (i386_linux_resume): Likewise.
2630 * frame.c (get_prev_frame_1): Likewise.
2631 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2632 * dbug-rom.c (dbug_supply_register): Likewise.
2633 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2634 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2635 (cris_register_type, crisv32_register_type, crisv32_register_name)
2636 (cris_dwarf2_frame_init_reg, find_step_target)
2637 (cris_software_single_step, cris_supply_gregset)
2638 (cris_regnums): Likewise.
2639 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2640 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2641 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2642 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2643 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2644
2645 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2646 * dbug-rom.c (dbug_supply_register): Likewise.
2647 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2648 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2649 * win32-nat.c (win32_resume): Likewise.
2650 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2651 * m68k-tdep.c (m68k_register_type): Likewise.
2652 * m68klinux-nat.c (supply_gregset): Likewise.
2653
2654 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2655 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2656 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2657 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2658 (fv_reg_base_num, dr_reg_base_num): Likewise.
2659 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2660 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2661 (sh64_extract_return_value, sh64_store_return_value)
2662 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2663 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2664 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2665 (invalidate_cache): Likewise.
2666 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2667 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2668 (mipsnbsd_fill_fpreg): Likewise.
2669 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2670 (mipsnbsd_store_inferior_registers): Likewise.
2671 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2672 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2673 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2674 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2675 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2676 (fill_fpregset): Likewise.
2677 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2678 * i386-tdep.h (struct_return): Likewise (comment).
2679 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2680 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2681 (go32_store_registers): Likewise.
2682 * alpha-tdep.c (alpha_next_pc): Likewise.
2683 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2684 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2685 (alphabsd_store_inferior_registers): Likewise.
2686 * core-regset.c (fetch_core_registers): Likewise.
2687 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2688
2689 * gdbarch.c, gdbarch.h: Regenerate.
2690
31d99776
DJ
26912007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2692
2693 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2694 * dbxread.c (start_psymtab): Check HAVE_ELF.
2695 (aout_sym_fns): Likewise.
2696 * elfread.c (elf_symfile_segments): New.
2697 (elf_sym_fns): Add elf_symfile_segments.
2698 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2699 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2700 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2701 * somread.c (som_sym_fns): Use default_symfile_segments.
2702 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2703 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2704 (default_symfile_segments): New function.
2705 (syms_from_objfile): Update call to find_sym_fns.
2706 (symfile_get_segment_data, free_symfile_segment_data): New.
2707 (symfile_map_offsets_to_segments): New.
2708 (symfile_find_segment_sections): New.
2709 * symfile.h (struct symfile_segment_data): New.
2710 (struct sym_fns): Add sym_segments.
2711 (default_symfile_segments, symfile_get_segment_data)
2712 (free_symfile_segment_data): New prototypes.
2713 (symfile_map_offsets_to_segments): Likewise.
2714 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2715 * Makefile.in (COMMON_OBS): Remove elfread.o.
2716 (elf_internal_h): New.
2717 (elfread.o): Update.
2718 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2719 compiled.
2720 * config.in, configure: Regenerated.
2721 * NEWS: Mention qOffsets changes.
2722
5760b90a
UW
27232007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2724
2725 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2726 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2727 Replace global variable declaration with compatibility macro.
2728 (struct builtin_m2_type): New data type.
2729 (builtin_m2_type): Add prototype.
2730 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2731 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2732 Remove global variables.
2733 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2734 (build_m2_types): New function.
2735 (m2_type_data): New variable.
2736 (builtin_m2_type): New function.
2737 (_initialize_m2_language): Do not build data types. Register
2738 m2_type_data per-gdbarch data.
2739
54ef06c7
UW
27402007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2741
2742 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2743 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2744 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2745 builtin_type_f_real_s8, builtin_type_f_real_s16,
2746 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2747 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2748 variable declaration with compatibility macro.
2749 (struct builtin_f_type): New data type.
2750 (builtin_f_type): Add prototype.
2751 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2752 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2753 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2754 builtin_type_f_real_s8, builtin_type_f_real_s16,
2755 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2756 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2757 (f_language_arch_info): Use builtin_f_type instead of variables.
2758 (build_fortran_types): Build builtin_f_type structure instead of
2759 setting global type variables.
2760 (f_type_data): New variable.
2761 (builtin_f_type): New function.
2762 (_initialize_f_language): Do not call build_fortran_types. Do not
2763 swap global type variables. Register f_type_data per-gdbarch data.
2764
92e0cef4
UW
27652007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2766
2767 * f-lang.c (_initialize_f_language): Do not initialize or
2768 swap builtin_type_string.
2769
5d8140d1
UW
27702007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2771
0e7b1906
UW
2772 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2773 value_of_builtin_frame_reg): Remove.
2774 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2775 inactive call to value_of_builtin_frame_reg.
2776
27772007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2778
2779 * gdbarch.sh (bfd_vma_bit): Remove.
5d8140d1
UW
2780 * gdbarch.c, gdbarch.h: Regenerate.
2781
2782 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2783 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2784 (build_gdbtypes): Do not initialize it.
2785 (_initialize_gdbtypes): Do not swap it.
2786
794ac428
UW
27872007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2788
2789 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2790 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2791 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2792 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2793 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2794 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2795 builtin_type_vec64, builtin_type_vec128): Remove.
2796 (init_simd_type): Remove.
2797 (init_vector_type): Make global.
2798 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2799 (build_gdbtypes): Do not build vector types.
2800 (_initialize_gdbtypes): Do not swap vector types.
2801 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2802 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2803 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2804 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2805 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2806 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2807 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2808 (init_vector_type): Add prototype.
2809
2810 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2811 i386_sse_type members.
2812 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2813 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2814 (i386_init_types): Do not build vector types.
2815 (i386_mmx_type, i386_sse_type): New functions.
2816 (i386_register_type): Call them instead of using global variables.
2817 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2818 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2819 of using global variable.
2820
2821 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2822 and ppc_builtin_type_vec128 members.
2823 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2824 (rs6000_builtin_type_vec128): Likewise.
2825 (rs6000_register_type): Call them instead of using builtin_type_vec64
2826 and builtin_type_vec128.
2827 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2828
2829 * spu-tdep.c (struct gdbarch_tdep): New data type.
2830 (spu_builtin_type_vec128): Remove variable.
2831 (spu_builtin_type_vec128): New function.
2832 (spu_register_type): Call it instead of using global variable.
2833 (spu_gdbarch_init): Allocate tdep structure.
2834 (spu_init_vector_type): Remove function.
2835 (_initialize_spu_tdep): Do not call it.
2836
6707b003
UW
28372007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2838
2839 * amd64-tdep.c (struct amd64_register_info): Remove.
2840 (amd64_register_info): Remove.
2841 (amd64_register_names): New static variable.
2842 (AMD64_NUM_REGS): Use amd64_register_names instead of
2843 amd64_register_info.
2844 (amd64_register_name): Likewise.
2845 (amd64_register_type): Do not refer to amd64_register_info.
2846
2847 * s390-tdep.c (struct s390_register_info): Remove.
2848 (s390_register_info): Remove.
2849 (s390_register_name): Do not refer to s390_register_info.
2850 (s390_register_type): Likewise.
2851
2852 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2853 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2854 (sparc64_register_names, sparc64_pseudo_register_names): New.
2855 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2856 sparc64_register_names and sparc64_pseudo_register_names instead of
2857 sparc64_register_info and sparc64_pseudo_register_info.
2858 (sparc64_register_name): Likewise.
2859 (sparc64_register_type): Do not refer to sparc64_register_info
2860 and sparc64_pseudo_register_info.
2861
cad351d1
UW
28622007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2863
2864 * c-lang.c (cplus_builtin_types): Remove.
2865 (enum cplus_primitive_types): New data type.
2866 (cplus_language_arch_info): New function.
2867 (cplus_language_defn): Set la_language_arch_info member. Do not set
2868 la_builtin_type_vector and string_char_type members.
2869
2870 * f-lang.c (f_builtin_types): Remove.
2871 (enum f_primitive_types): New data type.
2872 (f_language_arch_info): New function.
2873 (f_language_de): Set la_language_arch_info member. Do not set
2874 la_builtin_type_vector and string_char_type members.
2875
2876 * m2-lang.c (m2_builtin_types): Remove.
2877 (enum m2_primitive_types): New data type.
2878 (m2_language_arch_info): New function.
2879 (m2_language_defn): Set la_language_arch_info member. Do not set
2880 la_builtin_type_vector and string_char_type members.
2881
2882 * objc-lang.c (objc_builtin_types): Remove.
2883 (objc_language): Set la_language_arch_info member. Do not set
2884 la_builtin_type_vector and string_char_type members.
2885
2886 * p-lang.c (pascal_builtin_types): Remove.
2887 (enum pascal_primitive_types): New data type.
2888 (pascal_language_arch_info): New function.
2889 (pascal_language_defn): Set la_language_arch_info member. Do not set
2890 la_builtin_type_vector and string_char_type members.
2891
594f7785
UW
28922007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2893
2894 * regcache.c (struct regcache): Add ptid_t member.
2895 (regcache_xmalloc): Initialize it.
2896 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2897 (regcache_dup): Likewise.
2898 (regcache_dup_no_passthrough): Likewise.
2899 (current_regcache): Make static.
2900 (registers_ptid): Remove variable.
2901 (get_thread_regcache): New function.
2902 (get_current_regcache): New function.
2903 (registers_changed): Implement by freeing current regcache.
2904 (regcache_raw_read): Do not refer to current_regcache. Set
2905 inferior_ptid to regcache->ptid while calling target routines.
2906 (regcache_raw_write): Likewise.
2907 (regcache_raw_supply): Do not refer to current_regcache.
2908 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2909 (write_pc_pid): Likewise.
2910 (build_regcache): Remove.
2911 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2912 or deprecated_register_gdbarch_swap. Do not initialize
2913 registers_ptid.
2914 * regcache.h (get_current_regcache): Add prototype.
2915 (get_thread_regcache): Likewise.
2916 (current_regcache): Remove declaration.
2917
2918 * corelow.c (core_open): Replace current_regcache by
2919 get_current_regcache ().
2920 * frame.c (frame_pop): Likewise.
2921 (put_frame_register): Likewise.
2922 (get_current_frame, create_new_frame): Likewise.
2923 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2924 * stack.c (return_command): Likewise.
2925 * infcall.c (call_function_by_hand): Likewise.
2926 * infrun.c (resume): Likewise.
2927 (save_inferior_status, restore_inferior_status): Likewise.
2928 * linux-fork.c (fork_load_infrun_state): Likewise.
2929 (fork_save_infrun_state): Likewise.
2930 * win32-nat.c (win32_resume): Likewise.
2931 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2932 * monitor.c (monitor_wait): Likewise.
2933 * remote.c (remote_wait): Likewise.
2934 * remote-mips.c (mips_wait): Likewise.
2935
2936 * bsd-kvm.c (bsd_kvm_open): Likewise
2937 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2938 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2939 * i386-linux-nat.c (i386_linux_resume): Likewise.
2940 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2941 (ia64_linux_stopped_data_address): Likewise.
2942
2943 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2944 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2945 * mep-tdep.c (current_me_module, current_options): Likewise.
2946 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2947
2948 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2949 regcache instead of current_regcache. Call target_fetch_registers.
2950 (linux_nat_corefile_thread_callback): Update call site.
2951 (linux_nat_do_registers): Likewise.
2952 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2953 of current_regcache.
2954 (procfs_make_note_section): Likewise.
2955 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2956 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2957 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2958 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2959
51a7a212
UW
29602007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2961
2962 * regcache.c (read_register, read_register_pid): Remove.
2963 (write_register, write_register_pid): Likewise.
2964 * regcache.h (read_register, read_register_pid): Remove prototype.
2965 (write_register, write_register_pid): Likewise.
2966
61a1198a
UW
29672007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2968
2969 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2970 (write_pc): Likewise. Remove default implementation, add predicate.
2971 * gdbarch.c, gdbarch.h: Regenerate.
2972 * regcache.c (read_pc_pid): Use current regcache instead of calling
2973 read_register_pid.
2974 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2975 case inline.
2976 (generic_target_write_pc): Remove.
2977 * inferior.h (generic_target_write_pc): Remove.
2978 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2980 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2981 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2982 * sh-tdep.c (sh_gdbarch_init): Likewise.
2983 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2984
2985 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2986 argument. Use REGCACHE instead of calling read_register_pid.
2987 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2988 * hppa-tdep.c (hppa_read_pc): Likewise.
2989 * hppa-tdep.h (hppa_read_pc): Likewise.
2990 * ia64-tdep.c (ia64_read_pc): Likewise.
2991 * m32r-tdep.c (m32r_read_pc): Likewise.
2992 * mep-tdep.c (mep_read_pc): Likewise.
2993 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2994 * spu-tdep.c (spu_read_pc): Likewise.
2995
2996 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2997 argument. Use REGCACHE instead of calling write_register_pid.
2998 * avr-tdep.c (avr_write_pc): Likewise.
2999 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3000 * hppa-tdep.c (hppa_write_pc): Likewise.
3001 * hppa-tdep.h (hppa_write_pc): Likewise.
3002 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3003 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3004 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3005 * ia64-tdep.c (ia64_write_pc): Likewise.
3006 * ia64-tdep.h (ia64_write_pc): Likewise.
3007 * m32r-tdep.c (m32r_write_pc): Likewise.
3008 * m88k-tdep.c (m88k_write_pc): Likewise.
3009 * mep-tdep.c (mep_write_pc): Likewise.
3010 * mips-tdep.c (mips_write_pc): Likewise.
3011 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3012 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3013 * sparc-tdep.c (sparc_write_pc): Likewise.
3014 * spu-tdep.c (spu_write_pc): Likewise.
3015
3016 * mips-tdep.c (read_signed_register): Remove.
3017 (read_signed_register_pid): Likewise.
3018 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3019 Use REGCACHE instead of calling read_signed_register_pid.
3020
e4fd649a
UW
30212007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3022
3023 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3024 * gdbarch.c, gdbarch.h: Regenerate.
3025 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3026 (push_dummy_code): Likewise. Pass it to callee.
3027 (call_function_by_hand): Pass current regcache to push_dummy_code.
3028
3029 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3030 argument. Use it instead of current_regcache.
3031
3032 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3033 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3034
60ade65d
UW
30352007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3036
3037 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3038 * gdbarch.c, gdbarch.h: Regenerate.
3039 * infrun.c (handle_inferior_event): Pass current frame to
3040 gdbarch_get_longjmp_target.
3041
3042 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3043 Read registers from FRAME instead of using read_register.
3044 Use get_frame_arch instead of current_gdbarch.
3045 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3046 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3047 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3048 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3049 (mips64_linux_get_longjmp_target): Likewise.
3050 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3051
52f729a7
UW
30522007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3053
3054 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3055 * gdbarch.c, gdbarch.h: Regenerate.
3056 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3057 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3058 * infrun.c (handle_inferior_event): Pass current frame to
3059 gdbarch_skip_trampoline_code and skip_language_trampoline.
3060
3061 * language.c (unk_lang_trampoline): Add FRAME argument.
3062 (skip_language_trampoline): Add FRAME argument. Pass it to
3063 skip_trampoline callback.
3064 * language.h: Add forward declaration of struct frame_info.
3065 (struct language_defn): Add FRAME argument to skip_trampoline.
3066 (skip_language_trampoline): Add FRAME argument.
3067 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3068 to skip_trampoline callback.
3069 * cp-abi.h: Add forward declaration of struct frame_info.
3070 (cplus_skip_trampoline): Add FRAME argument.
3071 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3072 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3073 to gdbarch_skip_trampoline_code.
3074 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3075 to gdbarch_skip_trampoline_code.
3076
3077 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3078 * symtab.h (find_solib_trampoline_target): Likewise.
3079 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3080 find_solib_trampoline_target.
3081
3082 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3083 from FRAME instead of calling read_register.
3084
3085 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3086 argument. Read registers from FRAME instead of using read_register.
3087 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3088 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3089
3090 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3091 argument.
3092
3093 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3094
3095 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3096 registers from FRAME instead of using read_signed_register.
3097
3098 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3099 argument.
3100 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3101 instead of using read_register.
3102 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3103 ppc64_standard_linkage_target.
3104 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3105 Pass it to find_solib_trampoline_target. Read registers from FRAME
3106 instead of using read_register.
3107
3108 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3109 argument.
3110
0b1b3e42
UW
31112007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3112
3113 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3114 FRAME argument.
3115 * gdbarch.c, gdbarch.h: Regenerate.
3116 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3117
3118 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3119 registers from FRAME instead of using read_register.
3120 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3121 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3122 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3123 argument by FRAME.
3124
3125 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3126 from FRAME instead of using read_register.
3127 (thumb_get_next_pc): Likewise.
3128 (arm_get_next_pc): Likewise.
3129 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3130 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3131 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3132 argument by FRAME.
3133
3134 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3135 from FRAME instead of using read_register.
3136 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3137 to find_step_target.
3138
3139 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3140 from FRAME instead of using read_register / read_signed_register.
3141 (extended_mips16_next_pc): Likewise.
3142 (mips16_next_pc): Likewise.
3143 (mips_next_pc): Likewise.
3144 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3145 to mips_next_pc. Use get_frame_pc instead of read_pc.
3146 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3147 argument by FRAME.
3148
3149 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3150 of current frame. Read registers from FRAME.
3151 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3152 branch_dest. Use get_frame_pc instead of read_pc.
3153 (rs6000_software_single_step): Likewise.
3154 (bl_to_blrl_insn_p): Do not call branch_dest.
3155 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3156 argument by FRAME.
3157
3158 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3159 Read registers from FRAME instead of current regcache.
3160 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3161 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3162 * sparc-tdep.c (sparc_address_from_register): Remove.
3163 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3164 GDBARCH. Pass FRAME to step_trap callback.
3165 (sparc_step_trap): Add FRAME argument.
3166 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3167 to sparc_analyze_control_transfer. Read registers from FRAME instead
3168 of calling sparc_address_from_register.
3169 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3170 step_trap callback.
3171 (sparc_address_from_register): Remove prototype.
3172 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3173 (sparcnbsd_step_trap): Add FRAME argument.
3174
3175 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3176 by FRAME. Read registers from FRAME instead of REGCACHE.
3177
9c9acae0
UW
31782007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3179
3180 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3181 instead of calling read_register.
3182
3183 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3184 calling write_register.
3185
3186 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3187 calling write_register.
3188
3189 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3190 instead of calling read_register.
3191 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3192 instead of calling read_register and write_register.
3193
3194 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3195 instead of current_regcache.
3196
3197 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3198 of calling write_register.
3199 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3200 parameter instead of current_regcache.
3201
3202 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3203 instead of calling read_register.
3204 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3205 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3206 (mips_n32n64_push_dummy_call): Likewise.
3207 (mips_o32_push_dummy_call): Likewise.
3208 (mips_o64_push_dummy_call): Likewise.
3209
3210 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3211 parameter instead of current_regcache.
3212
3213 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3214 Use it instead of read_register and write_register.
3215 (xtensa_register_read_masked): Likewise.
3216 (xtensa_pseudo_register_read): Update call.
3217 (xtensa_pseudo_register_write): Likewise.
3218 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3219 instead of calling read_register.
3220 (xtensa_push_dummy_call): Update comment.
3221
d2ca4222
UW
32222007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3223
3224 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3225 by frame_unwind_register_signed calls.
3226 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3227 frame allocations when called with NULL NEXT_FRAME parameter.
3228 (read_next_frame_reg): Remove.
3229
3230 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3231 instead of reading the FPSCR register.
3232 (sh_frame_cache): Pass unwound FPSCR register value to
3233 sh_analyze_prologue.
3234 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3235
3236 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3237 instead of reading the CTBP register.
3238 (v850_frame_cache): Pass unwound CTBP register value to
3239 v850_analyze_prologue.
3240
c458d6db
UW
32412007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3242
3243 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3244 * sh-tdep.c (sh_show_regs): Likewise.
3245 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3246 (sh_generic_show_regs): Add FRAME parameter. Use register
3247 values from that frame instead of calling read_register.
3248 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3249 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3250 sh_dsp_show_regs): Likewise.
3251 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3252 sh64_show_regs): Likewise.
3253
a9614958
UW
32542007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3255
3256 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3257 current regcache instead of calling read_register.
3258
3d1a74ac
UW
32592007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3260
3261 * mep-tdep.c (current_me_module): Read from current regcache
3262 instead of calling read_register.
3263 (current_options): Likewise.
3264
1b5a9a8f
UW
32652007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3266
3267 * cris-tdep.c (cris_stopped_data_address): Read register values
3268 from current frame instead of calling read_register.
3269 * frv-tdep.c (frv_stopped_data_address): Likewise.
3270
982db460
UW
32712007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3272
3273 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3274 instead of write_register (PC_REGNUM, ...).
3275
b4397864
UW
32762007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3277
3278 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3279 explaining why the PC adjustment code is necessary.
3280
8ed86d01
VP
32812007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3282
3283 * m68k-tdep.h (enum m68k_flavour): New.
3284 (struct gdbarch_tdep): New fields
3285 float_return, flavour and fpregs_present.
3286 * m68k-tdep.c (m68k_register_type): Use
3287 fpregs_present and conditionalize floating
3288 registers type on flavour.
3289 (m68k_register_names): New.
3290 (m68k_register_name): Use the above.
3291 (m68k_convert_register_p): Consult fpregs_present.
3292 (m68k_register_to_value, m68k_value_to_register):
3293 Use register_type to obtain the type of floating
3294 point registers.
3295 (m68k_svr4_extract_return_value): Check tdep->float_return.
3296 Use register_type to get the type of floating
3297 point regiters.
3298 (m68k_svr4_store_return_value): Likewise.
3299 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3300 (m68k_analyze_register_saves): Likewise.
3301 (m68k_gdbarch_init): Extract infromation
3302 from XML description, if present. Guess coldfire by
3303 looking at the file, if present. Conditionalize
3304 setting of long double format. Set decr_pc_after_break
3305 to 2 on coldfire and fido. Enable XML-driven
3306 register description.
3307 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3308 size of tdep->fpreg_type, as opposed to hardcoded value.
3309 * Makefile.in (m68k-tdep.o): Update dependencies.
3310
83cc5c53
UW
33112007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3312
3313 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3314 qXfer:spu:write remote packet types.
3315
1780a0ed
DJ
33162007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3317
3318 * xml-tdesc.c (tdesc_start_target): New.
3319 (target_attributes): New.
3320 (tdesc_elements): Use it.
3321 * features/gdb-target.dtd: Add #FIXED version attribute for
3322 <target>.
3323
98a29c7e
DJ
33242007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3325
3326 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3327
9dcbb931
DJ
33282007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3329
3330 * fork-child.c (fork_inferior): Update comment.
3331
117ce543
DJ
33322007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3333
3334 * features/Makefile: Generate regformats for mips-linux and
3335 mips64-linux.
3336 * features/sort-regs.xsl: Correct typo.
3337 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3338 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3339 files.
3340
822b6570
DJ
33412007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3342
3343 * config/mips/linux.mh (TDEP_XML): New.
3344 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3345 * mips-linux-nat.c (mips_linux_register_addr): Handle
3346 MIPS_RESTART_REGNUM.
3347 (mips64_linux_register_addr): Likewise.
3348 (super_xfer_partial, mips_linux_xfer_partial): New.
3349 (_initialize_mips_linux_nat): Add them to the target_ops.
3350 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3351 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3352 (mips_linux_o32_sigframe_init)
3353 (mips_linux_n32n64_sigframe_init): Likewise.
3354 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3355 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3356 "org.gnu.gdb.mips.linux" feature.
3357 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3358 (mips_linux_restart_reg_p): New prototype.
3359 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3360 initialization routine.
3361 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3362
f8b73d13
DJ
33632007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3364
3365 * Makefile.in (mips-tdep.o): Update.
3366 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3367 (mips_n32_n64_aliases, mips_register_aliases): New.
3368 (mips_register_name): Call tdesc_register_name.
3369 (mips_tdesc_register_reggroup_p): New.
3370 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3371 (mips_gdbarch_init): Add target-described register support.
3372 Register aliases for register names.
3373 * target-descriptions.c (tdesc_register_name): Make global.
3374 (tdesc_register_in_reggroup_p): New function, broken out from
3375 tdesc_register_reggroup_p.
3376 (tdesc_register_reggroup_p): Use it.
3377 * target-descriptions.h (tdesc_register_name)
3378 (tdesc_register_in_reggroup_p): New prototypes.
3379 * NEWS: Correct formatting. Mention MIPS register support.
3380 * features/mips-cp0.xml, features/mips-fpu.xml,
3381 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3382 features/mips64-cpu.xml: New files.
3383
17a912b6
UW
33842007-06-13 Markus Deuling <deuling@de.ibm.com>
3385
3386 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3387 * valops.c (value_cast): Likewise.
3388 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3389 * ui-out.c (ui_out_field_core_addr): Likewise.
3390 * tracepoint.c (tracepoints_info): Likewise.
3391 * symtab.c (print_msymbol_info): Likewise.
3392 * solib-irix.c (irix_current_sos)
3393 (irix_open_symbol_file_object): Likewise.
3394 * remote.c (build_remote_gdbarch_data): Likewise.
3395 * prologue-value.c (make_pv_area): Likewise.
3396 * procfs.c (info_mappings_callback): Likewise.
3397 * printcmd.c (print_scalar_formatted)
3398 (deprecated_print_address_numeric): Likewise.
3399 * memattr.c (mem_info_command): Likewise.
3400 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3401 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3402 * exec.c (print_section_info): Likewise.
3403 * dwarf2read.c (read_subrange_type): Likewise.
3404 * dwarf2loc.c (find_location_expression): Likewise.
3405 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3406 (signed_address_type, execute_stack_op): Likewise.
3407 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3408 * gdbarch.c, gdbarch.h: Regenerate.
3409
1143fffb
UW
34102007-06-13 Markus Deuling <deuling@de.ibm.com>
3411
3412 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3413 * arch-utils.c (show_architecture): Likewise.
3414 * remote-mips.c (mips_open): Likewise
3415 * nto-tdep.c (nto_find_and_open_solib)
3416 (nto_init_solib_absolute_prefix): Likewise.
3417 * nto-procfs (procfs_open): Likewise.
3418 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3419 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3420 * gdbarch.c, gdbarch.h: Regenerate.
3421
4fe99ffb
UW
34222007-06-13 Markus Deuling <deuling@de.ibm.com>
3423
3424 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3425 * gdbtypes.c (build_flt): Likewise.
3426 * gdbarch.c, gdbarch.h: Regenerate.
3427
3b3b875c
UW
34282007-06-13 Markus Deuling <deuling@de.ibm.com>
3429
3430 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3431 gdbarch_breakpoint_from_pc.
3432 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3433 * remote.c (remote_insert_breakpoint)
3434 (remote_insert_hw_breakpoint): Likewise.
3435 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3436 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3437 * breakpoint.h (bp_target_info): Likewise (comment).
3438 * breakpoint.c (read_memory_nobpt): Likewise.
3439 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3440 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3441 * gdbarch.c, gdbarch.h: Regenerate.
3442
819844ad
UW
34432007-06-13 Markus Deuling <deuling@de.ibm.com>
3444
3445 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3446 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3447 * solib-pa64.c (read_dynamic_info): Likewise.
3448 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3449 * solib.c (info_sharedlibrary_command): Likewise.
3450 * s390-nat.c (SUBOFF): Likewise.
3451 * p-valprint.c (pascal_val_print): Likewise.
3452 * procfs.c (info_proc_mappings): Likewise.
3453 * printcmd.c (decode_format): Likewise.
3454 * nto-tdep.c (nto_truncate_ptr): Likewise.
3455 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3456 (mips64_linux_get_longjmp_target): Likewise.
3457 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3458 * jv-valprint.c (java_value_print): Likewise.
3459 * jv-lang.c (get_java_object_header_size): Likewise.
3460 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3461 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3462 (hppa_hpux_unwind_adjust_stub): Likewise.
3463 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3464 * gdbtypes.c (make_pointer_type, make_reference_type)
3465 (smash_to_memberptr_type): Likewise.
3466 * gdbarch.c, gdbarch.h: Regenerate.
3467
0cc93a06
DJ
34682007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3469
3470 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3471 (print_gp_register_row): Stop before printing a register bigger
3472 than the ABI register size.
3473 (mips_print_registers_info): Update call to mips_print_register.
3474
67f3407f
DJ
34752007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3476
3477 * expression.h (enum exp_opcode): Document a register name for
3478 OP_REGISTER.
3479 * parse.c (write_dollar_variable): Write the register name for
3480 OP_REGISTER.
3481 (operator_length_standard): Expect the register name following
3482 OP_REGISTER.
3483 * ada-lang.c (resolve_subexp): Likewise.
3484 * ax-gdb.c (gen_expr): Likewise.
3485 * eval.c (evaluate_subexp_standard): Likewise.
3486 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3487 Likewise.
3488 * tracepoint.c (encode_actions): Likewise.
3489
0caa462c
DJ
34902007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3491
3492 * utils.c (set_screen_size): Use INT_MAX for default columns.
3493
4de6483e
UW
34942007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3495
3496 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3497 qXfer:spu:write packet types.
3498
cafad45b
UW
34992007-06-12 Markus Deuling <deuling@de.ibm.com>
3500
3501 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3502 * gdbarch.c, gdbarch.h: Regenerate.
3503
055d23b8
UW
35042007-06-12 Markus Deuling <deuling@de.ibm.com>
3505
3506 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3507 gdbarch_stab_reg_to_regnum.
3508 * stabsread.c (define_symbol): Likewise.
3509 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3510 gdbarch_ecoff_reg_to_regnum.
3511 * mdebugread.c (parse_symbol): Likewise.
3512 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3513 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3514 gdbarch_dwarf_reg_to_regnum.
3515 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3516 * coffread.c (process_coff_symbol): Likewise.
3517 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3518 gdbarch_dwarf2_reg_to_regnum.
3519 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3520 (locexpr_describe_location): Likewise.
3521 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3522 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3523 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3524 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3525 * gdbarch.c, gdbarch.h: Regenerate.
3526
260edbc2
UW
35272007-06-12 Markus Deuling <deuling@de.ibm.com>
3528
3529 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3530 gdbarch_smash_text_address.
3531 * somread.c (som_symtab_read): Likewise.
3532 * elfread.c (record_minimal_symbol): Likewise.
3533 * dbxread.c (process_one_symbol): Likewise.
3534 * coffread.c (coff_symtab_read): Likewise.
3535 * gdbarch.c, gdbarch.h: Regenerate.
3536
c1afe53d
UW
35372007-06-12 Markus Deuling <deuling@de.ibm.com>
3538
3539 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3540 * findvar.c (value_from_register): Likewise.
3541 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3542 * valops.c (value_assign): Likewise.
3543 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3544 gdbarch_convert_register_p.
3545 * findvar.c (value_from_register): Likewise.
3546 * valops.c (value_assign): Likewise.
3547 * gdbarch.c, gdbarch.h: Regenerate.
3548
474c1661
UW
35492007-06-12 Markus Deuling <deuling@de.ibm.com>
3550
3551 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3552 gdbarch_register_sim_regno.
3553 * sim-regno.h (sim_regno): Likewise (comment).
3554 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3555 * gdbarch.c, gdbarch.h: Regenerate.
3556
c7bb205c
UW
35572007-06-12 Markus Deuling <deuling@de.ibm.com>
3558
3559 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3560 gdbarch_virtual_frame_pointer.
3561 * tracepoint.c (encode_actions): Likewise.
3562 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3563 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3564 * gdbarch.c, gdbarch.h: Regenerate.
3565
ea06eb3d
UW
35662007-06-12 Markus Deuling <deuling@de.ibm.com>
3567
3568 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3569 * p-lang.c (pascal_create_fundamental_type): Likewise.
3570 * objc-lang.c (objc_create_fundamental_type): Likewise.
3571 * mdebugread.c (_initialize_mdebugread): Likewise.
3572 * m2-lang.c (m2_create_fundamental_type)
3573 (_initialize_m2_language): Likewise.
3574 * gdbtypes.c (build_gdbtypes): Likewise.
3575 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3576 * doublest.c (floatformat_from_length): Likewise.
3577 * c-lang.c (c_create_fundamental_type): Likewise.
3578 * ada-lang.c (ada_create_fundamental_type)
3579 (ada_language_arch_info): Likewise.
3580 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3581 * value.c (unpack_double): Likewise (comment).
3582 * gdbtypes.c (build_gdbtypes): Likewise.
3583 * doublest.c (floatformat_from_length): Likewise.
3584 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3585 * valarith.c (value_binop): Likewise.
3586 * p-lang.c (pascal_create_fundamental_type): Likewise.
3587 * objc-lang.c (objc_create_fundamental_type): Likewise.
3588 * mdebugread.c (_initialize_mdebugread): Likewise.
3589 * m2-lang.c (m2_create_fundamental_type): Likewise.
3590 * gdbtypes.c (build_gdbtypes): Likewise.
3591 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3592 * doublest.c (floatformat_from_length): Likewise.
3593 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3594 * c-lang.c (c_create_fundamental_type): Likewise.
3595 * ada-lex.l (processReal): Likewise.
3596 * ada-lang.c (ada_create_fundamental_type)
3597 (ada_language_arch_info): Likewise.
3598 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3599 * value.c (unpack_double): Likewise (comment).
3600 * gdbtypes.c (build_gdbtypes): Likewise.
3601 * doublest.c (floatformat_from_length): Likewise.
3602 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3603 gdbarch_long_double_bit.
3604 * p-lang.c (pascal_create_fundamental_type): Likewise.
3605 * objc-lang.c (objc_create_fundamental_type): Likewise.
3606 * m2-lang.c (m2_create_fundamental_type): Likewise.
3607 * gdbtypes.c (build_gdbtypes): Likewise.
3608 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3609 * doublest.c (floatformat_from_length): Likewise.
3610 * c-lang.c (c_create_fundamental_type): Likewise.
3611 * ada-lex.l (processReal): Likewise.
3612 * ada-lang.c (ada_create_fundamental_type)
3613 (ada_language_arch_info): Likewise.
3614 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3615 gdbarch_long_double_format.
3616 * gdbtypes.c (build_gdbtypes): Likewise.
3617 * doublest.c (floatformat_from_length): Likewise.
3618 * gdbarch.c, gdbarch.h: Regenerate.
3619
9a76efb6
UW
36202007-06-12 Markus Deuling <deuling@de.ibm.com>
3621
3622 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3623 * ada-lang.c (ada_create_fundamental_type)
3624 (ada_language_arch_info): Likewise.
3625 * c-lang.c (c_create_fundamental_type): Likewise.
3626 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3627 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3628 * m2-lang.c (m2_create_fundamental_type): Likewise.
3629 * objc-lang.c (objc_create_fundamental_type): Likewise.
3630 * p-lang.c (pascal_create_fundamental_type): Likewise.
3631 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3632 * c-exp.y (parse_number): Likewise.
3633 * objc-exp.y (parse_number): Likewise.
3634 * ada-lex.l (processInt): Likewise.
3635 * f-exp.y (parse_number): Likewise.
3636 * p-exp.y (parse_number): Likewise.
3637 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3638 (gdbtypes_post_init, build_gdbtypes): Likewise.
3639 * p-lang.c (pascal_create_fundamental_type): Likewise.
3640 * parse.c (build_parse): Likewise.
3641 * xcoffread.c (_initialize_xcoffread): Likewise.
3642 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3643 (read_range_type): Likewise.
3644 * objc-lang.c (objc_create_fundamental_type): Likewise.
3645 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3646 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3647 (m2_create_fundamental_type): Likewise.
3648 * c-lang.c (c_create_fundamental_type): Likewise.
3649 * coffread.c (coff_read_enum_type): Likewise.
3650 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3651 * dwarf2read.c (new_symbol): Likewise.
3652 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3653 * c-exp.y (parse_number): Likewise.
3654 * objc-exp.y (parse_number): Likewise.
3655 * ada-lex.l (processInt): Likewise.
3656 * f-exp.y (parse_number): Likewise.
3657 * p-exp.y (parse_number): Likewise.
3658 * valarith.c (value_binop): Likewise.
3659 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3660 * ada-lang.c (ada_create_fundamental_type)
3661 (ada_language_arch_info): Likewise.
3662 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3663 * symfile.c (TARGET_LONG_BYTES): Likewise.
3664 * p-lang.c (pascal_create_fundamental_type): Likewise.
3665 * objc-lang.c (objc_create_fundamental_type): Likewise.
3666 * m2-lang.c (m2_create_fundamental_type): Likewise.
3667 * f-lang.c (f_create_fundamental_type): Likewise.
3668 * c-lang.c (c_create_fundamental_type): Likewise.
3669 * coffread.c (decode_base_type): Likewise.
3670 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3671 * c-exp.y (parse_number): Likewise.
3672 * objc-exp.y (parse_number): Likewise.
3673 * p-exp.y (parse_number): Likewise.
3674 * ada-lang.c (ada_create_fundamental_type)
3675 (ada_language_arch_info): Likewise.
3676 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3677 * stabsread.c (read_range_type): Likewise.
3678 * p-lang.c (pascal_create_fundamental_type): Likewise.
3679 * objc-lang.c (objc_create_fundamental_type): Likewise.
3680 * m2-lang.c (m2_create_fundamental_type): Likewise.
3681 * f-lang.c (f_create_fundamental_type): Likewise.
3682 * c-lang.c (c_create_fundamental_type): Likewise.
3683 * gdbarch.c, gdbarch.h: Regenerate.
3684
272dfcfd
AS
36852007-06-12 Andreas Schwab <schwab@suse.de>
3686
3687 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3688 (struct frame_unwind): Add dealloc_cache.
3689 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3690
3691 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3692 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3693 (libunwind_frame_unwind): Set dealloc_cache.
3694 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3695
0e7f50da
UW
36962007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3697 Markus Deuling <deuling@de.ibm.com>
3698
3699 * remote.c (remote_write_qxfer): New function.
3700 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3701 (remote_read_qxfer): Do not cache empty objects.
3702 (_initialize_remote): Add PACKET_qXfer_spu_read and
3703 PACKET_qXfer_spu_write.
3704
23d964e7
UW
37052007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3706
3707 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3708 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3709
3710 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3711 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3712 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3713 * spu-tdep.c (infospucmdlist): New variable.
3714 (spu_register_name): Handle additional pseudo registers.
3715 (spu_register_type): Likewise.
3716 (spu_pseudo_register_read): Likewise.
3717 (spu_pseudo_register_write): Likewise.
3718 (spu_pseudo_register_read_spu): New function.
3719 (spu_pseudo_register_write_spu): Likewise.
3720 (info_spu_event_command): New function.
3721 (info_spu_signal_command): Likewise.
3722 (info_spu_mailbox_list): Likewise.
3723 (info_spu_mailbox_command): Likewise.
3724 (spu_mfc_get_bitfield): Likewise.
3725 (info_spu_dma_cmdlist): Likewise.
3726 (info_spu_dma_command): Likewise.
3727 (info_spu_proxydma_command): Likewise.
3728 (info_spu_command): Likewise.
3729 (_initialize_spu_tdep): Install "info spu" commands.
3730
374c1d38
UW
37312007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3732
3733 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3734 accessing non-seekable spufs files.
3735
e76f05fa
UW
37362007-06-09 Markus Deuling <deuling@de.ibm.com>
3737
3738 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3739 gdbarch_skip_trampoline_code.
3740 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3741 * objc-lang.c (objc_skip_trampoline)
3742 (objc_submethod_helper_data): Likewise.
3743 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3744 * infrun.c (handle_inferior_event): Likewise.
3745 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3746 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3747 gdbarch_in_solib_return_trampoline.
3748 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3749 * infrun.c (handle_inferior_event): Likewise.
3750 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3751 * gdbarch.c, gdbarch.h: Regenerate.
3752
a433963d
UW
37532007-06-09 Markus Deuling <deuling@de.ibm.com>
3754
3755 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3756 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3757 * linespec.c (minsym_found): Likewise.
3758 * infrun.c (step_into_function): Likewise.
3759 * gdbarch.c, gdbarch.h: Regenerate.
3760
aea8766f
UW
37612007-06-09 Markus Deuling <deuling@de.ibm.com>
3762
3763 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3764 * valops.c (value_allocate_space_in_inferior): Likewise.
3765 * gdbarch.c, gdbarch.h: Regenerate.
3766
8da95a30
UW
37672007-06-09 Markus Deuling <deuling@de.ibm.com>
3768
3769 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3770 gdbarch_memory_insert_breakpoint.
3771 * mem-break.c (memory_insert_breakpoint): Likewise.
3772 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3773 gdbarch_memory_remove_breakpoint.
3774 * mem-break.c (memory_remove_breakpoint): Likewise.
3775 * gdbarch.c, gdbarch.h: Regenerate.
3776
985969a9
UW
37772007-06-09 Markus Deuling <deuling@de.ibm.com>
3778
3779 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3780 gdbarch_fetch_tls_load_module_address.
3781 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3782 gdbarch_fetch_tls_load_module_address_p.
3783 * gdbarch.c, gdbarch.h: Regenerate.
3784
b798847d
UW
37852007-06-09 Markus Deuling <deuling@de.ibm.com>
3786
3787 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3788 gdbarch_decr_pc_after_break.
3789 * tracepoint.c (trace_dump_command): Likewise.
3790 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3791 * linux-thread-db.c (check_event): Likewise.
3792 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3793 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3794 * frame.h: Likewise (comment).
3795 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3796 * aix-thread.c (aix_thread_wait): Likewise.
3797 * gdbarch.c, gdbarch.h: Regenerate.
3798
849957d9
UW
37992007-06-09 Markus Deuling <deuling@de.ibm.com>
3800
3801 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3802 gdbarch_address_class_type_flags.
3803 * dwarf2read.c (read_tag_pointer_type): Likewise.
3804 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3805 gdbarch_address_class_type_flags_p.
3806 * dwarf2read.c (read_tag_pointer_type): Likewise.
3807 * gdbarch.c, gdbarch.h: Regenerate.
3808
bf6ae464
UW
38092007-06-09 Markus Deuling <deuling@de.ibm.com>
3810
3811 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3812 * value.c (value_as_address): Likewise (comment).
3813 * remote-mips.c (common_breakpoint): Likewise.
3814 * regcache.c (read_pc_pid): Likewise.
3815 * printcmd.c (do_one_display): Likewise.
3816 * monitor.c (monitor_write_memory, monitor_read_memory)
3817 (monitor_insert_breakpoint): Likewise.
3818 * mips-tdep.c (heuristic_proc_start): Likewise.
3819 * infrun.c (insert_step_resume_breakpoint_at_frame)
3820 (insert_step_resume_breakpoint_at_caller): Likewise.
3821 * buildsym.c (record_line): Likewise.
3822 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3823 (arm_get_next_pc): Likewise.
3824 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3825 (store_regs): Likewise.
3826 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3827 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3828 * gdbarch.c, gdbarch.h: Regenerate.
3829
c9f4d572
UW
38302007-06-09 Markus Deuling <deuling@de.ibm.com>
3831
3832 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3833 * tracepoint.c (scope_info): Likewise.
3834 * target.c (debug_print_register): Likewise.
3835 * stack.c (frame_info): Likewise.
3836 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3837 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3838 (sh64_media_print_registers_info)
3839 (sh64_compact_print_registers_info): Likewise.
3840 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3841 * remote-sim.c (gdbsim_fetch_register): Likewise.
3842 * remote.c (packet_reg): Likewise (comment).
3843 * reggroups.c (default_register_reggroup_p): Likewise.
3844 * regcache.c (regcache_dump): Likewise.
3845 * printcmd.c (address_info): Likewise.
3846 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3847 * mt-dep.c (mt_registers_info): Likewise.
3848 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3849 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3850 (mips_read_fp_register_double, mips_print_fp_register)
3851 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3852 (mips_register_sim_regno): Likewise.
3853 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3854 * inf-ptrace.c (inf_ptrace_fetch_register)
3855 (inf_ptrace_store_register): Likewise.
3856 * infcmd.c (default_print_registers_info): Likewise.
3857 * ia64-linux-nat.c (ia64_linux_fetch_register)
3858 (ia64_linux_store_register): Likewise.
3859 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3860 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3861 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3862 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3863 (hppa_hpux_store_register): Likewise.
3864 * findvar.c (locate_var_value): Likewise.
3865 * dwarf2loc.c (locexpr_describe_location): Likewise.
3866 * dwarf2-frame.c (execute_cfa_program): Likewise.
3867 * arm-tdep.c (arm_push_dummy_call): Likewise.
3868 * arch-utils.c (legacy_register_sim_regno): Likewise.
3869 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3870 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3871 * mi/mi-main.c (mi_cmd_data_list_register_names)
3872 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3873 (mi_cmd_data_write_register_values): Likewise.
3874 * gdbarch.c, gdbarch.h: Regenerate.
3875
1fc01e03
DJ
38762007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3877
3878 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3879
632110b1
VP
38802007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3881
3882 * remote.c (process_g_packet): Don't check size.
3883 * gdbarch.sh: Remove register_bytes_ok.
3884 * gdbarch.c: Regenerated.
3885 * gdbarch.h: Regenerated.
3886 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3887 (m68k_register_bytes_ok): Remove.
3888 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3889
f43ae3f1
AS
38902007-06-06 Andreas Schwab <schwab@suse.de>
3891
3892 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3893 (destroy_addr_space_name): Define.
3894 (libunwind_load): Get address of destroy_addr_space function.
3895 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3896 returning unsuccessfully.
3897 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3898 returning.
3899 (libunwind_sigtramp_frame_sniffer): Likewise.
3900 (libunwind_get_reg_special): Likewise.
3901
d99344c0
UW
39022007-06-06 Markus Deuling <deuling@de.ibm.com>
3903
3904 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3905 gdbarch_fetch_pointer_argument.
3906 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3907 * gdbarch.c, gdbarch.h: Regenerate.
3908
e6cf7916
UW
39092007-06-06 Markus Deuling <deuling@de.ibm.com>
3910
3911 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3912 gdbarch_have_nonsteppable_watchpoint.
3913 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3914 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3915 gdbarch_cannot_step_breakpoint.
3916 * infrun.c (resume): Likewise.
3917 * gdbarch.c, gdbarch.h: Regenerate.
3918
bbcf301a
UW
39192007-06-06 Markus Deuling <deuling@de.ibm.com>
3920
3921 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3922 * stack.c (print_frame_args): Likewise.
3923 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3924 * stack.c (print_args_stub, frame_info): Likewise.
3925 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3926 * stack.c (print_args_stub, frame_info): Likewise.
3927 * gdbarch.c, gdbarch.h: Regenerate.
3928
95f1da47
UW
39292007-06-06 Markus Deuling <deuling@de.ibm.com>
3930
3931 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3932 gdbarch_coff_make_msymbol_special.
3933 * coffread.c (coff_symtab_read): Likewise.
3934 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3935 gdbarch_elf_make_msymbol_special.
3936 * elfread.c (elf_symtab_read): Likewise.
3937 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3938 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3939 * gdbarch.c, gdbarch.h: Regenerate.
3940
39e8369e
UW
39412007-06-06 Markus Deuling <deuling@de.ibm.com>
3942
3943 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3944 gdbarch_frame_red_zone_size.
3945 * gdbarch.c, gdbarch.h: Regenerate.
3946
4d1e7dd1
UW
39472007-06-06 Markus Deuling <deuling@de.ibm.com>
3948
3949 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3950 * infcall.c (call_function_by_hand): Likewise.
3951 * gcore.c (derive_stack_segment): Likewise.
3952 * frame.c (frame_id_inner): Likewise.
3953 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3954 * ada-lang.c (ensure_lval): Likewise.
3955 * gdbarch.c, gdbarch.h: Regenerate.
3956
76e71323
UW
39572007-06-06 Markus Deuling <deuling@de.ibm.com>
3958
3959 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3960 gdbarch_address_to_pointer.
3961 * findvar.c (store_typed_address): Likewise.
3962 * gdbtypes.c (make_pointer_type): Likewise (comment).
3963 * procfs.c (procfs_address_to_host_pointer): Likewise.
3964 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3965 (value_of_builtin_frame_fp_reg): Likewise.
3966 (value_of_builtin_frame_pc_reg): Likewise.
3967 * utils.c (paddress): Likewise (comment).
3968 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3969 gdbarch_pointer_to_address.
3970 * findvar.c (extract_typed_address): Likewise.
3971 * gdbtypes.c (make_pointer_type): Likewise (comment).
3972 * valops.c (value_cast): Likewise (comment).
3973 * gdbarch.c, gdbarch.h: Regenerate.
3974
91104499
UW
39752007-06-06 Markus Deuling <deuling@de.ibm.com>
3976
3977 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3978 * infrun.c (handle_inferior_event): Likewise.
3979 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3980 gdbarch_get_longjmp_target_p.
3981 * breakpoint.c (breakpoint_re_set): Likewise.
3982 * infrun.c (handle_inferior_event): Likewise.
3983 * gdbarch.c, gdbarch.h: Regenerate.
3984
d3e9c991
UW
39852007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3986
3987 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3988 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3989 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3990 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3991 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3992 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3993 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3994 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3995 current_ex_event, child_get_current_exception_event): Remove.
3996 (hppa_hpux_inferior_created): Remove.
3997 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3998
3999 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4000 (deprecated_exception_support_initialized): Remove.
4001 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4002 (deprecated_exception_support_initialized): Remove.
4003 (breakpoint_init_inferior): Remove handling of non-zero
4004 deprecated_exception_catchpoints_are_fragile.
4005
4006 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4007 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4008 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4009 deprecated_hp_som_som_object_present.
4010 * eval.c (evaluate_subexp_standard): Likewise.
4011 * valops.c (value_cast): Likewise.
4012
4013 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4014 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4015 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4016
5e787d22
UW
40172007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4018
4019 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4020 (struct objfile): Remove import_list, import_list_size,
4021 export_list, export_list_size members.
4022 (is_in_import_list): Remove prototype.
4023 * objfiles.c (is_in_import_list): Remove.
4024 * somread.c (init_import_symbols, init_export_symbols): Remove.
4025 (som_symfile_read): Do not call init_import_symbols. Do not
4026 set objfile->export_list and objfile->export_list_size.
4027
93e7bd98
DJ
40282007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4029
4030 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4031 Use the original objfile if necessary.
4032
e1024ff1
DJ
40332007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4034
4035 * defs.h (ldirname): New prototype.
4036 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4037 missing.
4038 * utils.c (ldirname): New function.
4039 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4040
ee82e879
UW
40412007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4042
4043 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4044
513f5903
JB
40452007-06-01 Joel Brobecker <brobecker@adacore.com>
4046
4047 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4048
52a75740
UW
40492007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4050
4051 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4052
c3fc7e62
UW
40532007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4054
4055 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4056 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4057 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4058 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4059 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4060 ppc_linux_at_sigtramp_return_path): Remove.
4061
4c6b5505
UW
40622007-05-31 Markus Deuling <deuling@de.ibm.com>
4063
4064 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4065 (xtensa_register_write_masked, xtensa_register_read_masked)
4066 (xtensa_extract_return_value, xtensa_store_return_value
4067 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4068 TARGET_BYTE_ORDER by gdbarch_byte_order.
4069 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4070 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4071 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4072 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4073 (sh64_push_dummy_call, sh64_extract_return_value)
4074 (sh64_store_return_value, sh64_register_convert_to_virtual)
4075 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4076 (sh64_pseudo_register_write, sh64_do_fp_register)
4077 (sh64_frame_prev_register): Likewise.
4078 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4079 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4080 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4081 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4082 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4083 * ppc-linux-nat.c (store_register): Likewise.
4084 * nto-tdep.c (nto_find_and_open_solib)
4085 (nto_init_solib_absolute_prefix): Likewise.
4086 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4087 (mips_convert_register_p, mips_eabi_push_dummy_call)
4088 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4089 (mips_o32_push_dummy_call, mips_o32_return_value)
4090 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4091 (mips_read_fp_register_single, mips_read_fp_register_double)
4092 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4093 (mips_breakpoint_from_pc): Likewise.
4094 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4095 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4096 (mips_linux_o32_sigframe_init): Likewise.
4097 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4098 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4099 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4100 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4101 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4102 * coffread.c (process_coff_symbol): Likewise.
4103 * arm-tdep.c (convert_from_extended, convert_to_extended)
4104 (gdb_print_insn_arm): Likewise.
4105
f57d151a
UW
41062007-05-31 Markus Deuling <deuling@de.ibm.com>
4107
4108 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4109 * i386-tdep.c (i386_dbx_reg_to_regnum)
4110 (i386_svr4_reg_to_regnum): Likewise.
4111 * inf-ptrace.c (inf_ptrace_fetch_registers)
4112 (inf_ptrace_store_registers): Likewise.
4113 * corelow.c (get_core_registers): Likewise.
4114 * i386-linux-nat.c (supply_gregset, fill_gregset)
4115 (i386_linux_fetch_inferior_registers)
4116 (i386_linux_store_inferior_registers): Likewise.
4117 * remote.c (init_remote_state,packet_reg_from_regnum)
4118 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4119 (remote_prepare_to_store,store_registers_using_G)
4120 (remote_store_registers,remote_arch_state): Likewise.
4121 * tracepoint.c (encode_actions): Likewise.
4122 * mi/mi-main.c (mi_cmd_data_list_register_names)
4123 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4124 (mi_cmd_data_write_register_values): Likewise.
4125 * tui/tui-regs.c (tui_show_register_group)
4126 (tui_show_register_group): Likewise.
4127 * xtensa-tdep.h (FP_ALIAS): Likewise.
4128 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4129 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4130 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4131 * win32-nat.c (do_win32_fetch_inferior_registers)
4132 (do_win32_store_inferior_registers,fetch_elf_core_registers
4133 * user-regs.h: Likewise (comment).
4134 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4135 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4136 * target-descriptions.h: Likewise (comment).
4137 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4138 * target.c (debug_print_register): Likewise.
4139 * stack.c (frame_info): Likewise.
4140 * stabsread.c (define_symbol): Likewise.
4141 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4142 (sh64_media_print_registers_info)
4143 (sh64_compact_print_registers_info): Likewise.
4144 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4145 * rs6000-nat.c (fetch_register,store_register): Likewise.
4146 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4147 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4148 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4149 * remote-m32r-sdi.c (m32r_fetch_registers)
4150 (m32r_store_registers): Likewise.
4151 * reggroups.c (default_register_reggroup_p): Likewise.
4152 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4153 (regcache_restore,regcache_dump): Likewise.
4154 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4155 * mips-tdep.c (mips_xfer_register,mips_register_name)
4156 (mips_register_reggroup_p,mips_pseudo_register_read)
4157 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4158 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4159 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4160 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4161 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4162 (print_gp_register_row,mips_print_registers_info)
4163 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4164 (mips_register_sim_regno): Likewise.
4165 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4166 (mips_linux_n32n64_sigframe_init): Likewise.
4167 * mips-linux-nat.c (mips_linux_register_addr)
4168 (mips64_linux_register_addr): Likewise.
4169 * findvar.c (value_of_register): Likewise.
4170 * infcmd.c (default_print_registers_info,registers_info)
4171 (print_vector_info,print_float_info): Likewise.
4172 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4173 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4174 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4175 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4176 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4177 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4178 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4179 (ia64_linux_store_registers): Likewise.
4180 * hpux-thread.c (hpux_thread_fetch_registers)
4181 (hpux_thread_store_registers): Likewise.
4182 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4183 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4184 (h8300_register_type): Likewise.
4185 * dwarf2-frame.c (dwarf2_frame_cache)
4186 (dwarf2_frame_state_alloc_regs): Likewise.
4187 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4188 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4189 (crisv32_cannot_store_register,cris_register_name): Likewise.
4190 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4191 * arch-utils.c (legacy_register_sim_regno)
4192 (legacy_virtual_frame_pointer): Likewise.
4193 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4194 * arm-tdep.h: Likewise (comment).
4195 * frv-tdep.c (frv_register_sim_regno): Likewise.
4196 * m68klinux-nat.c (old_fetch_inferior_registers)
4197 (old_store_inferior_registers): Likewise.
4198 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4199 * irix5-nat.c (fetch_core_registers): Likewise.
4200 * hppa-tdep.c (hppa_frame_cache): Likewise.
4201 * hppa-linux-nat.c (hppa_linux_register_addr)
4202 (hppa_linux_fetch_inferior_registers)
4203 (hppa_linux_store_inferior_registers): Likewise.
4204 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4205 (hppa_hpux_store_inferior_registers): Likewise.
4206 * amd64-nat.c (amd64_native_gregset_reg_offset)
4207 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4208 * dbug-rom.c (dbug_regname): Likewise.
4209 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4210 (HARD_PAGE_REGNUM (comment)): Likewise.
4211 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4212 * i386-tdep.c (i386_dbx_reg_to_regnum)
4213 (i386_svr4_reg_to_regnum): Likewise.
4214 * mi/mi-main.c (mi_cmd_data_list_register_names)
4215 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4216 (mi_cmd_data_write_register_values): Likewise.
4217 * gdbarch.c, gdbarch.h: Regenerate.
4218 * tui/tui-regs.c (tui_show_register_group): Likewise.
4219 * xtensa-tdep.h (FP_ALIAS): Likewise.
4220 * user-regs.h: Likewise (comment).
4221 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4222 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4223 * target-descriptions.h: Likewise (comment).
4224 * target.c (debug_print_register): Likewise.
4225 * stack.c (frame_info): Likewise.
4226 * stabsread.c (define_symbol): Likewise.
4227 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4228 (sh64_compact_print_registers_info): Likewise.
4229 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4230 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4231 (regcache_restore,regcache_dump): Likewise.
4232 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4233 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4234 (mips_stab_reg_to_regnum): Likewise.
4235 * findvar.c (value_of_register): Likewise.
4236 * infcmd.c (default_print_registers_info,registers_info)
4237 (print_vector_info,print_float_info): Likewise.
4238 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4239 * h8300-tdep.c (h8300_register_type): Likewise.
4240 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4241 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4242 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4243 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4244 * parse.c: Remove comment.
4245 * gdbarch.c, gdbarch.h: Regenerate
4246
8d4c1ba3
UW
42472007-05-31 Markus Deuling <deuling@de.ibm.com>
4248
4249 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4250 gdbarch_cannot_fetch_register.
4251 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4252 * hppa-linux-nat.c (fetch_register): Likewise.
4253 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4254 * m68klinux-nat.c (fetch_register): Likewise.
4255 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4256 Likewise.
4257 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4258 gdbarch_cannot_store_register.
4259 * hppa-linux-nat.c (store_register): Likewise.
4260 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4261 * regcache.c (regcache_raw_write): Likewise.
4262 * m68klinux-nat.c (store_register): Likewise.
4263 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4264 * gdbarch.c, gdbarch.h: Regenerate.
4265
3f4844da
UW
42662007-05-31 Markus Deuling <deuling@de.ibm.com>
4267
4268 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4269 * gdbarch.c, gdbarch.h: Regenerate.
4270
6c6b19fd
UW
42712007-05-31 Markus Deuling <deuling@de.ibm.com>
4272
4273 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4274 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4275 * gdbarch.c, gdbarch.h: Regenerate.
4276
0d20ae72
UW
42772007-05-31 Markus Deuling <deuling@de.ibm.com>
4278
4279 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4280 * ax-gdb.c (gen_bitfield_ref): Likewise.
4281 * mi/mi-main.c (get_register): Likewise.
4282 * findvar.c (default_value_from_register, extract_signed_integer)
4283 (extract_unsigned_integer, extract_long_unsigned_integer)
4284 (store_signed_integer, store_unsigned_integer): Likewise.
4285 * regcache.c (regcache_dump): Likewise.
4286 * value.c (lookup_internalvar, value_of_internalvar)
4287 (set_internalvar): Likewise.
4288 * defs.h: Likewise.
4289 * valprint.c (print_binary_chars, print_octal_chars)
4290 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4291 * infcmd.c (default_print_registers_info): Likewise.
4292 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4293 * stabsread.c (define_symbol): Likewise.
4294 * doublest.c (floatformat_from_length, floatformat_from_type)
4295 (extract_typed_floating, store_typed_floating): Likewise.
4296 * gdbarch.c, gdbarch.h: Regenerate.
4297
faaf634c
UW
42982007-05-31 Markus Deuling <deuling@de.ibm.com>
4299
4300 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4301 gdbarch_call_dummy_location.
4302 * infcall.c (call_function_by_hand): Likewise.
4303 * inferior.h: Change comment.
4304 * arch-utils.c: Change comment.
4305 * gdbarch.c, gdbarch.h: Regenerate.
4306
8905984d
JB
43072007-05-28 Joel Brobecker <brobecker@adacore.com>
4308
4309 * solib-aix5.c: Delete.
4310 * Makefile.in (solib-aix5.o): Delete rule.
4311
ab14ee8d
DJ
43122007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4313
4314 * breakpoint.h (enum bpstat_what_main_action): Remove
4315 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4316 * infrun.c (process_event_stop_test): Do not check for it.
4317
23776285
MR
43182007-05-22 Chris Dearman <chris@mips.com>
4319 Maciej W. Rozycki <macro@mips.com>
4320
4321 * ser-unix.c (show_serial_hwflow): New function.
4322 (hardwire_raw): Add hardware flow control support.
4323 (_initialize_ser_hardwire): Add "set/show remoteflow".
4324 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4325 * NEWS: Document the new command.
4326
eb368090
UW
43272007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4328
4329 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4330 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4331 define for i[[3456]]86-*-linux* native configurations.
4332 * config.in, configure: Regenerate.
4333
8d08c9ce
JB
43342007-05-19 Joel Brobecker <brobecker@adacore.com>
4335
4336 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4337 a core file. Add comment in the function description.
4338
42be36b3
CT
43392007-05-18 Caroline Tice <ctice@apple.com>
4340
4341 * c-valprint.c (c_value_print): If the initialized field of the
4342 value struct is 0, print out "[uninitialized]" before the value.
4343 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4344 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4345 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4346 ctx->initialized appropriately. Verify no location op follows
4347 DW_OP_GNU_uninit.
4348 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4349 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4350 set_value_initialized.
4351 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4352 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4353 * value.c (struct value): New field, initialized.
4354 (allocate_value): Initialize new field.
4355 (set_value_initialized): New function.
4356 (value_initialized): New function.
4357 * value.h (value_initialized): New extern declaration.
4358 (set_value_initialized): Likewise.
42be36b3 4359
a7c569c8
CT
43602007-05-18 Caroline Tice <ctice@apple.com>
4361
4362 * MAINTAINERS (Write After Approval): Add self.
4363
1e98b326
JB
43642007-05-17 Joel Brobecker <brobecker@adacore.com>
4365
4366 * gdbtypes.c (make_reference_type): Preserve the type chain
4367 and set the length of all the variants of the pointer type.
4368
053cb41b
JB
43692007-05-17 Joel Brobecker <brobecker@adacore.com>
4370
4371 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4372 and set the length of all the variants of the pointer type.
4373
436aafc4
MR
43742007-05-17 Maciej W. Rozycki <macro@mips.com>
4375
4376 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4377 comment.
4378 (mips_o64_push_dummy_call): Reformat a comment.
4379
98f4ab10
Q
43802007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4381
4382 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4383 (score_prologue_frame_base_address): Return fp to keep gdb print
4384 local variables correctly when debugging information is stabs.
4385
4386 (score_analyze_prologue): For software watchpoint, fetch all the
4387 instructions from range [startaddr, pc] once and identify them locally
4388 to reduce memory access.
4389 (score_malloc_and_get_memblock, score_free_memblock)
4390 (score_adjust_memblock_ptr): New functions.
4391 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4392
4393 (score_target_can_use_watch, score_stopped_by_watch)
4394 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4395 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4396 New functions for remote & local hw-watchpoint and hw-breakpoint.
4397
60dfee72
AS
43982007-05-16 Alfred M. Szmidt <ams@gnu.org>
4399
4400 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4401 declarations as well.
4402
190dce09
UW
44032007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4404
4405 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4406 * config/arm/tm-embed.h: Delete file.
4407
4408 * arm-tdep.h (arm_software_single_step): Declare.
4409 * arm-tdep.c (arm_software_single_step): Make global.
4410 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4411 from here to ...
4412 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4413 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4414 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4415 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4416
4417 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4418 allow defines to be overriden by TM file.
4419 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4420 change default to {0xbe,0xbe}.
4421 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4422 arm_obsd_thumb_be_breakpoint): New global variables.
4423 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4424 tdep->thumb_breakpoint_size.
4425 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4426 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4427 tdep->thumb_breakpoint_size.
4428
4429 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4430
1a69e1e4
DJ
44312007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4432
4433 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4434 saved-gpreg-size".
4435
4436 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4437 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4438 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4439 (mips_abi_regsize): Simplify.
4440 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4441 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4442 (mips_o32_return_value, mips_o64_push_dummy_call)
4443 (mips_o64_return_value): Propogate constant register sizes. Use the
4444 ABI register size instead of mips_stack_argsize.
4445 (mips_dump_tdep): Don't print mips_stack_argsize.
4446 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4447 settings.
4448
7d522c90
DJ
44492007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4450
4451 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4452 * config/mips/tm-linux.h: Delete.
4453 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4454 (mips_linux_in_dynsym_resolve_code): Make static. Use
4455 svr4_in_dynsym_resolve_code.
4456 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4457 set_solib_ops.
4458 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4459 global.
4460 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4461 * Makefile.in (mips-linux-tdep.o): Update.
4462 * solib.c (set_solib_ops): New.
4463 (current_target_so_ops): Update comment.
4464 * solib.h (set_solib_ops): New prototype.
4465
5d51a2db
MR
44662007-05-16 Chris Dearman <chris@mips.com>
4467
4468 * printcmd.c (do_examine): Fix typos in a comment.
4469
07abfebf
RS
44702007-05-16 Richard Sandiford <richard@codesourcery.com>
4471
4472 * configure.ac: Allow sysroots to be relocated under $prefix as
4473 well as $exec_prefix.
4474 * configure: Regenerate.
4475
f5ce4941
UW
44762007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4477
4478 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4479 (offsetof): Do not define.
4480 (find_stub_with_shl_get): Use numerical value 3 instead of
4481 symbolic value TYPE_PROCEDURE.
4482
76e1ee85
DJ
44832007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4484
4485 * gdb_proc_service.h (paddr_t): Delete typedef.
4486 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4487 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4488 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4489 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4490 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4491 * Makefile.in (proc-service.o): Update.
4492
2bd0c3d7
DJ
44932007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4494
4495 * Makefile.in (mips-tdep.o): Update.
4496 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4497 unwinder.
4498
14d06750
DJ
44992007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4500
4501 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4502 instead of store_typed_address.
4503 * value.c (pack_long): New.
4504 (value_from_longest): Use it.
4505 * value.h (pack_long): New prototype.
4506
f2fec864
DJ
45072007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4508
4509 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4510 DW_EH_PE_signed if appropriate.
4511
25e43795
DJ
45122007-05-14 Paul Brook <paul@codesourcery.com>
4513 Daniel Jacobowitz <dan@codesourcery.com>
4514
4515 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4516 function.
4517 (dwarf_decode_lines): Check for line info without a file.
4518
027c0295
DJ
45192007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4520
4521 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4522 as hexadecimal.
4523
dc5000e7
DJ
45242007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4525
4526 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4527 STRUCTOP_STRUCT.
4528 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4529 STRUCTOP_STRUCT.
4530 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4531
30244cd8
UW
45322007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4533
4534 * gdbarch.sh (read_sp): Remove.
4535 * gdbarch.c, gdbarch.h: Regenerate.
4536 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4537
4538 * avr-tdep.c (avr_read_sp): Remove.
4539 (avr_unwind_sp): New function.
4540 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4541 * mips-tdep.c (mips_read_sp): Remove.
4542 (mips_unwind_sp): New function.
4543 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4544 * score-tdep.c (score_read_unsigned_register): Remove.
4545 (score_read_sp): Remove.
4546 (score_unwind_sp): New function.
4547 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4548
84ba0adf
DJ
45492007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4550
4551 * buildsym.c (start_subfile): Handle absolute pathnames
4552 while comparing subfile names.
4553
e7b17823
UW
45542007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4555
4556 * hppa-hpux-tdep.c: Include "regcache.h".
4557 * hppa-linux-tdep.c: Likewise.
4558 * hppa-tdep.c: Include "gdb_stdint.h".
4559 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4560 it to paddr_nz.
4561 * Makefile.in: Update dependencies.
4562
7157eed4
UW
45632007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4564
4565 * blockframe.c: Remove obsolete comments.
4566 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4567 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4568 * hppa-tdep.h (enum hppa_regnum): Likewise.
4569 * mips-tdep.h: Likewise.
4570 * m68hc11-tdep.c: Likewise.
4571
fb4443d8
UW
45722007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4573
4574 * inferior.h (read_sp): Remove prototype.
4575 * regcache.c (read_sp): Remove.
4576 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4577 * infcall.c (call_function_by_hand): Likewise.
4578 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4579 of calling read_sp.
4580 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4581
7b86a1b8
UW
45822007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4583
4584 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4585 instead of read_register and read_register_pid.
4586
4587 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4588 argument instead of PTID. Use regcache functions instead of
4589 read_register_pid.
4590 (ia64_linux_insert_watchpoint): Update call.
4591 (ia64_linux_stopped_data_address): Use regcache functions
4592 instead of read_register_pid and write_register_pid.
4593
45ecac4b
UW
45942007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4595
4596 * libunwind-frame.h (struct regcache): Add forward declaration.
4597 (libunwind_get_reg_special): Add REGCACHE argument.
4598 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4599 argument. Pass it to unw_init_remote_p.
4600
4601 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4602 libunwind_get_reg_special.
4603 (ia64_access_reg): Remove "write" case.
4604 (ia64_access_fpreg): Likewise. Read from next_frame passed
4605 as callback argument instead of from current_regcache.
4606 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4607 passed as callback argument instead of from current_regcache.
4608 (ia64_access_rse_fpreg): New function.
4609 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4610
0ca420ce
UW
46112007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4612
4613 * NEWS: Mention SPU overlay support.
4614
0a44cb36
UW
46152007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4616
4617 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4618
aa67235e
UW
46192007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4620
4621 * breakpoint.c (remove_breakpoint): Do not remove software
4622 breakpoints in unmapped overlay sections.
4623
dcf52cd8
UW
46242007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4625
4626 * spu-tdep.c: Include "observer.h".
4627 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4628 (spu_overlay_data): New variable.
4629 (struct spu_overlay_table): New type.
4630 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4631 spu_overlay_new_objfile): New functions.
4632 (spu_gdbarch_init): Install spu_overlay_update.
4633 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4634 allocate spu_overlay_data objfile data.
4635
1c772458
UW
46362007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4637
4638 * gdbarch.sh (overlay_update): New gdbarch function.
4639 (struct obj_section): Add forward declaration.
4640 * gdbarch.c, gdbarch.h: Regenerate.
4641
4642 * symfile.c (simple_overlay_update): Make global.
4643 (target_overlay_update): Remove variable.
4644 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4645 target_overlay_update.
4646 (overlay_load_command): Likewise.
4647 * symfile.h (struct obj_section): Add forward declaration.
4648 (simple_overlay_update): Add prototype.
4649
4650 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4651
06d3b283
UW
46522007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4653
4654 * observer.sh: Add "struct objfile" forward declaration.
4655 * target.h (deprecated_target_new_objfile_hook): Remove.
4656 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4657 (clear_symtab_users): Call observer_notify_new_objfile.
4658 (symbol_file_add_with_addrs_or_offsets): Likewise.
4659 * rs6000-nat.c: Include "observer.h".
4660 (vmap_ldinfo): Call observer_notify_new_objfile.
4661 (xcoff_relocate_core): Likewise.
4662 * remote.c (remote_new_objfile_chain): Remove.
4663 (remote_new_objfile): Do not call remote_new_objfile_chain.
4664 (_initialize_remote): Use observer_attach_new_objfile.
4665 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4666 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4667 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4668 * aix-thread.c: Include "observer.h".
4669 (target_new_objfile_chain): Remove.
4670 (new_objfile): Do not call target_new_objfile_chain.
4671 (_initialize_aix_thread): Use observer_attach_new_objfile.
4672 * hpux-thread.c: Include "observer.h"
4673 (target_new_objfile_chain): Remove.
4674 (hpux_thread_new_objfile): Make static. Do not call
4675 target_new_objfile_chain.
4676 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4677 * linux-thread-db.c: Include "observer.h".
4678 (target_new_objfile_chain): Remove.
4679 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4680 (_initialize_thread_db): Use observer_attach_new_objfile.
4681 * sol-thread.c: Include "observer.h".
4682 (target_new_objfile_chain): Remove.
4683 (sol_thread_new_objfile): Make static. Do not call
4684 target_new_objfile_chain.
4685 (_initialize_sol_thread): Use observer_attach_new_objfile.
4686 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4687 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4688 $(observer_h).
4689
93ce7684
UW
46902007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4691
4692 * gdbarch.sh (remote_translate_xfer_address): Remove.
4693 * gdbarch.h, gdbarch.c: Regenerate.
4694 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4695 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4696 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4697 call gdbarch_remote_translate_xfer_address.
4698 * frv-tdep.c (frv_gdbarch_init): Do not call
4699 set_gdbarch_remote_translate_xfer_address.
4700 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4701 (ia64_gdbarch_init): Do not install it.
4702
a6ec25f2
BW
47032007-05-11 Bob Wilson <bob.wilson@acm.org>
4704
4705 * NEWS: Mention change in handling the -tui option.
4706
2ef52e77
DJ
47072007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4708
4709 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4710 typo.
4711
1aafd4da
UW
47122007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4713
4714 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4715 (breakpoint_inserted_here_p): Call it.
4716 (software_breakpoint_inserted_here_p): Likewise.
4717
7714d83a
UW
47182007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4719
4720 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4721 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4722 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4723 (inf_ptrace_store_register): Likewise.
4724 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4725 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4726
4727 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4728
4729 * linux-nat.c (linux_trad_target): Adapt parameter list.
4730 * linux-nat.h (linux_trad_target): Likewise.
4731
4732 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4733
4734 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4735 (mips_linux_cannot_store_register): Likewise.
4736 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4737 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4738 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4739 (mips64_linux_register_addr): Likewise.
4740 (mips_linux_register_u_offset): Adapt parameter list. Pass
4741 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4742
4743 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4744 * config/mips/nm-linux.h: Delete file.
4745
4ddda9b5
PA
47462007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4747
4748 * remote.c (remote_detach): Error out if remote can't detach.
4749
24d45690
UW
47502007-05-10 Luis Machado <luisgpm@br.ibm.com>
4751
362f854e
PA
4752 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4753 instruction's opcode in the "opcode" variable and declares new
4754 variable "closing_insn".
24d45690 4755
1430be3e
MR
47562007-05-10 Chris Dearman <chris@mips.com>
4757 Maciej W. Rozycki <macro@mips.com>
4758
4759 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4760 whitespace when setting a var_filename.
4761
b0da54f1
BW
47622007-05-09 Bob Wilson <bob.wilson@acm.org>
4763
4764 * main.c (captured_main): Recognize -tui option and print an error
4765 message when the TUI is not configured.
4766
9a88e5ee
AS
47672007-05-09 Andreas Schwab <schwab@suse.de>
4768
4769 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4770 set removed members.
4771 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4772
fc0d8df4
UW
47732007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4774
4775 * gdbarch.sh (deprecated_store_struct_return): Remove.
4776 * gdbarch.c, gdbarch.h: Regenerate.
4777 * frv-tdep.c (frv_store_struct_return): Remove.
4778 (frv_gdbarch_init): Do not install it.
4779
179101d6
UW
47802007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4781
4782 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4783 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4784 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4785
b9efddcd
UW
47862007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * spu-linux-nat.c: Include "gdb_stdint.h".
4789 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4790 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4791 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4792 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4793 (spu_child_wait): Mark up string for translation.
4794
ce5eab59
UW
47952007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4796 Luis Machado <luisgpm@br.ibm.com>
4797
4798 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4799 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4800 BC_INSTRUCTION): Define.
4801 (deal_with_atomic_sequence): New function.
4802 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4803 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4804 gdbarch_software_single_step routine.
4805
4179a487
UW
48062007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4807
4808 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4809 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4810 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4811 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4812 spu_child_post_attach, spu_fetch_inferior_registers,
4813 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4814 memory addresses as ULONGEST, not CORE_ADDR.
4815
6d350bb5
UW
48162007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4817
4818 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4819 * gdbarch.h, gdbarch.c: Regenerate.
4820
4821 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4822 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4823 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4824
4825 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4826 Add REGCACHE argument. Use it instead of read/write_register.
4827 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4828
4829 * config/pa/tm-hppah.h: Delete file.
4830 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4831 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4832
b18be20d
DJ
48332007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4834
4835 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4836 * NEWS: Mention improved C++ thunk support.
4837 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4838 * cp-abi.c (cplus_skip_trampoline): New.
4839 * cp-abi.h (cplus_skip_trampoline): New prototype.
4840 (struct cp_abi_ops): Add skip_trampoline member.
4841 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4842 (init_gnuv3_ops): Set skip_trampoline.
4843
dda9b909
DJ
48442007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4845
4846 * rs6000-tdep.c (struct frame_extra_info): Delete.
4847
34091d9b
DJ
48482007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4849
4850 * linux-thread-db.c: Update some FIXME comments.
4851 (thread_db_xfer_partial): Delete.
4852 (init_thread_db_ops): Do not set to_xfer_partial.
4853
1da33a4a
UW
48542007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4855
4856 * inftarg.c, infptrace.c: Remove files.
4857 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4858 (inftarg.o, infptrace.o): Remove rules.
4859 * gdbcore.h (register_addr): Remove prototype.
4860 * inferior.h (kill_inferior, store_inferior_registers,
4861 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4862 call_ptrace, pre_fork_inferior): Remove prototypes.
4863 * target.h (child_xfer_memory, child_pid_to_exec_file,
4864 child_core_file_to_sym_file, child_post_attach,
4865 child_post_startup_inferior, child_acknowledge_created_inferior,
4866 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4867 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4868 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4869 child_follow_fork, child_reported_exec_events_per_exec_call,
4870 child_has_exited, child_thread_alive): Remove prototypes.
4871
6f7a27d5
UW
48722007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4873
4874 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4875 (sparc_store_inferior_registers): Likewise.
4876 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4877 (sparc_fetch_inferior_registers): ... this.
4878 (store_inferior_registers): Rename to ...
4879 (sparc_store_inferior_registers): ... this.
4880 (sparc_target): Update callback names.
4881 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4882 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4883
6d8fd2b7
UW
48842007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4885
4886 * linux-nat.c (child_post_attach): Rename to ...
4887 (linux_child_post_attach): ... this. Make static.
4888 (child_follow_fork): Rename to ...
4889 (linux_child_follow_fork): ... this. Make static.
4890 (child_insert_fork_catchpoint): Rename to ...
4891 (linux_child_insert_fork_catchpoint): ... this. Make static.
4892 (child_insert_vfork_catchpoint): Rename to ...
4893 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4894 (child_insert_exec_catchpoint): Rename to ...
4895 (linux_child_insert_exec_catchpoint): ... this. Make static.
4896 (child_pid_to_exec_file): Rename to ...
4897 (linux_child_pid_to_exec_file): ... this. Make static.
4898 Add prototype.
4899 (linux_handle_extended_wait): Update call.
4900 (linux_xfer_partial): Update callback routine names.
4901
d08950c4
UW
49022007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4903
4904 * configure.host (alpha*-*-osf[12]*): Remove support.
4905 * NEWS: Mention removed configurations.
4906
4907 * config/alpha/alpha-osf1.mh: Delete file.
4908 * config/alpha/alpha-osf2.mh: Delete file.
4909 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4910 and infptrace.o.
4911 * config/alpha/nm-osf.h: Delete file.
4912 * config/alpha/nm-osf2.h: Delete file.
4913 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4914 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4915 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4916
4917 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4918 (register_addr, kernel_u_size): Remove.
4919 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4920
9c5ea4d9
UW
49212007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4922
4923 * regcache.c (regcache_invalidate): New function.
4924 (register_cached): Remove.
4925 (set_register_cached): Remove.
4926 (deprecated_registers_fetched): Remove.
4927 (registers_changed): Use regcache_invalidate instead
4928 of set_register_cached.
4929 (regcache_raw_read): Update comment.
4930
4931 * regcache.h (regcache_invalidate): Add prototype.
4932 (register_cached): Remove.
4933 (set_register_cached): Remove.
4934 (deprecated_registers_fetched): Remove.
4935
4936 * findvar.c (value_of_register): Do not call register_cached.
4937 * frame.c (frame_register): Likewise.
4938 * tui/tui-regs.c (tui_get_register): Likewise.
4939
4940 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4941 (process_g_packet): Likewise.
4942 (remote_fetch_registers): Likewise.
4943 * remote-sim.c (gdbsim_fetch_register): Likewise.
4944 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4945 by regcache_invalidate.
4946 (mt_pseudo_register_write): Likewise.
4947 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4948
4949 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4950 call by loop over regcache_raw_supply (..., NULL).
4951
316f2060
UW
49522007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4953
4954 * target.h (struct target_ops): Add REGCACHE parameter to
4955 to_prepare_to_store.
4956 (target_prepare_to_store): Likewise.
4957 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4958 (update_current_target): Adapt prepare_to_store de_fault rule.
4959
4960 * regcache.c (regcache_raw_write): Pass regcache to
4961 target_prepare_to_store.
4962
4963 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4964 Do not call CHILD_PREPARE_TO_STORE.
4965 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4966 * procfs.c (procfs_prepare_to_store): Likewise.
4967
4968 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4969 * go32-nat.c (go32_prepare_to_store): Likewise.
4970 * monitor.c (monitor_prepare_to_store): Likewise.
4971 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4972 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4973 * remote-mips.c (mips_prepare_to_store): Likewise.
4974 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4975 * win32-nat.c (win32_prepare_to_store): Likewise.
4976
4977 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4978 Use it instead of current_regcache.
4979
4980 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4981 parameter. Pass it on to next target.
4982 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4983
56be3814
UW
49842007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4985
4986 * target.h (struct regcache): Add forward declaration.
4987 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4988 and to_store_registers target operations.
4989 (target_fetch_registers, target_store_registers): Update.
4990
4991 * regcache.c (regcache_raw_read): Replace register_cached by
4992 regcache_valid_p. Pass regcache to target_fetch_registers.
4993 (regcache_raw_write): Pass regcache to target_store_registers.
4994
4995 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4996 store_regs, store_wmmx_regs): Replace register_cached by
4997 regcache_valid_p.
4998
4999 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5000 to target_fetch_registers calls.
5001 * corelow.c (core_open): Likewise.
5002 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5003 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5004 ps_lsetfpregs): Likewise.
5005 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5006 ps_lsetfpregs): Likewise.
5007 * win32-nat.c (win32_resume): Likewise.
5008 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5009 to target_store_registers call.
5010 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5011
5012 * inferior.h (store_inferior_registers): Update prototype.
5013 (fetch_inferior_registers): Likewise.
5014 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5015 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5016 Update function pointer signatures.
5017
5018 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5019 use it instead of current_regcache, update calls.
5020 (aix_thread_store_registers): Likewise.
5021 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5022 (alphabsd_store_inferior_registers): Likewise.
5023 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5024 (amd64bsd_store_inferior_registers): Likewise.
5025 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5026 (amd64_linux_store_inferior_registers): Likewise.
5027 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5028 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5029 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5030 (arm_linux_fetch_inferior_registers): Likewise.
5031 (arm_linux_store_inferior_registers): Likewise.
5032 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5033 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5034 (store_register, store_regs, store_fp_register, store_fp_regs,
5035 armnbsd_store_registers): Likewise.
5036 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5037 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5038 (bsd_uthread_store_registers): Likewise.
5039 * corelow.c (get_core_registers): Likewise.
5040 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5041 go32_store_registers): Likewise.
5042 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5043 (hppabsd_store_registers): Likewise.
5044 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5045 (hppa_hpux_fetch_inferior_registers): Likewise.
5046 (hppa_hpux_store_register): Likewise.
5047 (hppa_hpux_store_inferior_registers): Likewise.
5048 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5049 (hppa_linux_fetch_inferior_registers): Likewise.
5050 (hppa_linux_store_inferior_registers): Likewise.
5051 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5052 (hpux_thread_store_registers): Likewise.
5053 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5054 (i386bsd_store_inferior_registers): Likewise.
5055 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5056 gnu_store_registers): Likewise.
5057 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5058 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5059 Likewise.
5060 (i386_linux_fetch_inferior_registers): Likewise.
5061 (i386_linux_store_inferior_registers): Likewise.
5062 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5063 (ia64_linux_fetch_registers): Likewise.
5064 (ia64_linux_store_register): Likewise.
5065 (ia64_linux_store_registers): Likewise.
5066 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5067 (inf_child_store_inferior_registers): Likewise.
5068 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5069 (inf_ptrace_fetch_registers): Likewise.
5070 (inf_ptrace_store_register): Likewise.
5071 (inf_ptrace_store_registers): Likewise.
5072 * infptrace.c (fetch_register, store_register): Likewise.
5073 (fetch_inferior_registers, store_inferior_registers): Likewise.
5074 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5075 (m32r_linux_fetch_inferior_registers): Likewise.
5076 (m32r_linux_store_inferior_registers): Likewise.
5077 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5078 (m68kbsd_store_inferior_registers): Likewise.
5079 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5080 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5081 fetch_fpregs, store_fpregs): Likewise.
5082 (m68k_linux_fetch_inferior_registers): Likewise.
5083 (m68k_linux_store_inferior_registers): Likewise.
5084 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5085 (m88kbsd_store_inferior_registers): Likewise.
5086 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5087 (mips64obsd_store_inferior_registers): Likewise.
5088 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5089 (mips64_linux_regsets_store_registers): Likewise.
5090 (mips64_linux_fetch_registers): Likewise.
5091 (mips64_linux_store_registers): Likewise.
5092 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5093 (mipsnbsd_store_inferior_registers): Likewise.
5094 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5095 (monitor_fetch_registers, monitor_store_registers): Likewise.
5096 * nto-procfs.c (procfs_fetch_registers): Likewise.
5097 (procfs_store_registers): Likewise.
5098 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5099 fetch_register, supply_vrregset, fetch_altivec_registers,
5100 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5101 (store_altivec_register, store_spe_register, store_register,
5102 fill_vrregset, store_altivec_registers, store_ppc_registers,
5103 ppc_linux_store_inferior_registers): Likewise.
5104 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5105 (ppcnbsd_store_inferior_registers): Likewise.
5106 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5107 (ppcobsd_store_registers): Likewise.
5108 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5109 * remote.c (fetch_register_using_p, process_g_packet,
5110 fetch_registers_using_g, remote_fetch_registers): Likewise.
5111 (store_register_using_P, store_registers_using_G,
5112 remote_store_registers): Likewise.
5113 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5114 m32r_store_register, m32r_store_register): Likewise.
5115 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5116 * remote-sim.c (gdbsim_fetch_register): Likewise.
5117 (gdbsim_store_register): Likewise.
5118 * rs6000-nat.c (fetch_register, store_register): Likewise.
5119 (rs6000_fetch_inferior_registers): Likewise.
5120 (rs6000_store_inferior_registers): Likewise.
5121 * s390-nat.c (fetch_regs, store_regs): Likewise.
5122 (fetch_fpregs, store_fpregs): Likewise.
5123 (s390_linux_fetch_inferior_registers): Likewise.
5124 (s390_linux_store_inferior_registers): Likewise.
5125 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5126 (shnbsd_store_inferior_registers): Likewise.
5127 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5128 (sol_thread_store_registers): Likewise.
5129 * sparc-nat.c (fetch_inferior_registers): Likewise.
5130 (store_inferior_registers): Likewise.
5131 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5132 (spu_store_inferior_registers): Likewise.
5133 * target.c (debug_print_register): Likewise.
5134 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5135 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5136 (vaxbsd_store_inferior_registers): Likewise.
5137 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5138 (win32_fetch_inferior_registers): Likewise.
5139 (win32_store_inferior_registers): Likewise.
5140
9eefc95f
UW
51412007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5142
5143 * gdbcore.h (struct regcache): Add forward declaration.
5144 (struct core_fns): Add REGCACHE argument to core_read_registers
5145 callback.
5146 * corelow.c (get_core_register_section): Add REGCACHE argument,
5147 use it instead of current_regcache, pass it to core_read_registers
5148 callback.
5149 (get_core_registers): Add current_regcache as parameter to
5150 get_core_register_section calls.
5151
5152 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5153 use it instead of current_regcache.
5154 * armnbsd-nat.c (fetch_core_registers): Likewise.
5155 (fetch_elfcore_registers): Likewise.
5156 * core-regset.c (fetch_core_registers): Likewise.
5157 * cris-tdep.c (fetch_core_registers): Likewise.
5158 * irix5-nat.c (fetch_core_registers): Likewise.
5159 * m68klinux-nat.c (fetch_core_registers): Likewise.
5160 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5161 * win32-nat.c (fetch_elf_core_registers): Likewise.
5162
7f7fe91e
UW
51632007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5164
5165 * gregset.h (struct regcache): Add forward declaration.
5166 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5167 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5168 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5169 (fill_gregset): Add REGCACHE parameter.
5170 (fill_fpregset): Likewise.
5171 (fill_fpxregset): Likewise.
5172
5173 Update all definitions accordingly:
5174 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5175 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5176 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5177 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5178 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5179 (supply_gregset): Add REGCACHE parameter, use it instead of
5180 current_regcache. Make GREGSETP parameter const, adapt casts.
5181 (supply_fpregset): Add REGCACHE parameter, use it instead of
5182 current_regcache. Make FPREGSETP parameter const, adapt casts.
5183 (fill_gregset): Add REGCACHE parameter, use it instead of
5184 current_regcache.
5185 (fill_fpregset): Likewise.
5186
5187 Update all callers to pass in current_regcache as the new argument:
5188 * core-regset.c: Include "regcache.h".
5189 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5190 * procfs.c: Include "regcache.h".
5191 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5192 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5193 (procfs_do_thread_registers): Likewise.
5194 (procfs_make_note_section): Likewise.
5195 * proc-service.c: Include "regcache.h".
5196 (ps_lgetregs): Update fill_gregset call.
5197 (ps_lsetregs): Update supply_gregset call.
5198 (ps_lgetfpregs): Update fill_fpregset call.
5199 (ps_lsetfpregs): Update supply_fpregset call.
5200 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5201 supply_fpregset calls.
5202 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5203 (ps_lgetregs): Update fill_gregset call.
5204 (ps_lsetregs): Update supply_gregset call.
5205 (ps_lgetfpregs): Update fill_fpregset call.
5206 (ps_lsetfpregs): Update supply_fpregset call.
5207
5208 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5209 fill_fpregset, and fill_fpxregset calls.
5210 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5211 (store_regs): Update fill_gregset call.
5212 (fetch_fpregs): Update supply_fpregset call.
5213 (store_fpregs): Update fill_fpregset call.
5214 (fetch_fpxregs): Update supply_fpxregset call.
5215 (store_fpxregs): Update fill_fpxregset call.
5216 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5217 (store_regs): Update fill_gregset call.
5218 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5219 (store_regs): Update fill_gregset call.
5220 (fetch_fpregs): Update supply_fpregset call.
5221 (store_fpregs): Update fill_fpregset call.
5222 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5223 * s390-nat.c (fetch_regs): Update supply_gregset call.
5224 (store_regs): Update fill_gregset call.
5225 (fetch_fpregs): Update supply_fpregset call.
5226 (store_fpregs): Update fill_fpregset call.
5227
5228 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5229 dependencies.
5230
c410a84c
UW
52312007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5232
5233 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5234 it instead of current_regcache.
5235 (parse_register_dump): Add REGCACHE parameter, pass it to
5236 supply_register callback.
5237 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5238 parse_register_dump.
5239 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5240 parse_register_dump and dumpregs callback.
5241 (monitor_wait): Pass current_regcache to parse_register_dump and
5242 monitor_dump_regs.
5243 (monitor_fetch_register): Pass current_regcache to
5244 monitor_supply_register.
5245 (monitor_fetch_registers): Pass current_regcache to
5246 monitor_dump_regs.
5247 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5248 supply_register and dumpregs callbacks.
5249 (monitor_supply_register, monitor_dump_reg_block): Update
5250 prototypes.
5251 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5252 it to monitor_supply_register.
5253 * dink32-rom.c (dink32_supply_register): Likewise.
5254 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5255 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5256 instead of current_regcache.
5257
468e3d51
UW
52582007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5259
5260 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5261 Add REGCACHE parameter. Use it instead of current_regcache.
5262 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5263 i386nto_supply_gregset and i386nto_supply_fpregset.
5264 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5265 of current_regcache.
5266
5267 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5268 nto_supply_ helper functions.
5269 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5270
5271 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5272
5273 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5274 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5275 and regset_fill member function pointers.
5276 (nto_dummy_supply_regset): Adapt prototype.
5277
4e3269e3
UW
52782007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5279
5280 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5281 instead of current_regcache. Make REGS const.
5282 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5283 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5284 prototypes.
5285 * shnbsd-nat.c: Include "regcache.h".
5286 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5287 shnbsd_supply_reg.
5288 (shnbsd_store_inferior_registers): Pass current_regcache to
5289 shnbsd_fill_reg.
5290 * Makefile.in (shbsd-nat.o): Update dependencies.
5291
28f5035f
UW
52922007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5293
5294 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5295 instead of current_regcache.
5296 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5297 Make GREGSETP const, remove superfluous casts.
5298 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5299 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5300 superfluous casts.
5301 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5302 (supply_64bit_reg): Likewise
5303 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5304 Make GREGSETP const, adapt casts accordingly.
5305 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5306 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5307 casts accordingly.
5308 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5309 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5310 helper routines.
5311 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5312 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5313 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5314 Adapt prototypes.
5315 * mips-linux-nat.c: Include "regcache.h".
5316 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5317 current_regcache to mips{64}_(supply|fill)_ helper routines.
5318 (mips64_linux_regsets_fetch_registers): Likewise.
5319 (mips64_linux_regsets_store_registers): Likewise.
5320
5321 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5322 REGCACHE argument; replace current_regcache. Make REGS const.
5323 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5324 replace current_regcache.
5325 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5326 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5327 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5328 mipsnbsd_store_inferior_registers): Pass current_regcache to
5329 mipsnbsd_(supply|fill)_... helper routines.
5330
5331 * Makefile.in (mips-linux-nat.o): Update dependencies.
5332
26144df5
UW
53332007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5334
5335 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5336 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5337 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5338 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5339 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5340 * i386gnu-nat.c (store_fpregs): Likewise.
5341 * i386v4-nat.c (fill_fpregset): Likewise.
5342 * go32-nat.c (store_register, go32_store_registers): Likewise.
5343
c6b4e5a2
UW
53442007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5345
5346 * cris-tdep.c (supply_gregset): Rename to ...
5347 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5348 instead of current_regcache.
5349 (fetch_core_registers): Update call. Pass current_regcache.
5350
d683e2b7
UW
53512007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5352
5353 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5354 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5355 Use it instead of current_regcache.
5356 (supply_fparegset): Rename to ...
5357 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5358 Use it instead of current_regcache.
5359 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5360 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5361
390c1522
UW
53622007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5363
5364 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5365 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5366 use it instead of current_regcache.
5367 * alpha-tdep.h (struct regcache): Add forward declaration.
5368 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5369 alpha_fill_fp_regs): Update prototypes.
5370
5371 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5372 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5373 * alpha-linux-nat.c: Include "regcache.h".
5374 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5375 current_regcache to alpha_supply/fill_ routines.
5376
5377 * alphabsd-tdep.c: Include "regcache.h".
5378 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5379 pass it to alpha_supply_ routines. Make REGS const.
5380 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5381 pass it to alpha_fill_ routines.
5382 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5383 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5384 alphabsd_fill_fpreg): Update prototypes.
5385
5386 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5387 fill_fpregset, alphabsd_fetch_inferior_registers,
5388 alphabsd_store_inferior_registers): Pass current_regcache to
5389 alphabsd_supply/fill_ routines.
5390
5391 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5392 dependencies.
5393
647478e0
UW
53942007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5395
5396 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5397 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5398 instead of current_regcache.
5399 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5400 REGCACHE parameter, pass it to supply_ routines.
5401 (aix_thread_fetch_registers): Pass current_regcache to
5402 fetch_regs_user_thread and fetch_regs_kernel_thread.
5403
5404 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5405 Add REGCACHE parameter, use it instead of current_regcache.
5406 Call regcache_valid_p instead of register_cached.
5407 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5408 Also, pass REGCACHE to fill_ routines.
5409 (aix_thread_store_registers): Pass current_regcache to
5410 store_regs_user_thread and store_regs_kernel_thread.
5411
d817e083
UW
54122007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5413
5414 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5415 pointed to by GREGSETP.
5416
6a1872e4
UW
54172007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5418
5419 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5420 of regcache_raw_read_signed.
5421 (fill_fpregset): Use regcache_raw_collect instead of
5422 regcache_raw_read.
5423
6da397e0
KB
54242007-05-03 Kevin Buettner <kevinb@redhat.com>
5425
5426 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5427 point arguments, test explicitly for use of the EABI32 ABI
5428 instead of inferring this condition from tests on register
5429 sizes.
5430
2219d63c
KB
54312007-05-03 Kevin Buettner <kevinb@redhat.com>
5432
5433 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5434 prior to allocating its location.
5435
2afd3f0a
MR
54362007-05-02 Maciej W. Rozycki <macro@mips.com>
5437
5438 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5439 based on mips_abi_regsize() whose result is known in advance.
5440 (mips_o64_push_dummy_call): Likewise.
5441
3e00823e
UW
54422007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5443
5444 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5445 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5446
5447 * mips-linux-nat.c: Include "gregset.h".
5448 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5449 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5450 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5451 fill_fpregset): Move to mips-linux-nat.c.
5452
5453 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5454
81c4a259
UW
54552007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5456
5457 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5458 (read_register): ... here.
5459 (deprecated_write_register_gen): Remove, inline ...
5460 (write_register): ... here.
5461 * regcache.h (deprecated_read_register_gen): Remove prototype.
5462 (deprecated_write_register_gen): Likewise.
5463
5464 * remote-sim.c (gdbsim_store_register): Replace call to
5465 deprecated_read_register_gen with regcache_cooked_read.
5466 * target.c (debug_print_register): Replace calls to
5467 deprecated_read_register_gen and read_register with
5468 regcache_cooked_read.
5469
8bb42077
UW
54702007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5471
5472 * hpux-thread.c (hpux_thread_store_registers): Use
5473 regcache_raw_collect, not regcache_raw_read.
5474 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5475 not regcache_raw_write.
5476
6ed7ea50
UW
54772007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5478
5479 * gdbarch.sh: Remove deprecated_register_byte.
5480 * gdbarch.c, gdbarch.h: Regenerate.
5481 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5482 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5483
5484 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5485 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5486 read-only register caches. Make REGCACHE parameter const.
5487 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5488
5489 * mi/mi-main.c (old_regs): Remove.
5490 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5491 (register_changed_p): Reimplement to compare two register caches.
5492 (mi_cmd_data_list_changed_registers): Update caller.
5493 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5494 * mi/mi-interp.c (mi_interpreter_init): Do not call
5495 mi_setup_architecture_data.
5496
efc72ef5
UW
54972007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5498
5499 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5500 inline definition at the places the macros are used.
5501 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5502
7a61a01c
UW
55032007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5504
5505 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5506 "gdb_string.h".
5507 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5508 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5509 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5510 (rs6000_aix_regset_from_core_section): New function.
5511 (rs6000_aix_init_osabi): Register it.
5512 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5513 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5514 * rs6000-nat.c (CoreRegs): Do not define type.
5515 (fetch_core_registers, rs6000_core_fns): Remove.
5516 (_initialize_core_rs6000): Do not register it. Rename to ...
5517 (_initialize_rs6000_nat): ... this.
5518 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5519
ace186d4
KB
55202007-04-27 Kevin Buettner <kevinb@redhat.com>
5521
5522 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5523 (dwarf2_read_address): Sign extend return address as required by
5524 target architecture.
5525
89a7ee67
KB
55262007-04-27 Kevin Buettner <kevinb@redhat.com>
5527
5528 * solib-frv.c (lm_base): Bail out if the main executable has
5529 not been relocated.
5530
6afb1f32
UW
55312007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5532
5533 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5534 of FPCR register in fpregset.
5535
66a0218a
MR
55362007-04-27 Maciej W. Rozycki <macro@mips.com>
5537
5538 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5539 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5540
482f7fee
UW
55412007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5542
5543 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5544 * rs6000-nat.c (rs6000_wait): New function.
5545 (_initialize_core_rs6000): Install it as to_wait target method.
5546 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5547
1f480a5e
UW
55482007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5549
5550 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5551 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5552 * rs6000-nat.c (super_create_inferior): New variable.
5553 (rs6000_create_inferior): Make static. Adapt argument list. Call
5554 original version of create_inferior via super_create_inferior.
5555 (_initialize_core_rs6000): Install to_create_inferior target method.
5556
037a727e
UW
55572007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5558
5559 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5560 (aix_thread_xfer_partial): ... this.
5561 (init_aix_thread_ops): Install to_xfer_partial instead
5562 of deprecated_xfer_memory target method.
5563
5564 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5565 and inftarg.o, add inf-ptrace.o.
5566 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5567 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5568 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5569 (fetch_inferior_registers): Rename to ...
5570 (rs6000_fetch_inferior_registers): ... this. Make static.
5571 (store_inferior_registers): Rename to ...
5572 (rs6000_store_inferior_registers): ... this. Make static.
5573 (read_word, child_xfer_memory): Remove.
5574 (rs6000_xfer_partial): New function.
5575 (kernel_u_size): Remove.
5576 (_initialize_core_rs6000): Add inf_ptrace-based target.
5577 * Makefile.in (rs6000-nat.o): Update dependencies.
5578
f7dd0ed7
UW
55792007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5580
5581 * inf-ptrace.c: Include "gdb_stdint.h".
5582 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5583 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5584 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5585 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5586 (inf_ptrace_store_register): Likewise.
5587 * Makefile.in (inf-ptrace.o): Update dependencies.
5588
d9178763
UW
55892007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5590
5591 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5592 * configure.tgt (rs6000-*-*): Likewise.
5593 * config/rs6000/aix4.mh: Delete file.
5594 * config/rs6000/aix4.mt: Delete file.
5595 * config/rs6000/rs6000.mh: Delete file.
5596 * config/rs6000/rs6000.mt: Delete file.
5597
5598 * config/powerpc/nm-aix.h: Delete file.
5599 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5600
0d16ee5d
UW
56012007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5602
5603 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5604 Remove obsolete part of comment.
5605 (store_regs_user_thread): Use uint32_t temporaries when calling
5606 fill_sprs32.
5607 (store_regs_kernel_thread): Likewise. Add assertion to verify
5608 correct size of struct ptsprs members.
5609 (aix_thread_xfer_memory): Fix type of myaddr.
5610 (aix_thread_extra_thread_info): Fix compiler warning.
5611 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5612 (fetch_register, store_register): Adapt callers.
5613
1e8877aa
UW
56142007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5615
5616 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5617
b02f9d57
UW
56182007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5619
5620 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5621 and "regcache.h".
5622 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5623 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5624 (alpha_linux_regset_from_core_section): New function.
5625 (alpha_linux_init_abi): Install it.
5626 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5627 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5628 <sys/procfs.h>, and "gregset.h".
5629 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5630 Move from config/alpha/nm-linux.h.
5631 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5632 from alpha-nat.c.
5633 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5634 * alpha-nat.c: Remove #ifdef __linux__ section.
5635 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5636 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5637 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5638 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5639 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5640 (NATDEPFILES): Remove alpha-nat.o.
5641 * config/alpha/nm-linux.h: Delete file.
5642 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5643 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5644 (alpha-linux-tdep.o): Likewise.
5645
dda0c97e
UW
56462007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5647
5648 * mips-linux-nat.c: No longer include "gdbcore.h".
5649 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5650 (mips64_linux_register_addr): Likewise.
5651 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5652 mips64_linux_register_addr instead of register_addr.
5653 * mips-linux-tdep.c (mips_linux_register_addr,
5654 mips64_linux_register_addr): Move to mips-linux-nat.c.
5655 (register_addr): Remove.
5656 (register_addr_data, init_register_addr_data): Remove.
5657 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5658 (set_mips_linux_register_addr): Remove.
5659 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5660 * Makefile.in (mips-linux-nat.o): Update dependencies.
5661
910122bf
UW
56622007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5663
5664 * linux-nat.c (linux_register_u_offset): Remove.
5665 (linux_target_install_ops): New function.
5666 (linux_target): Use it.
5667 (linux_trad_target): New function.
5668 * linux-nat.h (linux_trad_target): Declare.
5669
5670 * alpha-linux-nat.c: Include "gdbcore.h".
5671 (alpha_linux_register_u_offset): New function.
5672 (_initialize_alpha_linux_nat): Use linux_trad_target.
5673
5674 * mips-linux-nat.c: Include "gdbcore.h".
5675 (mips_linux_register_u_offset): New function.
5676 (_initialize_mips_linux_nat): Use linux_trad_target.
5677
5678 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5679 * config/arm/nm-linux.h: Delete file.
5680
5681 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5682 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5683
5684 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5685 * config/ia64/nm-linux.h: Delete file.
5686
5687 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5688 * config/m32r/nm-linux.h: Delete file.
5689
5690 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5691 * config/m68k/nm-linux.h: Delete file.
5692
5693 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5694 * config/pa/nm-linux.h: Delete file.
5695
5696 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5697 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5698 * config/powerpc/nm-linux.h: Delete file.
5699
5700 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5701 * config/s390/nm-linux.h: Delete file.
5702
5703 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5704 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5705 * config/sparc/nm-linux.h: Delete file.
5706
5707 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5708 (mips-linux-nat.o): Likewise.
5709
de732108
UW
57102007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5711
5712 * core-aout.c: Delete file.
5713 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5714 (core-aout.o): Delete rule.
5715 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5716
5717 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5718
5719 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5720 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5721 KERNEL_U_ADDR): Remove.
5722
5723 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5724 (cannot_fetch_register, cannot_store_register): Remove.
5725 (fetch_register): Inline cannot_fetch_register and register_addr.
5726 (store_register): Inline cannot_store_register and register_addr.
5727 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5728 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5729 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5730 Remove.
5731
5732 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5733 (fetch_register): Inline register_addr.
5734 (store_register): Inline register_addr.
5735 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5736 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5737 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5738
5739 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5740 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5741 REGISTER_U_ADDR): Remove.
5742
5743 * hppa-linux-nat.c (register_addr): Rename to ...
5744 (hppa_linux_register_addr): ... this. Make static.
5745 (fetch_register, store_register): Adapt callers.
5746 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5747
5748 * ppc-linux-nat.c (kernel_u_size): Remove.
5749 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5750
5751 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5752 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5753 (NAT_FILE): Remove.
5754 * config/vax/nm-vax.h: Delete file.
5755
1f90c757
MS
57562007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5757
5758 * MAINTAINERS (Write After Approval): Add myself.
5759
bf1242a5
MS
57602007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5761
5762 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5763 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5764 (m68k_linux_sigcontext_reg_offset): Fix typo.
5765 (target_is_uclinux): New.
5766 (m68k_linux_inferior_created): New.
5767 (m68k_linux_get_sigtramp_info): Check for uClinux or
5768 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5769 uClinux.
5770 (_initialize_m68k_linux_tdep): Register
5771 m68k_linux_inferior_created.
5772
96998ce7
PA
57732007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5774
5775 * win32-nat.c (win32_detach): Remove delete_command call.
5776 Resume inferior with win32_resume instead of win32_continue.
5777
7e71daaa
JG
57782007-04-19 Jerome Guitton <guitton@adacore.com>
5779
5780 * ser-mingw.c (fd_is_file): New function.
5781 (file_select_thread): New function.
5782 (ser_console_wait_handle): Add special handling for files.
5783
3d1f72c2
DP
57842007-04-18 Denis Pilat <denis.pilat@st.com>
5785
5786 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5787 when missing from DW_TAG_subrange_type. Remove the handling of null
5788 return from die_type.
5789
9ecf7166
MR
57902007-04-18 Maciej W. Rozycki <macro@mips.com>
5791
5792 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5793 change to rearrange some brackets.
5794 (mips_n32n64_push_dummy_call): Likewise.
5795 (mips_o32_push_dummy_call): Likewise.
5796 (mips_o64_push_dummy_call): Likewise.
5797
b79599ff
DP
57982007-04-18 Denis Pilat <denis.pilat@st.com>
5799
5800 * infcmd.c (post_create_inferior): Start with a call to
3d1f72c2 5801 target_terminal_ours.
b79599ff 5802
06f9a1af
MR
58032007-04-17 Maciej W. Rozycki <macro@mips.com>
5804
5805 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5806 brackets.
5807 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5808 expressions.
5809 (mips_o32_push_dummy_call): Likewise.
5810 (mips_o64_push_dummy_call): Likewise.
5811
ad018eee
MR
58122007-04-17 Maciej W. Rozycki <macro@mips.com>
5813
5814 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5815 comment.
5816
e914cb17
MR
58172007-04-17 Maciej W. Rozycki <macro@mips.com>
5818
5819 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5820 comment.
5821 (mips_o32_push_dummy_call): Likewise.
5822
91934273
AS
58232007-04-17 Andreas Schwab <schwab@suse.de>
5824
5825 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5826 sal to be bigger than the end of the function.
5827
968b5391
MR
58282007-04-17 Maciej W. Rozycki <macro@mips.com>
5829 Nigel Stephens <nigel@mips.com>
5830
5831 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5832 argument alignment requirements when calculating stack space
5833 required. When aligning an arg register to eight bytes
5834 boundary, align stack_offset too. Write floating-point
5835 arguments to the appropriate integer register if need go there.
5836 (mips_o64_push_dummy_call): Likewise.
5837
e0cd558a
UW
58382007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5839
5840 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5841 "sig" arguments, add "regcache" argument.
5842 * gdbarch.c, gdbarch.h: Regenerate.
5843
5844 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5845 (handle_inferior_event): Call remove_single_step_breakpoints directly
5846 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5847
5848 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5849 Remove handling of !insert_breakpoints_p case.
5850 * arm-tdep.c (arm_software_single_step): Likewise.
5851 * cris-tdep.c (cris_software_single_step): Likewise.
5852 * mips-tdep.c (mips_software_single_step): Likewise.
5853 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5854 * sparc-tdep.c (sparc_software_single_step): Likewise.
5855 * spu-tdep.c (spu_software_single_step): Likewise.
5856
5857 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5858 * mips-tdep.h (mips_software_single_step): Likewise.
5859 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5860 * sparc-tdep.h (sparc_software_single_step): Likewise.
5861
06a86285
UW
58622007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5863
5864 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5865 when removing single-step breakpoints.
5866
25d5ea92
VP
58672007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5868
5869 * varobj.h (varobj_set_frozen): New
5870 (varobj_get_frozen): New.
5871 (varobj_update): New parameter explicit.
5872 * varobj.c (struct varobj): New fields frozen
5873 and not_fetched.
5874 (varobj_set_frozen, varobj_get_frozen): New.
5875 (install_new_value): Don't fetch values for
5876 frozen variable object, or children thereof. Allow
5877 a frozen variable object to have non-fetched value.
5878 (varobj_update): Allow updating child variables.
5879 Don't traverse frozen children.
5880 (new_variable): Initialize the frozen field.
5881 (c_value_of_variable): Return NULL for frozen
5882 variable without any value yet.
5883 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5884 'explicit'.
5885 (mi_cmd_var_create): Output the 'frozen' field,
5886 as soon as testsuite is adjusted to expect that field.
5887 (mi_cmd_var_set_frozen): New.
5888 (mi_cmd_var_update): Pass the 'explicit' parameter to
5889 varobj_update_one.
5890 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5891 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5892
6e3bbd1a
PB
58932007-04-13 Paul Brook <paul@codesourcery.com>
5894
5895 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5896 ieee_double.
5897 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5898
ea35711c
DJ
58992007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5900
5901 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5902 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5903 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5904 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5905 * Makefile.in: Remove references to deleted files.
5906 * README: Do not mention deleted ROM monitor interfaces.
5907 * defs.h (enum language): Delete language_scm.
5908 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5909 (dump_subexp_body_standard): Likewise.
5910 * parse.c (operator_length_standard): Likewise.
5911 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5912 * remote-mips.c: Do not include remote-utils.h.
5913 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5914 throughout.
5915 * value.c: Do not include scm-lang.h.
5916 (unpack_long): Delete scm_unpack call.
5917 * config/h8300/h8300.mt, config/mips/embed.mt,
5918 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5919 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5920 deleted files.
5921 * NEWS: Mention removed files.
5922
058b9c07
DJ
59232007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5924
5925 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5926 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5927
54d61198
DJ
59282007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5929
5930 * NEWS: Mention removal of HP aCC support.
5931
e499d0f1
DJ
59322007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5933
5934 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5935 first entry for static executables.
5936 (breakpoint_addr): Delete unused variable.
5937 (elf_locate_base): Search for _r_debug in static executables.
5938 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5939 also.
5940
4d5b2cd7
DJ
59412007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5942
5943 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5944 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5945 (mention): Remove bp_through_sigtramp support.
5946 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5947
46d57086
DJ
59482007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5949
5950 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5951 shlib events.
5952
d3169d93
DJ
59532007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5954
5955 * infrun.c: Doc fixes.
5956 (handle_inferior_event): Clarify debug message.
5957 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5958
8c9e4384
UW
59592007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5960
5961 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5962
9418f048
UW
59632007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5964
5965 * config/m68k/tm-monitor.h: Delete file.
5966 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5967 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5968 call moved to ...
5969 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5970 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5971
e6590a1b
UW
59722007-04-12 Luis Machado <luisgpm@br.ibm.com>
5973
5974 * gdbarch.sh (software_single_step): Change the return type
5975 from void to int and reformatted some comments to <= 80
5976 columns.
5977 * gdbarch.c, gdbarch.h: Regenerated.
5978 * alpha-tdep.c (alpha_software_single_step): Likewise.
5979 * alpha-tdep.h (alpha_software_single_step): Likewise.
5980 * arm-tdep.c (arm_software_single_step): Likewise.
5981 * cris-tdep.c (cris_software_single_step): Likewise.
5982 * mips-tdep.c (mips_software_single_step): Likewise.
5983 * mips-tdep.h (mips_software_single_step): Likewise.
5984 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5985 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5986 * sparc-tdep.c (sparc_software_single_step): Likewise.
5987 * sparc-tdep.h (sparc_software_single_step): Likewise.
5988 * spu-tdep.c (spu_software_single_step): Likewise.
5989 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5990 and act accordingly.
5991
58b38ee2
SE
59922007-04-11 Steve Ellcey <sje@cup.hp.com>
5993
5994 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5995 * configure: Regenerate.
5996 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5997
70f575cc
JK
59982007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5999
6000 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6001
d77b6808
JK
60022007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6003
6004 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6005 macros.
6006 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6007 distinct on the TYPE_STUB_SUPPORTED debug targets.
6008 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6009
b0b92586
JB
60102007-04-11 Joel Brobecker <brobecker@adacore.com>
6011
6012 * sparc-tdep.c (X_RS2): New macro.
6013 (sparc_skip_stack_check): New function.
6014 (sparc_analyze_prologue): Adjust PC past stack probing
6015 sequence if necessary.
6016
a489f789
AS
60172007-04-10 Andreas Schwab <schwab@suse.de>
6018
6019 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6020 register.
6021
b0b13bb4
DJ
60222007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6023
6024 * breakpoint.c (gdb_breakpoint_query): Really return an
6025 enum gdb_rc.
6026 (gdb_breakpoint): Likewise.
3f11755e
DJ
6027 * thread.c (gdb_list_thread_ids): Likewise.
6028 (gdb_thread_select): Likewise.
b0b13bb4
DJ
6029 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6030 (mi_cmd_thread_list_ids): Remove bogus initialization.
6031
1a92f856
DJ
60322007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6033
6034 * Makefile.in (SFILES): Remove hpacc-abi.c.
6035 (COMMON_OBS): Remove hpacc-abi.o.
6036 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6037 (hpacc-abi.o, hpread.o): Delete rules.
6038 * somread.c: Delete extern declarations from hpread.c.
6039 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6040 (som_symfile_finish): Do not call hpread_symfile_finish.
6041 (som_symfile_init): Do not call hpread_symfile_init.
6042 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6043 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6044 * hpacc-abi.c, hpread.c: Deleted.
6045
542c95c2
DJ
60462007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6047
6048 * solib-svr4.c (enable_break): Simplify return value.
6049 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6050
cfaefc65
AS
60512007-04-10 Andreas Schwab <schwab@suse.de>
6052
6053 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6054 l_ld_size, l_next_size, l_prev_size, l_name_size.
6055
6056 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6057 to extract addresses from link map.
6058 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6059 (LM_NEXT): Likewise.
6060 (LM_NAME): Likewise.
6061 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6062 (elf_locate_base): Likewise.
6063 (open_symbol_file_object): Likewise.
6064 (svr4_fetch_objfile_link_map): Likewise.
6065 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6066 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6067 l_ld_size.
6068 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6069 (svr4_lp64_fetch_link_map_offsets): Likewise.
6070
6071 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6072 removed members. Set l_ld_offset to -1 if not present.
6073
65cc4390
VP
60742007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6075
6076 Pass stderr of program run with "target remote |"
6077 via gdb_stderr.
6078 * serial.c (serial_open): Set error_fd to -1.
6079 * serial.h (struct serial): New field error_fd.
6080 (struct serial_opts): New field avail.
6081 * ser-pipe.c (pipe_open): Create another pair
6082 of sockets. Pass stderr to gdb.
6083 * ser-mingw.c (pipe_windows_open): Pass
6084 PEX_STDERR_TO_PIPE to pex_run. Initialize
6085 sd->error_fd.
6086 (pipe_avail): New.
6087 (_initialize_ser_windows): Hook pipe_avail.
6088 * ser-base.c (generic_readchar): Check if there's
6089 anything in stderr channel and route that to gdb_stderr.
6090
e9112110
PA
60912007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6092
6093 * dbxread.c (read_ofile_symtab): Move current_objfile
6094 clearing to after end_stabs.
6095
7f68ac27
AS
60962007-04-01 Andreas Schwab <schwab@suse.de>
6097
6098 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6099 gdbarch instead of current_gdbarch.
6100
e55dccf0
VP
61012007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6102
6103 * varobj.c (varobj_create): Keep varobj value
6104 NULL when evaluating the type.
6105
7c963485
PA
61062007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6107
6108 * NEWS: Mention new Windows CE support.
6109
ad527d2e
PA
61102007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6111
6112 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6113 the obsoletion stanza.
6114 * NEWS: Mention deleted targets.
6115
6116 * config/sh/tm-wince.h: Remove.
6117 * config/sh/wince.mt: Remove.
6118 * config/mips/tm-wince.h: Remove.
6119 * config/mips/wince.mt: Remove.
6120
6121 * wince.c: Remove.
6122 * wince-stub.c: Remove.
6123 * wince-stub.h: Remove.
6124 * Makefile.in (wince.o): Remove rule.
6125 (wince-stub.o): Likewise.
6126
6127 * mips-tdep.c (mips_next_pc): Make static.
6128 * mips-tdep.h (mips_next_pc): Remove declaration.
6129 * arm-tdep.c (arm_pc_is_thumb): Make static.
6130 (thumb_get_next_pc): Likewise.
6131 (arm_get_next_pc): Likewise.
6132 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6133 (arm_pc_is_thumb): Likewise.
6134 (thumb_get_next_pc): Likewise.
6135 (arm_get_next_pc): Likewise.
6136
7ce59000
DJ
61372007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6138
6139 * MAINTAINERS: Remove d10v entry.
6140 * Makefile.in (SFILES): Remove dwarfread.c.
6141 (COMMON_OBS): Remove dwarfread.o.
6142 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6143 (remote-est.o, rom68k-rom.o): Delete.
6144 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6145 target est, target rom68k, and DWARF 1.
6146 * configure.tgt: Mark d10v as removed.
6147 * dwarf2read.c: Doc update.
6148 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6149 and lnsize.
6150 (elf_locate_sections): Do not set them.
6151 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6152 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6153 * config/m68k/monitor.mt (TDEPFILES): Prune.
6154 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6155 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6156
20389057
DJ
61572007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6158
6159 * doublest.c (convert_floatformat_to_doublest): Use
6160 floatformat_classify.
6161 (floatformat_is_nan): Rename to...
6162 (floatformat_classify): ...this. Return more information.
6163 * doublest.h (enum float_kind): New.
6164 (floatformat_is_nan): Replace prototype...
6165 (floatformat_classify): ...with this one.
6166 * valprint.c (print_floating): Use floatformat_classify. Handle
6167 infinity.
6168
30b50213
DJ
61692007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6170
6171 * README: Mention ISO C library requirement.
6172
8807d78b
DJ
61732007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6174
6175 * Makefile.in (SFILES): Remove nlmread.c.
6176 (COMMON_OBS): Remove nlmread.o.
6177 (nlmread.o): Delete rule.
6178 * README: Delete reference to remote-st.c.
6179 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6180 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6181 GDB_OSABI_LYNXOS.
6182 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6183 (_initialize_i386_tdep): Do not reference them.
6184 * nlmread.c: Delete file.
6185 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6186 * target.c: Doc update.
6187 * thread.c: Delete commented include.
6188 * config/alpha/tm-alpha.h: Doc update.
6189
ced572fe
MR
61902007-03-30 Chris Dearman <chris@mips.com>
6191
6192 * utils.c (string_to_core_addr): Comment typo.
6193
8a9fc081
MR
61942007-03-30 Chris Dearman <chris@mips.com>
6195
6196 * mips-tdep.c: Comment typo.
6197
5f402660
UW
61982007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6199
6200 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6201 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6202 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6203 * config/powerpc/nm-ppc64-linux.h: Remove file.
6204 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6205 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6206 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6207 * infptrace.c (call_ptrace): Likewise.
6208 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6209 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6210 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6211 (store_register): Likewise.
6212
bbf90c81
JB
62132007-03-29 Joel Brobecker <brobecker@adacore.com>
6214
6215 * Makefile.in (varobj.o): Add missing dependency.
6216
243c053b
MS
62172007-03-29 Michael Snyder <msnyder@access-company.com>
6218
6219 * MAINTAINERS: Update my email address.
6220
0259addd
JB
62212007-03-29 Joel Brobecker <brobecker@adacore.com>
6222
6223 Add support for exception handling with multiple versions of
6224 the Ada runtime:
6225 * ada-lang.c: Update general comments on how Ada exception catchpoints
6226 are implemented.
6227 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6228 (__gnat_raise_nodefer_with_msg): Delete.
6229 (ada_unhandled_exception_name_addr_ftype): New type.
6230 (exception_support_info): New type.
6231 (ada_unhandled_exception_name_addr): Add forward declaration.
6232 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6233 (default_exception_support_info): New constant.
6234 (exception_support_info_fallback): Likewise.
6235 (exception_info): New global variable.
6236 (ada_exception_support_info_sniffer): New function.
6237 (ada_executable_changed_observer): Likewise.
6238 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6239 ada_unhandled_exception_name_addr.
6240 (ada_unhandled_exception_name_addr): Reimplement to match the
6241 latest Ada runtime implementation.
6242 (error_breakpoint_runtime_sym_not_found): Delete.
6243 (ada_exception_sym_name): Get the exception sym name from
6244 exception_info rather than hardcoding it.
6245 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6246 Update error handling.
6247 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6248
483367ee
DJ
62492007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6250
6251 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6252 (remote-st.o, uw-thread.o): Delete.
6253 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6254 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6255 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6256 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6257 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6258 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6259 rs6000-*-lynxos* to an obsoletion stanza.
6260 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6261 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6262 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6263 i[34567]86-*-netware*.
6264 * NEWS: Mention deleted targets.
6265
6266 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6267 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6268 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6269 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6270 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6271 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6272 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6273 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6274 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6275 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6276 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6277 config/rs6000/tm-rs6000ly.h: Delete files.
6278
3adda9d8
DJ
62792007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6280
6281 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6282 * interps.c (clear_interpreter_hooks): Do not clear
6283 deprecated_registers_changed_hook.
6284 * regcache.c (registers_changed): Do not call it.
6285 * top.c (deprecated_registers_changed_hook): Do not define it.
6286 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6287 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6288 (tui_remove_hooks): Do not remove it.
6289 (tui_selected_frame_level_changed_hook): Check for negative level.
6290 Use get_selected_frame.
6291 (tui_registers_changed_hook): Deleted.
6292
bf362611
JB
62932007-03-29 Joel Brobecker <brobecker@adacore.com>
6294
6295 * stabsread.c (add_undefined_type): Add extra parameter.
6296 Now handles nameless types separately.
6297 (struct nat): New type.
6298 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6299 New static variables.
6300 (read_type): Update calls to add_undefined_type.
6301 (add_undefined_type_noname): New function.
6302 (add_undefined_type_1): Renames from add_undefined_type.
6303 (cleanup_undefined_types_noname): New function.
6304 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6305 (cleanup_undefined_types): New handles nameless types separately.
6306 (_initialize_stabsread): Initialize our new static constants.
6307
436868fb
DP
63082007-03-29 Denis Pilat <denis.pilat@st.com>
6309
6310 * configure.ac: Test for signal.h.
6311 * configure, config.in: Regenerate.
6312
aaf9e9fd
DP
63132007-03-29 Denis Pilat <denis.pilat@st.com>
6314
6315 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6316 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6317
68070c10
PA
63182007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6319
6320 * arm-wince-tdep.c: New.
6321 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6322 (MT_CFLAGS): Delete.
6323 (TM_CLIBS): Delete.
6324 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6325 solib-legacy.o, solib-svr4.o, and remove wince.o.
6326 * configure.tgt (arm*-*-mingw32ce*): Add.
6327 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6328 (do_target_signal_to_host): Silence 'not used' warning.
6329 * config/arm/tm-wince.h: Remove.
6330
74174d2e
UW
63312007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6332
6333 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6334 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6335
6336 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6337 * config/ia64/tm-linux.h: Remove file.
6338 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6339 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6340 legacy_pc_in_sigtramp.
6341 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6342 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6343 Remove func_name argument.
6344 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6345
6346 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6347 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6348 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6349 (HAVE_STEPPABLE_WATCHPOINT): Define.
6350
6351 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6352 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6353 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6354 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6355 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6356 target_insert_watchpoint, target_remove_watchpoint): Remove.
6357 (FETCH_INFERIOR_REGISTERS): Define.
6358 * ia64-linux-nat.c (ia64_register_addr): Make static.
6359 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6360 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6361 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6362 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6363 (ia64_linux_stopped_by_watchpoint): Make static.
6364 (ia64_linux_can_use_hw_breakpoint): New function.
6365 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6366 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6367 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6368
53c5240f
PA
63692007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6370
6371 * linespec.c: Include language.h.
6372 (find_methods): Add language parameter. Call
6373 lookup_symbol_in_language. Pass language down.
6374 (add_matching_methods): Likewise. Call
6375 lookup_symbol_in_language.
6376 (add_constructors): Likewise.
6377 (find_method): Pass sym_class to collect_methods.
6378 (collect_methods): Add sym_class parameter. Pass language
6379 down.
6380 * symtab.c (lookup_symbol): Rename to ...
6381 (lookup_symbol_in_language): ... this. Add language
6382 parameter. Use passed language instead of current_language.
6383 (lookup_symbol): New as wrapper around
6384 lookup_symbol_in_language.
6385 (lookup_symbol_aux): Add language parameter. Use passed
6386 language instead of current_language.
6387 (search_symbols): Indent.
6388 * symtab.h (enum language): Forward declare.
6389 (lookup_symbol_in_language): Declare.
6390 (lookup_symbol): Update description.
6391 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6392 * ada-lang.c (restore_language): Remove.
6393 (lookup_symbol_in_language): Remove.
6394
8671a17b
PA
63952007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6396
6397 * breakpoint.c (bpstat_num): Add int *num parameter.
6398 * breakpoint.h (bpstat_num): Likewise.
6399 * infcmd.c (continue_command): Adjust to new bpstat_num
6400 interface.
6401 (program_info): Likewise.
6402
214197f9
UW
64032007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6404
6405 * config/sh/tm-sh.h: Remove file.
6406 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6407 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6408 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6409 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6410
bac718a6
UW
64112007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6412
6413 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6414 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6415 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6416 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6417 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6418 sequence if target_shortname is "remote".
6419
de6a76fd
DJ
64202007-03-27 Anton Blanchard <anton@samba.org>
6421
6422 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6423 instead of wordsize when looking for the LR in a stack frame.
6424
4fc771b8
DJ
64252007-03-27 Andreas Schwab <schwab@suse.de>
6426 Daniel Jacobowitz <dan@codesourcery.com>
6427
6428 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6429 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6430 argument. Update all callers.
6431 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6432 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6433 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6434 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6435 (dwarf2_frame_set_adjust_regnum): ...this.
6436 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6437 * rs6000-tdep.c: Include "dwarf2-frame.h".
6438 (rs6000_adjust_frame_regnum): Define.
6439 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6440 Register rs6000_adjust_frame_regnum.
6441
6442 * Makefile.in (rs6000-tdep.o): Update dependencies.
6443
9453113a
DJ
64442007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6445
6446 * Makefile.in: Add support for a "pdf" target.
6447
d2449ee8
DJ
64482007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6449
6450 * amd64-tdep.c (amd64_init_frame_cache): New function.
6451 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6452
a72d8a8e
MR
64532007-03-26 Nigel Stephens <nigel@mips.com>
6454 Maciej W. Rozycki <macro@mips.com>
6455
6456 * ui-out.c (ui_out_field_core_addr): Truncate address to
6457 TARGET_ADDR_BIT size before printing.
6458
5200c3f3 64592007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 6460 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
6461
6462 * remote-mips.c (mips_xfer_memory): Update prototype.
6463
16708cba
JB
64642007-03-22 Joel Brobecker <brobecker@adacore.com>
6465
6466 * symfile.h: #include "symtab.h"
6467
0fe514e3
DP
64682007-03-22 Denis Pilat <denis.pilat@st.com>
6469
6470 * utils.c (pagination_on_command, pagination_off_command):
6471 Remove useless prototypes.
6472
4a52dc15
PM
64732007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6474
6475 Fix PR pascal/2232.
6476 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6477 instead of TYPE_NAME for object base class name.
6478
6479
1c86fa97
KB
64802007-03-19 Kevin Buettner <kevinb@redhat.com>
6481
6482 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6483 Specify frame type in calls to frame_func_unwind().
6484
4e463ff5
DJ
64852007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6486
6487 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6488 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6489 (refine_prologue_limit): Delete.
6490 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6491 Assume lim_pc is set. Correct check for incomplete prologues.
6492 Do not skip clobbers of the frame pointer.
6493 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6494 sal.
6495
348473d5
NF
64962007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6497
6498 * frame.c (frame_pop): Check to see whether there's a frame to
6499 which we can pop first.
6500
a2f9cf0d
NF
65012007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6502
6503 * MAINTAINERS (Write After Approval): Add myself.
6504
569631c6
UW
65052007-03-09 Markus Deuling <deuling@de.ibm.com>
6506
6507 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6508 (handle_inferior_event): Remove unnecessary braces.
6509 * breakpoint.c (bpstat_what): Remove wrong comment.
6510
fe5febed
UW
65112007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6512
6513 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6514 (spu_gdbarch_init): Install it.
6515
9dea8ca2
UW
65162007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6517
6518 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6519 object types, not 0.
6520
7b3dc0b7
UW
65212007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6522
6523 * spu-tdep.c (spu_frame_align): New function.
6524 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6525
118dfbaf
UW
65262007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6527
6528 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6529 (spu_software_single_step): Likewise.
6530 (spu_read_pc, spu_write_pc): New functions.
6531 (spu_gdbarch_init): Install them.
6532
29e4017d
UW
65332007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6534
6535 * cli/cli-dump.c (struct callback_data): load_offset needs to
6536 have signed long type.
6537
6de5b849
JB
65382007-03-07 Joel Brobecker <brobecker@adacore.com>
6539
6540 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6541 Revert the previous change that had some unexpected side-effects
6542 on mips32.
6543 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6544 function to get the address of the calling instruction.
6545
7490ba4f
DP
65462007-03-07 Denis Pilat <denis.pilat@st.com>
6547
6548 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6549 get_selected_frame by deprecated_safe_get_selected_frame.
6550
861fb77c
MK
65512007-03-02 Mark Kettenis <kettenis@gnu.org>
6552
6553 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6554 "gdb_string.h". Don't include "nbsd-tdep.h".
6555 (SIZEOF_STRUCT_REG): Remove.
6556 (SHNBSD_SIZEOF_GREGS): New.
6557 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6558 (shnbsd_regset_from_core_section): New functions.
6559 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6560 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6561 shnbsd_supply_gregset, shnbsd_collect_gregset.
6562 (shnbsd_gregset): New variable.
6563 (shnbsd_init_abi): Set regset_from_core_section.
6564 (GDB_OSABI_NETBSD_CORE): New define.
6565 (shnbsd_core_osabi_sniffer): New function.
6566 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6567 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6568 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6569 nbsd-tdep.o.
6570 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6571
787cbe14
JB
65722007-02-28 Joel Brobecker <brobecker@adacore.com>
6573
6574 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6575 length of the types referenced by the new type CV ring.
6576
35f196d9
DJ
65772007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6578
6579 * frame.c (frame_pop, frame_observer_target_changed): Call
6580 reinit_frame_cache.
6581 (flush_cached_frames): Rename to reinit_frame_cache and delete
6582 old implementation.
6583 * frame.h (flush_cached_frames): Delete prototype and update comment.
6584
6585 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6586 reinit_frame_cache instead of flush_cached_frames. Do not call
6587 select_frame after reinit_frame_cache.
6588 * corelow.c (core_open): Likewise.
6589 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6590 * infrun.c (prepare_to_proceed, context_switch)
6591 (handle_inferior_event): Likewise.
6592 * linux-fork.c (fork_load_infrun_state): Likewise.
6593 * ocd.c (ocd_start_remote): Likewise.
6594 * remote-e7000.c (e7000_start_remote): Likewise.
6595 * remote-mips.c (device): Likewise.
6596 * thread.c (switch_to_thread): Likewise.
6597 * tracepoint.c (finish_tfind_command): Likewise.
6598 * gdbarch.c: Regenerated.
6599
c26f2453
JB
66002007-02-28 Jerome Guitton <guitton@adacore.com>
6601 Joel Brobecker <brobecker@adacore.com>
6602
6603 * gdbtypes.c (check_typedef): Do not replace stub type if
6604 the resolved type is not defined in the same objfile.
6605
7d900f1a
DJ
66062007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6607
6608 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6609
76038652 66102007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
6611
6612 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6613 symbol for Ada units when the symbol is defined using 't' rather
6614 than 'Tt' as symbol descriptor.
6615
d74fb156 66162007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
6617
6618 * config/mips/tm-nbsd.h: Delete file.
6619 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6620 * config/sh/tm-nbsd.h: Delete file.
6621 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6622
f8d225db
JB
66232007-02-28 Joel Brobecker <brobecker@adacore.com>
6624
6625 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6626 unused WRONG_PARAM value since it was recently deleted.
6627
1bbfb19a
NR
66282007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6629
6630 * varobj.c (varobj_update): Free temporary vectors.
6631
6f7f3f0d
UW
66322007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6633
6634 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6635 * config/powerpc/tm-linux.h: Delete file.
6636 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6637 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6638 (TEXT_SEGMENT_BASE): Do not redefine.
6639 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6640 from config/rs6000/tm-rs6000.h.
6641 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6642 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6643 (TEXT_SEGMENT_BASE): Remove.
6644 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6645 (rs6000_in_solib_return_trampoline): Remove.
6646 (SKIP_TRAMPOLINE_CODE): Remove.
6647 (rs6000_skip_trampoline_code): Remove.
6648 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6649 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6650 (FP0_REGNUM): Remove.
6651 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6652 (rs6000_set_host_arch_hook): Remove.
6653 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6654 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6655 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6656 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6657 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6658 * rs6000-nat.c: Include "rs6000-tdep.h".
6659 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6660 (set_host_arch): Rename to ...
6661 (rs6000_create_inferior): ... this. Make public.
6662 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6663 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6664 (rs6000_create_inferior): Remove.
6665 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6666 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6667 set_gdbarch_in_solib_return_trampoline, and
6668 set_gdbarch_skip_trampoline_code.
6669 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6670 from config/rs6000/tm-rs6000.h.
6671
63050a44 66722007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
6673
6674 * buildsym.c (record_producer): Do nothing if no producer is provided.
6675
63050a44 66762007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
6677
6678 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6679 to check changelist is non-NULL. Call error if the frontend tries
6680 to update a non-root variable.
6681
6682 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6683
93d42b30
DJ
66842007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6685
6686 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6687 (dwarf2_frame_sniffer): Update.
6688 (dwarf2_signal_frame_this_id): New function.
6689 (dwarf2_signal_frame_unwind): Use it.
6690 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6691 * frame.c (frame_func_unwind): Add this_type argument.
6692 (get_frame_func): Update.
6693 (frame_unwind_address_in_block): Add this_type argument and check it.
6694 Fix a typo.
6695 (get_frame_address_in_block): Update.
6696 * frame.h (enum frame_type): Move higher in the file.
6697 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6698 argument.
6699
6700 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6701 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6702 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6703 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6704 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6705 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6706 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6707 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6708 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6709 frame_func_unwind and frame_unwind_address_in_block to specify
6710 the frame type. Use frame_unwind_address_in_block instead of
6711 frame_pc_unwind in sniffers.
6712
206415a3
DJ
67132007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6714
6715 * frame.c (deprecated_selected_frame): Rename to...
6716 (selected_frame): ...this. Make static.
6717 (get_selected_frame, select_frame): Update.
6718 * frame.h (deprected_select_frame): Delete.
6719 (deprecated_safe_get_selected_frame): Update comments.
6720
6721 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6722 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6723 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6724 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6725 tui/tui.c: Replace references to deprecated_selected_frame.
6726
7313566f
FF
67272007-02-27 Fred Fish <fnf@specifix.com>
6728
6729 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6730 directly decrement the stack pointer, accumulate their operand into
6731 the stack offset, and mark the function as not being frameless.
6732
b6d373df
DJ
67332007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6734
6735 * arch-utils.c (selected_byte_order): New.
6736 * arch-utils.h (selected_byte_order): New prototype.
6737 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6738
2711e456
DJ
67392007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6740
6741 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6742 (default_symfile_offsets): Check VMA here. Update section VMAs.
6743
baef701f
DJ
67442007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6745
6746 * remote.c (init_remote_state): Add special handling for placeholder
6747 registers.
6748
05a4558a
DJ
67492007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6750
6751 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6752 (filenames_h): New variable.
6753 (clean): Clean up xml-builtin.c and stamp-xml.
6754 (arm-linux-nat.o): Update.
6755 * config/arm/linux.mh (TDEP_XML): Define.
6756 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6757 (arm_linux_has_wmmx_registers): New.
6758 (GET_THREAD_ID): Fix typo.
6759 (IWMMXT_REGS_SIZE): Define.
6760 (fetch_wmmx_regs, store_wmmx_regs): New.
6761 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6762 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6763 (super_xfer_partial, arm_linux_xfer_partial): New.
6764 (_initialize_arm_linux_nat): Use them.
6765 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6766 (xml_builtin_xfer_partial): New function.
6767 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6768 * NEWS: Update mention of iWMMXt support.
6769
ff6f572f
DJ
67702007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6771
6772 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6773 if there are no FPA registers.
6774 (arm_dwarf_reg_to_regnum): New function.
6775 (arm_register_type, arm_register_name): Return minimal values for
6776 unsupported registers.
6777 (arm_register_sim_regno): Handle iWMMXt registers.
6778 (arm_gdbarch_init): Record missing FPA registers if indicated by
6779 a target description. Recognize iWMMXt registers. Only register
6780 "info float" for FPA. Use ARM_NUM_REGS. Register
6781 arm_dwarf_reg_to_regnum.
6782 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6783 constants.
6784 (struct gdbarch_tdep): Add have_fpa_registers.
6785 * features/xscale-iwmmxt.xml: Update capitalization.
6786 * regformats/arm-with-iwmmxt.dat: Regenerated.
6787
c077150c
KB
67882007-02-24 Kevin Buettner <kevinb@redhat.com>
6789
6790 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6791
01c996c1
KB
67922007-02-23 Kevin Buettner <kevinb@redhat.com>
6793
6794 * MAINTAINERS (mep): New target.
6795
aeb43123
KB
67962007-02-23 Kevin Buettner <kevinb@redhat.com>
6797
6798 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6799 Richard Sandiford:
6800 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6801 (mep-tdep.o): New rule.
6802 * configure.tgt (mep-*-*): New target.
6803 * mep-tdep.c: New file.
6804 * config/mep/mep.mt: New file.
6805
115d86cf
UW
68062007-02-22 Markus Deuling <deuling@de.ibm.com>
6807
6808 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6809 BREAKPOINT_HIT and STOP_UNKNOWN.
6810
fef862e5
UW
68112007-02-22 Markus Deuling <deuling@de.ibm.com>
6812
6813 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6814
9a7d5afb
JB
68152007-02-20 Joel Brobecker <brobecker@adacore.com>
6816
6817 * gdb_expat.h (XMLCALL): Define if not already defined.
6818
81de920d
AS
68192007-02-20 Andreas Schwab <schwab@suse.de>
6820
6821 * Makefile.in (symfile.o): Update dependencies.
6822
cb5c8c39
DJ
68232007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6824
6825 * MAINTAINERS: Disable -Werror for cris simulator. Build
6826 sparc64-solaris2.10 instead of the broken sparc-elf.
6827 * solib-frv.c: Include "solib.h".
6828 * Makefile.in (solib-frv.o): Update.
6829 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6830 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6831 (xtensa_frame_this_id, xtensa_frame_prev_register)
6832 (xtensa_push_dummy_call): Use %p.
6833
e6bb342a
DJ
68342007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6835
6836 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6837 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6838 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6839 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6840 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6841 (sparc-linux-tdep.o): Update.
6842
ff7a4c00
MG
68432007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6844
6845 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6846 (xtensa_mask_t): Change mask field to be a separate array.
6847 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6848 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6849 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6850 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6851 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6852 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6853 (mask14, mask15): Rename to
6854 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6855 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6856 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6857 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6858 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6859 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6860 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6861 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6862 (xtensa_submask14, xtensa_submask15): New.
6863 (rmap): Follow strict aliasing rules doing static initialization.
6864
d9cc5895
DJ
68652007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6866
6867 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6868 handling from here...
6869 (tdesc_register_type): ...to here.
6870 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6871 * features/arm-core.xml: Use code_ptr and data_ptr.
6872
8756216b
DP
68732007-02-13 Denis Pilat <denis.pilat@st.com>
6874
6875 * varobj.h (enum varobj_update_error): New enum.
6876 * varobj.c (struct varobj_root): Add is_valid member.
6877 (varobj_get_type): Check for invalid varobj.
6878 (varobj_get_attributes): Likewise.
6879 (variable_editable):Likewise.
6880 (varobj_update): Likewise. Use varobj_update_error.
6881 (new_root_variable): Set root varobj as valid by default.
6882 (varobj_invalidate): New function.
6883 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6884 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6885 Use varobj_update_error.
6886
fe8e67fd
PM
68872007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6888
6889 Fix PR pascal/2223.
6890 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6891 Pascal language marker.
6892 * dwarf2read.c (set_cu_language): Likewise.
6893
c44537cf
CV
68942007-02-12 Corinna Vinschen <vinschen@redhat.com>
6895
6896 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6897 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6898 instead of target_terminal_init since inferior_ptid isn't set yet.
6899
20dad8ea
PA
69002007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6901
6902 * MAINTAINERS (Write After Approval): Add myself.
6903
4ac94eda
FF
69042007-02-09 Fred Fish <fnf@specifix.com>
6905
6906 Based on work by Apple Computer, Inc.
6907 * event-top.c (async_request_quit): Call quit() whenever either
6908 quit_flag is set or immediate_quit is set.
6909
b260b6c1
GDR
69102007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6911
6912 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6913 type to a pointer to const struct block.
6914 (ada_lookup_symbol_list): Don't cast away constness when calling
6915 remove_out_of_scope_renamings.
6916
69172007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6918
6919 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6920 address of 'filename'; it is always non null.
6921
0f5d55d8
JB
69222007-02-09 Joel Brobecker <brobecker@adacore.com>
6923
6924 * exec.c (add_to_section_table): Do not discard empty sections.
6925
fb1e4ffc
DJ
69262007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6927
6928 * features/Makefile, features/arm-with-iwmmxt.xml,
6929 features/gdbserver-regs.xsl, features/number-regs.xsl,
6930 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6931 * regformats/arm-with-iwmmxt.dat: Generate.
6932 * NEWS: Mention iWMMXt.
6933
123dc839
DJ
69342007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6935
6936 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6937 (xml-tdesc.o): Update.
6938 * xml-support.c: Add a comment.
6939 (gdb_xml_enums_boolean): New variable.
6940 (gdb_xml_parse_attr_enum): Use strcasecmp.
6941 * xml-support.h (gdb_xml_enums_boolean): Declare.
6942 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6943 next_regnum, and current_union.
6944 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6945 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6946 (field_attributes, union_children, reg_attributes, union_attributes)
6947 (vector_attributes, feature_attributes, feature_children): New.
6948 (target_children): Make static. Add <feature>.
6949 (tdesc_elements): Make static.
6950 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6951 (struct tdesc_feature, tdesc_feature_p): New types.
6952 (struct target_desc): Add features member.
6953 (struct tdesc_arch_data, tdesc_data): New.
6954 (target_find_description): Clarify error message. Warn about
6955 ignored register descriptions.
6956 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6957 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6958 (tdesc_data_cleanup, tdesc_numbered_register)
6959 (tdesc_numbered_register_choices, tdesc_find_register)
6960 (tdesc_register_name, tdesc_register_type)
6961 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6962 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6963 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6964 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6965 (tdesc_create_feature, tdesc_record_type): New.
6966 (free_target_description): Free features.
6967 (_initialize_target_descriptions): Initialize tdesc_data.
6968 * arch-utils.c (default_remote_register_number): New.
6969 * arch-utils.h (default_remote_register_number): New prototype.
6970 * target-descriptions.h (set_tdesc_pseudo_register_name)
6971 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6972 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6973 (tdesc_numbered_register, tdesc_numbered_register_choices)
6974 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6975 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6976 (tdesc_create_reg): Declare.
6977 * gdbarch.sh (remote_register_number): New entry.
6978 * gdbarch.c, gdbarch.h: Regenerate.
6979 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6980 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6981
6982 * arm-tdep.c (arm_register_aliases): New.
6983 (arm_register_name_strings): Rename to...
6984 (arm_register_names): ...this. Make const. Delete the old version.
6985 (current_option, arm_register_byte): Delete.
6986 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6987 (value_of_arm_user_reg): New.
6988 (arm_gdbarch_init): Verify any described registers. Call
6989 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6990 for standard register names.
6991 (_initialize_arm_tdep): Do not adjust arm_register_names.
6992 * user-regs.c (struct user_reg): Add baton member.
6993 (append_user_reg, user_reg_add_builtin, user_regs_init)
6994 (user_reg_add, value_of_user_reg): Use a baton for user
6995 register functions.
6996 * std-regs.c: Update.
6997 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6998 (user_reg_add): Add baton argument.
6999 * NEWS: Mention target description register support.
7000 * features/arm-core.xml, features/arm-fpa.xml: New.
7001 * eval.c (evaluate_subexp_standard): Allow ptype $register
7002 when the program is not running.
7003
87604222
NR
70042007-02-09 Nick Roberts <nickrob@snap.net.nz>
7005
7006 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7007
ee4f0f76
DJ
70082007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7009
7010 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7011 info->disassembler_options to "any".
7012
7af9851d
DJ
70132007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7014
7015 * varobj.c (install_new_value): Only call value_get_print_value
7016 if changeable.
7017
8944021f
DJ
70182007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7019
7020 Reported by timeless@gmail.com:
7021 * gdb/target.c (target_flash_erase): Do not return void value.
7022 (target_flash_done): Likewise.
7023 * gdb/cli/cli-cmds.c (source_command): Likewise.
7024
70252007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 7026
4ac94eda 7027 Based on work by Apple Computer, Inc.
5f960e00
FF
7028 * event-top.c (handle_sigint): Set quit_flag.
7029 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7030 if quit_flag has already been reset.
7031
4998c1df
DJ
70322007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7033
7034 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7035 up.
7036
79da184e
FF
70372007-02-08 Fred Fish <fnf@specifix.com>
7038
7039 * defs.h (request_quit): Remove declaration.
7040 * utils.c (request_quit): Remove definition.
7041
3c77c82a
DJ
70422007-02-08 Joel Brobecker <brobecker@gnat.com>
7043 Jan Kratochvil <jan.kratochvil@redhat.com>
7044 Daniel Jacobowitz <dan@codesourcery.com>
7045
7046 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7047 (skip_prologue): Allow bl->blrl used by PIC code.
7048
c1b6e682
DJ
70492007-02-08 Mark Kettenis <kettenis@gnu.org>
7050 Daniel Jacobowitz <dan@codesourcery.com>
7051
7052 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7053 initialize tmp_obstack.
7054 * p-valprint.c (pascal_object_print_value_fields)
7055 (pascal_object_print_value): Likewise.
7056
fe5dedf4
DJ
70572007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7058
7059 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7060
3e461478
MK
70612007-02-08 Mark Kettenis <kettenis@gnu.org>
7062
7063 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7064 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7065
fc6e0168
DJ
70662007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7067
7068 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7069 (xml_cache): New.
7070 (tdesc_parse_xml): Cache expanded descriptions.
7071
108546a0
DJ
70722007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7073
7074 * Makefile.in (XMLFILES): New.
7075 (COMMON_OBS): Add xml-builtin.o.
7076 (xml-builtin.c, stamp-xml): New rules.
7077 (xml-tdesc.o): Update.
7078 * features/feature_to_c.sh: New file.
7079 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7080 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7081 (gdb_xml_start_element): Initialize scope after possibly reallocating
7082 scopes. Move cleanup later. Handle the XInclude description
7083 specially.
7084 (gdb_xml_end_element): Only parse the body if there is a current element.
7085 Call XML_DefaultCurrent if there is no element.
7086 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7087 (struct xinclude_parsing_data, xinclude_start_include)
7088 (xinclude_end_include, xml_xinclude_default)
7089 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7090 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7091 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7092 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7093 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7094 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7095 XInclude directives. Use the compiled in DTD.
7096 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7097 directory name. Do not warn here.
7098 (file_read_description_xml): Update call. Warn here instead. Pass
7099 a dirname as baton.
7100 (fetch_available_features_from_target): New.
7101 (target_read_description_xml): Use it.
7102 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7103 to handle XInclude.
7104 * features/xinclude.dtd: New file.
7105
b5057acd
DJ
71062007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7107
7108 * linux-thread-db.c (check_for_thread_db): Return early if we have
7109 no libthread_db support.
7110
6a089cf2
DJ
71112007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7112
7113 * mi/mi-parse.h: Include <sys/time.h>.
7114
9fbcbb40
NR
71152007-02-05 Nick Roberts <nickrob@snap.net.nz>
7116
7117 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7118 instead of print_variable_value to print values.
7119
b3d2152a
NR
71202007-02-03 Nick Roberts <nickrob@snap.net.nz>
7121
7122 * mi/mi-main.c: Numerous formatting changes.
7123 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7124 removed in my previous change.
7125
79f0a97a
NR
71262007-02-03 Eli Zaretskii <eliz@gnu.org>
7127
7128 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7129 Use 1000000L instead of 1000000.
7130
95a98c01 71312007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
7132
7133 Based on work by Apple Computer, Inc.
7134
7135 * configure.ac: Test for sys/resource.h and getrusage.
7136 * configure, config.in: Regenerate.
7137
7138 * mi/mi-main.c: Include <sys/resource.h> if present.
7139 (rusage): Declare if HAVE_GETRUSAGE.
7140 (current_command_ts, do_timings): New static variables.
7141 (timestamp, print_diff_now, print_diff, timeval_diff):
7142 New static timing functions.
7143 (mi_cmd_enable_timings): New function for new MI command.
7144 (captured_mi_execute_command, mi_execute_async_cli_command):
7145 Call timing functions.
7146
7147 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7148 -enable-timings.
7149
7150 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7151
7152 * mi/mi-parse.h: (mi_timestamp): New structure.
7153 (mi_parse): Add mi_timestamp* member.
7154
99b3d574
DP
71552007-02-02 Denis Pilat <denis.pilat@st.com>
7156
7157 * thread.c (make_cleanup_restore_current_thread): New function.
7158 (info_threads_command): Use of make_cleanup_restore_current_thread
7159 to restore the current thread and the selected frame.
7160 (restore_selected_frame): New function.
7161 (struct current_thread_cleanup): Add frame_id field.
7162 (do_restore_current_thread_cleanup): Add restoring of the selected
7163 frame.
7164 (make_cleanup_restore_current_thread): Likewise.
7165 (thread_apply_all_command): backup the selected frame while
7166 entering the function and restore it at exit.
7167 (thread_apply_command): Likewise.
7168
d3c598de
DP
71692007-02-02 Denis Pilat <denis.pilat@st.com>
7170
7171 * MAINTAINERS (Write After Approval): Add myself to the list.
7172
b69733ab 71732007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
7174
7175 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7176 (m32r_store_register): Ditto.
7177
b69733ab 71782007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
7179
7180 * ser-mingw.c (pipe_windows_open)
7181 (pipe_windows_read, pipe_windows_write): Declare
7182 variables at the top of the function.
7183
8da61cc4
DJ
71842007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7185
7186 * doublest.c (floatformat_from_length): Use the right element from
7187 gdbarch floatformats.
7188 (floatformat_from_type, extract_typed_floating)
7189 (store_typed_floating): Likewise.
7190 * doublest.h: Remove declarations for undefined floatformat arrays.
7191 * gdbarch.sh (float_format, double_format, long_double_format): Change
7192 to pairs.
7193 (pformat): Update for pairs.
7194 * gdbarch.c, gdbarch.h: Regenerated.
7195 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7196 (floatformats_ieee_double_littlebyte_bigword)
7197 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7198 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7199 (floatformats_vax_d): New variables.
7200 (builtin_type_ieee_single, builtin_type_ieee_double)
7201 (builtin_type_arm_ext, builtin_type_ia64_spill)
7202 (builtin_type_ia64_quad): Replace arrays with individual types.
7203 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7204 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7205 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7206 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7207 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7208 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7209 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7210 unused and endian-specific types.
7211 (recursive_dump_type): Update for floatformat pairs.
7212 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7213 (build_gdbtypes): Use build_flt.
7214 (_initialize_gdbtypes): Update set of initialized types.
7215 * gdbtypes.h: Update declarations to match gdbtypes.c.
7216 (struct main_type): Store a pointer to two floatformats.
7217 * arch-utils.c (default_float_format, default_double_format): Delete.
7218 * arch-utils.h (default_float_format, default_double_format): Delete.
7219
7220 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7221 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7222 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7223 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7224 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7225
87680a14
JB
72262007-01-29 Joel Brobecker <brobecker@adacore.com>
7227
7228 * target.c (maintenance_print_target_stack): New function.
7229 (initialize_targets): Add new "maintenance print target-stack"
7230 command.
7231
1c3d648d
MK
72322007-01-28 Mark Kettenis <kettenis@gnu.org>
7233
7234 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7235
607269ae
DJ
72362007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7237
7238 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7239 (struct dwarf2_loclist_baton): Likewise.
7240
40c03ae8
EZ
72412007-01-27 Eli Zaretskii <eliz@gnu.org>
7242
7243 * cli/cli-script.c: Include breakpoint.h.
7244 (build_command_line): Require arguments only for if and while
7245 commands.
7246 (get_command_line, execute_user_command, execute_control_command):
7247 Fix wording of warning messages.
7248 (print_command_lines): Print breakpoint commands.
7249 (execute_control_command): Call commands_from_control_command to
7250 handle the `commands' command inside a body of a flow-control
7251 command.
7252 (read_next_line): Recognize the `commands' command and build a
7253 command line structure for it.
7254 (recurse_read_control_structure, read_command_lines): Handle
7255 `commands' similarly to `if' and `while'.
7256
7257 * breakpoint.c (get_number_trailer): Document the special meaning
7258 of NULL as the first argument PP.
7259 (commands_from_control_command): New function.
7260
7261 * breakpoint.h (commands_from_control_command): Add prototype.
7262
7263 * defs.h (commands_control): New enumerated value for enum
7264 command_control_type.
7265
4b9eee8c
JB
72662007-01-26 Joel Brobecker <brobecker@adacore.com>
7267
7268 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7269 (ada_exception_sal): Update accordingly.
7270
e1f48ead
JK
72712007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7272
7273 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7274 * NEWS: Describe CHAR array vs. string identifcation rules.
7275
e150acc7
PB
72762007-01-25 Paul Brook <paul@codesourcery.com>
7277
7278 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7279
10fb19b6
JB
72802007-01-24 Jim Blandy <jimb@codesourcery.com>
7281
7282 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7283 expression is empty, bother to return the 'optimized out' value we
7284 construct. (Thanks to Carl Burch.)
7285
85d93f1d
VP
72862007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7287
7288 * varobj.c (c_value_of_root, c_value_of_child)
7289 (cplus_describe_child): Don't call release_value.
7290
fcbd8a5c
TS
72912007-01-24 Thiemo Seufer <ths@mips.com>
7292
7293 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7294 initialization.
7295
2024f65a
VP
72962007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7297
7298 Refactor getting children name, value and type access
7299 for varobjs in C++.
7300 * varobj.c (get_type_deref): Remove.
7301 (adjust_value_for_child_access): New.
7302 (c_number_of_children): Use the above.
7303 (c_describe_child): Likewise.
7304 (enum accessibility): New.
7305 (match_accessibility): New function.
7306 (cplus_describe_child): New function.
7307 (cplus_name_of_child, cplus_value_of_child)
7308 (cplus_type_of_child): Reimplement in terms
7309 of cplus_describe_child.
7310 (cplus_number_of_children): Use
7311 adjust_value_for_child_access.
7312
6e2a9270
VP
73132007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7314
7315 Fix computation of the 'editable' attribute and
7316 value changeability for for references.
7317 * varobj.c (get_value_type): New function.
7318 (c_variable_editable): Use get_value_type.
7319 (varobj_value_is_changeable): Likewise.
7320
56163ce1
JB
73212007-01-24 Joel Brobecker <brobecker@adacore.com>
7322
7323 * source.c (find_and_open_source): Try rewriting the source
7324 path inside filename if dirname is NULL.
7325
8c6860bb
JB
73262007-01-24 Joel Brobecker <brobecker@adacore.com>
7327
7328 * dwarf2read.c (add_partial_symbol): Create an extra partial
7329 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7330 (new_symbol): Likewise for symbols.
7331
6db6d2ca
NR
73322007-01-24 Nick Roberts <nickrob@snap.net.nz>
7333
7334 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7335
7d85ee02
VP
73362007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7337
7338 * value.c (value_primitive_field): Copy the full 'location'
7339 contents, instead of assuming that copying ADDRESS will
7340 bring over everything in the union. Remove obsolete comment.
7341
f79b9530
DJ
73422007-01-23 Masaki Muranaka <monaka@monami-software.com>
7343
7344 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7345 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7346 (m32c_m16c_pointer_to_address): Separate code from declarations.
7347
08d8bcd7
DJ
73482007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7349
7350 * target.c (update_current_target): Correct typo.
7351
57fdbbbe
CV
73522007-01-22 Masaki Muranaka <monaka@monami-software.com>
7353
7354 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7355 declaration.
7356
58894217
JK
73572007-01-11 Andrew Cagney <cagney@redhat.com>
7358 Daniel Jacobowitz <dan@codesourcery.com>
7359 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 * dwarf2-frame.c (execute_cfa_program): New support of
7362 `DW_CFA_GNU_negative_offset_extended'.
7363
9ebce043
DJ
73642007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7365
7366 * NEWS: Mention flash support for "load" and new remote packets.
7367
973d738b
DJ
73682007-01-21 Markus Deuling <deuling@de.ibm.com>
7369
7370 * breakpoint.c (delete_command): Skip redundant loop iterations.
7371
7b9ee6a8
DJ
73722007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7373
7374 * gdbarch.sh (register_type): Update comment.
7375 * gdbarch.h: Regenerated.
7376 * arch-utils.c (generic_register_size): Call register_type.
7377 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7378 * m32c-tdep.c (check_for_saved): Likewise.
7379 * mips-tdep.c (mips_print_register, print_gp_register_row)
7380 (mips_print_registers_info): Likewise.
7381 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7382 Likewise.
7383 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7384 (sh64_do_register, sh64_print_register)
7385 (sh64_media_print_registers_info): Likewise.
7386 * tui/tui-regs.c (tui_register_format): Likewise.
7387
11309657
DJ
73882007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7389
7390 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7391
7392 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7393 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7394 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7395 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7396 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7397 (make_symbol_completion_list): Likewise.
7398
cb1df416
DJ
73992007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7400 Daniel Jacobowitz <dan@codesourcery.com>
7401
7402 * buildsym.c (end_symtab): Use preallocated symtab if available.
7403 Fill in SYMBOL_SYMTAB.
7404 * buildsym.h (struct subfile): Add symtab member.
7405 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7406 (struct file_entry): Add symtab.
7407 (free_cu_line_header): New function.
7408 (read_file_scope): Use it. Save line_header in the cu. Process
7409 lines before DIEs.
7410 (add_file_name): Initialize new symtab member.
7411 (dwarf_decode_lines): Create symtabs for included files.
7412 (new_symbol): Set SYMBOL_SYMTAB.
7413 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7414 (search_symbols): Likewise.
7415 * symtab.h (struct symbol): Add symtab member.
7416 (SYMBOL_SYMTAB): Define.
7417
727da900
DJ
74182007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7419
7420 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7421
7b6b9e83
DJ
74222007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7423
7424 * arch-utils.c (show_endian): Correct reversed condition.
7425
e767400c
JK
74262007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 * MAINTAINERS (Write After Approval): Add myself.
7429
b20d8971
VP
74302007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7431 Vladimir Prus <vladimir@codesourcery.com>
7432
7433 Fix 'selected frame' varobjs.
7434 * varobj.c (struct varobj): Remove the error field.
7435 (varobj_set_value): Don't check var->error.
7436 (install_new_value): Don't set var->error.
7437 (varobj_update): Always pass the new value
7438 of the root via install_new_value.
7439 (create_child): Don't set error field.
7440 (new_variable): Likewise.
7441 (c_value_of_root): Always reevaluate the value
7442 of selected frame varobjs in the selected frame.
7443 Don't call reinit_frame_cache.
7444
7ef2b397
JB
74452007-01-15 Joel Brobecker <brobecker@adacore.com>
7446
7447 * source.c (_initialize_source): Improve the help text of
7448 the substitute-path commands.
7449
1208538e
MK
74502007-01-14 Mark Kettenis <kettenis@gnu.org>
7451
7452 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7453 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7454 (frv_skip_prologue): Remove prototypes.
7455 (frv_adjust_breakpoint_address): Renamed from
7456 frv_gdbarch_adjust_breakpoint_address.
7457 (frv_gdbarch_init): Adjust.
7458
765f065a
MK
74592007-01-13 Mark Kettenis <kettenis@gnu.org>
7460
5e66aab2
MK
7461 * gdbarch.sh (deprecated_extract_return_value)
7462 (deprecated_store_return_value): Remove.
7463 (extract_return_value, store_return_value): Remove default values.
7464 * gdbarch.c, gdbarch.h: Regenerate.
7465 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7466 (legacy_store_return_value): Remove.
7467 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7468 Remove.
7469
56178203
MK
7470 * mi/mi-main.c: Remove obsolete comment.
7471
23303b2e
MK
7472 * regcache.c, regcache.h (deprecated_register_bytes)
7473 (deprecated_read_register_bytes)
7474 (deprecated_write_register_bytes): Remove.
7475
765f065a
MK
7476 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7477 Don't forget to move destination pointer.
7478
610acfff
MK
74792007-01-01 Mark Kettenis <kettenis@gnu.org>
7480
7481 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7482
12102450
UW
74832007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7484
7485 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7486 past entry function with recent newlib.
7487
c8b2f53c
VP
74882007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7489
7490 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7491 introduction. Specify -var-update more exactly.
7492
d57df5e4
DJ
74932007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7494
7495 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7496
03f597d5
JB
74972007-01-10 Jim Blandy <jimb@codesourcery.com>
7498
7499 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7500 the Global Maintainers' invitation to be a global maintainer.
7501
fd48f117
DJ
75022007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7503
7504 * infrun.c (singlestep_pc): New variable.
7505 (resume): Set singlestep_pc.
7506 (context_switch): Add a debugging message. Flush the frame cache.
7507 (handle_inferior_event): Add debugging messages. Handle thread
7508 hops when a software single step has completed. Let context_switch
7509 handle flushing the frame cache.
7510
23181151
DJ
75112007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7512
7513 * NEWS: Mention target descriptions, "set tdesc filename",
7514 "unset tdesc filename", "show tdesc filename", and
7515 qXfer:features:read.
7516 * arch-utils.c (choose_architecture_for_target): New function.
7517 (gdbarch_info_fill): Call it.
7518 * target-descriptions.c (struct property): Make members non-const.
7519 (struct target_desc): Add arch member.
7520 (target_description_filename): New variable.
7521 (target_find_description): Try via XML first.
7522 (tdesc_architecture): New.
7523 (free_target_description, make_cleanup_free_target_description): New.
7524 (set_tdesc_property): Call xstrdup.
7525 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7526 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7527 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7528 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7529 * target-descriptions.h (tdesc_architecture)
7530 (make_cleanup_free_target_description, set_tdesc_architecture): New
7531 prototypes.
7532 * Makefile.in (SFILES): Add xml-tdesc.c.
7533 (COMMON_OBS): Add xml-tdesc.o.
7534 (target-descriptions.o): Update.
7535 (xml-tdesc.o): New rule.
7536 * xml-tdesc.c, xml-tdesc.h: New files.
7537 * remote.c (PACKET_qXfer_features): New enum.
7538 (remote_protocol_features): Add qXfer:features:read.
7539 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7540 (_initialize_remote): Register qXfer:features:read.
7541 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7542 * features/gdb-target.dtd: New file.
7543
3e9cb5f4
DJ
75442007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7545
7546 * copyright.sh: Clarify error.
7547
818f79f6
DJ
75482007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7549
7550 * symtab.c (matching_bfd_sections): Fix VMA matching for
7551 prelinked objects.
7552
f7a6bb70
DJ
75532007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7554
7555 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7556 nested symbols.
7557
20ac0504
DJ
75582007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7559
7560 Updated copyright notices for most files.
7561
85bb0718
DJ
75622007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7563
7564 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7565
aa28a74e
DJ
75662007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7567
7568 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7569 exec_prefix.
7570 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7571 '${prefix}'.
7572 * configure, config.in: Regenerate.
7573 * defs.h (debug_file_directory): Declare.
7574 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7575 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7576 relocate it if DEBUGDIR_RELOCATABLE.
7577 * symfile.c (debug_file_directory): Make non-static.
7578 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7579 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7580 (_initialize_symfile): Don't initialize debug_file_directory here.
7581
1cfd2c3e
JB
75822007-01-09 Jim Blandy <jimb@codesourcery.com>
7583
7584 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7585 statements.
7586
5efde112
DJ
75872007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7588
7589 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7590 frame_unwind_register to recurse.
7591 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7592 (alpha_heuristic_frame_prev_register): Likewise.
7593 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7594 * m32c-tdep.c (m32c_prev_register): Likewise.
7595 * frame.c (frame_register_unwind_location): Remove FIXME.
7596
4de1f557
DJ
75972007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7598 Eli Zaretskii <eliz@gnu.org>
7599
7600 * copyright.sh: New file.
7601
ca4ca11e
DJ
76022007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7603
7604 * configure.ac: Check for XML_StopParser.
7605 * xml-support.c (gdb_xml_body_text): Check for an error.
7606 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7607 (gdb_xml_end_element_wrapper): Likewise.
7608 * config.in, configure: Regenerated.
7609
57e66780
DJ
76102007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7611
7612 * varobj.c (install_new_value): Always update print_value.
7613 (value_get_print_value): Immediately return NULL for missing
7614 values.
7615
b523a1fd
JB
76162007-01-08 Jim Blandy <jimb@codesourcery.com>
7617
7618 * configure.ac: Tighten pattern for extracting value of
7619 DEPRECATED_TM_FILE from the target makefile fragment.
7620 * configure: Regenerated.
7621
3d799a95
DJ
76222007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7623
7624 * linux-nat.c (struct simple_pid_list): Add status.
7625 (add_to_pid_list): Record the PID's status.
7626 (linux_record_stopped_pid): Likewise. Make static.
7627 (pull_pid_from_list): Return the saved status.
7628 (linux_nat_handle_extended): Deleted.
7629 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7630 Make static. Handle non-SIGSTOP for a new thread's first signal.
7631 (flush_callback): Handle unexpected pending signals.
7632 (linux_nat_wait): Update calls to changed functions.
7633 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7634 Remove prototypes for newly static functions.
7635
9acbedc0
UW
76362007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7637
7638 * gdbarch.sh (value_from_register): New gdbarch function.
7639 * gdbarch.c, gdbarch.h: Regenerate.
7640 * findvar.c (default_value_from_register): New function.
7641 (value_from_register): Use gdbarch_value_from_register.
7642 * value.h (default_value_from_register): Declare.
7643 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7644 spu_value_to_register): Remove.
7645 (spu_value_from_register): New function.
7646 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7647 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7648 Call set_gdbarch_value_from_register.
7649 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7650 s390_value_to_register): Remove.
7651 (s390_value_from_register): New function.
7652 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7653 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7654 Call set_gdbarch_value_from_register.
7655
f822c95b
DJ
76562007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7657
7658 * NEWS: Add "set sysroot" and "show sysroot".
7659 * solib.c (solib_absolute_prefix): Delete. Replace
7660 all uses with gdb_sysroot.
7661 (_initialize_solib): Add "set sysroot" and "show sysroot".
7662 Make "solib-absolute-prefix" an alias to it.
7663
00fa51f6
UW
76642007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7665
7666 * frame.c (get_frame_register_bytes): New function.
7667 (put_frame_register_bytes): Likewise.
7668 * frame.h (get_frame_register_bytes): Declare.
7669 (put_frame_register_bytes): Likewise.
7670 * findvar.c (value_from_register): Always construct lval_register
7671 values. Use get_frame_register_bytes.
7672 * valops.c (value_assign): Use get_frame_register_bytes and
7673 put_frame_register_bytes.
7674
a95c9d06
JB
76752007-01-08 Jim Blandy <jimb@codesourcery.com>
7676
7677 * MAINTAINERS: Update Stan Shebs' email address.
7678
4ed6b5be
JB
76792007-01-07 Joel Brobecker <brobecker@adacore.com>
7680
7681 * ada-lang.c (is_known_support_routine): Improve the implementation.
7682
9bbc9174
JB
76832007-01-06 Joel Brobecker <brobecker@adacore.com>
7684
7685 * ada-lang.c: Add include of source.h.
7686 (is_known_support_routine): Improve the check verifying that the file
7687 associated to this frame exists.
7688 * Makefile.in (ada-lang.o): Add dependency on source.h.
7689
44a81774
JB
76902007-01-07 Jim Blandy <jimb@codesourcery.com>
7691
7692 * ax-general.c (ax_const_l): Select proper opcode for the given
7693 value.
7694
fcd19eb1 76952007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
7696
7697 * varobj.c (c_value_of_root): Don't select frame if variable
7698 object is out of scope.
7699
fcd19eb1 77002007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
7701
7702 * varobj.c (struct varobj): New member print_value.
7703 (install_new_value): Compare last printed value with current one
7704 instead of contents.
7705 (new_variable): Initialize var->print_value to NULL.
7706 (free_variable): Free var->print_value.
7707 (value_get_print_value): New function derived from
7708 c_value_of_variable.
7709 (c_value_of_variable): Use value_get_print_value.
7710
92a56b20
JB
77112007-01-05 Joel Brobecker <brobecker@adacore.com>
7712
7713 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7714
0e420bd8
JB
77152007-01-05 Joel Brobecker <brobecker@adacore.com>
7716
7717 * NEWS: Add entries for new catch commands.
7718
b69733ab 77192007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
7720
7721 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7722 (add_partial_symbol): Correct identification of external references.
7723 (process_structure_scope): Likewise.
7724 (read_partial_die): Handle DW_AT_byte_size attribute.
7725
77262007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
7727
7728 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7729
8e38af42
NR
77302007-01-05 Nick Roberts <nickrob@snap.net.nz>
7731
7732 * varobj.c (get_type_deref): Fix variable objects for references to
7733 pointers.
7734
d1c79ecd
DJ
77352007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7736
7737 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7738 with no symbols.
7739
e776119f
DJ
77402007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7741
7742 * memory-map.c (struct_memory_map_parsing_data): Remove most
7743 members. Make property_name an array.
7744 (free_memory_map_parsing_data, memory_map_start_element)
7745 (memory_map_end_element, memory_map_character_data): Delete.
7746 (memory_map_start_memory, memory_map_end_memory)
7747 (memory_map_start_property, memory_map_end_property): New functions.
7748 (property_attributes, memory_children, memory_type_enum)
7749 (memory_attributes, memory_map_children, memory_map_elements): New.
7750 (parse_memory_map): Rewrite.
7751 * xml-support.c (debug_xml): New.
7752 (xml_get_required_attribute, xml_get_integer_attribute)
7753 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7754 Delete.
7755 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7756 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7757 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7758 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7759 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7760 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7761 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7762 New.
7763 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7764 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7765 (enum gdb_xml_element_flag, struct gdb_xml_element)
7766 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7767 (struct gdb_xml_enum): New.
7768 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7769 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7770 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7771 (xml_get_required_attribute, xml_get_integer_attribute)
7772 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7773 * Makefile.in (xml_support_h, xml-support.o): Update.
7774
5e572bb4
DJ
77752007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7776
7777 * Makefile.in (eval.o): Update dependencies.
7778 * eval.c: Include "ui-out.h" and "exceptions.h".
7779 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7780 Use value_zero if an error occurs when avoiding side effects.
7781 * varobj.c (c_value_of_root): Initialize new_val.
7782
74a44383
DJ
77832007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7784
7785 * varobj.c (varobj_list_children): Stop if the number of children is
7786 unknown.
7787 (c_number_of_children):
7788
e8d2d628
MK
77892007-01-04 Mark Kettenis <kettenis@gnu.org>
7790
7791 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7792 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7793 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7794 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7795 sizeof, instead of hardcoded constants.
7796
c941839d
DJ
77972007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7798
7799 * CONTRIBUTE: Use sourceware.org.
7800
303b6f5d 78012007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 7802
303b6f5d
DJ
7803 * buildsym.c (start_subfile): Handle producer.
7804 (record_producer): New function.
7805 * buildsym.h (struct subfile): Include producer.
7806 (record_producer): New prototype.
7807 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7808 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7809 armcc_cfa_offsets_reversed.
7810 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7811 (dwarf2_frame_find_quirks): New function.
7812 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7813 (decode_frame_entry_1): Record the CIE version. Record the
7814 augmentation. Skip armcc augmentations.
7815 * dwarf2read.c (read_file_scope): Save the producer.
7816 * symtab.h (struct symtab): Rename unused version member to
7817 producer.
2d0720d9 7818
aa79a185
DJ
78192007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7820
7821 * configure.ac (build_warnings): Use -Wall and
7822 -Wdeclaration-after-statement.
7823 * configure: Regenerated.
7824
bbec2603
VP
78252007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7826
7827 Simplify access to variours properties of child
7828 variable objects in C.
7829 * varobj.c (value_struct_element_index): New function.
7830 (c_describe_child): New function.
7831 (c_name_of_child, c_value_of_child)
7832 (c_type_of_child): Rewrite to use c_describe_child.
7833
28335dcc
VP
78342007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7835
7836 gdb/
7837 * varobj.c: Include "vec.h".
7838 (varobj_p): New typedef, declare vector of those.
7839 (struct varobj): Use vector for the 'children' member.
7840 (child_exists): Remove.
7841 (save_child_in_parent): Remove.
7842 (remove_child_from_parent): Remove.
7843 (struct varobj_child): Remove.
7844 (struct vstack): Remove.
7845 (vpush, vpop): Remove.
7846 (varobj_list_children): Adjust to work work vector.
7847 (varobj_update): Likewise. Use vectors for
7848 working stack and result.
7849 (delete_variable_1): Likewise.
7850 * Makefile.in (varobj.o): Update dependencies.
7851
b2c2bd75
VP
78522007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7853
7854 Port from Apple's version.
7855 gdb/
7856 * varobj.c (type_changeable): Rename to...
7857 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7858 (is_root_p): New function. Use it everywhere.
7859
bdfb3870
JB
78602007-01-04 Jim Blandy <jimb@codesourcery.com>
7861
7862 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7863 then plain 'fixup'.
7864
5d15052e
JB
78652007-01-04 Joel Brobecker <brobecker@adacore.com>
7866
7867 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7868
53103997
JB
78692007-01-04 Joel Brobecker <brobecker@adacore.com>
7870
7871 * hpread.c (hpread_type_lookup): Fix compilation failure.
7872
27fd2f50
Q
78732007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7874
7875 * NEWS: New port to S+core.
7876 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7877 Add myself.
7878
7879 * Makefile.in: Add dependencies for S+core files.
7880 * configure.tgt (score*, score-*-*): Add S+core target.
7881 * config/score/embed.mt: New file.
7882 * score-tdep.c: New file.
7883 * score-tdep.h: New file.
7884
a6cfbe68
JB
78852007-01-04 Joel Brobecker <brobecker@adacore.com>
7886
7887 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7888 the appropriate type rather than a bogus void type.
7889
67cf15b7 78902007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
7891
7892 * ada-lang.h (ada_find_printable_frame): Remove.
7893 (ada_exception_catchpoint_p, ada_decode_exception_location)
7894 (ada_decode_assert_location): Add declaration.
7895 * ada-lang.c: Add include of annotate.h and valprint.h.
7896 (exception_catchpoint_kind): New enum.
7897 (function_name_from_pc, is_known_support_routine)
7898 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7899 (ada_exception_name_addr_1, ada_exception_name_addr)
7900 (print_it_exception, print_one_exception, print_mention_exception)
7901 (print_it_catch_exception, print_one_catch_exception)
7902 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7903 (print_it_catch_exception_unhandled)
7904 (print_one_catch_exception_unhandled)
7905 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7906 (print_one_catch_assert, print_mention_catch_assert)
7907 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7908 (ada_get_next_arg, catch_ada_exception_command_split)
7909 (ada_exception_sym_name, ada_exception_sym_name)
7910 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7911 (ada_parse_catchpoint_condition, ada_exception_sal)
7912 (ada_decode_exception_location)
7913 (ada_decode_assert_location): New function.
7914 (catch_exception_unhandled_breakpoint_ops): New global variable.
7915 (catch_assert_breakpoint_ops): New global variable.
7916 * breakpoint.c: Add include of ada-lang.h.
7917 (print_one_breakpoint): Do not print the condition for Ada
7918 exception catchpoints.
7919 (create_ada_exception_breakpoint): New function.
7920 (catch_ada_exception_command, catch_assert_command): New function.
7921 (catch_command_1): Add support for the new "catch exception" and
7922 "catch assert" commands.
7923 (_initialize_breakpoint): Add help description for the new catch
7924 commands.
7925 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7926 valprint.h.
7927 (breakpoint.o): Add dependency on ada-lang.h.
7928
05cfdb42
DJ
79292007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7930
7931 * coffread.c (cs_to_section): If bfd_section is found, always
7932 return its section index.
7933 (coff_symtab_read): Determine the minimal_symbol_type using the
7934 bfd_section flags.
7935
2e03ee74
DJ
79362007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7937 Daniel Jacobowitz <dan@codesourcery.com>
7938
7939 * Makefile.in (top.o): Update.
7940 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7941 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7942 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7943 New.
7944 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7945
1c63d086
MK
79462007-01-03 Mark Kettenis <kettenis@gnu.org>
7947
7948 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7949 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7950
d5d6fca5
DJ
79512007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7952
7953 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7954 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7955 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7956 greater than or equal to zero.
7957 * m2-typeprint.c (m2_array): Likewise.
7958 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7959 * gdbtypes.c (copy_type_recursive): Correct == typo.
7960 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7961 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7962 greater than zero.
7963 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7964 (default_macro_scope): Remove unused variable.
7965 * prologue-value.h (pv_area_find_reg): Don't name an argument
7966 "register".
7967 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7968 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7969 type.
7970 (cleanup_sigint_signal_handler): Remove casts.
7971 * valprint.c (val_print): Use a volatile local for the modified
7972 argument.
7973 * varobj.c (languages): Remove extra array dimension.
7974 (varobj_create): Correct access to languages array.
7975 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7976 missing braces.
7977 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7978 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7979 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7980 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7981 (mi_cmd_data_write_memory): Likewise.
7982 * signals/signals.c (target_signal_to_string): Cast to int before
7983 comparing.
7984 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7985 Update all callers.
7986
0d5de010
DJ
79872007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7988
7989 * NEWS: Mention pointer to member improvements.
7990 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7991 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7992 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7993 * c-typeprint.c (c_print_type): Update for new type codes.
7994 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7995 (c_type_print_base): Likewise.
7996 (c_type_print_args): Rewrite.
7997 * c-valprint.c (c_val_print): Update for new type codes. Remove
7998 support for references to members. Treat methods like functions.
7999 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8000 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8001 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8002 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8003 (struct cp_abi_ops): Add corresponding members.
8004 * cp-valprint.c (cp_print_class_method): Delete.
8005 (cp_find_class_member): New function.
8006 (cp_print_class_member): Use it. Simplify support for bogus
8007 member pointers.
8008 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8009 lookup_methodptr_type.
8010 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8011 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8012 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8013 pointer support.
8014 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8015 references returned by user defined operators.
8016 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8017 (f_type_print_varspec_suffix): Remove support for member pointers.
8018 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8019 and adjusted.
8020 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8021 (lookup_methodptr_type): New.
8022 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8023 (recursive_dump_type): Update for new types.
8024 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8025 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8026 (lookup_memberptr_type, lookup_methodptr_type)
8027 (smash_to_memberptr_type): New prototypes.
8028 (smash_to_method_type): Formatting fix.
8029 (lookup_member_type, smash_to_member_type): Delete prototypes.
8030 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8031 Do not rely on debug information for the vptr or the method's
8032 enclosing type. Handle function descriptors for IA64.
8033 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8034 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8035 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8036 (gnuv3_method_ptr_to_value): New.
8037 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8038 * hpread.c (hpread_type_lookup): Update for new types.
8039 * infcall.c (value_arg_coerce): Likewise.
8040 * m2-typeprint.c (m2_print_type): Remove explicit support
8041 for member pointers.
8042 * m2-valprint.c (m2_val_print): Likewise.
8043 * p-typeprint.c (pascal_type_print_varspec_prefix)
8044 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8045 * p-valprint.c (pascal_val_print): Likewise.
8046 (pascal_object_print_class_method, pascal_object_print_class_member):
8047 Delete.
8048 * p-lang.h (pascal_object_print_class_method)
8049 (pascal_object_print_class_member): Delete prototypes.
8050 * stabsread.c (read_type): Update for new types.
8051 * typeprint.c (print_type_scalar): Likewise.
8052 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8053 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8054 argument. Construct a pointer to member if the address of a
8055 function or data member is requested.
8056 (value_cast_pointers): Don't modify the input value.
8057 (value_cast): Adjust pointer to member handling for new types.
8058 Allow null pointer to member constants. Don't modify the input
8059 value.
8060 (value_ind): Remove pointer to member check. Handle function
8061 descriptors for function pointers.
8062 (value_struct_elt, value_find_oload_method_list, check_field):
8063 Remove pointer to member checks.
8064 * value.c (unpack_long): Allow pointers to data members.
8065 (value_from_longest): Allow member pointers.
8066 * value.h (value_aggregate_elt): Add want_address.
8067 * varobj.c (c_variable_editable): Remove check for members.
8068 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8069 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8070 in virtual tables.
8071 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8072 * c-lang.h (cp_print_class_method): Delete prototype.
8073 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8074 * mips-tdep.c (mips_gdbarch_init): Likewise.
8075 * gdbarch.c, gdbarch.h: Regenerated.
8076
d217aaed
MK
80772007-01-01 Mark Kettenis <kettenis@gnu.org>
8078
8079 * rs6000-tdep.c (rs6000_use_struct_convention)
8080 (rs6000_extract_return_value, rs6000_store_return_value)
8081 (rs6000_extract_struct_value_address): Remove.
8082 (rs6000_return_value): New function.
8083 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8084 store_return_value, deprecated_extract_struct_value_address and
8085 deprecated_use_struct_convention. Use rs6000_return_value
8086 instead.
8087
02296b29
NR
80882007-01-02 Nick Roberts <nickrob@snap.net.nz>
8089
8090 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8091 -display-disable, -display-enable, -display-insert and
8092 -display-list.
8093
b69733ab 80942007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
8095
8096 * breakpoint.c (remove_breakpoint): Remove dead code.
8097
80982007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
8099
8100 * varobj.c: Include block.h.
8101 (c_value_of_root): Check scope within nested statements.
8102
9f3a1602
MK
81032007-01-01 Mark Kettenis <kettenis@gnu.org>
8104
8105 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8106 regcache_cooked_write_signed instead of
8107 deprecated_write_register_bytes.
8108
12349ccd
JB
81092007-01-01 Joel Brobecker <brobecker@adacore.com>
8110
8111 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8112
8c48ebcf
JB
81132007-01-01 Joel Brobecker <brobecker@adacore.com>
8114
8115 Followed the Start of New Year Procedure:
8116 * ChangeLog-2006: New file, containing all the entries for 2006.
8117 * ChangeLog: Removed all 2006 entries, and changed the reference
8118 to the previous ChangeLog to point to ChangeLog 2006.
8119 * top.c (print_gdb_version): Update copyright year.
8120
154927ff
MK
81212007-01-01 Mark Kettenis <kettenis@gnu.org>
8122
8123 * Makefile.in (remote-sds.o): Remove.
8124 * remote-sds.c: Delete.
8125
8c48ebcf 8126For older changes see ChangeLog-2006.
c906108c
SS
8127\f
8128Local Variables:
8129mode: change-log
8130left-margin: 8
8131fill-column: 74
8132version-control: never
57da7796 8133coding: utf-8
c906108c 8134End:
This page took 1.188741 seconds and 4 git commands to generate.