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