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