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