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