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