* i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
6 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
8 * i386gnu-nat.c (store_fpregs): Likewise.
9 * i386v4-nat.c (fill_fpregset): Likewise.
10 * go32-nat.c (store_register, go32_store_registers): Likewise.
11
12 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * cris-tdep.c (supply_gregset): Rename to ...
15 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
16 instead of current_regcache.
17 (fetch_core_registers): Update call. Pass current_regcache.
18
19 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
20
21 * arnmnbsd-nat.c (supply_gregset): Rename to ...
22 (arm_supply_gregset): ... this. Add REGCACHE parameter.
23 Use it instead of current_regcache.
24 (supply_fparegset): Rename to ...
25 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
26 Use it instead of current_regcache.
27 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
28 (fetch_core_registers, fetch_elfcore_registers): Likewise.
29
30 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
31
32 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
33 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
34 use it instead of current_regcache.
35 * alpha-tdep.h (struct regcache): Add forward declaration.
36 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
37 alpha_fill_fp_regs): Update prototypes.
38
39 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
40 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
41 * alpha-linux-nat.c: Include "regcache.h".
42 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
43 current_regcache to alpha_supply/fill_ routines.
44
45 * alphabsd-tdep.c: Include "regcache.h".
46 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
47 pass it to alpha_supply_ routines. Make REGS const.
48 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
49 pass it to alpha_fill_ routines.
50 * alphabsd-tdep.h (struct regcache): Add forward declaration.
51 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
52 alphabsd_fill_fpreg): Update prototypes.
53
54 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
55 fill_fpregset, alphabsd_fetch_inferior_registers,
56 alphabsd_store_inferior_registers): Pass current_regcache to
57 alphabsd_supply/fill_ routines.
58
59 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
60 dependencies.
61
62 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
63
64 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
65 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
66 instead of current_regcache.
67 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
68 REGCACHE parameter, pass it to supply_ routines.
69 (aix_thread_fetch_registers): Pass current_regcache to
70 fetch_regs_user_thread and fetch_regs_kernel_thread.
71
72 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
73 Add REGCACHE parameter, use it instead of current_regcache.
74 Call regcache_valid_p instead of register_cached.
75 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
76 Also, pass REGCACHE to fill_ routines.
77 (aix_thread_store_registers): Pass current_regcache to
78 store_regs_user_thread and store_regs_kernel_thread.
79
80 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * m32r-linux-nat.c (supply_gregset): Do not modify contents
83 pointed to by GREGSETP.
84
85 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
86
87 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
88 of regcache_raw_read_signed.
89 (fill_fpregset): Use regcache_raw_collect instead of
90 regcache_raw_read.
91
92 2007-05-03 Kevin Buettner <kevinb@redhat.com>
93
94 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
95 point arguments, test explicitly for use of the EABI32 ABI
96 instead of inferring this condition from tests on register
97 sizes.
98
99 2007-05-03 Kevin Buettner <kevinb@redhat.com>
100
101 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
102 prior to allocating its location.
103
104 2007-05-02 Maciej W. Rozycki <macro@mips.com>
105
106 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
107 based on mips_abi_regsize() whose result is known in advance.
108 (mips_o64_push_dummy_call): Likewise.
109
110 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
111
112 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
113 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
114
115 * mips-linux-nat.c: Include "gregset.h".
116 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
117 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
118 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
119 fill_fpregset): Move to mips-linux-nat.c.
120
121 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
122
123 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
124
125 * regcache.c (deprecated_read_register_gen): Remove, inline ...
126 (read_register): ... here.
127 (deprecated_write_register_gen): Remove, inline ...
128 (write_register): ... here.
129 * regcache.h (deprecated_read_register_gen): Remove prototype.
130 (deprecated_write_register_gen): Likewise.
131
132 * remote-sim.c (gdbsim_store_register): Replace call to
133 deprecated_read_register_gen with regcache_cooked_read.
134 * target.c (debug_print_register): Replace calls to
135 deprecated_read_register_gen and read_register with
136 regcache_cooked_read.
137
138 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
139
140 * hpux-thread.c (hpux_thread_store_registers): Use
141 regcache_raw_collect, not regcache_raw_read.
142 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
143 not regcache_raw_write.
144
145 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
146
147 * gdbarch.sh: Remove deprecated_register_byte.
148 * gdbarch.c, gdbarch.h: Regenerate.
149 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
150 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
151
152 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
153 * regcache.c (regcache_valid_p): Allow to query cooked registers in
154 read-only register caches. Make REGCACHE parameter const.
155 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
156
157 * mi/mi-main.c (old_regs): Remove.
158 (mi_setup_architecture_data, _initialize_mi_main): Remove.
159 (register_changed_p): Reimplement to compare two register caches.
160 (mi_cmd_data_list_changed_registers): Update caller.
161 * mi/mi-main.h (mi_setup_architecture_data): Remove.
162 * mi/mi-interp.c (mi_interpreter_init): Do not call
163 mi_setup_architecture_data.
164
165 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
166
167 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
168 inline definition at the places the macros are used.
169 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
170
171 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
172
173 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
174 "gdb_string.h".
175 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
176 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
177 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
178 (rs6000_aix_regset_from_core_section): New function.
179 (rs6000_aix_init_osabi): Register it.
180 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
181 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
182 * rs6000-nat.c (CoreRegs): Do not define type.
183 (fetch_core_registers, rs6000_core_fns): Remove.
184 (_initialize_core_rs6000): Do not register it. Rename to ...
185 (_initialize_rs6000_nat): ... this.
186 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
187
188 2007-04-27 Kevin Buettner <kevinb@redhat.com>
189
190 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
191 (dwarf2_read_address): Sign extend return address as required by
192 target architecture.
193
194 2007-04-27 Kevin Buettner <kevinb@redhat.com>
195
196 * solib-frv.c (lm_base): Bail out if the main executable has
197 not been relocated.
198
199 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
200
201 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
202 of FPCR register in fpregset.
203
204 2007-04-27 Maciej W. Rozycki <macro@mips.com>
205
206 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
207 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
208
209 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
210
211 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
212 * rs6000-nat.c (rs6000_wait): New function.
213 (_initialize_core_rs6000): Install it as to_wait target method.
214 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
215
216 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
217
218 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
219 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
220 * rs6000-nat.c (super_create_inferior): New variable.
221 (rs6000_create_inferior): Make static. Adapt argument list. Call
222 original version of create_inferior via super_create_inferior.
223 (_initialize_core_rs6000): Install to_create_inferior target method.
224
225 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
226
227 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
228 (aix_thread_xfer_partial): ... this.
229 (init_aix_thread_ops): Install to_xfer_partial instead
230 of deprecated_xfer_memory target method.
231
232 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
233 and inftarg.o, add inf-ptrace.o.
234 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
235 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
236 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
237 (fetch_inferior_registers): Rename to ...
238 (rs6000_fetch_inferior_registers): ... this. Make static.
239 (store_inferior_registers): Rename to ...
240 (rs6000_store_inferior_registers): ... this. Make static.
241 (read_word, child_xfer_memory): Remove.
242 (rs6000_xfer_partial): New function.
243 (kernel_u_size): Remove.
244 (_initialize_core_rs6000): Add inf_ptrace-based target.
245 * Makefile.in (rs6000-nat.o): Update dependencies.
246
247 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
248
249 * inf-ptrace.c: Include "gdb_stdint.h".
250 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
251 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
252 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
253 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
254 (inf_ptrace_store_register): Likewise.
255 * Makefile.in (inf-ptrace.o): Update dependencies.
256
257 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
258
259 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
260 * configure.tgt (rs6000-*-*): Likewise.
261 * config/rs6000/aix4.mh: Delete file.
262 * config/rs6000/aix4.mt: Delete file.
263 * config/rs6000/rs6000.mh: Delete file.
264 * config/rs6000/rs6000.mt: Delete file.
265
266 * config/powerpc/nm-aix.h: Delete file.
267 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
268
269 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
270
271 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
272 Remove obsolete part of comment.
273 (store_regs_user_thread): Use uint32_t temporaries when calling
274 fill_sprs32.
275 (store_regs_kernel_thread): Likewise. Add assertion to verify
276 correct size of struct ptsprs members.
277 (aix_thread_xfer_memory): Fix type of myaddr.
278 (aix_thread_extra_thread_info): Fix compiler warning.
279 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
280 (fetch_register, store_register): Adapt callers.
281
282 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
283
284 * vec.h (vec_free): Rename to vec_free_. Adapt users.
285
286 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
287
288 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
289 and "regcache.h".
290 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
291 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
292 (alpha_linux_regset_from_core_section): New function.
293 (alpha_linux_init_abi): Install it.
294 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
295 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
296 <sys/procfs.h>, and "gregset.h".
297 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
298 Move from config/alpha/nm-linux.h.
299 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
300 from alpha-nat.c.
301 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
302 * alpha-nat.c: Remove #ifdef __linux__ section.
303 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
304 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
305 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
306 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
307 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
308 (NATDEPFILES): Remove alpha-nat.o.
309 * config/alpha/nm-linux.h: Delete file.
310 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
311 * Makefile.in (alpha-linux-nat.o): Update dependencies.
312 (alpha-linux-tdep.o): Likewise.
313
314 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
315
316 * mips-linux-nat.c: No longer include "gdbcore.h".
317 (mips_linux_register_addr): Move from mips-linux-tdep.c.
318 (mips64_linux_register_addr): Likewise.
319 (mips_linux_register_u_offset): Call mips_linux_register_addr or
320 mips64_linux_register_addr instead of register_addr.
321 * mips-linux-tdep.c (mips_linux_register_addr,
322 mips64_linux_register_addr): Move to mips-linux-nat.c.
323 (register_addr): Remove.
324 (register_addr_data, init_register_addr_data): Remove.
325 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
326 (set_mips_linux_register_addr): Remove.
327 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
328 * Makefile.in (mips-linux-nat.o): Update dependencies.
329
330 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
331
332 * linux-nat.c (linux_register_u_offset): Remove.
333 (linux_target_install_ops): New function.
334 (linux_target): Use it.
335 (linux_trad_target): New function.
336 * linux-nat.h (linux_trad_target): Declare.
337
338 * alpha-linux-nat.c: Include "gdbcore.h".
339 (alpha_linux_register_u_offset): New function.
340 (_initialize_alpha_linux_nat): Use linux_trad_target.
341
342 * mips-linux-nat.c: Include "gdbcore.h".
343 (mips_linux_register_u_offset): New function.
344 (_initialize_mips_linux_nat): Use linux_trad_target.
345
346 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
347 * config/arm/nm-linux.h: Delete file.
348
349 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
350 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
351
352 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
353 * config/ia64/nm-linux.h: Delete file.
354
355 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
356 * config/m32r/nm-linux.h: Delete file.
357
358 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
359 * config/m68k/nm-linux.h: Delete file.
360
361 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
362 * config/pa/nm-linux.h: Delete file.
363
364 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
365 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
366 * config/powerpc/nm-linux.h: Delete file.
367
368 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
369 * config/s390/nm-linux.h: Delete file.
370
371 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
372 * config/sparc/linux64.mh (NAT_FILE): Likewise.
373 * config/sparc/nm-linux.h: Delete file.
374
375 * Makefile.in (alpha-linux-nat.o): Update dependencies.
376 (mips-linux-nat.o): Likewise.
377
378 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
379
380 * core-aout.c: Delete file.
381 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
382 (core-aout.o): Delete rule.
383 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
384
385 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
386
387 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
388 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
389 KERNEL_U_ADDR): Remove.
390
391 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
392 (cannot_fetch_register, cannot_store_register): Remove.
393 (fetch_register): Inline cannot_fetch_register and register_addr.
394 (store_register): Inline cannot_store_register and register_addr.
395 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
396 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
397 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
398 Remove.
399
400 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
401 (fetch_register): Inline register_addr.
402 (store_register): Inline register_addr.
403 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
404 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
405 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
406
407 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
408 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
409 REGISTER_U_ADDR): Remove.
410
411 * hppa-linux-nat.c (register_addr): Rename to ...
412 (hppa_linux_register_addr): ... this. Make static.
413 (fetch_register, store_register): Adapt callers.
414 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
415
416 * ppc-linux-nat.c (kernel_u_size): Remove.
417 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
418
419 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
420 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
421 (NAT_FILE): Remove.
422 * config/vax/nm-vax.h: Delete file.
423
424 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
425
426 * MAINTAINERS (Write After Approval): Add myself.
427
428 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
429
430 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
431 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
432 (m68k_linux_sigcontext_reg_offset): Fix typo.
433 (target_is_uclinux): New.
434 (m68k_linux_inferior_created): New.
435 (m68k_linux_get_sigtramp_info): Check for uClinux or
436 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
437 uClinux.
438 (_initialize_m68k_linux_tdep): Register
439 m68k_linux_inferior_created.
440
441 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
442
443 * win32-nat.c (win32_detach): Remove delete_command call.
444 Resume inferior with win32_resume instead of win32_continue.
445
446 2007-04-19 Jerome Guitton <guitton@adacore.com>
447
448 * ser-mingw.c (fd_is_file): New function.
449 (file_select_thread): New function.
450 (ser_console_wait_handle): Add special handling for files.
451
452 2007-04-18 Denis Pilat <denis.pilat@st.com>
453
454 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
455 when missing from DW_TAG_subrange_type. Remove the handling of null
456 return from die_type.
457
458 2007-04-18 Maciej W. Rozycki <macro@mips.com>
459
460 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
461 change to rearrange some brackets.
462 (mips_n32n64_push_dummy_call): Likewise.
463 (mips_o32_push_dummy_call): Likewise.
464 (mips_o64_push_dummy_call): Likewise.
465
466 2007-04-18 Denis Pilat <denis.pilat@st.com>
467
468 * infcmd.c (post_create_inferior): Start with a call to
469 target_terminal_ours.
470
471 2007-04-17 Maciej W. Rozycki <macro@mips.com>
472
473 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
474 brackets.
475 (mips_n32n64_push_dummy_call): Likewise. Reformat some
476 expressions.
477 (mips_o32_push_dummy_call): Likewise.
478 (mips_o64_push_dummy_call): Likewise.
479
480 2007-04-17 Maciej W. Rozycki <macro@mips.com>
481
482 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
483 comment.
484
485 2007-04-17 Maciej W. Rozycki <macro@mips.com>
486
487 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
488 comment.
489 (mips_o32_push_dummy_call): Likewise.
490
491 2007-04-17 Andreas Schwab <schwab@suse.de>
492
493 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
494 sal to be bigger than the end of the function.
495
496 2007-04-17 Maciej W. Rozycki <macro@mips.com>
497 Nigel Stephens <nigel@mips.com>
498
499 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
500 argument alignment requirements when calculating stack space
501 required. When aligning an arg register to eight bytes
502 boundary, align stack_offset too. Write floating-point
503 arguments to the appropriate integer register if need go there.
504 (mips_o64_push_dummy_call): Likewise.
505
506 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
507
508 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
509 "sig" arguments, add "regcache" argument.
510 * gdbarch.c, gdbarch.h: Regenerate.
511
512 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
513 (handle_inferior_event): Call remove_single_step_breakpoints directly
514 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
515
516 * alpha-tdep.c (alpha_software_single_step): Update argument list.
517 Remove handling of !insert_breakpoints_p case.
518 * arm-tdep.c (arm_software_single_step): Likewise.
519 * cris-tdep.c (cris_software_single_step): Likewise.
520 * mips-tdep.c (mips_software_single_step): Likewise.
521 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
522 * sparc-tdep.c (sparc_software_single_step): Likewise.
523 * spu-tdep.c (spu_software_single_step): Likewise.
524
525 * alpha-tdep.h (alpha_software_single_step): Update prototype.
526 * mips-tdep.h (mips_software_single_step): Likewise.
527 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
528 * sparc-tdep.h (sparc_software_single_step): Likewise.
529
530 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
531
532 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
533 when removing single-step breakpoints.
534
535 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
536
537 * varobj.h (varobj_set_frozen): New
538 (varobj_get_frozen): New.
539 (varobj_update): New parameter explicit.
540 * varobj.c (struct varobj): New fields frozen
541 and not_fetched.
542 (varobj_set_frozen, varobj_get_frozen): New.
543 (install_new_value): Don't fetch values for
544 frozen variable object, or children thereof. Allow
545 a frozen variable object to have non-fetched value.
546 (varobj_update): Allow updating child variables.
547 Don't traverse frozen children.
548 (new_variable): Initialize the frozen field.
549 (c_value_of_variable): Return NULL for frozen
550 variable without any value yet.
551 * mi/mi-cmd-var.c (varobj_update_one): New parameter
552 'explicit'.
553 (mi_cmd_var_create): Output the 'frozen' field,
554 as soon as testsuite is adjusted to expect that field.
555 (mi_cmd_var_set_frozen): New.
556 (mi_cmd_var_update): Pass the 'explicit' parameter to
557 varobj_update_one.
558 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
559 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
560
561 2007-04-13 Paul Brook <paul@codesourcery.com>
562
563 * target-descriptions.c (tdesc_named_type): Add ieee_single and
564 ieee_double.
565 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
566
567 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
568
569 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
570 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
571 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
572 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
573 * Makefile.in: Remove references to deleted files.
574 * README: Do not mention deleted ROM monitor interfaces.
575 * defs.h (enum language): Delete language_scm.
576 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
577 (dump_subexp_body_standard): Likewise.
578 * parse.c (operator_length_standard): Likewise.
579 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
580 * remote-mips.c: Do not include remote-utils.h.
581 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
582 throughout.
583 * value.c: Do not include scm-lang.h.
584 (unpack_long): Delete scm_unpack call.
585 * config/h8300/h8300.mt, config/mips/embed.mt,
586 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
587 config/sh/embed.mt, config/sh/linux.mt: Remove references to
588 deleted files.
589 * NEWS: Mention removed files.
590
591 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
592
593 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
594 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
595
596 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
597
598 * NEWS: Mention removal of HP aCC support.
599
600 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
601
602 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
603 first entry for static executables.
604 (breakpoint_addr): Delete unused variable.
605 (elf_locate_base): Search for _r_debug in static executables.
606 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
607 also.
608
609 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
610
611 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
612 (bpstat_what, print_one_breakpoint, allocate_bp_location)
613 (mention): Remove bp_through_sigtramp support.
614 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
615
616 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
617
618 * breakpoint.c (bpstat_what): Give step-resume higher priority than
619 shlib events.
620
621 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
622
623 * infrun.c: Doc fixes.
624 (handle_inferior_event): Clarify debug message.
625 (insert_step_resume_breakpoint_at_sal): Print a debug message.
626
627 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
628
629 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
630
631 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
632
633 * config/m68k/tm-monitor.h: Delete file.
634 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
635 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
636 call moved to ...
637 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
638 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
639
640 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
641
642 * gdbarch.sh (software_single_step): Change the return type
643 from void to int and reformatted some comments to <= 80
644 columns.
645 * gdbarch.c, gdbarch.h: Regenerated.
646 * alpha-tdep.c (alpha_software_single_step): Likewise.
647 * alpha-tdep.h (alpha_software_single_step): Likewise.
648 * arm-tdep.c (arm_software_single_step): Likewise.
649 * cris-tdep.c (cris_software_single_step): Likewise.
650 * mips-tdep.c (mips_software_single_step): Likewise.
651 * mips-tdep.h (mips_software_single_step): Likewise.
652 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
653 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
654 * sparc-tdep.c (sparc_software_single_step): Likewise.
655 * sparc-tdep.h (sparc_software_single_step): Likewise.
656 * spu-tdep.c (spu_software_single_step): Likewise.
657 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
658 and act accordingly.
659
660 2007-04-11 Steve Ellcey <sje@cup.hp.com>
661
662 * configure.ac (build_warnings): Add -Wno-char-subscripts.
663 * configure: Regenerate.
664 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
665
666 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
667
668 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
669
670 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
673 macros.
674 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
675 distinct on the TYPE_STUB_SUPPORTED debug targets.
676 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
677
678 2007-04-11 Joel Brobecker <brobecker@adacore.com>
679
680 * sparc-tdep.c (X_RS2): New macro.
681 (sparc_skip_stack_check): New function.
682 (sparc_analyze_prologue): Adjust PC past stack probing
683 sequence if necessary.
684
685 2007-04-10 Andreas Schwab <schwab@suse.de>
686
687 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
688 register.
689
690 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
691
692 * breakpoint.c (gdb_breakpoint_query): Really return an
693 enum gdb_rc.
694 (gdb_breakpoint): Likewise.
695 * thread.c (gdb_list_thread_ids): Likewise.
696 (gdb_thread_select): Likewise.
697 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
698 (mi_cmd_thread_list_ids): Remove bogus initialization.
699
700 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
701
702 * Makefile.in (SFILES): Remove hpacc-abi.c.
703 (COMMON_OBS): Remove hpacc-abi.o.
704 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
705 (hpacc-abi.o, hpread.o): Delete rules.
706 * somread.c: Delete extern declarations from hpread.c.
707 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
708 (som_symfile_finish): Do not call hpread_symfile_finish.
709 (som_symfile_init): Do not call hpread_symfile_init.
710 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
711 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
712 * hpacc-abi.c, hpread.c: Deleted.
713
714 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
715
716 * solib-svr4.c (enable_break): Simplify return value.
717 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
718
719 2007-04-10 Andreas Schwab <schwab@suse.de>
720
721 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
722 l_ld_size, l_next_size, l_prev_size, l_name_size.
723
724 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
725 to extract addresses from link map.
726 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
727 (LM_NEXT): Likewise.
728 (LM_NAME): Likewise.
729 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
730 (elf_locate_base): Likewise.
731 (open_symbol_file_object): Likewise.
732 (svr4_fetch_objfile_link_map): Likewise.
733 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
734 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
735 l_ld_size.
736 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
737 (svr4_lp64_fetch_link_map_offsets): Likewise.
738
739 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
740 removed members. Set l_ld_offset to -1 if not present.
741
742 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
743
744 Pass stderr of program run with "target remote |"
745 via gdb_stderr.
746 * serial.c (serial_open): Set error_fd to -1.
747 * serial.h (struct serial): New field error_fd.
748 (struct serial_opts): New field avail.
749 * ser-pipe.c (pipe_open): Create another pair
750 of sockets. Pass stderr to gdb.
751 * ser-mingw.c (pipe_windows_open): Pass
752 PEX_STDERR_TO_PIPE to pex_run. Initialize
753 sd->error_fd.
754 (pipe_avail): New.
755 (_initialize_ser_windows): Hook pipe_avail.
756 * ser-base.c (generic_readchar): Check if there's
757 anything in stderr channel and route that to gdb_stderr.
758
759 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
760
761 * dbxread.c (read_ofile_symtab): Move current_objfile
762 clearing to after end_stabs.
763
764 2007-04-01 Andreas Schwab <schwab@suse.de>
765
766 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
767 gdbarch instead of current_gdbarch.
768
769 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
770
771 * varobj.c (varobj_create): Keep varobj value
772 NULL when evaluating the type.
773
774 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
775
776 * NEWS: Mention new Windows CE support.
777
778 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
779
780 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
781 the obsoletion stanza.
782 * NEWS: Mention deleted targets.
783
784 * config/sh/tm-wince.h: Remove.
785 * config/sh/wince.mt: Remove.
786 * config/mips/tm-wince.h: Remove.
787 * config/mips/wince.mt: Remove.
788
789 * wince.c: Remove.
790 * wince-stub.c: Remove.
791 * wince-stub.h: Remove.
792 * Makefile.in (wince.o): Remove rule.
793 (wince-stub.o): Likewise.
794
795 * mips-tdep.c (mips_next_pc): Make static.
796 * mips-tdep.h (mips_next_pc): Remove declaration.
797 * arm-tdep.c (arm_pc_is_thumb): Make static.
798 (thumb_get_next_pc): Likewise.
799 (arm_get_next_pc): Likewise.
800 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
801 (arm_pc_is_thumb): Likewise.
802 (thumb_get_next_pc): Likewise.
803 (arm_get_next_pc): Likewise.
804
805 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
806
807 * MAINTAINERS: Remove d10v entry.
808 * Makefile.in (SFILES): Remove dwarfread.c.
809 (COMMON_OBS): Remove dwarfread.o.
810 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
811 (remote-est.o, rom68k-rom.o): Delete.
812 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
813 target est, target rom68k, and DWARF 1.
814 * configure.tgt: Mark d10v as removed.
815 * dwarf2read.c: Doc update.
816 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
817 and lnsize.
818 (elf_locate_sections): Do not set them.
819 (elf_symfile_read): Do not call dwarf_build_psymtabs.
820 * symfile.h (dwarf_build_psymtabs): Delete prototype.
821 * config/m68k/monitor.mt (TDEPFILES): Prune.
822 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
823 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
824
825 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
826
827 * doublest.c (convert_floatformat_to_doublest): Use
828 floatformat_classify.
829 (floatformat_is_nan): Rename to...
830 (floatformat_classify): ...this. Return more information.
831 * doublest.h (enum float_kind): New.
832 (floatformat_is_nan): Replace prototype...
833 (floatformat_classify): ...with this one.
834 * valprint.c (print_floating): Use floatformat_classify. Handle
835 infinity.
836
837 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
838
839 * README: Mention ISO C library requirement.
840
841 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
842
843 * Makefile.in (SFILES): Remove nlmread.c.
844 (COMMON_OBS): Remove nlmread.o.
845 (nlmread.o): Delete rule.
846 * README: Delete reference to remote-st.c.
847 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
848 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
849 GDB_OSABI_LYNXOS.
850 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
851 (_initialize_i386_tdep): Do not reference them.
852 * nlmread.c: Delete file.
853 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
854 * target.c: Doc update.
855 * thread.c: Delete commented include.
856 * config/alpha/tm-alpha.h: Doc update.
857
858 2007-03-30 Chris Dearman <chris@mips.com>
859
860 * utils.c (string_to_core_addr): Comment typo.
861
862 2007-03-30 Chris Dearman <chris@mips.com>
863
864 * mips-tdep.c: Comment typo.
865
866 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
867
868 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
869 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
870 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
871 * config/powerpc/nm-ppc64-linux.h: Remove file.
872 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
873 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
874 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
875 * infptrace.c (call_ptrace): Likewise.
876 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
877 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
878 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
879 (store_register): Likewise.
880
881 2007-03-29 Joel Brobecker <brobecker@adacore.com>
882
883 * Makefile.in (varobj.o): Add missing dependency.
884
885 2007-03-29 Michael Snyder <msnyder@access-company.com>
886
887 * MAINTAINERS: Update my email address.
888
889 2007-03-29 Joel Brobecker <brobecker@adacore.com>
890
891 Add support for exception handling with multiple versions of
892 the Ada runtime:
893 * ada-lang.c: Update general comments on how Ada exception catchpoints
894 are implemented.
895 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
896 (__gnat_raise_nodefer_with_msg): Delete.
897 (ada_unhandled_exception_name_addr_ftype): New type.
898 (exception_support_info): New type.
899 (ada_unhandled_exception_name_addr): Add forward declaration.
900 (ada_unhandled_exception_name_addr_from_raise): Likewise.
901 (default_exception_support_info): New constant.
902 (exception_support_info_fallback): Likewise.
903 (exception_info): New global variable.
904 (ada_exception_support_info_sniffer): New function.
905 (ada_executable_changed_observer): Likewise.
906 (ada_unhandled_exception_name_addr_from_raise): Renamed from
907 ada_unhandled_exception_name_addr.
908 (ada_unhandled_exception_name_addr): Reimplement to match the
909 latest Ada runtime implementation.
910 (error_breakpoint_runtime_sym_not_found): Delete.
911 (ada_exception_sym_name): Get the exception sym name from
912 exception_info rather than hardcoding it.
913 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
914 Update error handling.
915 * Makefile.in (ada-lang.o): Add dependency on observer.h.
916
917 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
918
919 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
920 (remote-st.o, uw-thread.o): Delete.
921 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
922 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
923 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
924 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
925 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
926 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
927 rs6000-*-lynxos* to an obsoletion stanza.
928 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
929 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
930 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
931 i[34567]86-*-netware*.
932 * NEWS: Mention deleted targets.
933
934 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
935 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
936 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
937 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
938 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
939 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
940 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
941 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
942 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
943 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
944 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
945 config/rs6000/tm-rs6000ly.h: Delete files.
946
947 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
948
949 * defs.h (deprecated_registers_changed_hook): Delete declaration.
950 * interps.c (clear_interpreter_hooks): Do not clear
951 deprecated_registers_changed_hook.
952 * regcache.c (registers_changed): Do not call it.
953 * top.c (deprecated_registers_changed_hook): Do not define it.
954 * mi/mi-interp.c (mi_command_loop): Do not clear it.
955 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
956 (tui_remove_hooks): Do not remove it.
957 (tui_selected_frame_level_changed_hook): Check for negative level.
958 Use get_selected_frame.
959 (tui_registers_changed_hook): Deleted.
960
961 2007-03-29 Joel Brobecker <brobecker@adacore.com>
962
963 * stabsread.c (add_undefined_type): Add extra parameter.
964 Now handles nameless types separately.
965 (struct nat): New type.
966 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
967 New static variables.
968 (read_type): Update calls to add_undefined_type.
969 (add_undefined_type_noname): New function.
970 (add_undefined_type_1): Renames from add_undefined_type.
971 (cleanup_undefined_types_noname): New function.
972 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
973 (cleanup_undefined_types): New handles nameless types separately.
974 (_initialize_stabsread): Initialize our new static constants.
975
976 2007-03-29 Denis Pilat <denis.pilat@st.com>
977
978 * configure.ac: Test for signal.h.
979 * configure, config.in: Regenerate.
980
981 2007-03-29 Denis Pilat <denis.pilat@st.com>
982
983 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
984 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
985
986 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
987
988 * arm-wince-tdep.c: New.
989 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
990 (MT_CFLAGS): Delete.
991 (TM_CLIBS): Delete.
992 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
993 solib-legacy.o, solib-svr4.o, and remove wince.o.
994 * configure.tgt (arm*-*-mingw32ce*): Add.
995 * signals/signals.c [HAVE_SIGNAL_H]: Check.
996 (do_target_signal_to_host): Silence 'not used' warning.
997 * config/arm/tm-wince.h: Remove.
998
999 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
1000
1001 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
1002 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
1003
1004 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
1005 * config/ia64/tm-linux.h: Remove file.
1006 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
1007 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
1008 legacy_pc_in_sigtramp.
1009 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
1010 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
1011 Remove func_name argument.
1012 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
1013
1014 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
1015 * target.c (update_current_target): Add to_have_steppable_watchpoint.
1016 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
1017 (HAVE_STEPPABLE_WATCHPOINT): Define.
1018
1019 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
1020 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
1021 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
1022 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
1023 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
1024 target_insert_watchpoint, target_remove_watchpoint): Remove.
1025 (FETCH_INFERIOR_REGISTERS): Define.
1026 * ia64-linux-nat.c (ia64_register_addr): Make static.
1027 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1028 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
1029 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
1030 (ia64_linux_stopped_data_address): Make static. Add target_ops.
1031 (ia64_linux_stopped_by_watchpoint): Make static.
1032 (ia64_linux_can_use_hw_breakpoint): New function.
1033 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
1034 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
1035 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
1036
1037 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1038
1039 * linespec.c: Include language.h.
1040 (find_methods): Add language parameter. Call
1041 lookup_symbol_in_language. Pass language down.
1042 (add_matching_methods): Likewise. Call
1043 lookup_symbol_in_language.
1044 (add_constructors): Likewise.
1045 (find_method): Pass sym_class to collect_methods.
1046 (collect_methods): Add sym_class parameter. Pass language
1047 down.
1048 * symtab.c (lookup_symbol): Rename to ...
1049 (lookup_symbol_in_language): ... this. Add language
1050 parameter. Use passed language instead of current_language.
1051 (lookup_symbol): New as wrapper around
1052 lookup_symbol_in_language.
1053 (lookup_symbol_aux): Add language parameter. Use passed
1054 language instead of current_language.
1055 (search_symbols): Indent.
1056 * symtab.h (enum language): Forward declare.
1057 (lookup_symbol_in_language): Declare.
1058 (lookup_symbol): Update description.
1059 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
1060 * ada-lang.c (restore_language): Remove.
1061 (lookup_symbol_in_language): Remove.
1062
1063 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
1064
1065 * breakpoint.c (bpstat_num): Add int *num parameter.
1066 * breakpoint.h (bpstat_num): Likewise.
1067 * infcmd.c (continue_command): Adjust to new bpstat_num
1068 interface.
1069 (program_info): Likewise.
1070
1071 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1072
1073 * config/sh/tm-sh.h: Remove file.
1074 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
1075 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
1076 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1077 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
1078
1079 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1080
1081 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
1082 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
1083 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
1084 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
1085 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
1086 sequence if target_shortname is "remote".
1087
1088 2007-03-27 Anton Blanchard <anton@samba.org>
1089
1090 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
1091 instead of wordsize when looking for the LR in a stack frame.
1092
1093 2007-03-27 Andreas Schwab <schwab@suse.de>
1094 Daniel Jacobowitz <dan@codesourcery.com>
1095
1096 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
1097 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
1098 argument. Update all callers.
1099 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
1100 (dwarf2_frame_set_eh_frame_regnum): Rename to...
1101 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
1102 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
1103 (dwarf2_frame_set_adjust_regnum): ...this.
1104 (dwarf2_frame_eh_frame_regnum): Delete prototype.
1105 * rs6000-tdep.c: Include "dwarf2-frame.h".
1106 (rs6000_adjust_frame_regnum): Define.
1107 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
1108 Register rs6000_adjust_frame_regnum.
1109
1110 * Makefile.in (rs6000-tdep.o): Update dependencies.
1111
1112 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1113
1114 * Makefile.in: Add support for a "pdf" target.
1115
1116 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
1117
1118 * amd64-tdep.c (amd64_init_frame_cache): New function.
1119 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
1120
1121 2007-03-26 Nigel Stephens <nigel@mips.com>
1122 Maciej W. Rozycki <macro@mips.com>
1123
1124 * ui-out.c (ui_out_field_core_addr): Truncate address to
1125 TARGET_ADDR_BIT size before printing.
1126
1127 2007-03-22 Nigel Stephens <nigel@mips.com>
1128 Maciej W. Rozycki <macro@mips.com>
1129
1130 * remote-mips.c (mips_xfer_memory): Update prototype.
1131
1132 2007-03-22 Joel Brobecker <brobecker@adacore.com>
1133
1134 * symfile.h: #include "symtab.h"
1135
1136 2007-03-22 Denis Pilat <denis.pilat@st.com>
1137
1138 * utils.c (pagination_on_command, pagination_off_command):
1139 Remove useless prototypes.
1140
1141 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
1142
1143 Fix PR pascal/2232.
1144 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
1145 instead of TYPE_NAME for object base class name.
1146
1147
1148 2007-03-19 Kevin Buettner <kevinb@redhat.com>
1149
1150 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
1151 Specify frame type in calls to frame_func_unwind().
1152
1153 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1154
1155 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
1156 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
1157 (refine_prologue_limit): Delete.
1158 (skip_prologue): Don't call it. Use extract_unsigned_integer.
1159 Assume lim_pc is set. Correct check for incomplete prologues.
1160 Do not skip clobbers of the frame pointer.
1161 * symtab.c (skip_prologue_using_sal): Fail if there is only one
1162 sal.
1163
1164 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1165
1166 * frame.c (frame_pop): Check to see whether there's a frame to
1167 which we can pop first.
1168
1169 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1170
1171 * MAINTAINERS (Write After Approval): Add myself.
1172
1173 2007-03-09 Markus Deuling <deuling@de.ibm.com>
1174
1175 * infrun.c (breakpoints_failed): Remove unnecessary variable.
1176 (handle_inferior_event): Remove unnecessary braces.
1177 * breakpoint.c (bpstat_what): Remove wrong comment.
1178
1179 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
1180
1181 * spu-tdep.c (spu_in_function_epilogue_p): New function.
1182 (spu_gdbarch_init): Install it.
1183
1184 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1185
1186 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
1187 object types, not 0.
1188
1189 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1190
1191 * spu-tdep.c (spu_frame_align): New function.
1192 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
1193
1194 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1195
1196 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
1197 (spu_software_single_step): Likewise.
1198 (spu_read_pc, spu_write_pc): New functions.
1199 (spu_gdbarch_init): Install them.
1200
1201 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1202
1203 * cli/cli-dump.c (struct callback_data): load_offset needs to
1204 have signed long type.
1205
1206 2007-03-07 Joel Brobecker <brobecker@adacore.com>
1207
1208 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
1209 Revert the previous change that had some unexpected side-effects
1210 on mips32.
1211 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
1212 function to get the address of the calling instruction.
1213
1214 2007-03-07 Denis Pilat <denis.pilat@st.com>
1215
1216 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
1217 get_selected_frame by deprecated_safe_get_selected_frame.
1218
1219 2007-03-02 Mark Kettenis <kettenis@gnu.org>
1220
1221 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
1222 "gdb_string.h". Don't include "nbsd-tdep.h".
1223 (SIZEOF_STRUCT_REG): Remove.
1224 (SHNBSD_SIZEOF_GREGS): New.
1225 (shnbsd_supply_gregset, shnbsd_collect_gregset)
1226 (shnbsd_regset_from_core_section): New functions.
1227 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1228 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
1229 shnbsd_supply_gregset, shnbsd_collect_gregset.
1230 (shnbsd_gregset): New variable.
1231 (shnbsd_init_abi): Set regset_from_core_section.
1232 (GDB_OSABI_NETBSD_CORE): New define.
1233 (shnbsd_core_osabi_sniffer): New function.
1234 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
1235 * Makefile.in (shnbsd-tdep.o): Update dependencies.
1236 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
1237 nbsd-tdep.o.
1238 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1239
1240 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1241
1242 * gdbtypes.c (replace_type): Fix typo that caused us to not update
1243 length of the types referenced by the new type CV ring.
1244
1245 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1246
1247 * frame.c (frame_pop, frame_observer_target_changed): Call
1248 reinit_frame_cache.
1249 (flush_cached_frames): Rename to reinit_frame_cache and delete
1250 old implementation.
1251 * frame.h (flush_cached_frames): Delete prototype and update comment.
1252
1253 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
1254 reinit_frame_cache instead of flush_cached_frames. Do not call
1255 select_frame after reinit_frame_cache.
1256 * corelow.c (core_open): Likewise.
1257 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
1258 * infrun.c (prepare_to_proceed, context_switch)
1259 (handle_inferior_event): Likewise.
1260 * linux-fork.c (fork_load_infrun_state): Likewise.
1261 * ocd.c (ocd_start_remote): Likewise.
1262 * remote-e7000.c (e7000_start_remote): Likewise.
1263 * remote-mips.c (device): Likewise.
1264 * thread.c (switch_to_thread): Likewise.
1265 * tracepoint.c (finish_tfind_command): Likewise.
1266 * gdbarch.c: Regenerated.
1267
1268 2007-02-28 Jerome Guitton <guitton@adacore.com>
1269 Joel Brobecker <brobecker@adacore.com>
1270
1271 * gdbtypes.c (check_typedef): Do not replace stub type if
1272 the resolved type is not defined in the same objfile.
1273
1274 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1275
1276 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
1277
1278 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1279
1280 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
1281 symbol for Ada units when the symbol is defined using 't' rather
1282 than 'Tt' as symbol descriptor.
1283
1284 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1285
1286 * config/mips/tm-nbsd.h: Delete file.
1287 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1288 * config/sh/tm-nbsd.h: Delete file.
1289 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1290
1291 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1292
1293 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1294 unused WRONG_PARAM value since it was recently deleted.
1295
1296 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
1297
1298 * varobj.c (varobj_update): Free temporary vectors.
1299
1300 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1301
1302 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1303 * config/powerpc/tm-linux.h: Delete file.
1304 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1305 (PROCESS_LINENUMBER_HOOK): Do not undefine.
1306 (TEXT_SEGMENT_BASE): Do not redefine.
1307 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1308 from config/rs6000/tm-rs6000.h.
1309 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1310 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1311 (TEXT_SEGMENT_BASE): Remove.
1312 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1313 (rs6000_in_solib_return_trampoline): Remove.
1314 (SKIP_TRAMPOLINE_CODE): Remove.
1315 (rs6000_skip_trampoline_code): Remove.
1316 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1317 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1318 (FP0_REGNUM): Remove.
1319 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1320 (rs6000_set_host_arch_hook): Remove.
1321 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1322 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1323 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1324 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1325 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1326 * rs6000-nat.c: Include "rs6000-tdep.h".
1327 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1328 (set_host_arch): Rename to ...
1329 (rs6000_create_inferior): ... this. Make public.
1330 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1331 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1332 (rs6000_create_inferior): Remove.
1333 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1334 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1335 set_gdbarch_in_solib_return_trampoline, and
1336 set_gdbarch_skip_trampoline_code.
1337 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1338 from config/rs6000/tm-rs6000.h.
1339
1340 2007-02-27 Joel Brobecker <brobecker@adacore.com>
1341
1342 * buildsym.c (record_producer): Do nothing if no producer is provided.
1343
1344 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
1345
1346 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
1347 to check changelist is non-NULL. Call error if the frontend tries
1348 to update a non-root variable.
1349
1350 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1351
1352 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1353
1354 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1355 (dwarf2_frame_sniffer): Update.
1356 (dwarf2_signal_frame_this_id): New function.
1357 (dwarf2_signal_frame_unwind): Use it.
1358 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1359 * frame.c (frame_func_unwind): Add this_type argument.
1360 (get_frame_func): Update.
1361 (frame_unwind_address_in_block): Add this_type argument and check it.
1362 Fix a typo.
1363 (get_frame_address_in_block): Update.
1364 * frame.h (enum frame_type): Move higher in the file.
1365 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1366 argument.
1367
1368 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1369 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1370 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1371 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1372 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1373 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1374 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1375 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1376 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1377 frame_func_unwind and frame_unwind_address_in_block to specify
1378 the frame type. Use frame_unwind_address_in_block instead of
1379 frame_pc_unwind in sniffers.
1380
1381 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1382
1383 * frame.c (deprecated_selected_frame): Rename to...
1384 (selected_frame): ...this. Make static.
1385 (get_selected_frame, select_frame): Update.
1386 * frame.h (deprected_select_frame): Delete.
1387 (deprecated_safe_get_selected_frame): Update comments.
1388
1389 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1390 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1391 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1392 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1393 tui/tui.c: Replace references to deprecated_selected_frame.
1394
1395 2007-02-27 Fred Fish <fnf@specifix.com>
1396
1397 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
1398 directly decrement the stack pointer, accumulate their operand into
1399 the stack offset, and mark the function as not being frameless.
1400
1401 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1402
1403 * arch-utils.c (selected_byte_order): New.
1404 * arch-utils.h (selected_byte_order): New prototype.
1405 * remote-sim.c (gdbsim_open): Use selected_byte_order.
1406
1407 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1408
1409 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
1410 (default_symfile_offsets): Check VMA here. Update section VMAs.
1411
1412 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1413
1414 * remote.c (init_remote_state): Add special handling for placeholder
1415 registers.
1416
1417 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1418
1419 * Makefile.in (XMLFILES): Include $(TDEP_XML).
1420 (filenames_h): New variable.
1421 (clean): Clean up xml-builtin.c and stamp-xml.
1422 (arm-linux-nat.o): Update.
1423 * config/arm/linux.mh (TDEP_XML): Define.
1424 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1425 (arm_linux_has_wmmx_registers): New.
1426 (GET_THREAD_ID): Fix typo.
1427 (IWMMXT_REGS_SIZE): Define.
1428 (fetch_wmmx_regs, store_wmmx_regs): New.
1429 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1430 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1431 (super_xfer_partial, arm_linux_xfer_partial): New.
1432 (_initialize_arm_linux_nat): Use them.
1433 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1434 (xml_builtin_xfer_partial): New function.
1435 * xml-support.h (xml_builtin_xfer_partial): New prototype.
1436 * NEWS: Update mention of iWMMXt support.
1437
1438 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1439
1440 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1441 if there are no FPA registers.
1442 (arm_dwarf_reg_to_regnum): New function.
1443 (arm_register_type, arm_register_name): Return minimal values for
1444 unsupported registers.
1445 (arm_register_sim_regno): Handle iWMMXt registers.
1446 (arm_gdbarch_init): Record missing FPA registers if indicated by
1447 a target description. Recognize iWMMXt registers. Only register
1448 "info float" for FPA. Use ARM_NUM_REGS. Register
1449 arm_dwarf_reg_to_regnum.
1450 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1451 constants.
1452 (struct gdbarch_tdep): Add have_fpa_registers.
1453 * features/xscale-iwmmxt.xml: Update capitalization.
1454 * regformats/arm-with-iwmmxt.dat: Regenerated.
1455
1456 2007-02-24 Kevin Buettner <kevinb@redhat.com>
1457
1458 * NEWS (New targets): Add entry for the Toshiba Media Processor.
1459
1460 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1461
1462 * MAINTAINERS (mep): New target.
1463
1464 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1465
1466 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1467 Richard Sandiford:
1468 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1469 (mep-tdep.o): New rule.
1470 * configure.tgt (mep-*-*): New target.
1471 * mep-tdep.c: New file.
1472 * config/mep/mep.mt: New file.
1473
1474 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1475
1476 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1477 BREAKPOINT_HIT and STOP_UNKNOWN.
1478
1479 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1480
1481 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
1482
1483 2007-02-20 Joel Brobecker <brobecker@adacore.com>
1484
1485 * gdb_expat.h (XMLCALL): Define if not already defined.
1486
1487 2007-02-20 Andreas Schwab <schwab@suse.de>
1488
1489 * Makefile.in (symfile.o): Update dependencies.
1490
1491 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1492
1493 * MAINTAINERS: Disable -Werror for cris simulator. Build
1494 sparc64-solaris2.10 instead of the broken sparc-elf.
1495 * solib-frv.c: Include "solib.h".
1496 * Makefile.in (solib-frv.o): Update.
1497 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1498 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1499 (xtensa_frame_this_id, xtensa_frame_prev_register)
1500 (xtensa_push_dummy_call): Use %p.
1501
1502 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1503
1504 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1505 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1506 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1507 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1508 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1509 (sparc-linux-tdep.o): Update.
1510
1511 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
1512
1513 * xtensa-tdep.h (xtensa_reg_mask_t): New.
1514 (xtensa_mask_t): Change mask field to be a separate array.
1515 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1516 (xtensa_pseudo_register_write, xtensa_unwind_pc)
1517 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1518 (xtensa_breakpoint_from_pc): Remove implicit type casting.
1519 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1520 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1521 (mask14, mask15): Rename to
1522 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1523 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1524 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1525 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1526 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1527 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1528 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1529 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1530 (xtensa_submask14, xtensa_submask15): New.
1531 (rmap): Follow strict aliasing rules doing static initialization.
1532
1533 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
1534
1535 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1536 handling from here...
1537 (tdesc_register_type): ...to here.
1538 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1539 * features/arm-core.xml: Use code_ptr and data_ptr.
1540
1541 2007-02-13 Denis Pilat <denis.pilat@st.com>
1542
1543 * varobj.h (enum varobj_update_error): New enum.
1544 * varobj.c (struct varobj_root): Add is_valid member.
1545 (varobj_get_type): Check for invalid varobj.
1546 (varobj_get_attributes): Likewise.
1547 (variable_editable):Likewise.
1548 (varobj_update): Likewise. Use varobj_update_error.
1549 (new_root_variable): Set root varobj as valid by default.
1550 (varobj_invalidate): New function.
1551 * symfile.c (clear_symtab_users): Use varobj_invalidate.
1552 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1553 Use varobj_update_error.
1554
1555 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
1556
1557 Fix PR pascal/2223.
1558 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1559 Pascal language marker.
1560 * dwarf2read.c (set_cu_language): Likewise.
1561
1562 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
1563
1564 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1565 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1566 instead of target_terminal_init since inferior_ptid isn't set yet.
1567
1568 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
1569
1570 * MAINTAINERS (Write After Approval): Add myself.
1571
1572 2007-02-09 Fred Fish <fnf@specifix.com>
1573
1574 Based on work by Apple Computer, Inc.
1575 * event-top.c (async_request_quit): Call quit() whenever either
1576 quit_flag is set or immediate_quit is set.
1577
1578 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1579
1580 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1581 type to a pointer to const struct block.
1582 (ada_lookup_symbol_list): Don't cast away constness when calling
1583 remove_out_of_scope_renamings.
1584
1585 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1586
1587 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1588 address of 'filename'; it is always non null.
1589
1590 2007-02-09 Joel Brobecker <brobecker@adacore.com>
1591
1592 * exec.c (add_to_section_table): Do not discard empty sections.
1593
1594 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1595
1596 * features/Makefile, features/arm-with-iwmmxt.xml,
1597 features/gdbserver-regs.xsl, features/number-regs.xsl,
1598 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1599 * regformats/arm-with-iwmmxt.dat: Generate.
1600 * NEWS: Mention iWMMXt.
1601
1602 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1605 (xml-tdesc.o): Update.
1606 * xml-support.c: Add a comment.
1607 (gdb_xml_enums_boolean): New variable.
1608 (gdb_xml_parse_attr_enum): Use strcasecmp.
1609 * xml-support.h (gdb_xml_enums_boolean): Declare.
1610 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1611 next_regnum, and current_union.
1612 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1613 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1614 (field_attributes, union_children, reg_attributes, union_attributes)
1615 (vector_attributes, feature_attributes, feature_children): New.
1616 (target_children): Make static. Add <feature>.
1617 (tdesc_elements): Make static.
1618 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1619 (struct tdesc_feature, tdesc_feature_p): New types.
1620 (struct target_desc): Add features member.
1621 (struct tdesc_arch_data, tdesc_data): New.
1622 (target_find_description): Clarify error message. Warn about
1623 ignored register descriptions.
1624 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1625 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1626 (tdesc_data_cleanup, tdesc_numbered_register)
1627 (tdesc_numbered_register_choices, tdesc_find_register)
1628 (tdesc_register_name, tdesc_register_type)
1629 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1630 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1631 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1632 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1633 (tdesc_create_feature, tdesc_record_type): New.
1634 (free_target_description): Free features.
1635 (_initialize_target_descriptions): Initialize tdesc_data.
1636 * arch-utils.c (default_remote_register_number): New.
1637 * arch-utils.h (default_remote_register_number): New prototype.
1638 * target-descriptions.h (set_tdesc_pseudo_register_name)
1639 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1640 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1641 (tdesc_numbered_register, tdesc_numbered_register_choices)
1642 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1643 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1644 (tdesc_create_reg): Declare.
1645 * gdbarch.sh (remote_register_number): New entry.
1646 * gdbarch.c, gdbarch.h: Regenerate.
1647 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1648 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1649
1650 * arm-tdep.c (arm_register_aliases): New.
1651 (arm_register_name_strings): Rename to...
1652 (arm_register_names): ...this. Make const. Delete the old version.
1653 (current_option, arm_register_byte): Delete.
1654 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1655 (value_of_arm_user_reg): New.
1656 (arm_gdbarch_init): Verify any described registers. Call
1657 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1658 for standard register names.
1659 (_initialize_arm_tdep): Do not adjust arm_register_names.
1660 * user-regs.c (struct user_reg): Add baton member.
1661 (append_user_reg, user_reg_add_builtin, user_regs_init)
1662 (user_reg_add, value_of_user_reg): Use a baton for user
1663 register functions.
1664 * std-regs.c: Update.
1665 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1666 (user_reg_add): Add baton argument.
1667 * NEWS: Mention target description register support.
1668 * features/arm-core.xml, features/arm-fpa.xml: New.
1669 * eval.c (evaluate_subexp_standard): Allow ptype $register
1670 when the program is not running.
1671
1672 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1673
1674 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1675
1676 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1677
1678 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1679 info->disassembler_options to "any".
1680
1681 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1682
1683 * varobj.c (install_new_value): Only call value_get_print_value
1684 if changeable.
1685
1686 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1687
1688 Reported by timeless@gmail.com:
1689 * gdb/target.c (target_flash_erase): Do not return void value.
1690 (target_flash_done): Likewise.
1691 * gdb/cli/cli-cmds.c (source_command): Likewise.
1692
1693 2007-02-08 Fred Fish <fnf@specifix.com>
1694
1695 Based on work by Apple Computer, Inc.
1696 * event-top.c (handle_sigint): Set quit_flag.
1697 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1698 if quit_flag has already been reset.
1699
1700 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1701
1702 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1703 up.
1704
1705 2007-02-08 Fred Fish <fnf@specifix.com>
1706
1707 * defs.h (request_quit): Remove declaration.
1708 * utils.c (request_quit): Remove definition.
1709
1710 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1711 Jan Kratochvil <jan.kratochvil@redhat.com>
1712 Daniel Jacobowitz <dan@codesourcery.com>
1713
1714 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1715 (skip_prologue): Allow bl->blrl used by PIC code.
1716
1717 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1718 Daniel Jacobowitz <dan@codesourcery.com>
1719
1720 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1721 initialize tmp_obstack.
1722 * p-valprint.c (pascal_object_print_value_fields)
1723 (pascal_object_print_value): Likewise.
1724
1725 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1726
1727 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1728
1729 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1730
1731 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1732 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1733
1734 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1735
1736 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1737 (xml_cache): New.
1738 (tdesc_parse_xml): Cache expanded descriptions.
1739
1740 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1741
1742 * Makefile.in (XMLFILES): New.
1743 (COMMON_OBS): Add xml-builtin.o.
1744 (xml-builtin.c, stamp-xml): New rules.
1745 (xml-tdesc.o): Update.
1746 * features/feature_to_c.sh: New file.
1747 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1748 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1749 (gdb_xml_start_element): Initialize scope after possibly reallocating
1750 scopes. Move cleanup later. Handle the XInclude description
1751 specially.
1752 (gdb_xml_end_element): Only parse the body if there is a current element.
1753 Call XML_DefaultCurrent if there is no element.
1754 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1755 (struct xinclude_parsing_data, xinclude_start_include)
1756 (xinclude_end_include, xml_xinclude_default)
1757 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1758 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1759 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1760 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1761 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1762 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1763 XInclude directives. Use the compiled in DTD.
1764 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1765 directory name. Do not warn here.
1766 (file_read_description_xml): Update call. Warn here instead. Pass
1767 a dirname as baton.
1768 (fetch_available_features_from_target): New.
1769 (target_read_description_xml): Use it.
1770 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1771 to handle XInclude.
1772 * features/xinclude.dtd: New file.
1773
1774 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1775
1776 * linux-thread-db.c (check_for_thread_db): Return early if we have
1777 no libthread_db support.
1778
1779 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1780
1781 * mi/mi-parse.h: Include <sys/time.h>.
1782
1783 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1784
1785 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1786 instead of print_variable_value to print values.
1787
1788 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1789
1790 * mi/mi-main.c: Numerous formatting changes.
1791 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1792 removed in my previous change.
1793
1794 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1795
1796 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1797 Use 1000000L instead of 1000000.
1798
1799 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1800
1801 Based on work by Apple Computer, Inc.
1802
1803 * configure.ac: Test for sys/resource.h and getrusage.
1804 * configure, config.in: Regenerate.
1805
1806 * mi/mi-main.c: Include <sys/resource.h> if present.
1807 (rusage): Declare if HAVE_GETRUSAGE.
1808 (current_command_ts, do_timings): New static variables.
1809 (timestamp, print_diff_now, print_diff, timeval_diff):
1810 New static timing functions.
1811 (mi_cmd_enable_timings): New function for new MI command.
1812 (captured_mi_execute_command, mi_execute_async_cli_command):
1813 Call timing functions.
1814
1815 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1816 -enable-timings.
1817
1818 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1819
1820 * mi/mi-parse.h: (mi_timestamp): New structure.
1821 (mi_parse): Add mi_timestamp* member.
1822
1823 2007-02-02 Denis Pilat <denis.pilat@st.com>
1824
1825 * thread.c (make_cleanup_restore_current_thread): New function.
1826 (info_threads_command): Use of make_cleanup_restore_current_thread
1827 to restore the current thread and the selected frame.
1828 (restore_selected_frame): New function.
1829 (struct current_thread_cleanup): Add frame_id field.
1830 (do_restore_current_thread_cleanup): Add restoring of the selected
1831 frame.
1832 (make_cleanup_restore_current_thread): Likewise.
1833 (thread_apply_all_command): backup the selected frame while
1834 entering the function and restore it at exit.
1835 (thread_apply_command): Likewise.
1836
1837 2007-02-02 Denis Pilat <denis.pilat@st.com>
1838
1839 * MAINTAINERS (Write After Approval): Add myself to the list.
1840
1841 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1842
1843 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1844 (m32r_store_register): Ditto.
1845
1846 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1847
1848 * ser-mingw.c (pipe_windows_open)
1849 (pipe_windows_read, pipe_windows_write): Declare
1850 variables at the top of the function.
1851
1852 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1853
1854 * doublest.c (floatformat_from_length): Use the right element from
1855 gdbarch floatformats.
1856 (floatformat_from_type, extract_typed_floating)
1857 (store_typed_floating): Likewise.
1858 * doublest.h: Remove declarations for undefined floatformat arrays.
1859 * gdbarch.sh (float_format, double_format, long_double_format): Change
1860 to pairs.
1861 (pformat): Update for pairs.
1862 * gdbarch.c, gdbarch.h: Regenerated.
1863 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1864 (floatformats_ieee_double_littlebyte_bigword)
1865 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1866 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1867 (floatformats_vax_d): New variables.
1868 (builtin_type_ieee_single, builtin_type_ieee_double)
1869 (builtin_type_arm_ext, builtin_type_ia64_spill)
1870 (builtin_type_ia64_quad): Replace arrays with individual types.
1871 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1872 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1873 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1874 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1875 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1876 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1877 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1878 unused and endian-specific types.
1879 (recursive_dump_type): Update for floatformat pairs.
1880 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1881 (build_gdbtypes): Use build_flt.
1882 (_initialize_gdbtypes): Update set of initialized types.
1883 * gdbtypes.h: Update declarations to match gdbtypes.c.
1884 (struct main_type): Store a pointer to two floatformats.
1885 * arch-utils.c (default_float_format, default_double_format): Delete.
1886 * arch-utils.h (default_float_format, default_double_format): Delete.
1887
1888 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1889 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1890 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1891 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1892 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1893
1894 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1895
1896 * target.c (maintenance_print_target_stack): New function.
1897 (initialize_targets): Add new "maintenance print target-stack"
1898 command.
1899
1900 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1901
1902 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1903
1904 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1905
1906 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1907 (struct dwarf2_loclist_baton): Likewise.
1908
1909 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1910
1911 * cli/cli-script.c: Include breakpoint.h.
1912 (build_command_line): Require arguments only for if and while
1913 commands.
1914 (get_command_line, execute_user_command, execute_control_command):
1915 Fix wording of warning messages.
1916 (print_command_lines): Print breakpoint commands.
1917 (execute_control_command): Call commands_from_control_command to
1918 handle the `commands' command inside a body of a flow-control
1919 command.
1920 (read_next_line): Recognize the `commands' command and build a
1921 command line structure for it.
1922 (recurse_read_control_structure, read_command_lines): Handle
1923 `commands' similarly to `if' and `while'.
1924
1925 * breakpoint.c (get_number_trailer): Document the special meaning
1926 of NULL as the first argument PP.
1927 (commands_from_control_command): New function.
1928
1929 * breakpoint.h (commands_from_control_command): Add prototype.
1930
1931 * defs.h (commands_control): New enumerated value for enum
1932 command_control_type.
1933
1934 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1935
1936 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1937 (ada_exception_sal): Update accordingly.
1938
1939 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1940
1941 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1942 * NEWS: Describe CHAR array vs. string identifcation rules.
1943
1944 2007-01-25 Paul Brook <paul@codesourcery.com>
1945
1946 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1947
1948 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1949
1950 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1951 expression is empty, bother to return the 'optimized out' value we
1952 construct. (Thanks to Carl Burch.)
1953
1954 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1955
1956 * varobj.c (c_value_of_root, c_value_of_child)
1957 (cplus_describe_child): Don't call release_value.
1958
1959 2007-01-24 Thiemo Seufer <ths@mips.com>
1960
1961 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1962 initialization.
1963
1964 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1965
1966 Refactor getting children name, value and type access
1967 for varobjs in C++.
1968 * varobj.c (get_type_deref): Remove.
1969 (adjust_value_for_child_access): New.
1970 (c_number_of_children): Use the above.
1971 (c_describe_child): Likewise.
1972 (enum accessibility): New.
1973 (match_accessibility): New function.
1974 (cplus_describe_child): New function.
1975 (cplus_name_of_child, cplus_value_of_child)
1976 (cplus_type_of_child): Reimplement in terms
1977 of cplus_describe_child.
1978 (cplus_number_of_children): Use
1979 adjust_value_for_child_access.
1980
1981 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1982
1983 Fix computation of the 'editable' attribute and
1984 value changeability for for references.
1985 * varobj.c (get_value_type): New function.
1986 (c_variable_editable): Use get_value_type.
1987 (varobj_value_is_changeable): Likewise.
1988
1989 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1990
1991 * source.c (find_and_open_source): Try rewriting the source
1992 path inside filename if dirname is NULL.
1993
1994 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1995
1996 * dwarf2read.c (add_partial_symbol): Create an extra partial
1997 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1998 (new_symbol): Likewise for symbols.
1999
2000 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
2001
2002 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
2003
2004 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
2005
2006 * value.c (value_primitive_field): Copy the full 'location'
2007 contents, instead of assuming that copying ADDRESS will
2008 bring over everything in the union. Remove obsolete comment.
2009
2010 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
2011
2012 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
2013 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
2014 (m32c_m16c_pointer_to_address): Separate code from declarations.
2015
2016 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
2017
2018 * target.c (update_current_target): Correct typo.
2019
2020 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
2021
2022 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
2023 declaration.
2024
2025 2007-01-11 Andrew Cagney <cagney@redhat.com>
2026 Daniel Jacobowitz <dan@codesourcery.com>
2027 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 * dwarf2-frame.c (execute_cfa_program): New support of
2030 `DW_CFA_GNU_negative_offset_extended'.
2031
2032 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2033
2034 * NEWS: Mention flash support for "load" and new remote packets.
2035
2036 2007-01-21 Markus Deuling <deuling@de.ibm.com>
2037
2038 * breakpoint.c (delete_command): Skip redundant loop iterations.
2039
2040 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2041
2042 * gdbarch.sh (register_type): Update comment.
2043 * gdbarch.h: Regenerated.
2044 * arch-utils.c (generic_register_size): Call register_type.
2045 * ia64-tdep.c (ia64_extract_return_value): Likewise.
2046 * m32c-tdep.c (check_for_saved): Likewise.
2047 * mips-tdep.c (mips_print_register, print_gp_register_row)
2048 (mips_print_registers_info): Likewise.
2049 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
2050 Likewise.
2051 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
2052 (sh64_do_register, sh64_print_register)
2053 (sh64_media_print_registers_info): Likewise.
2054 * tui/tui-regs.c (tui_register_format): Likewise.
2055
2056 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2057
2058 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
2059
2060 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
2061 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
2062 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
2063 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2064 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
2065 (make_symbol_completion_list): Likewise.
2066
2067 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2068 Daniel Jacobowitz <dan@codesourcery.com>
2069
2070 * buildsym.c (end_symtab): Use preallocated symtab if available.
2071 Fill in SYMBOL_SYMTAB.
2072 * buildsym.h (struct subfile): Add symtab member.
2073 * dwarf2read.c (struct dwarf2_cu): Add line_header.
2074 (struct file_entry): Add symtab.
2075 (free_cu_line_header): New function.
2076 (read_file_scope): Use it. Save line_header in the cu. Process
2077 lines before DIEs.
2078 (add_file_name): Initialize new symtab member.
2079 (dwarf_decode_lines): Create symtabs for included files.
2080 (new_symbol): Set SYMBOL_SYMTAB.
2081 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
2082 (search_symbols): Likewise.
2083 * symtab.h (struct symbol): Add symtab member.
2084 (SYMBOL_SYMTAB): Define.
2085
2086 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2087
2088 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
2089
2090 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2091
2092 * arch-utils.c (show_endian): Correct reversed condition.
2093
2094 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2095
2096 * MAINTAINERS (Write After Approval): Add myself.
2097
2098 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
2099 Vladimir Prus <vladimir@codesourcery.com>
2100
2101 Fix 'selected frame' varobjs.
2102 * varobj.c (struct varobj): Remove the error field.
2103 (varobj_set_value): Don't check var->error.
2104 (install_new_value): Don't set var->error.
2105 (varobj_update): Always pass the new value
2106 of the root via install_new_value.
2107 (create_child): Don't set error field.
2108 (new_variable): Likewise.
2109 (c_value_of_root): Always reevaluate the value
2110 of selected frame varobjs in the selected frame.
2111 Don't call reinit_frame_cache.
2112
2113 2007-01-15 Joel Brobecker <brobecker@adacore.com>
2114
2115 * source.c (_initialize_source): Improve the help text of
2116 the substitute-path commands.
2117
2118 2007-01-14 Mark Kettenis <kettenis@gnu.org>
2119
2120 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
2121 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
2122 (frv_skip_prologue): Remove prototypes.
2123 (frv_adjust_breakpoint_address): Renamed from
2124 frv_gdbarch_adjust_breakpoint_address.
2125 (frv_gdbarch_init): Adjust.
2126
2127 2007-01-13 Mark Kettenis <kettenis@gnu.org>
2128
2129 * gdbarch.sh (deprecated_extract_return_value)
2130 (deprecated_store_return_value): Remove.
2131 (extract_return_value, store_return_value): Remove default values.
2132 * gdbarch.c, gdbarch.h: Regenerate.
2133 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
2134 (legacy_store_return_value): Remove.
2135 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
2136 Remove.
2137
2138 * mi/mi-main.c: Remove obsolete comment.
2139
2140 * regcache.c, regcache.h (deprecated_register_bytes)
2141 (deprecated_read_register_bytes)
2142 (deprecated_write_register_bytes): Remove.
2143
2144 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
2145 Don't forget to move destination pointer.
2146
2147 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2148
2149 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
2150
2151 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
2152
2153 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
2154 past entry function with recent newlib.
2155
2156 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
2157
2158 * gdb.texinfo (GDB/MI Variable Objects): Improve the
2159 introduction. Specify -var-update more exactly.
2160
2161 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
2162
2163 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
2164
2165 2007-01-10 Jim Blandy <jimb@codesourcery.com>
2166
2167 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
2168 the Global Maintainers' invitation to be a global maintainer.
2169
2170 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
2171
2172 * infrun.c (singlestep_pc): New variable.
2173 (resume): Set singlestep_pc.
2174 (context_switch): Add a debugging message. Flush the frame cache.
2175 (handle_inferior_event): Add debugging messages. Handle thread
2176 hops when a software single step has completed. Let context_switch
2177 handle flushing the frame cache.
2178
2179 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2180
2181 * NEWS: Mention target descriptions, "set tdesc filename",
2182 "unset tdesc filename", "show tdesc filename", and
2183 qXfer:features:read.
2184 * arch-utils.c (choose_architecture_for_target): New function.
2185 (gdbarch_info_fill): Call it.
2186 * target-descriptions.c (struct property): Make members non-const.
2187 (struct target_desc): Add arch member.
2188 (target_description_filename): New variable.
2189 (target_find_description): Try via XML first.
2190 (tdesc_architecture): New.
2191 (free_target_description, make_cleanup_free_target_description): New.
2192 (set_tdesc_property): Call xstrdup.
2193 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
2194 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
2195 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
2196 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
2197 * target-descriptions.h (tdesc_architecture)
2198 (make_cleanup_free_target_description, set_tdesc_architecture): New
2199 prototypes.
2200 * Makefile.in (SFILES): Add xml-tdesc.c.
2201 (COMMON_OBS): Add xml-tdesc.o.
2202 (target-descriptions.o): Update.
2203 (xml-tdesc.o): New rule.
2204 * xml-tdesc.c, xml-tdesc.h: New files.
2205 * remote.c (PACKET_qXfer_features): New enum.
2206 (remote_protocol_features): Add qXfer:features:read.
2207 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
2208 (_initialize_remote): Register qXfer:features:read.
2209 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
2210 * features/gdb-target.dtd: New file.
2211
2212 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2213
2214 * copyright.sh: Clarify error.
2215
2216 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2217
2218 * symtab.c (matching_bfd_sections): Fix VMA matching for
2219 prelinked objects.
2220
2221 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2222
2223 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
2224 nested symbols.
2225
2226 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2227
2228 Updated copyright notices for most files.
2229
2230 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2231
2232 * copyright.sh (prunes): Add step-line.inp and step-line.c.
2233
2234 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2235
2236 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
2237 exec_prefix.
2238 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
2239 '${prefix}'.
2240 * configure, config.in: Regenerate.
2241 * defs.h (debug_file_directory): Declare.
2242 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
2243 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
2244 relocate it if DEBUGDIR_RELOCATABLE.
2245 * symfile.c (debug_file_directory): Make non-static.
2246 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
2247 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
2248 (_initialize_symfile): Don't initialize debug_file_directory here.
2249
2250 2007-01-09 Jim Blandy <jimb@codesourcery.com>
2251
2252 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
2253 statements.
2254
2255 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2256
2257 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
2258 frame_unwind_register to recurse.
2259 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
2260 (alpha_heuristic_frame_prev_register): Likewise.
2261 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
2262 * m32c-tdep.c (m32c_prev_register): Likewise.
2263 * frame.c (frame_register_unwind_location): Remove FIXME.
2264
2265 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2266 Eli Zaretskii <eliz@gnu.org>
2267
2268 * copyright.sh: New file.
2269
2270 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2271
2272 * configure.ac: Check for XML_StopParser.
2273 * xml-support.c (gdb_xml_body_text): Check for an error.
2274 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
2275 (gdb_xml_end_element_wrapper): Likewise.
2276 * config.in, configure: Regenerated.
2277
2278 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2279
2280 * varobj.c (install_new_value): Always update print_value.
2281 (value_get_print_value): Immediately return NULL for missing
2282 values.
2283
2284 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2285
2286 * configure.ac: Tighten pattern for extracting value of
2287 DEPRECATED_TM_FILE from the target makefile fragment.
2288 * configure: Regenerated.
2289
2290 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2291
2292 * linux-nat.c (struct simple_pid_list): Add status.
2293 (add_to_pid_list): Record the PID's status.
2294 (linux_record_stopped_pid): Likewise. Make static.
2295 (pull_pid_from_list): Return the saved status.
2296 (linux_nat_handle_extended): Deleted.
2297 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2298 Make static. Handle non-SIGSTOP for a new thread's first signal.
2299 (flush_callback): Handle unexpected pending signals.
2300 (linux_nat_wait): Update calls to changed functions.
2301 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2302 Remove prototypes for newly static functions.
2303
2304 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2305
2306 * gdbarch.sh (value_from_register): New gdbarch function.
2307 * gdbarch.c, gdbarch.h: Regenerate.
2308 * findvar.c (default_value_from_register): New function.
2309 (value_from_register): Use gdbarch_value_from_register.
2310 * value.h (default_value_from_register): Declare.
2311 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2312 spu_value_to_register): Remove.
2313 (spu_value_from_register): New function.
2314 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2315 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2316 Call set_gdbarch_value_from_register.
2317 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2318 s390_value_to_register): Remove.
2319 (s390_value_from_register): New function.
2320 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2321 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2322 Call set_gdbarch_value_from_register.
2323
2324 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2325
2326 * NEWS: Add "set sysroot" and "show sysroot".
2327 * solib.c (solib_absolute_prefix): Delete. Replace
2328 all uses with gdb_sysroot.
2329 (_initialize_solib): Add "set sysroot" and "show sysroot".
2330 Make "solib-absolute-prefix" an alias to it.
2331
2332 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2333
2334 * frame.c (get_frame_register_bytes): New function.
2335 (put_frame_register_bytes): Likewise.
2336 * frame.h (get_frame_register_bytes): Declare.
2337 (put_frame_register_bytes): Likewise.
2338 * findvar.c (value_from_register): Always construct lval_register
2339 values. Use get_frame_register_bytes.
2340 * valops.c (value_assign): Use get_frame_register_bytes and
2341 put_frame_register_bytes.
2342
2343 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2344
2345 * MAINTAINERS: Update Stan Shebs' email address.
2346
2347 2007-01-07 Joel Brobecker <brobecker@adacore.com>
2348
2349 * ada-lang.c (is_known_support_routine): Improve the implementation.
2350
2351 2007-01-06 Joel Brobecker <brobecker@adacore.com>
2352
2353 * ada-lang.c: Add include of source.h.
2354 (is_known_support_routine): Improve the check verifying that the file
2355 associated to this frame exists.
2356 * Makefile.in (ada-lang.o): Add dependency on source.h.
2357
2358 2007-01-07 Jim Blandy <jimb@codesourcery.com>
2359
2360 * ax-general.c (ax_const_l): Select proper opcode for the given
2361 value.
2362
2363 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
2364
2365 * varobj.c (c_value_of_root): Don't select frame if variable
2366 object is out of scope.
2367
2368 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2369
2370 * varobj.c (struct varobj): New member print_value.
2371 (install_new_value): Compare last printed value with current one
2372 instead of contents.
2373 (new_variable): Initialize var->print_value to NULL.
2374 (free_variable): Free var->print_value.
2375 (value_get_print_value): New function derived from
2376 c_value_of_variable.
2377 (c_value_of_variable): Use value_get_print_value.
2378
2379 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2380
2381 * i386-tdep.c (i386_analyze_stack_align): Add comment.
2382
2383 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2384
2385 * NEWS: Add entries for new catch commands.
2386
2387 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2388
2389 * dwarf2read.c (partial_die_info): Add field has_byte_size.
2390 (add_partial_symbol): Correct identification of external references.
2391 (process_structure_scope): Likewise.
2392 (read_partial_die): Handle DW_AT_byte_size attribute.
2393
2394 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
2395
2396 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2397
2398 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2399
2400 * varobj.c (get_type_deref): Fix variable objects for references to
2401 pointers.
2402
2403 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2404
2405 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
2406 with no symbols.
2407
2408 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2409
2410 * memory-map.c (struct_memory_map_parsing_data): Remove most
2411 members. Make property_name an array.
2412 (free_memory_map_parsing_data, memory_map_start_element)
2413 (memory_map_end_element, memory_map_character_data): Delete.
2414 (memory_map_start_memory, memory_map_end_memory)
2415 (memory_map_start_property, memory_map_end_property): New functions.
2416 (property_attributes, memory_children, memory_type_enum)
2417 (memory_attributes, memory_map_children, memory_map_elements): New.
2418 (parse_memory_map): Rewrite.
2419 * xml-support.c (debug_xml): New.
2420 (xml_get_required_attribute, xml_get_integer_attribute)
2421 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2422 Delete.
2423 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2424 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2425 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2426 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2427 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2428 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2429 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2430 New.
2431 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2432 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2433 (enum gdb_xml_element_flag, struct gdb_xml_element)
2434 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2435 (struct gdb_xml_enum): New.
2436 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2437 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2438 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2439 (xml_get_required_attribute, xml_get_integer_attribute)
2440 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2441 * Makefile.in (xml_support_h, xml-support.o): Update.
2442
2443 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2444
2445 * Makefile.in (eval.o): Update dependencies.
2446 * eval.c: Include "ui-out.h" and "exceptions.h".
2447 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2448 Use value_zero if an error occurs when avoiding side effects.
2449 * varobj.c (c_value_of_root): Initialize new_val.
2450
2451 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2452
2453 * varobj.c (varobj_list_children): Stop if the number of children is
2454 unknown.
2455 (c_number_of_children):
2456
2457 2007-01-04 Mark Kettenis <kettenis@gnu.org>
2458
2459 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2460 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2461 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2462 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2463 sizeof, instead of hardcoded constants.
2464
2465 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2466
2467 * CONTRIBUTE: Use sourceware.org.
2468
2469 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2470
2471 * buildsym.c (start_subfile): Handle producer.
2472 (record_producer): New function.
2473 * buildsym.h (struct subfile): Include producer.
2474 (record_producer): New prototype.
2475 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2476 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2477 armcc_cfa_offsets_reversed.
2478 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2479 (dwarf2_frame_find_quirks): New function.
2480 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
2481 (decode_frame_entry_1): Record the CIE version. Record the
2482 augmentation. Skip armcc augmentations.
2483 * dwarf2read.c (read_file_scope): Save the producer.
2484 * symtab.h (struct symtab): Rename unused version member to
2485 producer.
2486
2487 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2488
2489 * configure.ac (build_warnings): Use -Wall and
2490 -Wdeclaration-after-statement.
2491 * configure: Regenerated.
2492
2493 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2494
2495 Simplify access to variours properties of child
2496 variable objects in C.
2497 * varobj.c (value_struct_element_index): New function.
2498 (c_describe_child): New function.
2499 (c_name_of_child, c_value_of_child)
2500 (c_type_of_child): Rewrite to use c_describe_child.
2501
2502 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2503
2504 gdb/
2505 * varobj.c: Include "vec.h".
2506 (varobj_p): New typedef, declare vector of those.
2507 (struct varobj): Use vector for the 'children' member.
2508 (child_exists): Remove.
2509 (save_child_in_parent): Remove.
2510 (remove_child_from_parent): Remove.
2511 (struct varobj_child): Remove.
2512 (struct vstack): Remove.
2513 (vpush, vpop): Remove.
2514 (varobj_list_children): Adjust to work work vector.
2515 (varobj_update): Likewise. Use vectors for
2516 working stack and result.
2517 (delete_variable_1): Likewise.
2518 * Makefile.in (varobj.o): Update dependencies.
2519
2520 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2521
2522 Port from Apple's version.
2523 gdb/
2524 * varobj.c (type_changeable): Rename to...
2525 (varobj_value_is_changeable_p): ...this. Adjust all callers.
2526 (is_root_p): New function. Use it everywhere.
2527
2528 2007-01-04 Jim Blandy <jimb@codesourcery.com>
2529
2530 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2531 then plain 'fixup'.
2532
2533 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2534
2535 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2536
2537 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2538
2539 * hpread.c (hpread_type_lookup): Fix compilation failure.
2540
2541 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
2542
2543 * NEWS: New port to S+core.
2544 * MAINTAINERS (Write After Approval, Responsible Maintainers):
2545 Add myself.
2546
2547 * Makefile.in: Add dependencies for S+core files.
2548 * configure.tgt (score*, score-*-*): Add S+core target.
2549 * config/score/embed.mt: New file.
2550 * score-tdep.c: New file.
2551 * score-tdep.h: New file.
2552
2553 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2554
2555 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2556 the appropriate type rather than a bogus void type.
2557
2558 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2559
2560 * ada-lang.h (ada_find_printable_frame): Remove.
2561 (ada_exception_catchpoint_p, ada_decode_exception_location)
2562 (ada_decode_assert_location): Add declaration.
2563 * ada-lang.c: Add include of annotate.h and valprint.h.
2564 (exception_catchpoint_kind): New enum.
2565 (function_name_from_pc, is_known_support_routine)
2566 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2567 (ada_exception_name_addr_1, ada_exception_name_addr)
2568 (print_it_exception, print_one_exception, print_mention_exception)
2569 (print_it_catch_exception, print_one_catch_exception)
2570 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2571 (print_it_catch_exception_unhandled)
2572 (print_one_catch_exception_unhandled)
2573 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2574 (print_one_catch_assert, print_mention_catch_assert)
2575 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2576 (ada_get_next_arg, catch_ada_exception_command_split)
2577 (ada_exception_sym_name, ada_exception_sym_name)
2578 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2579 (ada_parse_catchpoint_condition, ada_exception_sal)
2580 (ada_decode_exception_location)
2581 (ada_decode_assert_location): New function.
2582 (catch_exception_unhandled_breakpoint_ops): New global variable.
2583 (catch_assert_breakpoint_ops): New global variable.
2584 * breakpoint.c: Add include of ada-lang.h.
2585 (print_one_breakpoint): Do not print the condition for Ada
2586 exception catchpoints.
2587 (create_ada_exception_breakpoint): New function.
2588 (catch_ada_exception_command, catch_assert_command): New function.
2589 (catch_command_1): Add support for the new "catch exception" and
2590 "catch assert" commands.
2591 (_initialize_breakpoint): Add help description for the new catch
2592 commands.
2593 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2594 valprint.h.
2595 (breakpoint.o): Add dependency on ada-lang.h.
2596
2597 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2598
2599 * coffread.c (cs_to_section): If bfd_section is found, always
2600 return its section index.
2601 (coff_symtab_read): Determine the minimal_symbol_type using the
2602 bfd_section flags.
2603
2604 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 Daniel Jacobowitz <dan@codesourcery.com>
2606
2607 * Makefile.in (top.o): Update.
2608 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2609 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2610 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2611 New.
2612 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2613
2614 2007-01-03 Mark Kettenis <kettenis@gnu.org>
2615
2616 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2617 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2618
2619 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2620
2621 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2622 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2623 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2624 greater than or equal to zero.
2625 * m2-typeprint.c (m2_array): Likewise.
2626 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2627 * gdbtypes.c (copy_type_recursive): Correct == typo.
2628 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2629 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2630 greater than zero.
2631 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2632 (default_macro_scope): Remove unused variable.
2633 * prologue-value.h (pv_area_find_reg): Don't name an argument
2634 "register".
2635 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2636 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2637 type.
2638 (cleanup_sigint_signal_handler): Remove casts.
2639 * valprint.c (val_print): Use a volatile local for the modified
2640 argument.
2641 * varobj.c (languages): Remove extra array dimension.
2642 (varobj_create): Correct access to languages array.
2643 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2644 missing braces.
2645 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2646 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2647 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2648 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2649 (mi_cmd_data_write_memory): Likewise.
2650 * signals/signals.c (target_signal_to_string): Cast to int before
2651 comparing.
2652 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2653 Update all callers.
2654
2655 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2656
2657 * NEWS: Mention pointer to member improvements.
2658 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2659 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2660 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2661 * c-typeprint.c (c_print_type): Update for new type codes.
2662 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2663 (c_type_print_base): Likewise.
2664 (c_type_print_args): Rewrite.
2665 * c-valprint.c (c_val_print): Update for new type codes. Remove
2666 support for references to members. Treat methods like functions.
2667 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2668 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2669 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2670 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2671 (struct cp_abi_ops): Add corresponding members.
2672 * cp-valprint.c (cp_print_class_method): Delete.
2673 (cp_find_class_member): New function.
2674 (cp_print_class_member): Use it. Simplify support for bogus
2675 member pointers.
2676 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2677 lookup_methodptr_type.
2678 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2679 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2680 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2681 pointer support.
2682 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2683 references returned by user defined operators.
2684 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2685 (f_type_print_varspec_suffix): Remove support for member pointers.
2686 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2687 and adjusted.
2688 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2689 (lookup_methodptr_type): New.
2690 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2691 (recursive_dump_type): Update for new types.
2692 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2693 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2694 (lookup_memberptr_type, lookup_methodptr_type)
2695 (smash_to_memberptr_type): New prototypes.
2696 (smash_to_method_type): Formatting fix.
2697 (lookup_member_type, smash_to_member_type): Delete prototypes.
2698 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2699 Do not rely on debug information for the vptr or the method's
2700 enclosing type. Handle function descriptors for IA64.
2701 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2702 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2703 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2704 (gnuv3_method_ptr_to_value): New.
2705 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2706 * hpread.c (hpread_type_lookup): Update for new types.
2707 * infcall.c (value_arg_coerce): Likewise.
2708 * m2-typeprint.c (m2_print_type): Remove explicit support
2709 for member pointers.
2710 * m2-valprint.c (m2_val_print): Likewise.
2711 * p-typeprint.c (pascal_type_print_varspec_prefix)
2712 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2713 * p-valprint.c (pascal_val_print): Likewise.
2714 (pascal_object_print_class_method, pascal_object_print_class_member):
2715 Delete.
2716 * p-lang.h (pascal_object_print_class_method)
2717 (pascal_object_print_class_member): Delete prototypes.
2718 * stabsread.c (read_type): Update for new types.
2719 * typeprint.c (print_type_scalar): Likewise.
2720 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2721 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2722 argument. Construct a pointer to member if the address of a
2723 function or data member is requested.
2724 (value_cast_pointers): Don't modify the input value.
2725 (value_cast): Adjust pointer to member handling for new types.
2726 Allow null pointer to member constants. Don't modify the input
2727 value.
2728 (value_ind): Remove pointer to member check. Handle function
2729 descriptors for function pointers.
2730 (value_struct_elt, value_find_oload_method_list, check_field):
2731 Remove pointer to member checks.
2732 * value.c (unpack_long): Allow pointers to data members.
2733 (value_from_longest): Allow member pointers.
2734 * value.h (value_aggregate_elt): Add want_address.
2735 * varobj.c (c_variable_editable): Remove check for members.
2736 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2737 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2738 in virtual tables.
2739 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2740 * c-lang.h (cp_print_class_method): Delete prototype.
2741 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2742 * mips-tdep.c (mips_gdbarch_init): Likewise.
2743 * gdbarch.c, gdbarch.h: Regenerated.
2744
2745 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2746
2747 * rs6000-tdep.c (rs6000_use_struct_convention)
2748 (rs6000_extract_return_value, rs6000_store_return_value)
2749 (rs6000_extract_struct_value_address): Remove.
2750 (rs6000_return_value): New function.
2751 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2752 store_return_value, deprecated_extract_struct_value_address and
2753 deprecated_use_struct_convention. Use rs6000_return_value
2754 instead.
2755
2756 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2757
2758 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2759 -display-disable, -display-enable, -display-insert and
2760 -display-list.
2761
2762 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2763
2764 * breakpoint.c (remove_breakpoint): Remove dead code.
2765
2766 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2767
2768 * varobj.c: Include block.h.
2769 (c_value_of_root): Check scope within nested statements.
2770
2771 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2772
2773 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2774 regcache_cooked_write_signed instead of
2775 deprecated_write_register_bytes.
2776
2777 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2778
2779 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2780
2781 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2782
2783 Followed the Start of New Year Procedure:
2784 * ChangeLog-2006: New file, containing all the entries for 2006.
2785 * ChangeLog: Removed all 2006 entries, and changed the reference
2786 to the previous ChangeLog to point to ChangeLog 2006.
2787 * top.c (print_gdb_version): Update copyright year.
2788
2789 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2790
2791 * Makefile.in (remote-sds.o): Remove.
2792 * remote-sds.c: Delete.
2793
2794 For older changes see ChangeLog-2006.
2795 \f
2796 Local Variables:
2797 mode: change-log
2798 left-margin: 8
2799 fill-column: 74
2800 version-control: never
2801 End:
This page took 0.113105 seconds and 5 git commands to generate.