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