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