Fix month number in brobecke's last entry.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-03-12 Pedro Alves <pedro@codesourcery.com>
2
3 * thread.c (add_thread): Use printf_unfiltered to print.
4
5 2008-03-12 Joel Brobecker <brobecker@gnat.com>
6
7 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8 that is true only on x86-solaris and x86_64-solaris.
9 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
10 with proc_get_LDT_entry.
11
12 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
13
14 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
15 * config.in, configure: Regenerate.
16 * fork-child.c (fork_inferior): Call create_tty_session.
17 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
18 (create_tty_session): New function.
19 * terminal.h: Declare create_tty_session.
20
21 2008-03-12 Alan Modra <amodra@bigpond.net.au>
22
23 PR 5900
24 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
25 * mipsread.c: Include elf/internal.h.
26 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
27 to internal range.
28
29 2008-03-11 Markus Deuling <deuling@de.ibm.com>
30
31 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
32 to get at the current architecture and at the target specific vector.
33 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
34 remove define of I387_ST0_REGNUM.
35
36 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
37
38 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
39 get at the current architecture
40 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
41 parameter.
42
43 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
44 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
45
46 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
47 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
48 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
49
50 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
51 at the target specific vector.
52
53 (i386_get_longjmp_target): Use get_frame_arch to get at the current
54 architecture. Use gdbarch_tdep to get at the target specific vector.
55
56 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
57 update caller. Use gdbarch_tdep to get at the target specific vector.
58
59 (i386_register_to_value: Use get_frame_arch to get at the current
60 architecture.
61
62 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
63 parameter.
64
65 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
66 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
67 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
68 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
69
70 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
71 undef's.
72
73 (i387_convert_register_p, i387_register_to_value,
74 i387_value_to_register): Update call for i386_fp_regnum_p.
75
76 * i387-tdep.h: Remove comment.
77 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
78 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
79 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
80 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
81 I387_MXCSR_REGNUM): Add target specific vector as parameter.
82
83 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
84
85 * Makefile.in (fork-child.o): Update.
86 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
87 argument. Gather all gdbserver features together.
88 * fork-child.c (exec_wrapper): New variable.
89 (fork_inferior): Use it.
90 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
91 (unset_exec_wrapper_command, _initialize_fork_child): New.
92
93 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
94
95 * source.c (directory_command): Modify the determination of
96 condition of terminal "from_tty".
97
98 2008-03-10 Matt Rice <ratmice@gmail.com>
99
100 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
101
102 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
103
104 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
105 of the data passing to strtoulst function.
106 (info_spu_signal_command): Likewise.
107
108 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
109
110 * mi/mi-interp.c (mi_command_loop): Remove
111 commented-out code.
112
113 2008-03-07 Joel Brobecker <brobecker@adacore.com>
114
115 * remote.c (extended_remote_attach_1): Make local variable pid an int
116 instead of a pid_t.
117
118 2008-03-07 Joel Brobecker <brobecker@adacore.com>
119
120 * solib-svr4.c (svr4_same_1): New function, originally extracted
121 from svr4_same and expanded to handle the sparc64 case.
122 (svr4_same): Move up and reimplement using svr4_same_1.
123 (enable_break): Use svr4_same_1 to do shared library name comparisons.
124
125 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
126
127 * MAINTAINERS: Move self to Paper trail.
128
129 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
130
131 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
132 * event-loop.c (call_async_signal_handler): New.
133 * event-loop.h (call_async_signal_handler)
134 (gdb_call_async_signal_handler): Declare.
135 (mark_async_signal_handler): Add comments.
136 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
137 * mingw-hdep.c (sigint_event, sigint_handler): New.
138 (gdb_select): Use them. Wait for the readline signal handler
139 to finish.
140 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
141 * posix-hdep.c (gdb_call_async_signal_handler): New function.
142 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
143 New.
144 (remote_fileio_ctrl_c_signal_handler): Use
145 gdb_call_async_signal_handler.
146 (initialize_remote_fileio): Initialize sigint_fileio_token.
147 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
148 not initialize tokens here.
149 (handle_remote_sigint_twice): Likewise. Reinstall
150 handle_remote_sigint.
151 (async_remote_interrupt_twice): Just call interrupt_query.
152 (cleanup_sigint_signal_handler): Do not delete tokens.
153 (remote_interrupt, remote_interrupt_twice): Use
154 gdb_call_async_signal_handler.
155 (interrupt_query): Reinstall the default signal handler.
156 (_initialize_remote): Initialize tokens here.
157
158 2008-03-04 Joel Brobecker <brobecker@adacore.com>
159
160 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
161 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
162 Change the type of the lr register to code_ptr.
163 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
164 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
165 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
166 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
167 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
168 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
169 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
170
171 2008-03-03 James E. Wilson <wilson@tuliptree.org>
172
173 * MAINTAINERS: Update my email address.
174
175 2008-03-03 Keith Seitz <keiths@redhat.com>
176
177 From Dave Murphy <davem@devkitpro.org>:
178 * configure.ac: Set tcl configdir to win under mingw.
179 * configure: Regenerate.
180
181 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
182
183 * breakpoint.c (fetch_watchpoint_value): New function.
184 (update_watchpoint): Set and clear val_valid. Use
185 fetch_watchpoint_value. Handle unreadable values on the
186 value chain. Correct check for user-requested array watchpoints.
187 (breakpoint_init_inferior): Clear val_valid.
188 (watchpoint_value_print): New function.
189 (print_it_typical): Use it. Do not free or clear old_val. Print
190 watchpoints even if old_val == NULL.
191 (watchpoint_check): Use fetch_watchpoint_value. Check for values
192 becoming readable or unreadable.
193 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
194 (do_enable_watchpoint): Likewise.
195 * breakpoint.h (struct breakpoint): Update comment for val. Add
196 val_valid.
197 * NEWS: Mention watchpoints on inaccessible memory.
198
199 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
200
201 * Makefile.in (i386-nat.o): Update.
202 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
203 i386_use_watchpoints.
204 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
205 i386_use_watchpoints.
206 * i386-nat.c (i386_stopped_data_address): Take two arguments.
207 (i386_stopped_by_watchpoint): Update call.
208 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
209 * config/i386/nm-i386.h: Conditionalize definitions on
210 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
211 (i386_use_watchpoints): Declare.
212 (i386_stopped_data_address): Update.
213 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
214 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
215
216 2008-02-29 Joel Brobecker <brobecker@adacore.com>
217
218 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
219 * version.in: Bump version to 6.8.50.20080229-cvs.
220
221 2008-02-28 Markus Deuling <deuling@de.ibm.com>
222
223 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
224 properly.
225
226 2008-02-28 Tom Tromey <tromey@redhat.com>
227
228 * infcmd.c (notice_args_read): Print result of get_inferior_args.
229
230 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * infcmd.c (kill_if_already_running): Make static. Use
233 target_require_runnable.
234 * target.c (target_require_runnable): New.
235 * target.h (target_require_runnable): Declare.
236
237 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
238
239 * frame.c (reinit_frame_cache): Only annotate if frames were
240 previously valid.
241
242 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
243
244 * regformats/reg-ppc.dat: Rename "ps" to "msr".
245 * regformats/reg-ppc64.dat: Likewise.
246
247 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
248
249 * features/Makefile (%.dat): Emit xmltarget statement.
250
251 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
252 Generate code to set gdbserver_xmltarget in init_registers_${name}.
253
254 * regformats/arm-with-iwmmxt.dat: Regenerate.
255 * regformats/mips64-linux.dat: Regenerate.
256 * regformats/mips-linux.dat: Regenerate.
257 * regformats/rs6000/powerpc-32.dat: Regenerate.
258 * regformats/rs6000/powerpc-64.dat: Regenerate.
259 * regformats/rs6000/powerpc-e500.dat: Regenerate.
260
261 * regformats/reg-arm.dat: Add xmlarch statement.
262 * regformats/reg-i386.dat: Likewise.
263 * regformats/reg-i386-linux.dat: Likewise.
264 * regformats/reg-x86-64-linux.dat: Likewise.
265 * regformats/reg-spu.dat: Likewise.
266
267 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
268
269 * remote.c (remote_wait, remote_async_wait): Stop if we receive
270 an error.
271
272 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
273
274 * utils.c (debug_timestamp): New.
275 (vfprintf_unfiltered): Print timestamps if requested.
276 (show_debug_timestamp): New.
277 (initialize_utils): Register "set debug timestamp".
278 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
279
280 2008-02-27 Joel Brobecker <brobecker@adacore.com>
281
282 * breakpoint.c (skip_prologue_sal): New function.
283 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
284 computed from a line number.
285
286 2008-02-27 Joel Brobecker <brobecker@adacore.com>
287
288 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
289 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
290 Set PC register type to "code_ptr".
291 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
292 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
293 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
294 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
295 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
296 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
297 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
298 Regenerate.
299
300 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
301
302 * regformats/regdat.sh: Rename init_registers function in
303 generated file to init_registers_${name}.
304
305 * regformats/reg-crisv32.dat: Set "name" to crisv32.
306 * regformats/reg-ppc64.dat: Set "name" to ppc64.
307 * regformats/reg-s390x.dat: Set "name" to s390x.
308
309 2008-02-26 Greg Law <glaw@undo-software.com>
310
311 * regcache.c (registers_changed): Call reinit_frame_cache.
312
313 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
314
315 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
316 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
317 and svr4_fetch_objfile_link_map.
318 * Makefile.in (sh-linux-tdep.o): Update.
319
320 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
321
322 * amd64-tdep.c (amd64_classify): Add support for decimal float
323 types.
324 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
325 use the struct return convention.
326
327 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
328
329 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
330 to old format. Discard breakpoint address if shared library is
331 unloaded.
332 (breakpoint_1): Adjust formatting of table header accordingly.
333
334 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
335
336 * remote.c (remote_get_threadlist): If the response
337 is empty, don't try to parse it.
338
339 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
340
341 Unbreak 'target async'.
342 * serial.c (serial_async): Set the
343 handler function before enabling async
344 mode.
345
346 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
347
348 * solib-svr4.c (enable_break): Convert r_brk to a code address.
349
350 2008-02-21 Pedro Alves <pedro@codesourcery.com>
351
352 * remote.c (extended_remote_attach_1): Set attach_flag.
353 (extended_remote_create_inferior_1): Clear attach_flag.
354
355 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
356
357 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
358 r_brk_offset.
359 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
360 * solib-svr4.c (solib_svr4_r_brk): New.
361 (open_symbol_file_object, svr4_current_sos): Always check the
362 debug base.
363 (svr4_fetch_objfile_link_map): Do not set debug_base.
364 (enable_break): Use r_brk if it is set.
365 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
366 (svr4_lp64_fetch_link_map_offsets): Likewise.
367 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
368
369 2008-02-20 Markus Deuling <deuling@de.ibm.com>
370 Mark Kettenis <kettenis@gnu.org>
371
372 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
373 trad_frame_saved_reg.
374 (trad-frame.h): New include.
375
376 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
377 instead of frame_obstack_zalloc.
378 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
379
380 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
381
382 2008-02-20 Markus Deuling <deuling@de.ibm.com>
383
384 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
385 from disassemble_info instead of gdbarch_byte_order.
386
387 * mips-tdep.c (gdb_print_insn_mips): Likewise.
388 * arm-tdep.c (gdb_print_insn_arm): Likewise.
389
390 2008-02-20 Markus Deuling <deuling@de.ibm.com>
391
392 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
393 gdbarch as parameter.
394
395 * gdbarch.{c,h}: Regenerate.
396
397 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
398 parameter.
399 * mem-break.c (default_memory_insert_breakpoint)
400 (default_memory_remove_breakpoint): Likewise.
401 * target.h (default_memory_remove_breakpoint)
402 (default_memory_insert_breakpoint): Likewise.
403
404 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
405 parameter. Replace current_gdbarch by gdbarch.
406 * m32r-tdep.c (m32r_memory_insert_breakpoint)
407 (m32r_memory_remove_breakpoint): Likewise.
408
409 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
410
411 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
412
413 2008-02-19 Joel Brobecker <brobecker@adacore.com>
414
415 * NEWS: Add entry describing Add support improvements.
416
417 2008-02-18 Markus Deuling <deuling@de.ibm.com>
418
419 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
420 M68K_FP0_REGNUM.
421
422 2008-02-18 Markus Deuling <deuling@de.ibm.com>
423
424 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
425 register_offset_hack anymore.
426
427 * regcache.{c,h} (register_offset_hack): Remove.
428
429 2008-02-18 Markus Deuling <deuling@de.ibm.com>
430
431 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
432
433 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
434 current_gdbarch by gdbarch.
435 (hppa64_hpux_find_global_pointer): Likewise.
436 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
437 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
438 find_global_pointer.
439
440 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
441 parameter.
442 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
443
444 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
445 of gdbarch_num_regs.
446
447 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
448 replace current_gdbarch by gdbarch.
449 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
450
451 2008-02-18 Markus Deuling <deuling@de.ibm.com>
452
453 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
454 and replace current_gdbarch by gdbarch.
455
456 (store_register): Update call for exec_one_dummy_insn.
457 (fetch_register, store_register): Update call of regmap.
458
459 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
460 parameter and replace current_gdbarch by gdbarch.
461
462 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
463 the current architecture. Update call for getregs_supplies and
464 getfpregs_supplies.
465 (ppcnbsd_fetch_inferior_registers): Likewise.
466
467 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
468 replace current_gdbarch by gdbarch.
469 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
470 get_regcache_arch to get at the current architecture. Update call for
471 getfpregs_supplies.
472
473 2008-02-18 Markus Deuling <deuling@de.ibm.com>
474
475 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
476 variables.
477
478 2008-02-15 Markus Deuling <deuling@de.ibm.com>
479
480 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
481
482 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
483
484 * NEWS: Mention pending breakpints in MI.
485
486 2008-02-14 Markus Deuling <deuling@de.ibm.com>
487
488 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
489
490 2008-02-13 Markus Deuling <deuling@de.ibm.com>
491
492 Add script to build and test GDB using enable-targets=all.
493
494 * gdb_buildall.sh: New file.
495
496 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
497
498 * NEWS (New native configurations): Xtensa GNU/Linux.
499 (New targets): Xtensa GNU/Linux.
500 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
501 xtensa-linux-tdep.o
502 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
503 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
504 * configure.tgt (xtensa*-*-linux*): New entry.
505 * xtensa-config.c (xtensa_tdep): New variable.
506 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
507 (rmap): Change format based on new macro XTREG.
508 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
509 * xtensa-linux-nat.c: New.
510 * xtensa-linux-tdep.c: New.
511 * xtensa-xtregs.c: New.
512 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
513 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
514 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
515 (xtensa_register_t): New field coprocessor.
516 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
517 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
518 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
519 Update to handle privileged registers.
520 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
521 (xtensa_push_dummy_call): Set windowstart register correctly.
522 (call0_analyze_prologue): Initialize xtensa_default_isa.
523 (xtensa_derive_tdep): New.
524 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
525 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
526 Call xtensa_derive_tdep().
527 * config/xtensa/linux.mh: New.
528 * regformats/reg-xtensa.dat: New.
529
530 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
531
532 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
533 (filenames.h): New include.
534 * Makefile.in (corelow.o): Add dependency for filenames.h.
535
536 2008-02-08 Doug Evans <dje@google.com>
537
538 * source.c (find_and_open_source): Always rewrite absolute filenames.
539
540 2008-02-07 Doug Evans <dje@google.com>
541
542 * breakpoint.c: #include "hashtab.h".
543 (ambiguous_names_p): New fn.
544 (update_breakpoint_locations): When restoring bp enable status, don't
545 compare function names if any functions have same name.
546 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
547
548 2008-02-07 Joel Brobecker <brobecker@adacore.com>
549
550 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
551 instead of just a VEC*. Update use of SV.
552 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
553
554 2007-02-07 Joel Brobecker <brobecker@adacore.com>
555
556 * NEWS: Put all new commands since gdb-6.7 together.
557
558 2007-02-07 Joel Brobecker <brobecker@adacore.com>
559
560 * ada-lang.c: #include "vec.h".
561 (struct string_vector, new_string_vector, string_vector_append):
562 Delete.
563 (char_ptr): New typedef.
564 (DEF_VEC_P (char_ptr)): New VEC type.
565 (symbol_completion_add): Update profile to take the new VEC type
566 instead of the old string_vector structure. Update code accordingly.
567 (ada_make_symbol_completion_list): Use the new VEC type instead of
568 the old string_vector structure, and update the code accordingly.
569 * Makefile.in (ada-lang.o): Add dependency on vec.h.
570
571 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
572
573 * p-exp.y: Set current_type in missing places.
574 (leftdiv_is_integer): New static variable.
575 Typecast right operand of BINOP_DIV to long_double if both operands
576 are integers.
577
578 2008-02-06 Maciej W. Rozycki <macro@mips.com>
579
580 * remote-mips.c (set_breakpoint): Rename to...
581 (mips_set_breakpoint): ... this.
582 (clear_breakpoint): Rename to...
583 (mips_clear_breakpoint): ... this.
584 (common_breakpoint): Rename to...
585 (mips_common_breakpoint): ... this.
586 (check_lsi_error): Rename to...
587 (mips_check_lsi_error): ... this.
588
589 2007-02-05 Joel Brobecker <brobecker@adacore.com>
590
591 * language.h (struct language_defn): Add new field
592 la_make_symbol_completion_list.
593 * symtab.c (default_make_symbol_completion_list): Renames
594 make_symbol_completion_list.
595 (make_symbol_completion_list): New function.
596 * symtab.h (default_make_symbol_completion_list): Add declaration.
597 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
598 (auto_language, local_language): Likewise.
599 * objc-lang.c (objc_language_defn): Likewise.
600 * scm-lang.c (scm_language_defn): Likewise.
601 * m2-lang.c (m2_language_defn): Likewise.
602 * f-lang.c (f_language_defn): Likewise.
603 * jv-lang.c (java_language_defn): Likewise.
604 * p-lang.c (pascal_language_defn): Likewise.
605 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
606 (minimal_language_defn): Likewise.
607 * ada-lang.c (struct string_vector): New structure.
608 (new_string_vector, string_vector_append, ada_unqualified_name)
609 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
610 (ada_make_symbol_completion_list): New functions.
611 (ada_language_defn): Set la_make_symbol_completion_list.
612 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
613 this function is static.
614
615 2008-02-05 Kevin Buettner <kevinb@redhat.com>
616
617 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
618 to account for call site optimizations.
619
620 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
621
622 * tracepoint.c (read_actions): Handle end-of-text indicator
623 in action list properly. (Committed by Jim Blandy)
624
625 2008-02-05 Jim Blandy <jimb@red-bean.com>
626
627 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
628 pseudoregister, not an internal error.
629 Reported by: Andrzej Zaborowski
630
631 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
632
633 * varobj.c (c_value_of_variable): Use xstrdup.
634
635 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
636
637 Update stored rendition of varobj value when format changes.
638 * varobj.c (varobj_set_display_format): Recomputed
639 print_value.
640 (c_value_of_variable): Return print_value.
641
642 2008-02-03 Doug Evans <dje@google.com>
643
644 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
645 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
646 * valops.c (value_one): New function.
647 * value.h (value_one): Declare.
648
649 Fix argument promotion for binary arithmetic ops for C.
650 * valarith.c (unop_result_type): New fn.
651 (binop_result_type): New fn.
652 (value_binop): Move result type computation to binop_result_type.
653 (value_pos, value_neg, value_complement): Move result type
654 computation to unop_result_type.
655
656 PR 2384
657 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
658 Return basetype, fieldno if found. All callers updated.
659 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
660 objfile.
661 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
662 * symfile.h (fill_in_vptr_fieldno): Delete.
663
664 2008-02-02 Doug Evans <dje@google.com>
665
666 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
667
668 * typeprint.c (*): Whitespace cleanup.
669
670 2008-02-02 Mark Kettenis <kettenis@gnu.org>
671 Luis Machado <luisgpm@br.ibm.com>
672 Thiago Jung Bauermann <bauerman@br.ibm.com>
673
674 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
675 don't fit into registerson the stack the way GCC does.
676
677 2008-02-01 Joel Brobecker <brobecker@adacore.com>
678
679 * symtab.c (symbol_set_names): Do not add an entry in the demangling
680 hash table for Ada symbols. Just store the linkage name as is,
681 and leave the demangled_name as NULL.
682
683 2007-02-01 Joel Brobecker <brobecker@adacore.com>
684
685 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
686 in the global scope.
687 (new_symbol): Likewise.
688
689 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
690
691 * breakpoint.c (break_command_1): Return void.
692 (break_command_really): Return void. Rethrow
693 exceptions instead of returning.
694 (gdb_breakpoint): Remove the error_message parameter.
695 Return void. Rename to set_breakpoint.
696 * gdb.h (gdb_breakpoint): Rename and move to...
697 * breakpoint.h (set_breakpoint): ...here.
698 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
699 event hooks even if exception is thrown. Adjust to
700 gdb_breakpoint interface changes.
701
702
703 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
704
705 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
706 float in both first and second word in the doubleword, to support
707 old and new ABIs.
708
709 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
710
711 Properly rethrow exception. This fixes errors
712 about non-existent functions for -break-insert.
713 * breakpoint.c (break_command_really): Use throw_exception
714 for rethrowing. If rethrowing, don't print the exception.
715
716 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
717
718 * NEWS: Mention Decimal Floating Point support.
719
720 2008-01-31 Joel Brobecker <brobecker@adacore.com>
721
722 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
723 value type to builtin_type_void_func_ptr.
724
725 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
726
727 * s390-tdep.c (is_float_singleton, is_float_like,
728 alignment_of, s390_return_value): Make checks for
729 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
730
731 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
732 Thiago Jung Bauermann <bauerman@br.ibm.com>
733
734 * infcmd.c (default_print_registers_info): Also print hex
735 raw contents for TYPE_CODE_DECFLOAT registers.
736 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
737 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
738 (rs6000_register_name): Add support for DFP pseudo-registers.
739 (rs6000_pseudo_register_type): Likewise.
740 rs6000_pseudo_register_reggroup_p): Likewise.
741 (ppc_pseudo_register_read): New function.
742 (ppc_pseudo_register_write): Likewise.
743 (rs6000_pseudo_register_read): Likewise.
744 (rs6000_pseudo_register_write): Likewise.
745 (e500_pseudo_register_read): Move checks to
746 rs6000_pseudo_register_read.
747 (e500_pseudo_register_write): Move checks to
748 rs6000_pseudo_register_write.
749 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
750 rs6000_pseudo_register_read and rs6000_pseudo_register_write
751 in gdbarch if SPE or DFP is available. Adjust gdbarch's
752 num_pseudo_regs to account for DFP pseudo regs.
753
754 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
755
756 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
757 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
758 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
759 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
760 e500_pseudo_register_read, e500_pseudo_register_write): Use
761 IS_SPE_PSEUDOREG macro.
762 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
763 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
764 Remove initialization of tdep->ppc_ev31_regnum.
765
766 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
767
768 * printcmd.c (print_formatted): Handle references as for unformatted
769 prints.
770
771 2008-01-30 Joel Brobecker <brobecker@adacore.com>
772
773 * eval.c (evaluate_subexp_standard): Add handling of user
774 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
775
776 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
777
778 * eval.c (evaluate_subexp_standard): Support
779 BINOP_INTDIV opcode.
780
781 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
782
783 * valarith.c (value_binop): Add floating-point BINOP_MIN and
784 BINOP_MAX cases.
785 For BINOP_EXP, use length and signedness of left operand only for
786 result, as for shifts.
787 For integral operands to BINOP_EXP, use new integer_pow and
788 uinteger_pow functions so as to get full range of results.
789 (integer_pow): New function.
790 (uinteger_pow): New function.
791
792 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
793
794 Use vector for varobj_list_children interface.
795 * gdb/varobj.c (varobj_list_children): Return vector
796 of varobjs.
797 * gdb/varobj.h (varobj_list_children): Adjust
798 prototype.
799 (varobj_p): Declare. Declare vector thereof.
800 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
801 for varobj_list_children change.
802 * Makefile.in (varobj_h): Update dependencies.
803
804 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
805
806 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
807 TYPE_CODE_DECFLOAT arguments.
808 (ppc64_sysv_abi_push_dummy_call) Likewise.
809 (get_decimal_float_return_value): New function.
810 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
811 values by calling get_decimal_float_return_value.
812 (ppc64_sysv_abi_return_value): Likewise.
813
814 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
815
816 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
817 for preprocessor macro information. Formatting changes.
818
819 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
820
821 * remote.c (struct remote_state): Add cached_wait_status.
822 (remote_exec_file): New variable.
823 (PACKET_vAttach, PACKET_vRun): New constants.
824 (extended_remote_restart): Do not query for status.
825 (struct start_remote_args): New.
826 (remote_start_remote): Take it as a second argument. Check
827 whether the target is running. Issue an error for non-running
828 non-extended targets. Cache the wait status. Set inferior_ptid
829 here.
830 (remote_open_1): Prompt to disconnect non-running targets. Make
831 sure the target is marked running. Do not set inferior_ptid here.
832 Update call to remote_start_remote. Do not call remote_check_symbols
833 if the target is not running.
834 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
835 argument. Handle a non-running target.
836 (remote_detach): Use it.
837 (extended_remote_detach): New.
838 (remote_disconnect): Fix typo. Use remoute_mourn_1.
839 (extended_remote_attach_1, extended_remote_attach)
840 (extended_async_remote_attach): New.
841 (remote_vcont_resume): Remove unused variable.
842 (remote_wait, remote_async_wait): Use any cached wait status.
843 (putpkt_binary, getpkt): Clear any cached wait status.
844 (extended_remoute_mourn_1): New.
845 (extended_remote_mourn): Use it.
846 (extended_async_remote_mourn, extended_remote_run): New.
847 (extended_remote_create_inferior_1): New.
848 (extended_remote_create_inferior): Use it.
849 (extended_remote_async_create_inferior): Likewise.
850 (remote_xfer_partial): Skip for non-executing targets.
851 (init_extended_remote_ops): Set to_detach and to_attach.
852 (init_extended_async_remote_ops): Likewise. Use
853 extended_async_remote_mourn.
854 (_initialize_remote): Register vAttach, vRun, and
855 set remote exec-file.
856 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
857
858 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
859
860 * Makefile.in (symfile.o): Update.
861 * NEWS: Mention exec tracing support.
862 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
863 exec events.
864 * infcmd.c (kill_if_already_running, detach_command)
865 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
866 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
867 (follow_exec): Do not check may_follow_exec. Do not mourn and push
868 targets. Apply the sysroot path to the loaded executable. Use
869 no_shared_libraries.
870 * linux-nat.c (linux_child_follow_fork): Print fork following
871 messages if verbose.
872 (kill_wait_callback): Kill again before waiting a second time.
873 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
874 no_shared_libraries.
875
876 2008-01-29 Joel Brobecker <brobecker@adacore.com>
877
878 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
879
880 2008-01-29 Joel Brobecker <brobecker@adacore.com>
881
882 * nto-tdep.h: Remove #include "defs.h".
883 * nto-tdep.c: Add #include "defs.h".
884 * Makefile.in (nto_tdep_h): Update dependencies.
885 (nto-tdep.o): Likewise.
886
887 2008-01-29 Joel Brobecker <brobecker@adacore.com>
888
889 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
890 and use it.
891 (proceed, start_remote): Update call to wait_for_inferior.
892 * inferior.h (wait_for_inferior): Update declaration.
893 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
894 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
895 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
896 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
897
898 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
899
900 * varobj (adjust_value_for_child_access): Added checking for
901 returned value from gdb_value_ind.
902 (c_describe_child): Likewise.
903 (cplus_describe_child): Fixed a typo.
904
905 2008-01-29 Jim Blandy <jimb@red-bean.com>
906
907 * MAINTAINERS: Update my info.
908
909 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
910
911 Use multiple locations for hardware watchpoints.
912 This eliminates the need to traverse value chain, doing
913 various checks, in three different places.
914
915 * breakpoint.h (struct bp_location): New fields
916 lengths and watchpoint_type.
917 (struct breakpoint): Remove the val_chain field.
918 * breakpoint.c (is_hardware_watchpoint): New.
919 (free_valchain): Remove.
920 (update_watchpoint): New.
921 (insert_bp_location): For hardware watchpoint, just
922 directly insert it.
923 (insert_breakpoints): Call update_watchpoint_locations
924 on all watchpoints. If we have failed to insert
925 any location of a hardware watchpoint, remove all inserted
926 locations.
927 (remove_breakpoint): For hardware watchpoints, directly
928 remove location.
929 (watchpoints_triggered): Iterate over locations.
930 (bpstat_stop_status): Use only first location of
931 a resource watchpoint.
932 (delete_breakpoint): Don't call free_valchain.
933 (print_one_breakpoint): Don't print all
934 locations for watchpoints.
935 (breakpoint_re_set_one): Use update_watchpoint for
936 watchpoints.
937
938 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
939
940 Don't reset watchpoint block on solib load.
941
942 * breakpoint.c (insert_bp_location): For watchpoints,
943 recompute condition.
944 (breakpoint_re_set_one): Instead of recomputing value
945 and condition for watchpoints, just reset value and
946 let insert_breakpoints/insert_bp_location recompute it.
947 Don't do anything about disabled watchpoint.
948
949 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
950
951 * valarith.c (value_binop): Handle unsigned integer
952 division by zero.
953
954 2008-01-28 Kevin Buettner <kevinb@redhat.com>
955
956 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
957 instruction pattern that appears frequently in position
958 independent code. Fix bug in code which looks for "fmov" and
959 backtracks if no "fmov" is found.
960
961 2008-01-28 Doug Evans <dje@google.com>
962
963 * dbxread.c (read_dbx_symtab): Fix indentation.
964 Reformat comments to 80 columns.
965 Move local var def closer to only use.
966
967 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
968
969 * fork-child.c (SHELL_FILE): Remove #ifndef.
970 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
971
972 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
973
974 * i386-tdep.c (i386_skip_noop): New function.
975 (i386_analyze_prologue): Call i386_skip_noop function.
976
977 2008-01-24 Michael Snyder <msnyder@specifix.com>
978
979 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
980 * win32-nat.c (win32_xfer_partial): Ditto.
981 * target.c (default_xfer_partial): Minor whitespace adjustment.
982
983 2008-01-24 Pedro Alves <pedro@codesourcery.com>
984
985 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
986 strip bit 1 even if pc doesn't point to thumb code.
987
988 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
989
990 * remote.c (remote_wait): Handle SIGINT between packets.
991 (remote_async_wait): Likewise.
992
993 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
994 Chris Demetriou <cgd@google.com>
995
996 * thread.c (add_thread_silent): Renamed
997 from add_thread.
998 (print_thread_events): New variable definition.
999 (show_print_thread_events): New function.
1000 (_initialize_thread): Add "set print thread-events" and
1001 "show print thread-events" commands.
1002 (add_thread): Announce new thread.
1003 * gdbthread.h (add_thread_silent): Declare.
1004 (print_thread_events): New variable declaration.
1005 * inf-ttrace.c (inf_ttrace_wait): Don't
1006 inform about new thread, as add_thread is always
1007 called too, and will take care of that.
1008 * infrun.c (handle_inferior_event): Likewise.
1009 * procfs.c (procfs_wait): Likewise.
1010 * remote.c (remote_currthread): Likewise.
1011 * sol-thread.c (sol_thread_wait): Likewise.
1012 * win32-nat.c (get_win32_debug_event): Likewise.
1013 * linux-thread-db.c (attach_thread): Likewise.
1014 Remove the verbose parameter.
1015 (check_event): Make detach_thread be verbose
1016 only if print_thread_events is set.
1017 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1018 about new thread. This is called only from
1019 linux-thread-db.c:attach_thread, which will take care.
1020 Remove the verbose parameter.
1021 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1022
1023 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1024
1025 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1026
1027 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1028
1029 * breakpoint.c (break_command_really): New parameter
1030 ignore_count.
1031 (break_command_1): Pass 0 as
1032 ignore_count to break_command_really.
1033 (gdb_breakpoint): Pass ignore_count to
1034 break_command_really.
1035
1036 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1037
1038 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1039 sigcontext struct via pointer.
1040 (struct sigframe comment): Update to show new field `psc'.
1041
1042 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1043
1044 * infrun.c (handle_inferior_event): If
1045 we failed to remove breakpoints, error,
1046 don't try to increment PC by hand.
1047
1048 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1049
1050 Add NetBSD/hppa target and host support.
1051
1052 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1053 (hppabsd_gregset): Move to ...
1054 (hppabsd_regset_from_core_section): Rename
1055 hppaobsd_regset_from_core_section and move to ...
1056 (hppabsd_find_global_pointer): Update comment.
1057 (hppabsd_init_abi): Make global. Do not register
1058 hppabsd_regset_from_core_section.
1059 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1060 move to ...
1061 (_initialize_hppabsd_tdep): Move to ...
1062 * hppaobsd-tdep.c: ... here. New file.
1063 * hppnbsd-tdep.c: New file.
1064 * hppnbsd-nat.c: New file.
1065 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1066 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1067 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1068 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1069 * configure.host (hppa*-*-netbsd*): New entry.
1070 * configure.tgt (hppa*-*-netbsd*): New entry.
1071 (hppa*-*-openbsd*): Update.
1072 * NEWS (New native configuration): Mention NetBSD/hppa.
1073 (New targets): Mention NetBSD/hppa.
1074
1075 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1076
1077 * gdbarch.sh (function_list): Add new property bits_big_endian to
1078 gdbarch structure.
1079 * gdbarch.{c,h}: Regenerate.
1080
1081 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1082 gdbarch_bits_big_endian (comment).
1083 (unpack_field_as_long, modify_field): Likewise.
1084 * value.h: Likewise (comment).
1085 * valops.c (value_slice): Likewise.
1086 * valarith.c (value_subscript, value_bit_index): Likewise.
1087 * gdbtypes.h (field): Likewise (comment).
1088 * eval.c (evaluate_subexp_standard): Likewise.
1089 * dwarf2read.c (dwarf2_add_field): Likewise.
1090 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1091 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1092
1093 * defs.h (BITS_BIG_ENDIAN): Remove.
1094
1095 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1096
1097 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1098 function calls.
1099 * m2-exp.y (yylex): Likewise.
1100 * objc-exp.y (yylex): Likewise.
1101
1102 * defs.h (DEPRECATED_STREQN): Remove.
1103
1104 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1105
1106 * MAINTAINERS: Update my email address.
1107
1108 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1109
1110 * README: Mention gdbserver/README.
1111
1112 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1113
1114 * valarith.c (value_binop): Handle BINOP_INTDIV
1115 for unsigned and signed integers.
1116
1117 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1118
1119 * s390-tdep.c (s390_gdbarch_init): Set default long double
1120 type to 128-bit IEEE quad.
1121
1122 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1123
1124 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1125
1126 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1127
1128 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1129
1130 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1131 * value.c: All callers changed.
1132
1133 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1134
1135 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1136 DEPRECATED_STREQ by its expression.
1137 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1138 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1139 (scan_xcoff_symtab): Likewise.
1140 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1141 * f-lang.c (find_common_for_function): Likewise.
1142 * objc-exp.y (parse_number): Likewise.
1143
1144 * defs.h (DEPRECATED_STREQ): Remove.
1145
1146 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1147
1148 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1149 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1150 get_frame_arch to get at the current_architecture. Update AM33_MODE
1151 call.
1152 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1153 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1154 architecture.
1155 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1156
1157 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1158
1159 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1160 parameter.
1161 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1162
1163 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1164 current_gdbarch by gdbarch. Update caller.
1165
1166 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1167 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1168 the current architecture. Update calls of
1169 amd64_native_gregset_supplies_p.
1170 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1171 (amd64bsd_store_inferior_registers): Likewise.
1172
1173 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1174
1175 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1176 Replace current_gdbarch by gdbarch. Update caller.
1177
1178 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1179
1180 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1181 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1182 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1183 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1184 (stabsect_build_psymtabs): Fix indentation.
1185
1186 2008-01-15 Michael Snyder <msnyder@specifix.com>
1187
1188 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1189
1190 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1191
1192 * win32-nat.c (win32_create_inferior): Restore code calling
1193 CloseHandle on ProcessInformation structure.
1194
1195 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1196
1197 * configure.ac: Check for void * as 3 argument of ptrace.
1198 * configure: regenerate.
1199
1200 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1201
1202 * alpha-tdep.c (alpha_heuristic_proc_start)
1203 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1204 current_gdbarch by gdbarch.
1205
1206 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1207 current architecture by frame_info. Update alpha_heuristic_proc_start
1208 call.
1209
1210 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1211 get_frame_arch to get at the current architecture by frame_info. Update
1212 alpha_sigtramp_register_address call.
1213
1214 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1215 current_gdbarch by gdbarch. Update caller.
1216 (convert_to_extended, convert_from_extended): Add endianess parameter
1217 for comparison. Update caller.
1218 (arm_extract_return_value, arm_store_return_value): Use
1219 get_regcache_arch to get at the current architecture.
1220
1221 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1222 current_gdbarch by gdbarch. Update caller.
1223 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1224 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1225
1226 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1227 gdbarch as parameter. Update caller.
1228 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1229 current_gdbarch by gdbarch. Update caller.
1230
1231 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1232 update caller. Replace current_gdbarch by gdbarch.
1233
1234 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1235 the current architecture. Replace current_gdbarch by gdbarch.
1236 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1237 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1238 expression. Add gdbarch as parameter and replace current_gdbarch with
1239 it. Update caller.
1240 (M6811_TDEP): Remove.
1241 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1242 architecture.
1243 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1244 current_gdbarch by gdbarch. Update caller.
1245
1246 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1247 update caller.
1248 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1249 by gdbarch.
1250
1251 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1252 caller. Relace current_gdbarch by gdbarch.
1253 (altivec_register_p, spe_register_p): Likewise.
1254 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1255 parameter.
1256 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1257 altivec_register_p and spe_register_p.
1258
1259 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1260 caller. Replace current_gdbarch by gdbarch.
1261 (score_analyze_prologue): use get_frame_arch to get at the current
1262 architecture.
1263
1264 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1265 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1266 current_gdbarch by gdbarch. Update caller.
1267 (sparc_frame_cache): Use get_frame_arch to get at the current
1268 architecture.
1269 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1270 sparc_analyze_prologue.
1271
1272 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1273 parameter.
1274
1275 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1276
1277 * exec.c: #include "arch-utils.h"
1278 (print_section_info): Use gdbarch_from_bfd to get at the
1279 current architecture. Replace current_gdbarch. Fix indention. Replace
1280 deprecated_print_address_numeric by paddress.
1281 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1282
1283 * valprint.c (val_print_string): Replace
1284 deprecated_print_address_numeric.
1285 * tracepoint.c (trace_mention, scope_info): Likewise.
1286 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1287 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1288 (maintenance_check_symtabs): Likewise.
1289 * symfile.c (list_overlays_command): Likewise.
1290 * stack.c (frame_info, print_block_frame_labels): Likewise.
1291 * printcmd.c (print_address, print_address_demangle)
1292 (address_info): Likewise.
1293 * corefile.c (memory_error): Likewise.
1294 * infcmd.c (jump_command): Likewise.
1295 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1296 (mention, delete_breakpoint): Likewise.
1297 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1298 * dwarf2read.c (dump_die): Likewise.
1299 * ada-valprint.c (ada_val_print_1): Likewise.
1300 * f-valprint.c (f_val_print): Likewise.
1301 * linux-fork.c (info_forks_command): Likewise.
1302 * m32r-com.c (m32r_load_section, m32r_load)
1303 (m32r_upload_command): Likewise.
1304
1305 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1306
1307 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1308
1309 * gdbarch.sh (skip_prologue): Add gdbarch
1310 as parameter.
1311 * gdbarch.{c,h}: Regenerate.
1312
1313 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1314 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1315 * avr-tdep.c (avr_skip_prologue): Likewise.
1316 * cris-tdep.c (cris_skip_prologue): Likewise.
1317 * frv-tdep.c (frv_skip_prologue): Likewise.
1318 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1319 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1320 * i386-tdep.c (i386_skip_prologue): Likewise.
1321 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1322 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1323 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1324 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1325 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1326 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1327 * mep-tdep.c (mep_skip_prologue): Likewise.
1328 * mips-tdep.c (mips_skip_prologue): Likewise.
1329 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1330 * mt-tdep.c (mt_skip_prologue): Likewise.
1331 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1332 * score-tdep.c (score_skip_prologue): Likewise.
1333 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1334 * sh-tdep.c (sh_skip_prologue): Likewise.
1335 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1336 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1337 * spu-tdep.c (spu_skip_prologue): Likewise.
1338 * v850-tdep.c (v850_skip_prologue): Likewise.
1339 * vax-tdep.c (vax_skip_prologue): Likewise.
1340 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1341 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1342
1343 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1344 current_gdbarch by gdbarch.
1345 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1346 * s390-tdep.c (s390_skip_prologue): Likewise.
1347
1348 2008-01-10 Doug Evans <dje@google.com>
1349
1350 * defs.h (struct continuation_arg): Fix typo in comment.
1351 * target.c (target_translate_tls_address): Fix comment spelling error.
1352
1353 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1354
1355 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1356 (DOUBLEST_SCAN_FORMAT): Likewise.
1357 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1358 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1359 * c-exp.y (parse_number): Likewise.
1360 * jv-exp.y (parse_number): Likewise.
1361 * objc-exp.y (parse_number): Likewise.
1362 * p-exp.y (parse_number): Likewise.
1363
1364 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1365
1366 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1367 (check_typedef): Likewise.
1368
1369 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1370
1371 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1372 seen_double_big_d, treat the new H, D, and DD modifiers as length
1373 modifiers.
1374
1375 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1376
1377 * dwarf2read.c (read_enumeration_type): Add comment.
1378
1379 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1380
1381 * config.in: Regenerate.
1382
1383 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1384
1385 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1386 Make non-static.
1387 (ada_convert_actuals): Delete.
1388 * ada-lang.h (ada_convert_actual): Add declaration.
1389 (ada_convert_actuals): Remove declaration.
1390 * infcall.c: #include "ada-lang.h".
1391 (value_arg_coerce): Add new parameter sp. Update function
1392 documetnation. Add handling of Ada function call parameters.
1393 * Makefile.in (infcall.o): Update dependencies.
1394
1395 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1396
1397 * ada-lang.c (ensure_lval): Fix value lval kind.
1398 (convert_actual): Add handling for arguments passed by reference.
1399
1400 2008-01-08 Doug Evans <dje@google.com>
1401
1402 * dbxread.c (read_dbx_symtab): Fix indentation.
1403
1404 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1405
1406 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1407 (valarith.o): Depend on dfp.h.
1408 (valops.o): Likewise.
1409 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1410 (set_decnumber_context): New function.
1411 (decimal_check_errors): Likewise.
1412 (decimal_from_number): Likewise.
1413 (decimal_to_number): Likewise.
1414 (decimal_from_string): Use set_decnumber_context and
1415 decimal_check_errors.
1416 (decimal_from_integral): New function.
1417 (decimal_from_floating): Likewise.
1418 (decimal_to_double): Likewise.
1419 (promote_decimal): Likewise.
1420 (decimal_binop): Likewise.
1421 (decimal_is_zero): Likewise.
1422 (decimal_compare): Likewise.
1423 (decimal_convert): Likewise.
1424 * dfp.h (decimal_from_integral): New prototype.
1425 (decimal_from_floating): Likewise.
1426 (decimal_to_double): Likewise.
1427 (decimal_binop): Likewise.
1428 (decimal_is_zero): Likewise.
1429 (decimal_compare): Likewise.
1430 (decimal_convert): Likewise.
1431 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1432 call to value_from_decfloat.
1433 * valarith.c: Include dfp.h.
1434 (value_args_as_decimal): New function.
1435 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1436 (value_logical_not): Likewise.
1437 (value_equal): Likewise.
1438 (value_less): Likewise.
1439 (value_pos): Likewise.
1440 (value_neg): Formatting fix.
1441 * valops.c: Include dfp.h.
1442 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1443 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1444 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1445 (value_from_decfloat): Remove expect_type argument.
1446 * value.h (value_from_decfloat): Update prototype.
1447
1448 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1449
1450 Ignore change in name of dynamic linker during
1451 execution on Solaris. This also unbreaks pending breakpoints.
1452
1453 * solist.h (struct target_so_ops): New field same.
1454 * solib-svr4.c (svr4_same): New.
1455 (_initialize_svr4_solib): Register svr4_same.
1456 * solib.c (update_solib_list): Use ops->same, if available.
1457
1458 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1459
1460 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1461 when using MS-DOS paths.
1462
1463 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1464
1465 * NEWS: Mention --pid and --core command line behaviour changes.
1466
1467 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1468
1469 * main.c (captured_main): Remove 'count' varible and the
1470 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1471 --pid options were issued simultaneously. If an explicit pid
1472 option was passed, don't fallback to core file. Detect extra
1473 arguments better in the presence of explicit pid or core
1474 arguments.
1475
1476 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ada-lang.c (ada_which_variant_applies): Correctly compute
1479 the value of the discriminant when the variant record is packed.
1480
1481 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1482
1483 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1484 that are used to differentiate homonyms.
1485
1486 2008-01-04 Jerome Guitton <guitton@adacore.com>
1487
1488 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1489 when the type is an anonymous pointer type.
1490 (ada_check_typedef): Avoid a seg fault when the type is null.
1491 * ada-typeprint.c (print_array_type): Add support for pointer
1492 to packed arrays.
1493
1494 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1495
1496 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1497
1498 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1499
1500 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1501 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1502
1503 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1504
1505 * ada-exp.y (chop_separator): New function.
1506 (write_selectors): Rewrite to re-use chop_separator.
1507 (ada_nget_field_index, get_symbol_field_type): New functions.
1508 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1509 expressions.
1510
1511 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1512
1513 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1514 of SYMBOL_VALUE when working with function symbols.
1515
1516 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1517
1518 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1519 expressions. These expressions do not need to be rewriten.
1520
1521 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1522
1523 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1524 the given die is a declaration.
1525
1526 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1527
1528 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1529 Handle properly the case when the index type is an enumerated type.
1530 Do not return the subtype of the bounds type, just return the
1531 bounds type directly - this is not needed and is more consistent
1532 with what we do for arrays when no XA parallel type exists.
1533
1534 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1535
1536 * ada-lang.c (static_unwrap_type): Add forward declaration.
1537 (template_to_static_fixed_type): Fields of dynamic types sometimes
1538 also need to be unwrapped. Take this into account.
1539 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1540 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1541 * ada-typeprint.c (ada_print_type): Get the typename from
1542 the original type, not the base type.
1543
1544 2008-01-03 Jerome Guitton <guitton@adacore.com>
1545
1546 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1547 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1548 Update calls to ada_to_fixed_type.
1549 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1550 for the tag.
1551 (ada_to_fixed_type): Add check_tag parameter; do not look for
1552 tag if null. When looking for a tag, use a fixed record type.
1553 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1554 * ada-valprint.c (printable_val_type, ada_value_print): Update
1555 calls to ada_to_fixed_type.
1556
1557 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1558
1559 * doublest.c (convert_floatformat_to_doublest): Call
1560 floatformat_to_doublest instead of floatformat_to_double and use
1561 DOUBLEST variables.
1562 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1563 instead of floatformat_from_double and use DOUBLEST variables.
1564
1565 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1566
1567 * MAINTAINERS (Write After Approval): Add self.
1568
1569 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1570
1571 * symfile.c (set_initial_language): Make non-static.
1572 * symfile.h (set_initial_language): Add declaration.
1573 * language.c: #include "symfile.h".
1574 (set_language): Call set_initial_language if the frame language
1575 could not be determined.
1576
1577 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1578
1579 * eval.c (evaluate_subexp_for_address): Provide frame address to
1580 locate_var_value only if it will be needed.
1581
1582 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1585
1586 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1587
1588 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1589 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1590 This is needed to make sure that any other treatment applied
1591 to the resulting value does not fail for spurious reason,
1592 such as trying to take the address of this value.
1593
1594 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1595
1596 * ada-lang.c (ada_value_equal): Dereference reference types when
1597 comparing arrays.
1598
1599 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1600
1601 Updated copyright notices for most files.
1602
1603 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1604
1605 * win32-nat.c (psapi_module_handle): Remove static.
1606 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1607 return first module found if base_address is zero. Don't initialize
1608 psapi function pointers here. Convert to cygwin paths when
1609 appropriate.
1610 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1611 executable name. Use get_module_name when that fails or when
1612 !__CYGWIN__.
1613 (_initialize_psapi): New function. Initialize psapi stuff before it is
1614 needed or issue a warning if it is not found. Move psapi_module_handle
1615 here.
1616
1617 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1618
1619 * ada-lang.c (ada_remove_trailing_digits): New function.
1620 (ada_remove_po_subprogram_suffix): New function.
1621 (ada_decode): Improve. Move the description of the algorithm
1622 directly inside the code, instead of in the function global
1623 description.
1624
1625 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1626
1627 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1628 and always print the dereferenced value.
1629
1630 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1631
1632 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1633 of the case where the first argument is a reference.
1634 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1635
1636 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1637
1638 Implement support for Ada interface types.
1639
1640 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1641 (ada_is_ignored_field): Ignore fields that are a dispatch table
1642 of a tagged type.
1643
1644 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1645
1646 * top.c (print_gdb_version): Update copyright year.
1647
1648 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1649
1650 * ChangeLog-2007: New ChangeLog rotation.
1651 * ChangeLog: Reset for 2008.
1652 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1653 ChangeLog-2007.
1654
1655 For older changes see ChangeLog-2007.
1656 \f
1657 Local Variables:
1658 mode: change-log
1659 left-margin: 8
1660 fill-column: 74
1661 version-control: never
1662 coding: utf-8
1663 End: