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