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