* aix-thread.c (pdc_read_regs): Minor reformatting.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
46bba1ef
JB
12008-03-17 Joel Brobecker <brobecker@adacore.com>
2
3 * aix-thread.c (pdc_read_regs): Minor reformatting.
4
0bcd3e20
VP
52008-03-17 Vladimir Prus <vladimir@codesourcery.com>
6
7 * thread.c (print_thread_info): Don't insist
8 on having current thread if there are no
9 threads at all.
10
9356cf8d
PA
112008-03-17 Pedro Alves <pedro@codesourcery.com>
12
13 * infcmd.c (attach_command_post_wait)
14 (attach_command_continuation): New.
15 (attach_command): Support background async execution, and async
16 execution in synchronous mode.
17
5c3ce3f7
DJ
182008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
19
20 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
21 * symmisc.c (dump_symtab_1): Likewise.
22 * wrapper.c (gdb_value_struct_elt): Likewise.
23
fa2c6a57
PA
242008-03-17 Pedro Alves <pedro@codesourcery.com>
25
26 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
27
02f3fc28
PA
282008-03-17 Pedro Alves <pedro@codesourcery.com>
29
30 * linux-nat.c (linux_nat_filter_event): New, refactored from
31 linux_nat_wait.
32 (linux_nat_wait): Call linux_nat_filter_event.
33
2f77b315
UW
342008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
35
36 * top.c (execute_command): Fix uninitialized variable error.
37
f01be29b
NH
382008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
39
40 * Makefile.in (amd64nbsd-nat.o): New dependency.
41 * amd64nbsd-nat.c: Include "nbsd-nat.h".
42 (_initialize_amd64nbsd_nat): Update target vector to use
43 nbsd_pid_to_exec_file.
44 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
45
6cf32704
VP
462008-03-15 Vladimir Prus <vladimir@codesourcery.com>
47
48 Remove ignoring leading exec events code.
49 * fork-child.c (startup_inferior): Do not set
50 inferior_ignoring_leading_exec_events.
51 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
52 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
53 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
54 (handle_inferior_event): Remove code for ignoring leading exec
55 events.
56 * target.c (update_current_target): Do not inherit, or default,
57 to_reported_exec_events_per_exec_call.
58 (debug_to_reported_exec_events_per_exec_call): Remove.
59 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
60 * target.h (target_reported_exec_events_per_exec_call): Remove.
61 (struct target): Remove the to_reported_exec_events_per_exec_call
62 field.
63
8e8901c5
VP
642008-03-15 Vladimir Prus <vladimir@codesourcery.com>
65
66 Implement -thread-info.
67 * gdbthread.h (print_thread_info): Declare.
68
69 * thread.c (print_thread_info): New, extracted
70 from info_threads_command and adjusted to
71 work for CLI and MI.
72 (info_threads_command): Use print_thread_info.
73 * Makefile.in: Update dependencies.
74
75 * mi/mi-cmds.c (mi_cmds): Specify a handler
76 for -thread-info.
77 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
78 * mi/mi-main.c (mi_cmd_thread_info): New.
79 (mi_cmd_list_features): Include 'thread-info'.
80
7d1e6fb8
KB
812008-03-14 Kevin Buettner <kevinb@redhat.com>
82
83 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
84 to decide whether to match instruction patterns using "sw" and "sd".
85
89113898
PA
862008-03-14 Pedro Alves <pedro@codesourcery.com>
87
88 * infcmd.c (jump_command): Postpone disabling stdin until after
89 the possible query.
90
64a0ac84
PA
912008-03-14 Pedro Alves <pedro@codesourcery.com>
92
93 * inflow.c (gdb_getpgrp): New.
94 (gdb_has_a_terminal): Use get_getpgrp.
95 (terminal_ours_1): If attach_flag is set, don't refetch
96 inferior_process_group.
97
1fddbabb
PA
982008-03-14 Pedro Alves <pedro@codesourcery.com>
99
100 * features/library-list.dtd: Allow "section" elements as children
101 of "library". Add "section" element and describe its attributes.
102
103 * solib-target.c (struct lm_info): Add section_bases member.
104 (library_list_start_segment): Error out if seen a section element.
105 (library_list_start_section): New.
106 (library_list_end_library): New.
107 (solib_target_free_library_list): Free section_bases.
108 (section_attributes): New.
109 (library_children): Make "segment" optional. Add "section" child.
110 (library_list_children): Register library_list_end_library.
111 (solib_target_relocate_section_addresses): Handle section bases.
112
113 * NEWS: Mention new qXfer:libraries:read section offsets support.
114
712af3be
VP
1152008-03-14 Vladimir Prus <vladimir@codesourcery.com>
116
117 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
118 (make_exec_error_cleanup): Remove declarations.
119 * utils.c (exec_error_cleanup_chain): Remove.
120 (do_exec_error_cleanups, discard_exec_error_cleanups)
121 (make_exec_error_cleanup): Remove.
122 * event-loop.c (start_event_loop): Adjust call to
123 async_enable_stdin.
124 * event-top.c (async_enable_stdin): Remove the paramater dummy.
125 (async_disable_stdin): Don't register async_enable_stdin via
126 cleanup.
127 * inf-loop.c (inferior_event_handler): Don't
128 call do_exec_error_cleanups. Call async_enable_stdin instead.
129 * event-loop.c (start_event_loop): Adjust call to
130 async_enable_stdin.
131 * tui/tui-interp.c (tui_command_loop): Adjust call to
132 async_enable_stdin.
133
32c1e744
VP
1342008-03-14 Vladimir Prus <vladimir@codesourcery.com>
135
136 Async mode fixes.
137 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
138 * breakpoint.c (bpstat_do_actions): In async mode,
139 don't jump to top expecting stop_bpstat to be already
140 updated.
141 * event-loop.c (start_event_loop): Call async_enable_stdin
142 on exception.
143 * event-top.c (async_enable_stdin): Do nothing if sync_execution
144 is not set.
145 (command_handler): Do not setup continuation here.
146 (command_line_handler_continuation): Move to...
147 * top.c (command_line_handler_continuation): ... here.
148 (execute_command): In async mode, register continuation.
149 Don't check frame's language in running in async mode.
150 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
151 * inf-loop.c (complete_execution): Inline into...
152 (inferior_event_handler): ... here. Clear target_executing before
153 doing any cleanups. Don't try to show prompt if the target was
154 resumed.
155 * infcmd.c (signal_command): Add support for async mode.
156 (finish_command): Only add continuation if the target was
157 successfully resumed.
158 * remote.c (init_async_opts): Register to_get_thread_local_address
159 handler.
160 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
161 with sync_execution.
162 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
163 on exception.
164
c04ea773
DJ
1652008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
166
167 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
168 * exec.c (exec_bfd_mtime): Define.
169 (exec_close): Clear it.
170 (exec_file_attach): Set it.
171 * gdbcore.h (exec_bfd_mtime): Declare.
172 * source.c (find_source_lines): Do not use bfd_get_mtime.
173
952dc227
VP
1742008-03-14 Vladimir Prus <vladimir@codesourcery.com>
175
176 * top.c (simplified_command_loop): Remove.
177
4cf46804
VP
1782008-03-14 Vladimir Prus <vladimir@codesourcery.com>
179
180 Remove unused remote.c hooks.
181 * remote.c (deprecated_target_resume_hook)
182 (deprecated_target_wait_loop_hook): Remove.
183 (remote_resume): Do not call deprecated_target_resume_hook.
184 (remote_wait): Do not call deprecated_target_wait_loop_hook.
185 (remote_async_wait): Likewise.
186
683f2885
VP
1872008-03-14 Vladimir Prus <vladimir@codesourcery.com>
188
189 Implement MI notification for new threads.
190 * doc/observer.texi (new_thread): Document.
191 * observer.sh: Forward declare struct thread_info.
192 * thread.c (add_thread): Notify observer.
193
194 * interps.h (interp_init_ftype): New parameter
195 top_level.
196 (interp_set): Likewise.
197 (top_level_interpreter_data): Declare.
198 * interps.c (interp_set): New parameter top_level.
199 Pass it to interpreter's init function. Remember
200 top level interpreter.
201 (interpreter_exec_cmd): Adjust.
202 (top_level_interpreter_data): New.
203 * main.c (captured_main): Pass 1 for top_level
204 parameter of interp_set.
205 * cli/cli-interp.c (cli_interpreter_init): New
206 parameter top_level.
207 * tui/tui-interp.c (tui_init): New parameter top_level.
208
209 * mi/mi-interp.c (mi_new_thread): New.
210 (mi_interpreter_init): If top level, register
211 observer for new threads.
212
213 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
214
ff9b3928
PA
2152008-03-14 Pedro Alves <pedro@codesourcery.com>
216
217 * top.c (execute_command): Disable break and stop
218 commands in async mode.
219
b18392ef
PA
2202008-03-14 Pedro Alves <pedro@codesourcery.com>
221
222 revert:
223 2008-03-14 Pedro Alves <pedro@codesourcery.com>
224 * inf-loop.c (inferior_event_handler): Don't include remote.h.
225 Call target_stop in the INF_QUIT_REQ case.
226 * Makefile.in (inf-loop.o): Update.
227
0aca9f07
PA
2282008-03-14 Pedro Alves <pedro@codesourcery.com>
229
230 * inf-loop.c (inferior_event_handler): Don't include remote.h.
231 Call target_stop in the INF_QUIT_REQ case.
232 * Makefile.in (inf-loop.o): Update.
233
0b4e556c
PA
2342008-03-14 Pedro Alves <pedro@codesourcery.com>
235
236 * top.c (execute_command): Enable break, info and interrupt
237 commands in async mode.
238
8defab1a
DJ
2392008-03-13 Vladimir Prus <vladimir@codesourcery.com>
240 Daniel Jacobowitz <dan@codesourcery.com>
241
242 * breakpoint.h (breakpoint_restore_shadows): New
243 declaration.
244 * breakpoint.c (breakpoint_restore_shadows): New.
245 (read_memory_nobpt): Delete.
246 * gdbcore.h (read_memory_nobpt): Delete declaration.
247 * target.c (memory_xfer_partial): Call
248 breakpoint_restore_shadows.
249 (restore_show_memory_breakpoints)
250 (make_show_memory_beakpoints_cleanup): New.
251 (show_memory_breakpoints): New.
252 * target.h (make_show_memory_beakpoints_cleanup): Declare.
253 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
254 Make sure we see memory breakpoints when checking if
255 breakpoint is still there.
256 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
257 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
258 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
259 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
260
fd532e2e
PA
2612008-03-12 Pedro Alves <pedro@codesourcery.com>
262
263 * thread.c (add_thread): Use printf_unfiltered to print.
264
f749779f 2652008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
266
267 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
268 that is true only on x86-solaris and x86_64-solaris.
269 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
270 with proc_get_LDT_entry.
271
2722008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
273
274 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
275 * config.in, configure: Regenerate.
276 * fork-child.c (fork_inferior): Call create_tty_session.
277 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
278 (create_tty_session): New function.
279 * terminal.h: Declare create_tty_session.
280
4fbb74a6
AM
2812008-03-12 Alan Modra <amodra@bigpond.net.au>
282
283 PR 5900
284 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
285 * mipsread.c: Include elf/internal.h.
286 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
287 to internal range.
288
20a6ec49
MD
2892008-03-11 Markus Deuling <deuling@de.ibm.com>
290
291 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
292 to get at the current architecture and at the target specific vector.
293 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
294 remove define of I387_ST0_REGNUM.
295
296 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
297
298 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
299 get at the current architecture
300 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
301 parameter.
302
303 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
304 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
305
306 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
307 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
308 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
309
310 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
311 at the target specific vector.
312
313 (i386_get_longjmp_target): Use get_frame_arch to get at the current
314 architecture. Use gdbarch_tdep to get at the target specific vector.
315
316 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
317 update caller. Use gdbarch_tdep to get at the target specific vector.
318
319 (i386_register_to_value: Use get_frame_arch to get at the current
320 architecture.
321
322 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
323 parameter.
324
325 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
326 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
327 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
328 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
329
330 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
331 undef's.
332
333 (i387_convert_register_p, i387_register_to_value,
334 i387_value_to_register): Update call for i386_fp_regnum_p.
335
336 * i387-tdep.h: Remove comment.
337 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
338 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
339 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
340 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
341 I387_MXCSR_REGNUM): Add target specific vector as parameter.
342
ccd213ac
DJ
3432008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
344
345 * Makefile.in (fork-child.o): Update.
346 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
347 argument. Gather all gdbserver features together.
348 * fork-child.c (exec_wrapper): New variable.
349 (fork_inferior): Use it.
350 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
351 (unset_exec_wrapper_command, _initialize_fork_child): New.
352
3532008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
354
355 * source.c (directory_command): Modify the determination of
356 condition of terminal "from_tty".
357
22566fbd
DJ
3582008-03-10 Matt Rice <ratmice@gmail.com>
359
360 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
361
9971ac47
UW
3622008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
363
364 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
365 of the data passing to strtoulst function.
366 (info_spu_signal_command): Likewise.
367
835670cf
VP
3682008-03-08 Vladimir Prus <vladimir@codesourcery.com>
369
370 * mi/mi-interp.c (mi_command_loop): Remove
371 commented-out code.
372
be86555c
JB
3732008-03-07 Joel Brobecker <brobecker@adacore.com>
374
375 * remote.c (extended_remote_attach_1): Make local variable pid an int
376 instead of a pid_t.
377
4d7b2d5b
JB
3782008-03-07 Joel Brobecker <brobecker@adacore.com>
379
380 * solib-svr4.c (svr4_same_1): New function, originally extracted
381 from svr4_same and expanded to handle the sparc64 case.
382 (svr4_same): Move up and reimplement using svr4_same_1.
383 (enable_break): Use svr4_same_1 to do shared library name comparisons.
384
61fed90e
RR
3852008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
386
387 * MAINTAINERS: Move self to Paper trail.
388
b803fb0f
DJ
3892008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
390
391 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
392 * event-loop.c (call_async_signal_handler): New.
393 * event-loop.h (call_async_signal_handler)
394 (gdb_call_async_signal_handler): Declare.
395 (mark_async_signal_handler): Add comments.
396 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
397 * mingw-hdep.c (sigint_event, sigint_handler): New.
398 (gdb_select): Use them. Wait for the readline signal handler
399 to finish.
400 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
401 * posix-hdep.c (gdb_call_async_signal_handler): New function.
402 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
403 New.
404 (remote_fileio_ctrl_c_signal_handler): Use
405 gdb_call_async_signal_handler.
406 (initialize_remote_fileio): Initialize sigint_fileio_token.
407 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
408 not initialize tokens here.
409 (handle_remote_sigint_twice): Likewise. Reinstall
410 handle_remote_sigint.
411 (async_remote_interrupt_twice): Just call interrupt_query.
412 (cleanup_sigint_signal_handler): Do not delete tokens.
413 (remote_interrupt, remote_interrupt_twice): Use
414 gdb_call_async_signal_handler.
415 (interrupt_query): Reinstall the default signal handler.
416 (_initialize_remote): Initialize tokens here.
417
8f4d54ed
JB
4182008-03-04 Joel Brobecker <brobecker@adacore.com>
419
420 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
421 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
422 Change the type of the lr register to code_ptr.
423 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
424 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
425 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
426 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
427 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
428 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
429 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
430
95ece428
JW
4312008-03-03 James E. Wilson <wilson@tuliptree.org>
432
433 * MAINTAINERS: Update my email address.
434
686a5eed
KS
4352008-03-03 Keith Seitz <keiths@redhat.com>
436
437 From Dave Murphy <davem@devkitpro.org>:
438 * configure.ac: Set tcl configdir to win under mingw.
439 * configure: Regenerate.
440
fa4727a6
DJ
4412008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
442
443 * breakpoint.c (fetch_watchpoint_value): New function.
444 (update_watchpoint): Set and clear val_valid. Use
445 fetch_watchpoint_value. Handle unreadable values on the
446 value chain. Correct check for user-requested array watchpoints.
447 (breakpoint_init_inferior): Clear val_valid.
448 (watchpoint_value_print): New function.
449 (print_it_typical): Use it. Do not free or clear old_val. Print
450 watchpoints even if old_val == NULL.
451 (watchpoint_check): Use fetch_watchpoint_value. Check for values
452 becoming readable or unreadable.
453 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
454 (do_enable_watchpoint): Likewise.
455 * breakpoint.h (struct breakpoint): Update comment for val. Add
456 val_valid.
457 * NEWS: Mention watchpoints on inaccessible memory.
458
c03374d5
DJ
4592007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
460
461 * Makefile.in (i386-nat.o): Update.
462 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
463 i386_use_watchpoints.
464 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
465 i386_use_watchpoints.
466 * i386-nat.c (i386_stopped_data_address): Take two arguments.
467 (i386_stopped_by_watchpoint): Update call.
468 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
469 * config/i386/nm-i386.h: Conditionalize definitions on
470 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
471 (i386_use_watchpoints): Declare.
472 (i386_stopped_data_address): Update.
473 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
474 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
475
c24d7425 4762008-02-29 Joel Brobecker <brobecker@adacore.com>
477
478 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
479 * version.in: Bump version to 6.8.50.20080229-cvs.
480
a7dfd010
MD
4812008-02-28 Markus Deuling <deuling@de.ibm.com>
482
483 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
484 properly.
485
258c00cc
TT
4862008-02-28 Tom Tromey <tromey@redhat.com>
487
488 * infcmd.c (notice_args_read): Print result of get_inferior_args.
489
8edfe269
DJ
4902008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
491
492 * infcmd.c (kill_if_already_running): Make static. Use
493 target_require_runnable.
494 * target.c (target_require_runnable): New.
495 * target.h (target_require_runnable): Declare.
496
0d6ba1b1
DJ
4972008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
498
499 * frame.c (reinit_frame_cache): Only annotate if frames were
500 previously valid.
501
6fe305f7
UW
5022008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
503
504 * regformats/reg-ppc.dat: Rename "ps" to "msr".
505 * regformats/reg-ppc64.dat: Likewise.
506
9b4b61c8
UW
5072008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
508
509 * features/Makefile (%.dat): Emit xmltarget statement.
510
511 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
512 Generate code to set gdbserver_xmltarget in init_registers_${name}.
513
514 * regformats/arm-with-iwmmxt.dat: Regenerate.
515 * regformats/mips64-linux.dat: Regenerate.
516 * regformats/mips-linux.dat: Regenerate.
517 * regformats/rs6000/powerpc-32.dat: Regenerate.
518 * regformats/rs6000/powerpc-64.dat: Regenerate.
519 * regformats/rs6000/powerpc-e500.dat: Regenerate.
520
521 * regformats/reg-arm.dat: Add xmlarch statement.
522 * regformats/reg-i386.dat: Likewise.
523 * regformats/reg-i386-linux.dat: Likewise.
524 * regformats/reg-x86-64-linux.dat: Likewise.
525 * regformats/reg-spu.dat: Likewise.
526
20b4711e
DJ
5272008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
528
529 * remote.c (remote_wait, remote_async_wait): Stop if we receive
530 an error.
531
1843f87b
DJ
5322008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
533
534 * utils.c (debug_timestamp): New.
535 (vfprintf_unfiltered): Print timestamps if requested.
536 (show_debug_timestamp): New.
537 (initialize_utils): Register "set debug timestamp".
538 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
539
6a048695
JB
5402008-02-27 Joel Brobecker <brobecker@adacore.com>
541
542 * breakpoint.c (skip_prologue_sal): New function.
543 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
544 computed from a line number.
545
0b998f49
JB
5462008-02-27 Joel Brobecker <brobecker@adacore.com>
547
548 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
549 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
550 Set PC register type to "code_ptr".
551 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
552 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
553 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
554 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
555 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
556 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
557 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
558 Regenerate.
559
d05b4ac3
UW
5602008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
561
562 * regformats/regdat.sh: Rename init_registers function in
563 generated file to init_registers_${name}.
564
565 * regformats/reg-crisv32.dat: Set "name" to crisv32.
566 * regformats/reg-ppc64.dat: Set "name" to ppc64.
567 * regformats/reg-s390x.dat: Set "name" to s390x.
568
a5d9d57d
DJ
5692008-02-26 Greg Law <glaw@undo-software.com>
570
571 * regcache.c (registers_changed): Call reinit_frame_cache.
572
e25c958c
DJ
5732008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
574
575 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
576 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
577 and svr4_fetch_objfile_link_map.
578 * Makefile.in (sh-linux-tdep.o): Update.
579
5daa78cc
TJB
5802008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
581
582 * amd64-tdep.c (amd64_classify): Add support for decimal float
583 types.
584 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
585 use the struct return convention.
586
54e52265
VP
5872008-02-26 Nick Roberts <nickrob@snap.net.nz>
588
589 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
590 to old format. Discard breakpoint address if shared library is
591 unloaded.
592 (breakpoint_1): Adjust formatting of table header accordingly.
593
d8f2712d
VP
5942008-02-25 Vladimir Prus <vladimir@codesourcery.com>
595
596 * remote.c (remote_get_threadlist): If the response
597 is empty, don't try to parse it.
598
05ce04a4
VP
5992008-02-23 Vladimir Prus <vladimir@codesourcery.com>
600
601 Unbreak 'target async'.
602 * serial.c (serial_async): Set the
603 handler function before enabling async
604 mode.
605
b36ec657
DJ
6062008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
607
608 * solib-svr4.c (enable_break): Convert r_brk to a code address.
609
df7df359
PA
6102008-02-21 Pedro Alves <pedro@codesourcery.com>
611
612 * remote.c (extended_remote_attach_1): Set attach_flag.
613 (extended_remote_create_inferior_1): Clear attach_flag.
614
7cd25cfc
DJ
6152008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
616
617 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
618 r_brk_offset.
619 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
620 * solib-svr4.c (solib_svr4_r_brk): New.
621 (open_symbol_file_object, svr4_current_sos): Always check the
622 debug base.
623 (svr4_fetch_objfile_link_map): Do not set debug_base.
624 (enable_break): Use r_brk if it is set.
625 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
626 (svr4_lp64_fetch_link_map_offsets): Likewise.
627 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
628
07ea644b
MD
6292008-02-20 Markus Deuling <deuling@de.ibm.com>
630 Mark Kettenis <kettenis@gnu.org>
631
632 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
633 trad_frame_saved_reg.
634 (trad-frame.h): New include.
635
636 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
637 instead of frame_obstack_zalloc.
638 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
639
640 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
641
40887e1a
MD
6422008-02-20 Markus Deuling <deuling@de.ibm.com>
643
644 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
645 from disassemble_info instead of gdbarch_byte_order.
646
647 * mips-tdep.c (gdb_print_insn_mips): Likewise.
648 * arm-tdep.c (gdb_print_insn_arm): Likewise.
649
ae4b2284
MD
6502008-02-20 Markus Deuling <deuling@de.ibm.com>
651
652 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
653 gdbarch as parameter.
654
655 * gdbarch.{c,h}: Regenerate.
656
657 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
658 parameter.
659 * mem-break.c (default_memory_insert_breakpoint)
660 (default_memory_remove_breakpoint): Likewise.
661 * target.h (default_memory_remove_breakpoint)
662 (default_memory_insert_breakpoint): Likewise.
663
664 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
665 parameter. Replace current_gdbarch by gdbarch.
666 * m32r-tdep.c (m32r_memory_insert_breakpoint)
667 (m32r_memory_remove_breakpoint): Likewise.
668
d9bf65d5
DJ
6692008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
670
671 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
672
b93b6ca7
JB
6732008-02-19 Joel Brobecker <brobecker@adacore.com>
674
675 * NEWS: Add entry describing Add support improvements.
676
4ed226fe
MD
6772008-02-18 Markus Deuling <deuling@de.ibm.com>
678
679 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
680 M68K_FP0_REGNUM.
681
caaa79ad
MD
6822008-02-18 Markus Deuling <deuling@de.ibm.com>
683
684 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
685 register_offset_hack anymore.
686
687 * regcache.{c,h} (register_offset_hack): Remove.
688
e38c262f
MD
6892008-02-18 Markus Deuling <deuling@de.ibm.com>
690
691 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
692
693 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
694 current_gdbarch by gdbarch.
695 (hppa64_hpux_find_global_pointer): Likewise.
696 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
697 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
698 find_global_pointer.
699
700 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
701 parameter.
702 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
703
704 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
705 of gdbarch_num_regs.
706
707 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
708 replace current_gdbarch by gdbarch.
709 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
710
206988c4
MD
7112008-02-18 Markus Deuling <deuling@de.ibm.com>
712
713 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
714 and replace current_gdbarch by gdbarch.
715
716 (store_register): Update call for exec_one_dummy_insn.
717 (fetch_register, store_register): Update call of regmap.
718
719 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
720 parameter and replace current_gdbarch by gdbarch.
721
722 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
723 the current architecture. Update call for getregs_supplies and
724 getfpregs_supplies.
725 (ppcnbsd_fetch_inferior_registers): Likewise.
726
727 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
728 replace current_gdbarch by gdbarch.
729 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
730 get_regcache_arch to get at the current architecture. Update call for
731 getfpregs_supplies.
732
f642be6b
MD
7332008-02-18 Markus Deuling <deuling@de.ibm.com>
734
735 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
736 variables.
737
b1f2bf01
MD
7382008-02-15 Markus Deuling <deuling@de.ibm.com>
739
740 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
741
ee163bf5
VP
7422008-02-14 Vladimir Prus <vladimir@codesourcery.com>
743
744 * NEWS: Mention pending breakpints in MI.
745
f6fbcbf9
MD
7462008-02-14 Markus Deuling <deuling@de.ibm.com>
747
748 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
749
36af4ef6
MD
7502008-02-13 Markus Deuling <deuling@de.ibm.com>
751
752 Add script to build and test GDB using enable-targets=all.
753
754 * gdb_buildall.sh: New file.
755
94a0e877
MG
7562008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
757
758 * NEWS (New native configurations): Xtensa GNU/Linux.
759 (New targets): Xtensa GNU/Linux.
760 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
761 xtensa-linux-tdep.o
762 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
763 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
764 * configure.tgt (xtensa*-*-linux*): New entry.
765 * xtensa-config.c (xtensa_tdep): New variable.
766 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
767 (rmap): Change format based on new macro XTREG.
768 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
769 * xtensa-linux-nat.c: New.
770 * xtensa-linux-tdep.c: New.
771 * xtensa-xtregs.c: New.
772 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
773 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
774 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
775 (xtensa_register_t): New field coprocessor.
776 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
777 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
778 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
779 Update to handle privileged registers.
780 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
781 (xtensa_push_dummy_call): Set windowstart register correctly.
782 (call0_analyze_prologue): Initialize xtensa_default_isa.
783 (xtensa_derive_tdep): New.
784 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
785 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
786 Call xtensa_derive_tdep().
787 * config/xtensa/linux.mh: New.
788 * regformats/reg-xtensa.dat: New.
789
b7ee1b0a 7902008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
791
792 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
793 (filenames.h): New include.
794 * Makefile.in (corelow.o): Add dependency for filenames.h.
795
8da2a1df
DJ
7962008-02-08 Doug Evans <dje@google.com>
797
798 * source.c (find_and_open_source): Always rewrite absolute filenames.
799
776592bf
DE
8002008-02-07 Doug Evans <dje@google.com>
801
802 * breakpoint.c: #include "hashtab.h".
803 (ambiguous_names_p): New fn.
804 (update_breakpoint_locations): When restoring bp enable status, don't
805 compare function names if any functions have same name.
806 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
807
d6565258
JB
8082008-02-07 Joel Brobecker <brobecker@adacore.com>
809
810 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
811 instead of just a VEC*. Update use of SV.
812 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
813
6d53d0af
JB
8142007-02-07 Joel Brobecker <brobecker@adacore.com>
815
816 * NEWS: Put all new commands since gdb-6.7 together.
817
2ba95b9b
JB
8182007-02-07 Joel Brobecker <brobecker@adacore.com>
819
820 * ada-lang.c: #include "vec.h".
821 (struct string_vector, new_string_vector, string_vector_append):
822 Delete.
823 (char_ptr): New typedef.
824 (DEF_VEC_P (char_ptr)): New VEC type.
825 (symbol_completion_add): Update profile to take the new VEC type
826 instead of the old string_vector structure. Update code accordingly.
827 (ada_make_symbol_completion_list): Use the new VEC type instead of
828 the old string_vector structure, and update the code accordingly.
829 * Makefile.in (ada-lang.o): Add dependency on vec.h.
830
4ae0885a
PM
8312008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
832
833 * p-exp.y: Set current_type in missing places.
834 (leftdiv_is_integer): New static variable.
835 Typecast right operand of BINOP_DIV to long_double if both operands
836 are integers.
837
06b1d59c
MR
8382008-02-06 Maciej W. Rozycki <macro@mips.com>
839
840 * remote-mips.c (set_breakpoint): Rename to...
841 (mips_set_breakpoint): ... this.
842 (clear_breakpoint): Rename to...
843 (mips_clear_breakpoint): ... this.
844 (common_breakpoint): Rename to...
845 (mips_common_breakpoint): ... this.
846 (check_lsi_error): Rename to...
847 (mips_check_lsi_error): ... this.
848
41d27058
JB
8492007-02-05 Joel Brobecker <brobecker@adacore.com>
850
851 * language.h (struct language_defn): Add new field
852 la_make_symbol_completion_list.
853 * symtab.c (default_make_symbol_completion_list): Renames
854 make_symbol_completion_list.
855 (make_symbol_completion_list): New function.
856 * symtab.h (default_make_symbol_completion_list): Add declaration.
857 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
858 (auto_language, local_language): Likewise.
859 * objc-lang.c (objc_language_defn): Likewise.
860 * scm-lang.c (scm_language_defn): Likewise.
861 * m2-lang.c (m2_language_defn): Likewise.
862 * f-lang.c (f_language_defn): Likewise.
863 * jv-lang.c (java_language_defn): Likewise.
864 * p-lang.c (pascal_language_defn): Likewise.
865 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
866 (minimal_language_defn): Likewise.
867 * ada-lang.c (struct string_vector): New structure.
868 (new_string_vector, string_vector_append, ada_unqualified_name)
869 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
870 (ada_make_symbol_completion_list): New functions.
871 (ada_language_defn): Set la_make_symbol_completion_list.
872 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
873 this function is static.
874
ee3a2f01
KB
8752008-02-05 Kevin Buettner <kevinb@redhat.com>
876
877 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
878 to account for call site optimizations.
879
d844e34b
JB
8802008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
881
882 * tracepoint.c (read_actions): Handle end-of-text indicator
883 in action list properly. (Committed by Jim Blandy)
884
02e4669d
JB
8852008-02-05 Jim Blandy <jimb@red-bean.com>
886
887 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
888 pseudoregister, not an internal error.
85ecb32b 889 Reported by: Andrzej Zaborowski
02e4669d 890
c39c8256
VP
8912008-02-04 Vladimir Prus <vladimir@codesourcery.com>
892
893 * varobj.c (c_value_of_variable): Use xstrdup.
894
ae7d22a6
VP
8952008-02-04 Vladimir Prus <vladimir@codesourcery.com>
896
897 Update stored rendition of varobj value when format changes.
898 * varobj.c (varobj_set_display_format): Recomputed
899 print_value.
900 (c_value_of_variable): Return print_value.
901
81fe8080
DE
9022008-02-03 Doug Evans <dje@google.com>
903
301f0ecf
DE
904 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
905 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
906 * valops.c (value_one): New function.
907 * value.h (value_one): Declare.
908
909 Fix argument promotion for binary arithmetic ops for C.
910 * valarith.c (unop_result_type): New fn.
911 (binop_result_type): New fn.
912 (value_binop): Move result type computation to binop_result_type.
913 (value_pos, value_neg, value_complement): Move result type
914 computation to unop_result_type.
915
81fe8080
DE
916 PR 2384
917 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
918 Return basetype, fieldno if found. All callers updated.
919 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
920 objfile.
921 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
922 * symfile.h (fill_in_vptr_fieldno): Delete.
923
41808ebe
DE
9242008-02-02 Doug Evans <dje@google.com>
925
f8597ac3
DE
926 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
927
41808ebe
DE
928 * typeprint.c (*): Whitespace cleanup.
929
f964a756
MK
9302008-02-02 Mark Kettenis <kettenis@gnu.org>
931 Luis Machado <luisgpm@br.ibm.com>
932 Thiago Jung Bauermann <bauerman@br.ibm.com>
933
934 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
935 don't fit into registerson the stack the way GCC does.
936
b06ead72
JB
9372008-02-01 Joel Brobecker <brobecker@adacore.com>
938
939 * symtab.c (symbol_set_names): Do not add an entry in the demangling
940 hash table for Ada symbols. Just store the linkage name as is,
941 and leave the demangled_name as NULL.
942
2cfa0c8d
JB
9432007-02-01 Joel Brobecker <brobecker@adacore.com>
944
945 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
946 in the global scope.
947 (new_symbol): Likewise.
948
98deb0da
VP
9492008-02-01 Vladimir Prus <vladimir@codesourcery.com>
950
951 * breakpoint.c (break_command_1): Return void.
952 (break_command_really): Return void. Rethrow
953 exceptions instead of returning.
954 (gdb_breakpoint): Remove the error_message parameter.
955 Return void. Rename to set_breakpoint.
956 * gdb.h (gdb_breakpoint): Rename and move to...
957 * breakpoint.h (set_breakpoint): ...here.
958 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
959 event hooks even if exception is thrown. Adjust to
960 gdb_breakpoint interface changes.
961
962
ce0451ad
TJB
9632008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
964
965 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
966 float in both first and second word in the doubleword, to support
967 old and new ABIs.
968
723a2275
VP
9692008-02-01 Vladimir Prus <vladimir@codesourcery.com>
970
971 Properly rethrow exception. This fixes errors
972 about non-existent functions for -break-insert.
973 * breakpoint.c (break_command_really): Use throw_exception
974 for rethrowing. If rethrowing, don't print the exception.
975
d64a946d
TJB
9762008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
977
978 * NEWS: Mention Decimal Floating Point support.
979
02b156f5
JB
9802008-01-31 Joel Brobecker <brobecker@adacore.com>
981
982 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
983 value type to builtin_type_void_func_ptr.
984
a16b8bcd
UW
9852008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
986
987 * s390-tdep.c (is_float_singleton, is_float_like,
988 alignment_of, s390_return_value): Make checks for
989 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
990
f949c649
TJB
9912008-01-31 Luis Machado <luisgpm@br.ibm.com>
992 Thiago Jung Bauermann <bauerman@br.ibm.com>
993
994 * infcmd.c (default_print_registers_info): Also print hex
995 raw contents for TYPE_CODE_DECFLOAT registers.
996 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
997 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
998 (rs6000_register_name): Add support for DFP pseudo-registers.
999 (rs6000_pseudo_register_type): Likewise.
1000 rs6000_pseudo_register_reggroup_p): Likewise.
1001 (ppc_pseudo_register_read): New function.
1002 (ppc_pseudo_register_write): Likewise.
1003 (rs6000_pseudo_register_read): Likewise.
1004 (rs6000_pseudo_register_write): Likewise.
1005 (e500_pseudo_register_read): Move checks to
1006 rs6000_pseudo_register_read.
1007 (e500_pseudo_register_write): Move checks to
1008 rs6000_pseudo_register_write.
1009 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1010 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1011 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1012 num_pseudo_regs to account for DFP pseudo regs.
1013
5a9e69ba
TJB
10142008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1015
1016 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1017 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1018 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1019 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1020 e500_pseudo_register_read, e500_pseudo_register_write): Use
1021 IS_SPE_PSEUDOREG macro.
1022 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1023 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1024 Remove initialization of tdep->ppc_ev31_regnum.
1025
4e885b20
JB
10262008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1027
1028 * printcmd.c (print_formatted): Handle references as for unformatted
1029 prints.
1030
80f064a2
JB
10312008-01-30 Joel Brobecker <brobecker@adacore.com>
1032
1033 * eval.c (evaluate_subexp_standard): Add handling of user
1034 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1035
9b3442ee
PM
10362008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1037
1038 * eval.c (evaluate_subexp_standard): Support
1039 BINOP_INTDIV opcode.
1040
d118ef87
PH
10412008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1042
1043 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1044 BINOP_MAX cases.
1045 For BINOP_EXP, use length and signedness of left operand only for
1046 result, as for shifts.
1047 For integral operands to BINOP_EXP, use new integer_pow and
1048 uinteger_pow functions so as to get full range of results.
1049 (integer_pow): New function.
1050 (uinteger_pow): New function.
1051
d56d46f5
VP
10522008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1053
1054 Use vector for varobj_list_children interface.
1055 * gdb/varobj.c (varobj_list_children): Return vector
1056 of varobjs.
1057 * gdb/varobj.h (varobj_list_children): Adjust
1058 prototype.
1059 (varobj_p): Declare. Declare vector thereof.
1060 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1061 for varobj_list_children change.
1062 * Makefile.in (varobj_h): Update dependencies.
1063
1300a2f4
TJB
10642008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1065
1066 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1067 TYPE_CODE_DECFLOAT arguments.
1068 (ppc64_sysv_abi_push_dummy_call) Likewise.
1069 (get_decimal_float_return_value): New function.
1070 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1071 values by calling get_decimal_float_return_value.
1072 (ppc64_sysv_abi_return_value): Likewise.
1073
95ef687d
NR
10742008-01-30 Nick Roberts <nickrob@snap.net.nz>
1075
1076 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1077 for preprocessor macro information. Formatting changes.
1078
2d717e4f
DJ
10792008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1080
1081 * remote.c (struct remote_state): Add cached_wait_status.
1082 (remote_exec_file): New variable.
1083 (PACKET_vAttach, PACKET_vRun): New constants.
1084 (extended_remote_restart): Do not query for status.
1085 (struct start_remote_args): New.
1086 (remote_start_remote): Take it as a second argument. Check
1087 whether the target is running. Issue an error for non-running
1088 non-extended targets. Cache the wait status. Set inferior_ptid
1089 here.
1090 (remote_open_1): Prompt to disconnect non-running targets. Make
1091 sure the target is marked running. Do not set inferior_ptid here.
1092 Update call to remote_start_remote. Do not call remote_check_symbols
1093 if the target is not running.
1094 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1095 argument. Handle a non-running target.
1096 (remote_detach): Use it.
1097 (extended_remote_detach): New.
1098 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1099 (extended_remote_attach_1, extended_remote_attach)
1100 (extended_async_remote_attach): New.
1101 (remote_vcont_resume): Remove unused variable.
1102 (remote_wait, remote_async_wait): Use any cached wait status.
1103 (putpkt_binary, getpkt): Clear any cached wait status.
1104 (extended_remoute_mourn_1): New.
1105 (extended_remote_mourn): Use it.
1106 (extended_async_remote_mourn, extended_remote_run): New.
1107 (extended_remote_create_inferior_1): New.
1108 (extended_remote_create_inferior): Use it.
1109 (extended_remote_async_create_inferior): Likewise.
1110 (remote_xfer_partial): Skip for non-executing targets.
1111 (init_extended_remote_ops): Set to_detach and to_attach.
1112 (init_extended_async_remote_ops): Likewise. Use
1113 extended_async_remote_mourn.
1114 (_initialize_remote): Register vAttach, vRun, and
1115 set remote exec-file.
1116 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1117
e85a822c
DJ
11182008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1119
1120 * Makefile.in (symfile.o): Update.
1121 * NEWS: Mention exec tracing support.
1122 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1123 exec events.
1124 * infcmd.c (kill_if_already_running, detach_command)
1125 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1126 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1127 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1128 targets. Apply the sysroot path to the loaded executable. Use
1129 no_shared_libraries.
1130 * linux-nat.c (linux_child_follow_fork): Print fork following
1131 messages if verbose.
1132 (kill_wait_callback): Kill again before waiting a second time.
1133 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1134 no_shared_libraries.
1135
9db13498
JB
11362008-01-29 Joel Brobecker <brobecker@adacore.com>
1137
1138 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1139
b4d5ed91
JB
11402008-01-29 Joel Brobecker <brobecker@adacore.com>
1141
1142 * nto-tdep.h: Remove #include "defs.h".
1143 * nto-tdep.c: Add #include "defs.h".
1144 * Makefile.in (nto_tdep_h): Update dependencies.
1145 (nto-tdep.o): Likewise.
1146
107313f7 11472008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
1148
1149 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1150 and use it.
1151 (proceed, start_remote): Update call to wait_for_inferior.
1152 * inferior.h (wait_for_inferior): Update declaration.
1153 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1154 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1155 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1156 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1157
3f4178d6
DJ
11582008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1159
1160 * varobj (adjust_value_for_child_access): Added checking for
1161 returned value from gdb_value_ind.
1162 (c_describe_child): Likewise.
1163 (cplus_describe_child): Fixed a typo.
1164
5eeba8d4
JB
11652008-01-29 Jim Blandy <jimb@red-bean.com>
1166
1167 * MAINTAINERS: Update my info.
1168
a5606eee
VP
11692008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1170
1171 Use multiple locations for hardware watchpoints.
1172 This eliminates the need to traverse value chain, doing
1173 various checks, in three different places.
1174
1175 * breakpoint.h (struct bp_location): New fields
1176 lengths and watchpoint_type.
1177 (struct breakpoint): Remove the val_chain field.
1178 * breakpoint.c (is_hardware_watchpoint): New.
1179 (free_valchain): Remove.
1180 (update_watchpoint): New.
1181 (insert_bp_location): For hardware watchpoint, just
1182 directly insert it.
1183 (insert_breakpoints): Call update_watchpoint_locations
1184 on all watchpoints. If we have failed to insert
1185 any location of a hardware watchpoint, remove all inserted
1186 locations.
1187 (remove_breakpoint): For hardware watchpoints, directly
1188 remove location.
1189 (watchpoints_triggered): Iterate over locations.
1190 (bpstat_stop_status): Use only first location of
1191 a resource watchpoint.
1192 (delete_breakpoint): Don't call free_valchain.
1193 (print_one_breakpoint): Don't print all
1194 locations for watchpoints.
1195 (breakpoint_re_set_one): Use update_watchpoint for
1196 watchpoints.
1197
0b3de036
VP
11982008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1199
1200 Don't reset watchpoint block on solib load.
1201
1202 * breakpoint.c (insert_bp_location): For watchpoints,
1203 recompute condition.
1204 (breakpoint_re_set_one): Instead of recomputing value
1205 and condition for watchpoints, just reset value and
1206 let insert_breakpoints/insert_bp_location recompute it.
1207 Don't do anything about disabled watchpoint.
1208
c3940723
PM
12092008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1210
1211 * valarith.c (value_binop): Handle unsigned integer
1212 division by zero.
1213
83845630
KB
12142008-01-28 Kevin Buettner <kevinb@redhat.com>
1215
1216 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1217 instruction pattern that appears frequently in position
1218 independent code. Fix bug in code which looks for "fmov" and
1219 backtracks if no "fmov" is found.
1220
9ce5d3bb
DE
12212008-01-28 Doug Evans <dje@google.com>
1222
1223 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
1224 Reformat comments to 80 columns.
1225 Move local var def closer to only use.
9ce5d3bb 1226
c78d192c
DJ
12272008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1228
1229 * fork-child.c (SHELL_FILE): Remove #ifndef.
1230 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1231
e11481da
PM
12322008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1233
1234 * i386-tdep.c (i386_skip_noop): New function.
1235 (i386_analyze_prologue): Call i386_skip_noop function.
1236
244e85c8
MS
12372008-01-24 Michael Snyder <msnyder@specifix.com>
1238
1239 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1240 * win32-nat.c (win32_xfer_partial): Ditto.
1241 * target.c (default_xfer_partial): Minor whitespace adjustment.
1242
dd6be234
PA
12432008-01-24 Pedro Alves <pedro@codesourcery.com>
1244
1245 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1246 strip bit 1 even if pc doesn't point to thumb code.
1247
9fa2223d
DJ
12482008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1249
1250 * remote.c (remote_wait): Handle SIGINT between packets.
1251 (remote_async_wait): Likewise.
1252
93815fbf
VP
12532008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1254 Chris Demetriou <cgd@google.com>
1255
1256 * thread.c (add_thread_silent): Renamed
1257 from add_thread.
1258 (print_thread_events): New variable definition.
1259 (show_print_thread_events): New function.
1260 (_initialize_thread): Add "set print thread-events" and
1261 "show print thread-events" commands.
1262 (add_thread): Announce new thread.
1263 * gdbthread.h (add_thread_silent): Declare.
1264 (print_thread_events): New variable declaration.
1265 * inf-ttrace.c (inf_ttrace_wait): Don't
1266 inform about new thread, as add_thread is always
1267 called too, and will take care of that.
1268 * infrun.c (handle_inferior_event): Likewise.
1269 * procfs.c (procfs_wait): Likewise.
1270 * remote.c (remote_currthread): Likewise.
1271 * sol-thread.c (sol_thread_wait): Likewise.
1272 * win32-nat.c (get_win32_debug_event): Likewise.
1273 * linux-thread-db.c (attach_thread): Likewise.
1274 Remove the verbose parameter.
1275 (check_event): Make detach_thread be verbose
1276 only if print_thread_events is set.
1277 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1278 about new thread. This is called only from
1279 linux-thread-db.c:attach_thread, which will take care.
1280 Remove the verbose parameter.
1281 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1282
b4d7c9a6
NR
12832008-01-23 Nick Roberts <nickrob@snap.net.nz>
1284
1285 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1286
60c46647
VP
12872008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1288
1289 * breakpoint.c (break_command_really): New parameter
1290 ignore_count.
1291 (break_command_1): Pass 0 as
1292 ignore_count to break_command_really.
1293 (gdb_breakpoint): Pass ignore_count to
1294 break_command_really.
1295
e84605cd
KB
12962008-01-21 Kevin Buettner <kevinb@redhat.com>
1297
1298 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1299 sigcontext struct via pointer.
1300 (struct sigframe comment): Update to show new field `psc'.
1301
9d9cd7ac
VP
13022008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1303
1304 * infrun.c (handle_inferior_event): If
1305 we failed to remove breakpoints, error,
1306 don't try to increment PC by hand.
1307
af5ca30d
NH
13082008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1309
1310 Add NetBSD/hppa target and host support.
1311
1312 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1313 (hppabsd_gregset): Move to ...
1314 (hppabsd_regset_from_core_section): Rename
1315 hppaobsd_regset_from_core_section and move to ...
1316 (hppabsd_find_global_pointer): Update comment.
1317 (hppabsd_init_abi): Make global. Do not register
1318 hppabsd_regset_from_core_section.
1319 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1320 move to ...
1321 (_initialize_hppabsd_tdep): Move to ...
1322 * hppaobsd-tdep.c: ... here. New file.
1323 * hppnbsd-tdep.c: New file.
1324 * hppnbsd-nat.c: New file.
1325 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1326 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1327 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1328 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1329 * configure.host (hppa*-*-netbsd*): New entry.
1330 * configure.tgt (hppa*-*-netbsd*): New entry.
1331 (hppa*-*-openbsd*): Update.
1332 * NEWS (New native configuration): Mention NetBSD/hppa.
1333 (New targets): Mention NetBSD/hppa.
1334
32c9a795
MD
13352008-01-18 Markus Deuling <deuling@de.ibm.com>
1336
1337 * gdbarch.sh (function_list): Add new property bits_big_endian to
1338 gdbarch structure.
1339 * gdbarch.{c,h}: Regenerate.
1340
1341 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1342 gdbarch_bits_big_endian (comment).
1343 (unpack_field_as_long, modify_field): Likewise.
1344 * value.h: Likewise (comment).
1345 * valops.c (value_slice): Likewise.
1346 * valarith.c (value_subscript, value_bit_index): Likewise.
1347 * gdbtypes.h (field): Likewise (comment).
1348 * eval.c (evaluate_subexp_standard): Likewise.
1349 * dwarf2read.c (dwarf2_add_field): Likewise.
1350 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1351 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1352
1353 * defs.h (BITS_BIG_ENDIAN): Remove.
1354
1e5e79d0
MD
13552008-01-18 Markus Deuling <deuling@de.ibm.com>
1356
1357 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1358 function calls.
1359 * m2-exp.y (yylex): Likewise.
1360 * objc-exp.y (yylex): Likewise.
1361
1362 * defs.h (DEPRECATED_STREQN): Remove.
1363
fabda5a7
L
13642008-01-17 H.J. Lu <hjl.tools@gmail.com>
1365
1366 * MAINTAINERS: Update my email address.
1367
92726479
JB
13682008-01-17 Jim Blandy <jimb@codesourcery.com>
1369
1370 * README: Mention gdbserver/README.
1371
ef80d18e
PM
13722008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1373
1374 * valarith.c (value_binop): Handle BINOP_INTDIV
1375 for unsigned and signed integers.
1376
1de90795
UW
13772008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1378
1379 * s390-tdep.c (s390_gdbarch_init): Set default long double
1380 type to 128-bit IEEE quad.
1381
c70bd6f3
JB
13822008-01-17 Joel Brobecker <brobecker@adacore.com>
1383
1384 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1385
ba759613
MK
13862008-01-16 Mark Kettenis <kettenis@gnu.org>
1387
77d49ac6
MK
1388 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1389
ba759613
MK
1390 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1391 * value.c: All callers changed.
1392
7ecb6532
MD
13932008-01-16 Markus Deuling <deuling@de.ibm.com>
1394
1395 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1396 DEPRECATED_STREQ by its expression.
1397 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1398 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1399 (scan_xcoff_symtab): Likewise.
1400 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1401 * f-lang.c (find_common_for_function): Likewise.
1402 * objc-exp.y (parse_number): Likewise.
1403
1404 * defs.h (DEPRECATED_STREQ): Remove.
1405
d15cf01c
MD
14062008-01-16 Markus Deuling <deuling@de.ibm.com>
1407
1408 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1409 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1410 get_frame_arch to get at the current_architecture. Update AM33_MODE
1411 call.
1412 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1413 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1414 architecture.
1415 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1416
f8028488
MD
14172008-01-16 Markus Deuling <deuling@de.ibm.com>
1418
1419 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1420 parameter.
1421 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1422
1423 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1424 current_gdbarch by gdbarch. Update caller.
1425
1426 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1427 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1428 the current architecture. Update calls of
1429 amd64_native_gregset_supplies_p.
1430 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1431 (amd64bsd_store_inferior_registers): Likewise.
1432
e101270f
MD
14332008-01-16 Markus Deuling <deuling@de.ibm.com>
1434
1435 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1436 Replace current_gdbarch by gdbarch. Update caller.
1437
063e58ba
MD
14382008-01-16 Markus Deuling <deuling@de.ibm.com>
1439
1440 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1441 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1442 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1443 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1444 (stabsect_build_psymtabs): Fix indentation.
1445
662fb31b
MS
14462008-01-15 Michael Snyder <msnyder@specifix.com>
1447
1448 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1449
c1766e7d
PM
14502008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1451
1452 * win32-nat.c (win32_create_inferior): Restore code calling
1453 CloseHandle on ProcessInformation structure.
1454
5ed10e6e
NH
14552008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1456
1457 * configure.ac: Check for void * as 3 argument of ptrace.
1458 * configure: regenerate.
1459
be8626e0
MD
14602008-01-11 Markus Deuling <deuling@de.ibm.com>
1461
1462 * alpha-tdep.c (alpha_heuristic_proc_start)
1463 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1464 current_gdbarch by gdbarch.
1465
1466 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1467 current architecture by frame_info. Update alpha_heuristic_proc_start
1468 call.
1469
1470 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1471 get_frame_arch to get at the current architecture by frame_info. Update
1472 alpha_sigtramp_register_address call.
1473
1474 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1475 current_gdbarch by gdbarch. Update caller.
1476 (convert_to_extended, convert_from_extended): Add endianess parameter
1477 for comparison. Update caller.
1478 (arm_extract_return_value, arm_store_return_value): Use
1479 get_regcache_arch to get at the current architecture.
1480
1481 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1482 current_gdbarch by gdbarch. Update caller.
1483 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1484 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1485
1486 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1487 gdbarch as parameter. Update caller.
1488 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1489 current_gdbarch by gdbarch. Update caller.
1490
1491 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1492 update caller. Replace current_gdbarch by gdbarch.
1493
1494 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1495 the current architecture. Replace current_gdbarch by gdbarch.
1496 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1497 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1498 expression. Add gdbarch as parameter and replace current_gdbarch with
1499 it. Update caller.
1500 (M6811_TDEP): Remove.
1501 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1502 architecture.
1503 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1504 current_gdbarch by gdbarch. Update caller.
1505
1506 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1507 update caller.
1508 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1509 by gdbarch.
1510
1511 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1512 caller. Relace current_gdbarch by gdbarch.
1513 (altivec_register_p, spe_register_p): Likewise.
1514 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1515 parameter.
1516 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1517 altivec_register_p and spe_register_p.
1518
1519 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1520 caller. Replace current_gdbarch by gdbarch.
1521 (score_analyze_prologue): use get_frame_arch to get at the current
1522 architecture.
1523
1524 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1525 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1526 current_gdbarch by gdbarch. Update caller.
1527 (sparc_frame_cache): Use get_frame_arch to get at the current
1528 architecture.
1529 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1530 sparc_analyze_prologue.
1531
1532 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1533 parameter.
1534
ed49a04f
MD
15352008-01-11 Markus Deuling <deuling@de.ibm.com>
1536
1537 * exec.c: #include "arch-utils.h"
1538 (print_section_info): Use gdbarch_from_bfd to get at the
1539 current architecture. Replace current_gdbarch. Fix indention. Replace
1540 deprecated_print_address_numeric by paddress.
1541 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1542
1543 * valprint.c (val_print_string): Replace
1544 deprecated_print_address_numeric.
1545 * tracepoint.c (trace_mention, scope_info): Likewise.
1546 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1547 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1548 (maintenance_check_symtabs): Likewise.
1549 * symfile.c (list_overlays_command): Likewise.
1550 * stack.c (frame_info, print_block_frame_labels): Likewise.
1551 * printcmd.c (print_address, print_address_demangle)
1552 (address_info): Likewise.
1553 * corefile.c (memory_error): Likewise.
1554 * infcmd.c (jump_command): Likewise.
1555 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1556 (mention, delete_breakpoint): Likewise.
1557 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1558 * dwarf2read.c (dump_die): Likewise.
1559 * ada-valprint.c (ada_val_print_1): Likewise.
1560 * f-valprint.c (f_val_print): Likewise.
1561 * linux-fork.c (info_forks_command): Likewise.
1562 * m32r-com.c (m32r_load_section, m32r_load)
1563 (m32r_upload_command): Likewise.
1564
1565 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1566
6093d2eb
MD
15672008-01-11 Markus Deuling <deuling@de.ibm.com>
1568
1569 * gdbarch.sh (skip_prologue): Add gdbarch
1570 as parameter.
1571 * gdbarch.{c,h}: Regenerate.
1572
1573 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1574 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1575 * avr-tdep.c (avr_skip_prologue): Likewise.
1576 * cris-tdep.c (cris_skip_prologue): Likewise.
1577 * frv-tdep.c (frv_skip_prologue): Likewise.
1578 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1579 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1580 * i386-tdep.c (i386_skip_prologue): Likewise.
1581 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1582 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1583 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1584 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1585 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1586 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1587 * mep-tdep.c (mep_skip_prologue): Likewise.
1588 * mips-tdep.c (mips_skip_prologue): Likewise.
1589 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1590 * mt-tdep.c (mt_skip_prologue): Likewise.
1591 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1592 * score-tdep.c (score_skip_prologue): Likewise.
1593 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1594 * sh-tdep.c (sh_skip_prologue): Likewise.
1595 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1596 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1597 * spu-tdep.c (spu_skip_prologue): Likewise.
1598 * v850-tdep.c (v850_skip_prologue): Likewise.
1599 * vax-tdep.c (vax_skip_prologue): Likewise.
1600 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1601 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1602
1603 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1604 current_gdbarch by gdbarch.
1605 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1606 * s390-tdep.c (s390_skip_prologue): Likewise.
1607
72f5cf0e
DE
16082008-01-10 Doug Evans <dje@google.com>
1609
1610 * defs.h (struct continuation_arg): Fix typo in comment.
1611 * target.c (target_translate_tls_address): Fix comment spelling error.
1612
689e4e2d
TJB
16132008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1614
1615 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1616 (DOUBLEST_SCAN_FORMAT): Likewise.
1617 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1618 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1619 * c-exp.y (parse_number): Likewise.
1620 * jv-exp.y (parse_number): Likewise.
1621 * objc-exp.y (parse_number): Likewise.
1622 * p-exp.y (parse_number): Likewise.
1623
ab0d6e0d
JB
16242008-01-09 Joel Brobecker <brobecker@adacore.com>
1625
1626 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1627 (check_typedef): Likewise.
1628
0aea4bf3
LM
16292008-01-09 Luis Machado <luisgpm@br.ibm.com>
1630
1631 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1632 seen_double_big_d, treat the new H, D, and DD modifiers as length
1633 modifiers.
1634
137033e9
JB
16352008-01-08 Joel Brobecker <brobecker@adacore.com>
1636
1637 * dwarf2read.c (read_enumeration_type): Add comment.
1638
dda297ec
TJB
16392008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1640
1641 * config.in: Regenerate.
1642
a93c0eb6
JB
16432008-01-08 Joel Brobecker <brobecker@adacore.com>
1644
1645 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1646 Make non-static.
1647 (ada_convert_actuals): Delete.
1648 * ada-lang.h (ada_convert_actual): Add declaration.
1649 (ada_convert_actuals): Remove declaration.
1650 * infcall.c: #include "ada-lang.h".
1651 (value_arg_coerce): Add new parameter sp. Update function
1652 documetnation. Add handling of Ada function call parameters.
1653 * Makefile.in (infcall.o): Update dependencies.
1654
a84a8a0d
JB
16552008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1656
1657 * ada-lang.c (ensure_lval): Fix value lval kind.
1658 (convert_actual): Add handling for arguments passed by reference.
1659
d7f98cce
DE
16602008-01-08 Doug Evans <dje@google.com>
1661
1662 * dbxread.c (read_dbx_symtab): Fix indentation.
1663
4ef30785
TJB
16642008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1665
1666 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1667 (valarith.o): Depend on dfp.h.
1668 (valops.o): Likewise.
1669 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1670 (set_decnumber_context): New function.
1671 (decimal_check_errors): Likewise.
1672 (decimal_from_number): Likewise.
1673 (decimal_to_number): Likewise.
1674 (decimal_from_string): Use set_decnumber_context and
1675 decimal_check_errors.
1676 (decimal_from_integral): New function.
1677 (decimal_from_floating): Likewise.
1678 (decimal_to_double): Likewise.
1679 (promote_decimal): Likewise.
1680 (decimal_binop): Likewise.
1681 (decimal_is_zero): Likewise.
1682 (decimal_compare): Likewise.
1683 (decimal_convert): Likewise.
1684 * dfp.h (decimal_from_integral): New prototype.
1685 (decimal_from_floating): Likewise.
1686 (decimal_to_double): Likewise.
1687 (decimal_binop): Likewise.
1688 (decimal_is_zero): Likewise.
1689 (decimal_compare): Likewise.
1690 (decimal_convert): Likewise.
1691 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1692 call to value_from_decfloat.
1693 * valarith.c: Include dfp.h.
1694 (value_args_as_decimal): New function.
1695 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1696 (value_logical_not): Likewise.
1697 (value_equal): Likewise.
1698 (value_less): Likewise.
1699 (value_pos): Likewise.
1700 (value_neg): Formatting fix.
1701 * valops.c: Include dfp.h.
1702 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1703 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1704 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1705 (value_from_decfloat): Remove expect_type argument.
1706 * value.h (value_from_decfloat): Update prototype.
1707
a7c02bc8
VP
17082008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1709
1710 Ignore change in name of dynamic linker during
1711 execution on Solaris. This also unbreaks pending breakpoints.
1712
1713 * solist.h (struct target_so_ops): New field same.
1714 * solib-svr4.c (svr4_same): New.
1715 (_initialize_svr4_solib): Register svr4_same.
1716 * solib.c (update_solib_list): Use ops->same, if available.
1717
610dd7f9
CF
17182008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1719
1720 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1721 when using MS-DOS paths.
1722
7a404eba
PA
17232008-01-05 Pedro Alves <pedro@codesourcery.com>
1724
1725 * NEWS: Mention --pid and --core command line behaviour changes.
1726
a4d9b460
PA
17272008-01-05 Pedro Alves <pedro@codesourcery.com>
1728
1729 * main.c (captured_main): Remove 'count' varible and the
1730 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1731 --pid options were issued simultaneously. If an explicit pid
1732 option was passed, don't fallback to core file. Detect extra
1733 arguments better in the presence of explicit pid or core
1734 arguments.
1735
0c281816
JB
17362008-01-05 Joel Brobecker <brobecker@adacore.com>
1737
1738 * ada-lang.c (ada_which_variant_applies): Correctly compute
1739 the value of the discriminant when the variant record is packed.
1740
babe1480
JB
17412008-01-04 Joel Brobecker <brobecker@adacore.com>
1742
1743 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1744 that are used to differentiate homonyms.
1745
727e3d2e
JB
17462008-01-04 Jerome Guitton <guitton@adacore.com>
1747
1748 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1749 when the type is an anonymous pointer type.
1750 (ada_check_typedef): Avoid a seg fault when the type is null.
1751 * ada-typeprint.c (print_array_type): Add support for pointer
1752 to packed arrays.
1753
bb28a9dc
JB
17542008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1755
1756 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1757
6799def4
JB
17582008-01-04 Joel Brobecker <brobecker@adacore.com>
1759
1760 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1761 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1762
d3353bbd
JB
17632008-01-04 Joel Brobecker <brobecker@adacore.com>
1764
1765 * ada-exp.y (chop_separator): New function.
1766 (write_selectors): Rewrite to re-use chop_separator.
1767 (ada_nget_field_index, get_symbol_field_type): New functions.
1768 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1769 expressions.
1770
82cf6c60
TJB
17712008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1772
1773 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1774 of SYMBOL_VALUE when working with function symbols.
1775
b3dbf008
JB
17762008-01-03 Joel Brobecker <brobecker@adacore.com>
1777
1778 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1779 expressions. These expressions do not need to be rewriten.
1780
02eb380e
JB
17812008-01-03 Joel Brobecker <brobecker@adacore.com>
1782
1783 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1784 the given die is a declaration.
1785
abb68b3e
JB
17862008-01-03 Joel Brobecker <brobecker@adacore.com>
1787
1788 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1789 Handle properly the case when the index type is an enumerated type.
1790 Do not return the subtype of the bounds type, just return the
1791 bounds type directly - this is not needed and is more consistent
1792 with what we do for arrays when no XA parallel type exists.
1793
f192137b
JB
17942008-01-03 Joel Brobecker <brobecker@adacore.com>
1795
1796 * ada-lang.c (static_unwrap_type): Add forward declaration.
1797 (template_to_static_fixed_type): Fields of dynamic types sometimes
1798 also need to be unwrapped. Take this into account.
1799 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1800 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1801 * ada-typeprint.c (ada_print_type): Get the typename from
1802 the original type, not the base type.
1803
1ed6ede0
JB
18042008-01-03 Jerome Guitton <guitton@adacore.com>
1805
1806 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1807 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1808 Update calls to ada_to_fixed_type.
1809 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1810 for the tag.
1811 (ada_to_fixed_type): Add check_tag parameter; do not look for
1812 tag if null. When looking for a tag, use a fixed record type.
1813 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1814 * ada-valprint.c (printable_val_type, ada_value_print): Update
1815 calls to ada_to_fixed_type.
1816
542a88d0
LM
18172008-01-03 Luis Machado <luisgpm@br.ibm.com>
1818
1819 * doublest.c (convert_floatformat_to_doublest): Call
1820 floatformat_to_doublest instead of floatformat_to_double and use
1821 DOUBLEST variables.
1822 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1823 instead of floatformat_from_double and use DOUBLEST variables.
1824
dc2bbab2
NH
18252008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1826
1827 * MAINTAINERS (Write After Approval): Add self.
1828
8b60591b
JB
18292008-01-03 Joel Brobecker <brobecker@adacore.com>
1830
1831 * symfile.c (set_initial_language): Make non-static.
1832 * symfile.h (set_initial_language): Add declaration.
1833 * language.c: #include "symfile.h".
1834 (set_language): Call set_initial_language if the frame language
1835 could not be determined.
1836
ceef53c1
JB
18372008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1838
1839 * eval.c (evaluate_subexp_for_address): Provide frame address to
1840 locate_var_value only if it will be needed.
1841
ef29ce1a
JK
18422008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1845
0a07e705
JB
18462008-01-02 Joel Brobecker <brobecker@adacore.com>
1847
1848 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1849 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1850 This is needed to make sure that any other treatment applied
1851 to the resulting value does not fail for spurious reason,
1852 such as trying to take the address of this value.
1853
f58b38bf
JB
18542008-01-02 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-lang.c (ada_value_equal): Dereference reference types when
1857 comparing arrays.
1858
9b254dd1
DJ
18592008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1860
1861 Updated copyright notices for most files.
1862
33605d39
CF
18632008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1864
1865 * win32-nat.c (psapi_module_handle): Remove static.
1866 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1867 return first module found if base_address is zero. Don't initialize
1868 psapi function pointers here. Convert to cygwin paths when
1869 appropriate.
1870 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1871 executable name. Use get_module_name when that fails or when
1872 !__CYGWIN__.
1873 (_initialize_psapi): New function. Initialize psapi stuff before it is
1874 needed or issue a warning if it is not found. Move psapi_module_handle
1875 here.
1876
29480c32
JB
18772008-01-01 Joel Brobecker <brobecker@adacore.com>
1878
1879 * ada-lang.c (ada_remove_trailing_digits): New function.
1880 (ada_remove_po_subprogram_suffix): New function.
1881 (ada_decode): Improve. Move the description of the algorithm
1882 directly inside the code, instead of in the function global
1883 description.
1884
969a1360
JB
18852008-01-01 Joel Brobecker <brobecker@adacore.com>
1886
1887 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1888 and always print the dereferenced value.
1889
b7789565
JB
18902008-01-01 Joel Brobecker <brobecker@adacore.com>
1891
1892 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1893 of the case where the first argument is a reference.
1894 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1895
73fb9985
JB
18962008-01-01 Joel Brobecker <brobecker@adacore.com>
1897
1898 Implement support for Ada interface types.
1899
1900 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1901 (ada_is_ignored_field): Ignore fields that are a dispatch table
1902 of a tagged type.
1903
636265b6
JB
19042008-01-01 Joel Brobecker <brobecker@adacore.com>
1905
1906 * top.c (print_gdb_version): Update copyright year.
1907
9d200a2e 19082008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 1909
9d200a2e
JB
1910 * ChangeLog-2007: New ChangeLog rotation.
1911 * ChangeLog: Reset for 2008.
1912 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1913 ChangeLog-2007.
b7589f7d 1914
9d200a2e 1915For older changes see ChangeLog-2007.
c906108c
SS
1916\f
1917Local Variables:
1918mode: change-log
1919left-margin: 8
1920fill-column: 74
1921version-control: never
57da7796 1922coding: utf-8
c906108c 1923End:
This page took 0.989074 seconds and 4 git commands to generate.