]> Git Repo - binutils.git/blame - gdb/ChangeLog
* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
[binutils.git] / gdb / ChangeLog
CommitLineData
01637564
DE
12010-03-02 Doug Evans <[email protected]>
2
3 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4 lowpc,highpc args to addrmap_set_empty.
5
1ba53b71
L
62010-03-02 H.J. Lu <[email protected]>
7
8 * amd64-tdep.c (amd64_byte_names): New.
9 (amd64_word_names): Likewise.
10 (amd64_dword_names): Likewise.
11 (amd64_pseudo_register_name): Likewise.
12 (amd64_pseudo_register_read): Likewise.
13 (amd64_pseudo_register_write): Likewise.
14 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
15 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
16 set_gdbarch_pseudo_register_write and
17 set_tdesc_pseudo_register_name. Don't call
18 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
19
20 * i386-tdep.c (i386_num_mmx_regs): Removed.
21 (i386_num_pseudo_regs): Likewise.
22 (i386_byte_names): New.
23 (i386_word_names): Likewise.
24 (i386_byte_regnum_p): Likewise.
25 (i386_word_regnum_p): Likewise.
26 (i386_mmx_regnum_p): Updated.
27 (i386_pseudo_register_name): Make it global. Handle byte and
28 word pseudo-registers.
29 (i386_pseudo_register_read): Likewise.
30 (i386_pseudo_register_write): Likewise.
31 (i386_pseudo_register_type): Handle byte, word and dword
32 pseudo-registers
33 (i386_register_reggroup_p): Don't include pseudo
34 registers, except for MXX, in any register groups. Don't
35 include pseudo byte, word, dword registers in general_reggroup.
36 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
37 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
38 pseudo-registers after word pseudo-registers. Call
39 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
40
41 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
42 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
43 eax_regnum.
44 (i386_byte_regnum_p): New.
45 (i386_word_regnum_p): Likewise.
46 (i386_dword_regnum_p): Likewise.
47 (i386_pseudo_register_name): Likewise.
48 (i386_pseudo_register_read): Likewise.
49 (i386_pseudo_register_write): Likewise.
50
a6f5ef51
L
512010-03-01 H.J. Lu <[email protected]>
52
53 * target-descriptions.c (tdesc_type): Remove
54 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
55 (tdesc_predefined_types): Likewise.
56 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
57 if flag name is empty.
58 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
59
60 * features/i386/32bit-core.xml: Define i386_eflags.
61 * features/i386/64bit-core.xml: Likewise.
62
63 * features/i386/32bit-sse.xml: Define i386_mxcsr.
64 * features/i386/64bit-sse.xml: Likewise.
65
66 * features/i386/amd64-linux.c: Regenerated.
67 * features/i386/amd64.c: Likewise.
68 * features/i386/i386-linux.c: Likewise.
69 * features/i386/i386.c: Likewise.
70
f5dff777
DJ
712010-03-01 Daniel Jacobowitz <[email protected]>
72
73 * gdbtypes.c (append_composite_type_field_raw): New.
74 (append_composite_type_field_aligned): Use the new function.
75 * gdbtypes.h (append_composite_type_field_raw): Declare.
76 * target-descriptions.c (struct tdesc_type_field): Add start and end.
77 (struct tdesc_type_flag): New type.
78 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
79 kind. Add size to u.u. Add u.f for flags.
80 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
81 (tdesc_free_type): Likewise.
82 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
83 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
84 (tdesc_add_bitfield, tdesc_add_flag): New.
85 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
86 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
87 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
88 current_type. Add current_type_size and current_type_is_flags.
89 (tdesc_start_union): Clear the new fields.
90 (tdesc_start_struct, tdesc_start_flags): New.
91 (tdesc_start_field): Handle struct fields, including bitfields.
92 (field_attributes): Make type optional. Add start and end.
93 (union_children): Rename to struct_union_children.
94 (union_attributes): Rename to struct_union_attributes. Add optional
95 size.
96 (flags_attributes): New.
97 (feature_children): Add struct and flags.
98 * features/gdb-target.dtd: Add flags and struct to features.
99 Make field type optional. Add field start and end.
100
90884b2b
L
1012010-03-01 H.J. Lu <[email protected]>
102
103 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
104 (amd64_linux_read_description): Likewise.
105 (_initialize_amd64_linux_nat): Set to_read_description to
106 amd64_linux_read_description.
107
108 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
109 (amd64_linux_register_name): Removed.
110 (amd64_linux_register_type): Likewise.
111 (amd64_linux_core_read_description): New.
112 (amd64_linux_init_abi): Set target description to
113 tdesc_amd64_linux if needed. Support orig_rax in target
114 description. Don't call set_gdbarch_register_name nor
115 set_gdbarch_register_type. Call
116 set_gdbarch_core_read_description.
117 (_initialize_amd64_linux_tdep): Call
118 initialize_tdesc_amd64_linux.
119
120 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
121
122 * amd64-tdep.c: Include "features/i386/amd64.c".
123 (amd64_register_names): Removed.
124 (amd64_register_name): Likewise.
125 (amd64_register_type): Likewise.
126 (amd64_init_abi): Set num_core_regs and register_names. Set
127 target description to tdesc_amd64 if needed. Don't call
128 set_gdbarch_register_name nor set_gdbarch_register_type.
129 (_initialize_amd64_tdep): New.
130
131 * i386-linux-nat.c (i386_linux_read_description): New.
132 (_initialize_i386_linux_nat): Set to_read_description to
133 i386_linux_read_description.
134
135 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
136 (i386_linux_register_name): Removed.
137 (i386_linux_core_read_description): New.
138 (i386_linux_read_description): Likewise.
139 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
140 Set target description to tdesc_i386_linux if needed. Support
141 orig_eax. Set register_reggroup_p. Call
142 set_gdbarch_core_read_description.
143 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
144
145 * i386-linux-tdep.h (tdesc_i386_linux): New.
146
147 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
148 with I387_NUM_REGS.
149
150 * i386-tdep.c: Include "features/i386/i386.c".
151 (i386_register_names): Make it const.
152 (i386_mmx_names): Likewise.
153 (i386_num_register_names): Removed.
154 (i386_register_name): Likewise.
155 (i386_eflags_type): Likewise.
156 (i386_mxcsr_type): Likewise.
157 (i386_sse_type): Likewise.
158 (i386_register_type): Likewise.
159 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
160 (i386_pseudo_register_name): New.
161 (i386_pseudo_register_type): Likewise.
162 (i386_mmx_type): Make it static.
163 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
164 I387_NUM_REGS. Set num_core_regs and register_names. Don't
165 call set_gdbarch_register_name nor set_gdbarch_register_type.
166 Set register_reggroup_p. Set target description to tdesc_i386
167 if needed. Call set_tdesc_pseudo_register_type,
168 set_tdesc_pseudo_register_name and tdesc_use_registers.
169 (_initialize_i386_tdep): Call initialize_tdesc_i386.
170 initialize_tdesc_x86_64.
171
172 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
173 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
174 register_names, tdesc and register_reggroup_p.
175 (I386_NUM_FREGS): Removed.
176 (i386_eflags_type): Likewise.
177 (i386_mxcsr_type): Likewise.
178 (i386_mmx_type): Likewise.
179 (i386_sse_type): Likewise.
180 (i386_register_name): Likewise.
181 (i386_regnum): Add I386_MXCSR_REGNUM.
182 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
183
184 * i387-tdep.h (I387_NUM_REGS): New.
185
186 * regformats/i386/i386-linux.dat: Generated.
187 * regformats/i386/i386.dat: Likewise.
188 * regformats/i386/amd64-linux.dat: Likewise.
189 * regformats/i386/amd64.dat: Likewise.
190
191 * regformats/reg-i386-linux.dat: Removed.
192 * regformats/reg-i386.dat: Likewise.
193 * regformats/reg-x86-64-linux.dat: Likewise.
194 * regformats/reg-x86-64.dat: Likewise.
195
d0d0ab16
CV
1962010-03-01 Corinna Vinschen <[email protected]>
197
198 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
199 cygwin_conv_path API rather than the deprecated
200 cygwin_conv_to_full_posix_path.
201 * windows-nat.c:
202 (GetModuleFileNameExA): Undefine for Cygwin.
203 (GetModuleFileNameExW): Define for Cygwin.
204 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
205 Call GetModuleFileNameExW and convert path to POSIX using
206 cygwin_conv_path.
207 (windows_make_so): Always define p. Drop unused variable m.
208 Don't use Win32 functions to check file existance, rather use
209 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
210 Use canonicalize_file_name to get full path.
211 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
212 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
213 use correct target buffer size in call to WideCharToMultiByte.
214 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
215 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
216 (windows_create_inferior): Convert all paths and arguments to wchar_t
217 and use CreateProcessW on Cygwin.
218 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
219 (bad_GetModuleFileNameExA): Undefine for Cygwin.
220 (bad_GetModuleFileNameExW): Define for Cygwin.
221 (_initialize_loadable): Load GetModuleFileNameExW into
222 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
223
dc00d89f
PM
2242010-02-28 Phil Muldoon <[email protected]>
225
226 PR python/11036
227 * python/py-frame.c (frapy_read_var): Add block argument and logic
228 to cope with user provided blocks.
229
0e095b7e
JK
2302010-02-28 Jan Kratochvil <[email protected]>
231
232 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
233 New comment.
234
2f9e05b4
CV
2352010-02-28 Corinna Vinschen <[email protected]>
236
237 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
238 (COMMON_OBS): ... to here since it's used unconditionally.
239 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
240 (SFILES): To here.
241
eb195664
DD
2422010-02-26 David Daney <[email protected]>
243
244 * mips-linux-tdep.c: Update struct sigframe comments.
245 (SIGFRAME_CODE_OFFSET): Delete macro.
246 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
247 this_frame's sp.
248 (mips_linux_n32n64_sigframe_init): Same.
249
97b0f3e2
KB
2502010-02-26 Kevin Buettner <[email protected]>
251
252 * remote-mips.c (mips_load): Don't use pseudo-register when
253 invalidating regcache.
254
4069ebbe
DJ
2552010-02-26 Daniel Jacobowitz <[email protected]>
256
257 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
258
05071a4d
PA
2592010-02-26 Pedro Alves <[email protected]>
260
261 * NEWS: Add "New targets" section, and mention ARM Symbian
262 support.
263
6063c216
UW
2642010-02-26 Ulrich Weigand <[email protected]>
265
266 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
267 add ADDR_SIZE member.
268 (allocate_piece_closure): Update.
269 (copy_pieced_value_closure): Likewise.
270 (dwarf2_evaluate_loc_desc): Likewise.
271 (read_pieced_value): Use DWARF address size instead of
272 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
273
5107b149
PM
2742010-02-26 Phil Muldoon <[email protected]>
275 Tom Tromey <[email protected]>
276
277 * python/py-type.c (typy_lookup_typename): Add in block argument.
278 If provided restrict lookup to specified blocks.
279 (gdbpy_lookup_type): Likewise.
280 (typy_lookup_type): Likewise.
281
78664fa3
PA
2822010-02-25 Daniel Jacobowitz <[email protected]>
283
284 Symbian config
285
286 gdb/
287 * arm-symbian-tdep.c: New.
288 * configure.tgt (arm*-*-symbianelf*): New target.
289 (*-*-symbianelf*): New OS.
290 * osabi.c (gdb_osabi_names): Add Symbian.
291 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
292 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
293 (ALLDEPFILES): Add arm-symbian-tdep.c.
294
eb73e134
DJ
2952010-02-25 Daniel Jacobowitz <[email protected]>
296
297 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
298
46ef47e5
PA
2992010-02-24 Pedro Alves <[email protected]>
300
301 * mi/mi-main.c (mi_cmd_execute): Fix typo.
302
f3e9a817
PM
3032010-02-24 Phil Muldoon <[email protected]>
304 Tom Tromey <[email protected]>
305 Thiago Jung Bauermann <[email protected]>
306
307 * python/python.c (_initialize_python): Call
308 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
309 gdbpy_initialize_blocks.
310 * python/python-internal.h: Declare struct symbol, block and
311 symtab_and_line. Declare block_object_type and
312 symbol_object_type
313 (gdbpy_lookup_symbol gdbpy_block_for_pc)
314 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
315 (symbol_to_symbol_object, block_to_block_object)
316 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
317 (gdbpy_initialize_blocks ): Declare.
318 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
319 (frapy_select): Add methods.
320 (frapy_read_var): Add symbol branch.
321 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
322 py-block.
323 (SUBDIR_PYTHON_SRCS): Likewise.
324 (py-symbol.o): New rule.
325 (py-symtab.o): Likewise.
326 (py-block.o): Likewise.
327 * python/py-symbol.c: New file.
328 * python/py-symtab.c: Likewise.
329 * python/py-block.c: Likewise.
330
24291992
PA
3312010-02-24 Pedro Alves <[email protected]>
332
333 PR gdb/11321
334
335 * inferior.h (prepare_for_detach): Declare.
336 (struct inferior) <detaching>: New field.
337 * infrun.c (prepare_for_detach): New.
338 (handle_inferior_event) <random signal>: Don't stop if detaching.
339 * target.c (target_detach): Call prepare_for_detach.
340
fc1cf338
PA
3412010-02-24 Pedro Alves <[email protected]>
342
343 Per-process displaced stepping queue.
344
345 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
346 (displaced_step_gdbarch, displaced_step_closure,
347 (displaced_step_original, displaced_step_copy): Move globals to
348 this...
349 (struct displaced_step_inferior_state): ... new structure.
350 (displaced_step_inferior_states): New global.
351 (get_displaced_stepping_state, add_displaced_stepping_state)
352 (remove_displaced_stepping_state, infrun_inferior_exit): New
353 functions.
354 (displaced_step_clear): Add displaced_step_inferior_state
355 parameter, and adjust to handle it.
356 (displaced_step_clear_cleanup): Parameter is now a
357 displaced_step_inferior_state. Adjust.
358 (displaced_step_prepare): Adjust.
359 (displaced_step_fixup, displaced_step_fixup)
360 (infrun_thread_ptid_changed, resume): Adjust.
361 (init_wait_for_inferior): Don't call displaced_step_clear.
362 (infrun_thread_stop_requested): Rewrite.
363 (_initialize_infrun): Install infrun_inferior_exit as
364 inferior_exit observer.
365
0723dbf5
PA
3662010-02-24 Pedro Alves <[email protected]>
367
368 * inferior.h (ptid_match): Declare.
369 * infrun.c (ptid_match): New.
370 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
371 (handle_notification): Add debug output.
372 * linux-nat.c (ptid_match): Delete.
373
09de9781
DM
3742010-02-24 David S. Miller <[email protected]>
375
376 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
377 * syscalls/sparc-linux.xml: New.
378 * syscalls/sparc64-linux.xml: New.
379 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
380 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
381 (sparc32_linux_get_syscall_number): New function.
382 (sparc32_linux_init_abi): Set syscall XML file name and hook up
383 syscall number fetcher.
384 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
385 (sparc64_linux_get_syscall_number): New function.
386 (sparc64_linux_init_abi): Set syscall XML file name and hook up
387 syscall number fetcher.
388
a79b8f6e
VP
3892010-02-24 Vladimir Prus <[email protected]>
390
391 Multiexec MI
392
393 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
394 * inferior.c (add_inferior_silent): Notify inferior_added
395 observer.
396 (delete_inferior_1): Notify inferior_removed observer.
397 (exit_inferior_1): Pass inferior, not pid, to observer.
398 (inferior_appeared): Likewise.
399 (add_inferior_with_spaces): New.
400 (add_inferior_command): Use the above.
401 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
402 Declare.
403
404 * inflow.c (inflow_inferior_exit): Likewise.
405 * jit.c (jit_inferior_exit_hook): Likewise.
406
407 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
408 remove-inferior.
409 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
410 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
411 (report_initial_inferior): New.
412 (mi_inferior_removed): Register the above. Make sure
413 inferior_added observer is called on the first inferior.
414 (mi_new_thread, mi_thread_exit): Thread group is now identified by
415 inferior number, not pid.
416 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
417 affected.
418 * mi/mi-main.c (current_context): New.
419 (proceed_thread_callback): Use typed closure.
420 Proceed everything if pid is 0. Most implementation split into
421 (proceed_thread): ... this.
422 (run_one_inferior): New.
423 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
424 Adjust for multiexec behaviour.
425 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
426 (mi_cmd_execute): Handle the 'thread-group' option here.
427 Do some extra checks.
428 * mi-parse.c (mi_parse): Handle the --all and --thread-group
429 options.
430 * mi-parse.h (struct mi_parse): New fields all and thread_group.
431
115d30f9
VP
4322010-02-24 Vladimir Prus <[email protected]>
433
434 Make -exec-run a proper MI commands.
435
436 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
437 * mi/mi-cmds.c (mi_cmds): Adjust.
438 * mi/mi-main.c (mi_cmd_exec_run): New.
439
06cd862c
PA
4402010-02-24 Pedro Alves <[email protected]>
441 Stan Shebs <[email protected]>
442
443 * tracepoint.h (set_traceframe_number)
444 (cleanup_restore_current_traceframe): Declare.
445 * tracepoint.c (set_traceframe_number): New.
446 (struct current_traceframe_cleanup): New.
447 (do_restore_current_traceframe_cleanup)
448 (restore_current_traceframe_cleanup_dtor)
449 (make_cleanup_restore_current_traceframe): New.
450 * infrun.c: Include tracepoint.h.
451 (fetch_inferior_event): Switch out and in of tfind mode.
452
ab92d69b
PA
4532010-02-24 Pedro Alves <[email protected]>
454
455 * breakpoint.c (breakpoint_init_inferior): Also delete
456 bp_shlib_event breakpoints.
457 * solib-frv.c (enable_break): Remove call to
458 remove_solib_event_breakpoints.
459 * solib-svr4.c (enable_break): Ditto.
460 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
461 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
462 * solib-som.c (som_solib_create_inferior_hook): Ditto.
463 * solib-spu.c (spu_enable_break): Ditto.
464
e707a91d
PA
4652010-02-23 Harald Koenig <[email protected]>
466
467 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
468
cfce2ea2
PA
4692010-02-23 Harald Koenig <[email protected]>
470
471 * varobj.c (varobj_update): Avoid non-constants in initializers.
472
05566b3b
TT
4732010-02-23 Tom Tromey <[email protected]>
474
475 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
476 handle big-endian values.
477 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
478
85d721b8
PA
4792010-02-22 Pedro Alves <[email protected]>
480
481 PR9605
482
483 gdb/
484 * breakpoint.c (insert_bp_location): If inserting the read
485 watchpoint failed, fallback to an access watchpoint.
486 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
487 if the value changed, if not watching the same memory for writes.
488 (watchpoint_locations_match): Add comment.
489 (update_global_location_list): Copy the location's watchpoint type.
490 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
491 handle read watchpoints here.
492 (i386_insert_watchpoint): Read watchpoints aren't supported.
493 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
494 packets.
495 * target.h (target_insert_watchpoint): Update description.
496
48ea67a7
TT
4972010-02-19 Tom Tromey <[email protected]>
498
499 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
500 * m2-typeprint.c (m2_print_type): Update.
501 * gdbtypes.c (recursive_dump_type): Update.
502 (copy_type_recursive): Update.
503 * c-typeprint.c (c_type_print_varspec_prefix): Update.
504 (c_type_print_base): Update.
505 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
506 Remove.
507 (struct cplus_struct_type) <ntemplate_args>: Remove.
508 <struct template_arg>: Remove.
509 <is_dynamic>: Move earlier.
510 (TYPE_TEMPLATE_ARGS): Remove.
511 (TYPE_NTEMPLATE_ARGS): Remove.
512 (TYPE_TEMPLATE_ARG): Remove.
513
48e32051
TT
5142010-02-19 Tom Tromey <[email protected]>
515
516 PR c++/8693, PR c++/9496:
517 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
518 * c-exp.y (lex_one_token): Rename from yylex. Don't call
519 write_dollar_variable. Don't try to classify NAME tokens.
520 (token_and_value): New type.
521 (token_fifo, popping, name_obstack): New globals.
522 (classify_name): New function.
523 (classify_inner_name): Likewise.
524 (yylex): Likewise.
525 (VARIABLE): Now has type sval.
526 (exp : VARIABLE): Call write_dollar_variable.
527 (qualified_name): Use TYPENAME, not typebase. Add production for
528 multiple "::" instances.
529 (variable): Use name_not_typename.
530 (qualified_type): Remove.
531 (typebase): Update.
532
672d9c23
JK
5332010-02-19 Jan Kratochvil <[email protected]>
534
535 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
536 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
537 found by bfd_get_section_by_name.
538 * symfile.h (struct section_addr_info) <sectindex>: New comment.
539
bfbf3774
JB
5402010-02-19 Joel Brobecker <[email protected]>
541
542 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
543 7.0 section" into "Changes in 7.1".
544
6756b09b 5452010-02-19 Joel Brobecker <[email protected]>
546
547 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
548 * version.in: Bump version to 7.1.50.20100219-cvs.
549
202b96c1
PA
5502010-02-18 Harald Koenig <[email protected]>
551
552 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
553 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
554
de2e5182
TT
5552010-02-17 Tom Tromey <[email protected]>
556
557 * NEWS: Add Python API Improvements section.
558
7280022e
DJ
5592010-02-18 Daniel Jacobowitz <[email protected]>
560
561 * NEWS: Correct typo.
562
6f451e5e
TT
5632010-02-17 Tom Tromey <[email protected]>
564
565 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
566
012836ea
JK
5672010-02-17 Jan Kratochvil <[email protected]>
568
569 * symfile.c (build_section_addr_info_from_objfile): Include sections
570 only if they are SEC_ALLOC or SEC_LOAD.
571
d182d057
L
5722010-02-17 H.J. Lu <[email protected]>
573
574 PR shlibs/11293
575 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
576 of ULONGEST for address size.
577
4eef138c
TT
5782010-02-17 Tom Tromey <[email protected]>
579
580 * NEWS: Add C++ improvements section.
581
548a926a
UW
5822010-02-17 Ulrich Weigand <[email protected]>
583
584 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
585 PyThreadState_Swap): Avoid "statement with no effect" warning.
586
ad3a0e5b
JK
5872010-02-17 Jan Kratochvil <[email protected]>
588
589 * solib-svr4.c (enable_break <target_auxv_search>): New variable
590 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
591
243e2c5d
TG
5922010-02-17 Tristan Gingold <[email protected]>
593 Petr Hluzín <[email protected]>
594
595 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
596 gdb_assert. Fix info->size for SIG prologue.
597
275f2e57
DJ
5982010-02-16 Daniel Jacobowitz <[email protected]>
599
600 * infcmd.c (show_inferior_tty_command): Check for NULL.
601 Correct output message.
602
791dfb64
DJ
6032010-02-16 Daniel Jacobowitz <[email protected]>
604
605 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
606 FUNCTION contains parentheses. Improve removal of a trailing
607 single quote.
608
14d1346b
DJ
6092010-02-16 Daniel Jacobowitz <[email protected]>
610
611 * gcore.c (do_bfd_delete_cleanup): New function.
612 (gcore_command): Use it. Discard the cleanup after success.
613 (gcore_copy_callback): Delete dead code.
614
e76ab67f
DJ
6152010-02-16 Daniel Jacobowitz <[email protected]>
616
617 * symfile.c (addr_info_make_relative): Always use
618 find_lowest_section.
619
71dee663
SW
6202010-02-16 Sami Wagiaalla <[email protected]>
621
622 * NEWS: Added entry for namespace fixes.
623
a9854bd5
TT
6242010-02-15 Tom Tromey <[email protected]>
625
626 * dwarf2read.c (guess_structure_name): Allocate name on the
627 objfile obstack.
628
fd9e29b5
TT
6292010-02-15 Tom Tromey <[email protected]>
630
631 * c-typeprint.c (c_type_print_base): Reverse order of test.
632
4e1fc9c9
JK
6332010-02-15 Jan Kratochvil <[email protected]>
634
635 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
636 initialize it from ELF BFD. Extend the prelink condition by it.
637
74164c56
JK
6382010-02-15 Jan Kratochvil <[email protected]>
639
640 * defs.h (parse_pid_to_attach): New.
641 * utils.c (parse_pid_to_attach): New.
642 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
643 * gnu-nat.c (gnu_attach): Likewise.
644 * nto-procfs.c (procfs_attach): Likewise.
645 * procfs.c (procfs_attach): Likewise.
646 * windows-nat.c (windows_attach): Likewise.
647 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
648 * inf-ttrace.c (inf_ttrace_attach): Likewise.
649 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
650 check.
651
bf6adea8
MM
6522010-02-14 Masaki Muranaka <[email protected]>
653
654 * MAINTAINERS: Add myself for write after approval privileges.
655
28f34a8f
JK
6562010-02-13 Jan Kratochvil <[email protected]>
657
658 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
659 block.
660
701ed6dc
JK
6612010-02-13 Jan Kratochvil <[email protected]>
662
663 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
664 only if INFO_VERBOSE.
665
e5829bee
MS
6662010-02-12 Tomas Holmberg <[email protected]>
667
668 * mi/mi-main.c: Added the --reverse flag to the following MI
669 commands: exec-continue, exec-finish, exec-next, exec-step,
670 exec-next-instruction, exec-step-instruction. This is to
671 support reverse execution over the MI interface to gdb.
672
081dfbf7
PA
6732010-02-12 Pedro Alves <[email protected]>
674
675 * tracepoint.c (_initialize_tracepoint): Specify that the address
676 range of `tfind outsize' is exclusive, and that the address range
677 of `tfind range' is inclusive, in the commands' help strings.
678
ecc13e53
JB
6792010-02-12 Joel Brobecker <[email protected]>
680
681 Spurious "dll not found" error messages on x64-windows.
682 * windows-nat.c: Add include of complaints.h.
683 (handle_unload_dll): Change dll-not-found error into a complaint.
684
15c3d785
PA
6852010-02-12 Pedro Alves <[email protected]>
686
687 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
688 bp_tracepoint and bp_fast_tracepoint, not
689 bp_loc_software_breakpoint.
690 (update_global_location_list): Tracepoints are never duplicates of
691 anything.
692
fd9b8c24
PA
6932010-02-12 Pedro Alves <[email protected]>
694
695 * breakpoint.c (break_command_really): Change return type to int.
696 Return false if no breakpoint was created, true otherwise.
697 (trace_command): Don't set the tracepoint count if no tracepoint
698 was created.
699 (ftrace_command): Ditto.
700 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
701 created in the breakpoints table.
702
5c0d192f
JK
7032010-02-11 Jan Kratochvil <[email protected]>
704 Ulrich Weigand <[email protected]>
705
706 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
707
5d5b640e
PA
7082010-02-11 Pedro Alves <[email protected]>
709
710 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
711 the offset value isn't of integral type.
712
e5a0a904
JK
7132010-02-11 Jan Kratochvil <[email protected]>
714
715 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
716 New.
717
be636754
PA
7182010-02-11 Pedro Alves <[email protected]>
719
720 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
721 non-subscriptable types.
722 * valarith.c (binop_types_user_defined_p): New, abstracted out
723 from ...
724 (binop_user_defined_p): ... this.
725 * value.h (binop_types_user_defined_p): Declare.
726
10ef8d6a
PA
7272010-02-11 Pedro Alves <[email protected]>
728
729 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
730 Merge uploaded TSVs before merging uploaded tracepoints.
731
b1028c8e
PA
7322010-02-11 Pedro Alves <[email protected]>
733
734 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
735
7a93fb82 7362010-02-11 Vladimir Prus <[email protected]>
84d90c10 737
7a93fb82
VP
738 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
739 whitespace character after a dot in comment.
740 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
741 Likewise.
742 (list_args_or_locals): For the 'all' (that is
743 -stack-list-variables) case, always output list of tuples.
744 Output 'arg' field if variable is argument.
84d90c10 745
92981e24
TT
7462010-02-10 Tom Tromey <[email protected]>
747
748 * parser-defs.h (parser_debug): Declare.
749 * parse.c (_initialize_parse): Install "debug parser" set/show
750 command.
751 (parser_debug): New global.
752 (show_parserdebug): New function.
753 * c-exp.y (c_parse): Set yydebug.
754
9fd3625f
L
7552010-02-10 H.J. Lu <[email protected]>
756
757 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
758 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
759 (tdesc_predefined_types): Add i387_ext, i386_eflags and
760 i386_mxcsr.
761 (tdesc_find_type): New.
762 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
763 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
764
765 * target-descriptions.h (tdesc_find_type): New.
766
2fe842e5
MS
7672010-02-10 Michael Snyder <[email protected]>
768
769 * gdb-gdb.py: Comment fix.
770
f18b4cab
TG
7712010-02-09 Tristan Gingold <[email protected]>
772
773 * machoread.c (macho_symfile_relocate): New function.
774 (macho_sym_fns): Use macho_symfile_relocate instead of
775 default_symfile_relocate.
776 (macho_oso_data): New type.
777 (current_oso): New variable.
778 (macho_add_oso_symfile): Do not compute section_addr_info, but
779 instead set vma of sections.
780 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
781 Set and clear current_oso.
782
31dbc1c5
JB
7832010-02-09 Joel Brobecker <[email protected]>
784
785 Wrong type description for tagged type parameter.
786 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
787 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
788 reference to a tagged type.
789
399f313b
TG
7902010-02-09 Tristan Gingold <[email protected]>
791
792 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
793 brothers of the parent.
794
714f19d5
TT
7952010-02-08 Tom Tromey <[email protected]>
796
797 PR c++/8017:
798 * value.h: Update.
799 * valops.c (search_struct_field): Make 'name' const.
800 (search_struct_method): Likewise.
801 (find_method_list): Make 'method' const.
802 (value_struct_elt): Make 'name' and 'err' const.
803 (value_find_oload_method_list): Make 'method' const.
804 (find_overload_match): Make 'name' const.
805 * eval.c (evaluate_subexp_standard): New locals function,
806 function_name.
807 <OP_FUNCALL>: Handle OP_SCOPE specially.
808
de0a0249
UW
8092010-02-08 Ulrich Weigand <[email protected]>
810
811 * infrun.c (handle_inferior_event): Do not look up regcache
812 for exited processes.
813
83b10087
CM
814Mon Feb 8 13:17:10 2010 Chris Moller <[email protected]>
815
816 PR gdb/10728
817 * valarith.c (value_ptrdiff): Added a test for a zero type length,
818 warn if found, and assume length = 1.
819
99903ae3
CM
8202010-02-08 Chris Moller <[email protected]>
821
822 PR gdb/9067
823 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
824 cp_print_static_field) Fix use of obstacks.
825
e3e9f5a2
PA
8262010-02-08 Pedro Alves <[email protected]>
827
828 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
829 resumed LWPs as resumed.
830 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
831 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
832 of throwing an internal error. If an LWP of a process we're not
833 waiting for reports a signal, don't force collecting a SIGSTOP,
834 and if it was breakpoint hit in non-stop mode, cancel it. Don't
835 go through all LWPs cancelling breakpoints in non-stop mode.
836 (resume_stopped_resumed_lwps): New.
837 (linux_nat_wait): Use it.
838
46763423
L
8392010-02-07 H.J. Lu <[email protected]>
840
841 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
842 i386/amd64 and i386/amd64-linux.
843 (i386/i386-expedite): New.
844 (i386/i386-linux-expedite): Likewise.
845 (i386/amd64-expedite):Likewise.
846 (i386/amd64-linux-expedite): Likewise.
847 ($(outdir)/i386/i386-linux.dat): Likewise.
848 ($(outdir)/i386/amd64.dat): Likewise.
849 ($(outdir)/i386/amd64-linux.dat): Likewise.
850
851 * features/i386/32bit-core.xml: New.
852 * features/i386/32bit-linux.xml: Likewise.
853 * features/i386/32bit-sse.xml: Likewise.
854 * features/i386/64bit-core.xml: Likewise.
855 * features/i386/64bit-linux.xml: Likewise.
856 * features/i386/64bit-sse.xml: Likewise.
857 * features/i386/i386-linux.xml: Likewise.
858 * features/i386/i386.xml: Likewise.
859 * features/i386/amd64-linux.xml: Likewise.
860 * features/i386/amd64.xml: Likewise.
861 * features/i386/i386-linux.c: Likewise.
862 * features/i386/i386.c: Likewise.
863 * features/i386/amd64-linux.c: Likewise.
864 * features/i386/amd64.c: Likewise.
865
82856980
SW
8662010-02-05 Sami Wagiaalla <[email protected]>
867
868 PR c++/7935:
869 * cp-support.h: Added char* alias element to using_direct data
870 struct.
871 (cp_add_using): Added char* alias argument.
872 (cp_add_using_directive): Ditto.
873 * cp-namespace.c: Updated with the above changes.
874 (cp_lookup_symbol_imports): Check for aliases.
875 * dwarf2read.c (read_import_statement): Figure out local alias
876 for the import and pass it on to cp_add_using.
877 (read_namespace): Pass alias argument to cp_add_using.
878
d18b8b7a
HZ
8792010-02-05 Hui Zhu <[email protected]>
880
881 * defs.h (gdb_bfd_errmsg): New extern.
882 * exec.c (exec_file_attach): Change bfd_errmsg to
883 gdb_bfd_errmsg.
884 * utils.c (AMBIGUOUS_MESS1): New macro.
885 (AMBIGUOUS_MESS2): New macro.
886 (gdb_bfd_errmsg): New function.
887
48379de6
DE
8882010-02-04 Doug Evans <[email protected]>
889
890 * solib-svr4.c (enable_break): Add comment.
891
4ee73e90
AG
8922010-02-04 Anthony Green <[email protected]>
893
894 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
895 gracefully.
896
1a334831
TT
8972010-02-04 Tom Tromey <[email protected]>
898
899 * valops.c (search_struct_field): Account for
900 value_embedded_offset. Fix check for virtual base past the end of
901 the object. Use value_copy when making a slice of the value.
902
1180b2c8
L
9032010-02-04 H.J. Lu <[email protected]>
904
905 PR tui/9622
906 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
907 only if gdb_stdout is a tty.
908
c3f08eb7
L
9092010-02-04 H.J. Lu <[email protected]>
910
911 * target-descriptions.c: Include "osabi.h".
912 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
913 OSABI.
914
2d33f7b8
TG
9152010-02-04 Tristan Gingold <[email protected]>
916
917 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
918 (macho_symtab_read): Adjust calls to macho_add_oso.
919 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
920 (macho_symfile_read): Adjust call to macho_oso_symfile.
921 (macho_new_init): Move this function after declarations.
922 (macho_symfile_init): Ditto.
923 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
924 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
925
11334b82
VP
9262010-02-04 Vladimir Prus <[email protected]>
927
928 Include MI command in remotelog.
929
930 * mi/mi-main.c (mi_execute_command): Call target_log_command.
931
ff97be06
L
9322010-02-03 H.J. Lu <[email protected]>
933
934 * remote.c (remote_state): Remove gdbarch.
935 (init_remote_state): Don't set gdbarch.
936 (remote_query_supported): Pass target_gdbarch instead of
937 rs->gdbarch to gdbarch_qsupported.
938
75cebea9
L
9392010-02-03 H.J. Lu <[email protected]>
940
941 * gdbarch.sh: Add qsupported.
942
943 * gdbarch.c: Regenerated.
944 * gdbarch.h: Likewise.
945
946 * remote.c (remote_state): Add gdbarch.
947 (init_remote_state): Set gdbarch.
948 (remote_query_supported): Support gdbarch_qsupported.
949
c1dec97b
DJ
9502010-02-03 Daniel Jacobowitz <[email protected]>
951
952 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
953 __FreeBSD_kernel_version.
954
ac8035ab
TG
9552010-02-03 Tristan Gingold <[email protected]>
956
957 * symfile.h (struct sym_fns): Add sym_relocate field.
958 (default_symfile_relocate): New prototype.
959 (symfile_relocate_debug_section): First argument is now an objfile.
960 * symfile.c (default_symfile_relocate): Rename from
961 symfile_relocate_debug_section, first argument is now an objfile.
962 (symfile_relocate_debug_section): New function.
963 * coffread.c (coff_sym_fns): Set sym_relocate field.
964 * somread.c (som_sym_fns): Ditto.
965 * mipsread.c (ecoff_sym_fns): Ditto.
966 * machoread.c (macho_sym_fns): Ditto.
967 * elfread.c (elf_sym_fns): Ditto.
968 * dwarf2read.c (dwarf2_read_section): Ditto.
969 * xcoffread.c (xcoff_sym_fns): Ditto.
970 * dbxread.c (aout_sym_fns): Ditto.
971 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
972 (elfstab_build_psymtabs): Ditto.
973
be52b756
L
9742010-02-03 H.J. Lu <[email protected]>
975
976 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
977
9c3c02fd
TT
9782010-02-02 Tom Tromey <[email protected]>
979
980 * valops.c (value_cast_structs): Try downcasting using the RTTI
981 type.
982
f23f4c59
TT
9832010-02-02 Tom Tromey <[email protected]>
984
985 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
986 (gnuv2_baseclass_offset): Now static.
987 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
988 * gnu-v2-abi.h: Remove.
989
0cc2414c
TT
9902010-02-02 Tom Tromey <[email protected]>
991
992 * m2-typeprint.c (m2_record_fields): Don't use
993 TYPE_DECLARED_TYPE.
994 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
995 (struct main_type) <flag_declared_class>: New field.
996 (struct cplus_struct_type) <declared_type>: Remove.
997 <ntemplate_args>: Move earlier.
998 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
999 (DECLARED_TYPE_TEMPLATE): Remove.
1000 (TYPE_DECLARED_TYPE): Remove.
1001 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1002 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1003 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1004 TYPE_DECLARED_TYPE.
1005
edf3d5f3
TT
10062010-02-02 Tom Tromey <[email protected]>
1007
1008 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1009 * valops.c (search_struct_field): Compute nbases after calling
1010 CHECK_TYPEDEF.
1011 (check_field): Call CHECK_TYPEDEF.
1012 * cp-valprint.c (cp_print_value): Pass correct address to
1013 baseclass_offset. Fix check for virtual base past the end of the
1014 object. Don't offset address passed to cp_print_value_fields or
1015 apply_val_pretty_printer.
1016 (cp_print_value_fields): Fix call to val_print.
1017 (cp_print_value_fields_rtti): New function.
1018 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1019 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1020 val_print.
1021 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1022 offset to address.
1023 * language.h (struct language_defn) <la_val_print>: Document.
1024 * c-lang.h (cp_print_value_fields_rtti): Declare.
1025
e4b7f41c
JK
10262010-02-01 Jan Kratochvil <[email protected]>
1027
1028 PR libc/11214:
1029 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1030 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1031 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1032
7618e12b
DJ
10332010-02-01 Michael Matz <[email protected]>
1034 Daniel Jacobowitz <[email protected]>
1035
e4b7f41c 1036 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
1037 functions use a frame pointer.
1038
b381ea14
JK
10392010-02-01 Jan Kratochvil <[email protected]>
1040
1041 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1042 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1043 * config/djgpp/fnchange.lst: Add translations for
1044 symbol-without-target_section.exp and symbol-without-target_section.c.
1045
0e05dfcb
DJ
10462010-02-01 Daniel Jacobowitz <[email protected]>
1047
1048 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1049 (remote_breakpoint_for_pc): Correct invalid_p check.
1050 * gdbarch.c: Regenerated.
1051
f9d67f43
DJ
10522010-02-01 Daniel Jacobowitz <[email protected]>
1053
1054 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1055 arm_pc_is_thumb.
1056 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1057 (extend_buffer_earlier): New function.
1058 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1059 (arm_adjust_breakpoint_address): New function.
1060 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1061
177321bd
DJ
10622010-02-01 Daniel Jacobowitz <[email protected]>
1063
1064 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1065 (arm_linux_thumb2_le_breakpoint): New constants.
1066 (arm_linux_init_abi): Set thumb2_breakpoint and
1067 thumb2_breakpoint_size.
1068 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1069 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1070 Implement support for single stepping through IT blocks if
1071 a 32-bit Thumb breakpoint instruction is available.
1072 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1073 is available, use it when needed.
1074 (arm_remote_breakpoint_from_pc): New function.
1075 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1076 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1077 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1078
a1dcb23a
DJ
10792010-02-01 Daniel Jacobowitz <[email protected]>
1080
1081 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1082 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1083 * gdbarch.c, gdbarch.h: Regenerated.
1084 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1085 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1086 gdbarch_remote_breakpoint_from_pc.
1087
2b009048
DJ
10882010-01-29 Daniel Jacobowitz <[email protected]>
1089
1090 * infrun.c (prepare_to_proceed): Handle other signals which might
1091 match a breakpoint.
1092 (handle_inferior_event): Move the check for unusual breakpoint
1093 signals earlier.
1094
e4e2711a
JB
10952010-01-29 Paul Hilfinger <[email protected]>
1096
1097 amd64 - function returning record with field straddling 2 registers.
1098 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1099 a record of length <= 16 in which a field straddles the two
1100 eightbytes.
1101
cba6fab5
JB
11022010-01-29 Joel Brobecker <[email protected]>
1103
1104 Implement return values on amd64-windows.
1105 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1106 (amd64_windows_return_value): New function.
1107 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1108 amd64_windows_return_value.
1109
3af6ddfe
JB
11102010-01-29 Joel Brobecker <[email protected]>
1111
1112 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 1113 parameter registers.
3af6ddfe
JB
1114 * i386-tdep.h (struct gdbarch_tdep): Add new field
1115 integer_param_regs_saved_in_caller_frame.
1116 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1117 tdep->integer_param_regs_saved_in_caller_frame to 1.
1118 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1119 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1120
80d19a06
JB
11212010-01-29 Joel Brobecker <[email protected]>
1122
1123 amd64-windows: memory args passed by pointer during function calls.
1124 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1125 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1126 where tdep->memory_args_by_pointer is non-zero.
1127 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1128 tdep->memory_args_by_pointer to 1.
1129
ba581dc1
JB
11302010-01-29 Joel Brobecker <[email protected]>
1131
4966b6c2 1132 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
1133 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1134 amd64-tdep.c.
1135 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1136 call_dummy_integer_regs, and classify.
1137 * amd64-tdep.h (amd64_classify): Add declaration.
1138 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1139 (amd64_reg_class): Delete, moved to i386-tdep.h.
1140 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1141 Replace call to amd64_classify by call to tdep->classify.
1142 (amd64_push_arguments): Get the list of registers to use for
1143 passing integer parameters from the gdbarch tdep structure,
1144 rather than using a hardcoded one. Replace calls to amd64_classify
1145 by calls to tdep->classify.
1146 (amd64_push_dummy_call): Get the register number used for
1147 the "hidden" argument from tdep->call_dummy_integer_regs.
1148 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1149 and tdep->call_dummy_integer_regs. Set tdep->classify.
1150 * amd64-windows-tdep.c: Add include of gdbtypes.h.
1151 (amd64_windows_dummy_call_integer_regs): New static global.
1152 (amd64_windows_classify): New function.
1153 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
1154 tdep->call_dummy_integer_regs and tdep->classify.
1155
d37346f0
DJ
11562010-01-28 Daniel Jacobowitz <[email protected]>
1157
1158 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
1159 for the new regcache. All callers updated.
1160 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
1161 (get_thread_arch_regcache): Do not set aspace here.
1162 * regcache.h (regcache_xmalloc): Update declaration.
1163
1164 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
1165 regcache_xmalloc updated.
1166
7434dadd
JB
11672010-01-28 Joel Brobecker <[email protected]>
1168
1169 Another -Wunused-function error in procfs.c (sparc-solaris)
1170 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
1171 Only define if SYS_syssgi is defined.
1172 (remove_dbx_link_breakpoint): Delete declaration. Move up.
1173 (dbx_link_addr, insert_dbx_link_bpt_in_file)
1174 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
1175 is itself defined.
1176
16d905e2
CF
11772010-01-27 Christopher Faylor <[email protected]>
1178
1179 * windows-nat.c (windows_initialization_done): New variable.
1180 (get_windows_debug_event): Issue error when process dies before
1181 completely initializing.
1182 (do_initial_windows_stuff): Set flag to indicate when we are done with
1183 the initial steps of attaching to the child.
1184
cd55e50f
JK
11852010-01-27 Jan Kratochvil <[email protected]>
1186
1187 * symtab.h (struct symbol <symtab>): New comment on NULL values.
1188
99cc78aa
DE
11892010-01-27 Doug Evans <[email protected]>
1190
4c7dcb84
DE
1191 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
1192
99cc78aa
DE
1193 * breakpoint.c (bpstat_stop_status): Delete useless code.
1194
52334bf5
JK
11952010-01-27 Jan Kratochvil <[email protected]>
1196
1197 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1198 objfile via SYMBOL_SYMTAB.
1199
708ead4e
TT
12002010-01-26 Tom Tromey <[email protected]>
1201
1202 PR exp/7643:
1203 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1204 coerce_array on result.
1205
b14e635e
SW
12062010-01-26 Sami Wagiaalla <[email protected]>
1207
1208 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1209 search_parent argument.
1210 (cp_add_using): Initialize 'searched' field.
1211 (reset_directive_searched): New function.
1212 * cp-support.h: Add 'searched' field to using_direct struct.
1213 (cp_lookup_symbol_imports): Ditto.
1214 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1215 Perform recursive search.
1216 Implement non parent search.
1217 * valops.c (value_maybe_namespace_elt): Updated.
1218
8540c487
SW
12192010-01-26 Sami Wagiaalla <[email protected]>
1220
1221 PR gdb/10929:
1222 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1223 scopes which contain using directives even if they contain no
1224 declarations.
1225 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1226 la_lookup_symbol_nonlocal.
1227 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1228 cp_lookup_symbol_namespace.
1229 (cp_lookup_symbol_namespace): Perform an import lookup at every
1230 block level.
1231 (cp_lookup_symbol_imports): New function.
1232 (cp_lookup_symbol_in_namespace): New function.
1233
421d5d99
TT
12342010-01-25 Tom Tromey <[email protected]>
1235
1236 PR gdb/11049:
1237 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1238 result.
1239
6bcc772d
RO
12402010-01-25 Rainer Orth <[email protected]>
1241
1242 * configure.ac: Only use host_os part when disabling TUI on osf.
1243 Use test to check variables, prefix strings with x.
1244 * configure: Regenerate.
1245
1246 * solib-osf.c (osf_current_sos): Initialize tail.
1247
1c1238a5
TG
12482010-01-25 gingold <[email protected]>
1249
1250 * windows-nat.c (windows_continue): Use %x to print thread id.
1251 (get_windows_debug_event): Ditto.
1252
0b92b5bb
TT
12532010-01-22 Tom Tromey <[email protected]>
1254
1255 PR symtab/11199:
1256 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1257 type and arguments. Use smash_to_methodptr_type.
1258 (read_structure_type): Call quirk_gcc_member_function_pointer
1259 later.
1260 * gdbtypes.h (smash_to_methodptr_type): Declare.
1261 * gdbtypes.c (smash_to_methodptr_type): New function.
1262 (lookup_methodptr_type): Use it.
1263
0d5392b8
TT
12642010-01-21 Tom Tromey <[email protected]>
1265
1266 PR symtab/11198:
1267 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1268 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1269 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1270 (glibc_skip_solib_resolver): Use
1271 lookup_minimal_symbol_and_objfile.
1272
e6d088ec
KT
12732010-01-21 Kai Tietz <[email protected]>
1274
1275 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1276 WIN32 targets.
1277
b966cb8a
TT
12782010-01-20 Tom Tromey <[email protected]>
1279
1280 PR backtrace/10770:
1281 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1282 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1283 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1284 dwarf_stack_values, not CORE_ADDRs.
1285 (execute_stack_op): Change DW_OP_div and comparison operators to
1286 use signed operands.
1287
3f81c18a
VP
12882010-01-20 Vladimir Prus <[email protected]>
1289
1290 Per-inferior args and tty and environment.
1291
1292 * infcmd.c (inferior_args): Rename to ...
1293 (inferior_args_scratch): ... this.
1294 (inferior_io_terminal): Rename to ...
1295 (inferior_io_terminal_scratch): ... this.
1296 (inferior_argc, inferior_argv): Remove.
1297 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1298 inside current_inferior().
1299 (set_inferior_tty_command, show_inferior_tty_command): New.
1300 (get_inferior_args, set_inferior_args): Store inside
1301 current_inferior().
1302 (notice_args_set): Likewise and rename to...
1303 (set_args_command): ... this.
1304 (set_inferior_args_vector): Likewise.
1305 (notice_args_read): Rename to...
1306 (show_args_command): ...new.
1307 (tty_command): Remove.
1308 (run_command_1): Don't free old args, as they are freed by
1309 set_inferior_arg now.
1310 (run_no_args_command): Likewise.
1311 (inferior_environ): Remove.
1312 (run_command_1): Use environment of the current inferior.
1313 (environment_info, set_environment_command)
1314 (unset_environment_command, path_info, path_command): Likewise.
1315 (_initialize_infcmd): Adjust for function and variable renames.
1316 Do not init inferior_environ.
1317 * inferior.h (set_inferior_arg): Adjust prototype.
1318 (struct inferior): New fields args, argc, argv, terminal, environment.
1319 (inferior_environ): Remove declaration.
1320 * inferior.c (free_inferior): Free new fields.
1321 (add_inferior_silent): Initialize 'environment' field.
1322 * main.c (captured_main): Set arguments only after the initial
1323 inferior has been created. Set set_inferior_io_terminal,
1324 not tty_command.
1325 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1326 inferior.
1327 (_initialize_mi_cmd_env): Adjust for disappearance of global
1328 inferior_environ.
1329 * solib.c (solib_find): Use environment of the current inferior.
1330
d8b65138
JK
13312010-01-20 Jan Kratochvil <[email protected]>
1332
1333 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1334 HAVE_PYTHON.
1335 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1336
692465f1
JB
13372010-01-20 Joel Brobecker <[email protected]>
1338
1339 Get rid of ada-lang.c:function_name_from_pc.
1340 * ada-lang.c: Add "stack.h" #include.
1341 (function_name_from_pc): Delete.
1342 (is_known_support_routine): Replace call to function_name_from_pc
1343 by call to find_frame_funname.
1344 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1345
95519e0e
TT
13462010-01-19 Tom Tromey <[email protected]>
1347
1348 PR c++/11026:
1349 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1350 objfile obstack.
1351
95c11dc7
TT
13522010-01-19 Tom Tromey <[email protected]>
1353
1354 * top.c (stop_sig, float_handler, do_nothing): Remove.
1355
a0f49112
JK
13562010-01-19 Jan Kratochvil <[email protected]>
1357
1358 * breakpoint.c (watchpoint_check): Check the call
1359 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1360 Extend the comment.
1361 * config/djgpp/fnchange.lst: Add translations for
1362 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1363 watchpoint-cond-gone-stripped.c.
1364
ceeb3d5a
TT
13652010-01-19 Tom Tromey <[email protected]>
1366
1367 PR c++/8000:
1368 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1369 into parent scope, and enumerator into grandparent scope.
1370
2b71fc8e
JB
13712010-01-19 Joel Brobecker <[email protected]>
1372
1373 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1374
03564ed9
JB
13752010-01-19 Joel Brobecker <[email protected]>
1376
1377 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1378 i[34567]86-*-solaris2.1[0-9]*.
1379 * configure.tgt: Likewise.
1380
fb2e7cb4
JB
13812010-01-19 Joel Brobecker <[email protected]>
1382
1383 * NEWS: Document the source command enhancement allowing it
1384 to load Python scripts. Document the "set/show script-extension"
1385 commands.
1386
1cb5e2a4
JB
13872010-01-19 Joel Brobecker <[email protected]>
1388
1389 Add -Wunused-function to compile flags.
1390 * configure.ac: Add -Wunused-function to build_warnings.
1391 * configure: Regenerate.
1392
0ec6cd0c
JB
13932010-01-19 Joel Brobecker <[email protected]>
1394
1395 "delete" ada-lex.c:input function, not used.
1396 * ada-lex.l: #define YY_NO_INPUT.
1397
b74845da
JB
13982010-01-19 Joel Brobecker <[email protected]>
1399
1400 Delete free_named_symtabs and associated cleanup.
1401 * symfile.h (free_named_symtabs): Delete declaration.
1402 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1403 (cashier_psymtab): Comment function out.
1404 Delete declaration.
1405 (free_named_symtabs): Delete.
1406 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1407 * dbxread.c (end_psymtab): Likewise.
1408 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1409 * exec.c (exec_close_1): Ditto.
1410 * xcoffread.c (xcoff_end_psymtab): Likewise.
1411
65c06092
JB
14122010-01-19 Joel Brobecker <[email protected]>
1413
1414 * stack.c (print_block_frame_labels): Comment function out.
1415
d5cd6034
JB
14162010-01-19 Joel Brobecker <[email protected]>
1417
1418 Delete unused or undefined functions.
1419 * breakpoint.c (ep_parse_optional_filename): Delete.
1420 * dcache.c (dcache_write_line): Remove declaration.
1421 * infrun.c (build_infrun): Remove declaration.
1422 * tracepoint.c (tracepoint_save_command): Remove declaration.
1423 * linux-nat.c (init_lwp_list): Delete. No longer used.
1424 * event-loop.c (check_async_signal_handlers): Delete declaration.
1425 * infrun.c (init_execution_control_state): Delete.
1426 (proceed): Update comment to avoid mentioning
1427 init_execution_control_state.
1428 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1429 * ada-lang.c (ada_to_static_fixed_value): Delete.
1430 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1431 * cp-namespace.c (cp_copy_usings): Delete.
1432 * xml-syscall.c (xml_number_of_syscalls): Delete.
1433 * progspace.c (find_program_space_by_num): Delete.
1434 * inflow.c (handle_sigio): Delete declaration.
1435 * hppa-tdep.c (hppa_alignof): Delete.
1436 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1437 (mipsnbsd_core_osabi_sniffer): Delete.
1438
4e8f195d
TT
14392010-01-18 Tom Tromey <[email protected]>
1440
1441 PR c++/9680:
1442 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1443 (CONST_CAST): New tokens.
1444 (exp): Add new productions.
1445 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1446 reinterpret_cast.
1447 (is_cast_operator): New function.
1448 (yylex): Handle cast operators specially.
1449 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1450 UNOP_REINTERPRET_CAST>: New cases.
1451 * expprint.c (print_subexp_standard): Likewise.
1452 (op_name_standard): Likewise.
1453 (dump_subexp_body_standard): Likewise.
1454 * parse.c (operator_length_standard): Likewise.
1455 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1456 UNOP_REINTERPRET_CAST.
1457 * gdbtypes.c (class_types_same_p): New function.
1458 (is_ancestor): Use it.
1459 (is_public_ancestor): New function.
1460 (is_unique_ancestor_worker): Likewise.
1461 (is_unique_ancestor): Likewise.
1462 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1463 (is_unique_ancestor): Declare.
1464 * valops.c (value_reinterpret_cast): New function.
1465 (dynamic_cast_check_1): Likewise.
1466 (dynamic_cast_check_2): Likewise.
1467 (value_dynamic_cast): Likewise.
1468 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1469
d9c57d9f
JB
14702010-01-18 Joel Brobecker <[email protected]>
1471
1472 Fix build failure when building without Python support.
1473 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1474 is not defined.
1475
f80d3ff2
JB
14762010-01-18 Joel Brobecker <[email protected]>
1477
1478 Use XVS field type instead of doing a parallel lookup.
1479 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1480 if it is a reference type instead of doing a type lookup using
1481 the XVS field name.
1482
5bf03f13
JB
14832010-01-18 Joel Brobecker <[email protected]>
1484
1485 Trust PAD types instead of using PAD___XVS.
1486 * ada-lang.c (trust_pad_over_xvs): New static variable.
1487 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1488 parallel XVS type, follow the XVS type instead of the PAD type.
1489 (unwrap_value): Make sure that there is no parallel XVE type
1490 before returning the value as is.
1491 (set_ada_list, show_ada_list): New static variables.
1492 (set_ada_command, show_ada_command): New functions.
1493 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1494 Add new "set/show ada trust-PAD-over-XVS" setting.
1495
973817a3
JB
14962010-01-18 Tom Tromey <[email protected]>
1497 Thiago Jung Bauermann <[email protected]>
1498
1499 Allow "source" to load python scripts.
1500 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1501 * python/python.c (source_python_script): New function.
1502 * python/python.h (source_python_script): Add declaration.
1503 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1504 (script_ext_off, script_ext_soft, script_ext_strict)
1505 (script_ext_enums, script_ext_mode): New static constants.
1506 (show_script_ext_mode, find_and_open_script): New functions.
1507 (source_script): Enhance to handle Python scripts.
1508 (init_cli_cmds): Add set/show script-extension commands.
1509
98e03262
SS
15102010-01-16 Stan Shebs <[email protected]>
1511
1512 * tracepoint.h (struct trace_status): Use unsigned long long
1513 instead of size_t.
1514 * tracepoint.c (trace_status_command): Fix printf directive.
1515 (trace_save_command): Check fwrite returns, fix printf directive.
1516 (trace_filename): New global.
1517 (tfile_open): Set it, check read returns.
1518 (tfile_close): Free trace_filename.
1519 (tfile_get_traceframe_address): Check read returns.
1520 (tfile_trace_find): Ditto.
1521 (tfile_fetch_registers): Ditto.
1522 (tfile_xfer_partial): Ditto.
1523 (tfile_get_trace_state_variable_value): Ditto.
1524
00bf0b85
SS
15252010-01-15 Stan Shebs <[email protected]>
1526
1527 Add trace file support.
1528 * tracepoint.h (enum trace_stop_reason): New enum.
1529 (struct trace_status): New struct.
1530 (parse_trace_status): Declare.
1531 (struct uploaded_tp): Move here from remote.c,
1532 add fields for actions.
1533 (struct uploaded_tsv): New struct.
1534 * tracepoint.c (tfile_ops): New target vector.
1535 (trace_fd): New global.
1536 (tfile_open): New function.
1537 (tfile_close): New function.
1538 (tfile_files_info): New function.
1539 (tfile_get_trace_status): New function.
1540 (tfile_get_traceframe_address): New function.
1541 (tfile_trace_find): New function.
1542 (tfile_fetch_registers): New function.
1543 (tfile_xfer_partial): New function.
1544 (tfile_get_trace_state_variable_value): New function.
1545 (init_tfile_ops): New function.
1546 (_initialize_tracepoint): Call it, add tfile target.
1547 (trace_status): New global.
1548 (current_trace_status): New function.
1549 (trace_running_p): Remove, change all users to get from
1550 current_trace_status()->running.
1551 (get_trace_status): Remove.
1552 (trace_status_command): Call target_get_trace_status directly,
1553 report more detail including tracing stop reasons.
1554 (trace_find_command): Always allow tfind on a file.
1555 (trace_find_pc_command): Ditto.
1556 (trace_find_tracepoint_command): Ditto.
1557 (trace_find_line_command): Ditto.
1558 (trace_find_range_command): Ditto.
1559 (trace_find_outside_command): Ditto.
1560 (trace_frames_offset, cur_offset): Declare as off_t.
1561 (trace_regblock_size): Rename from reg_size, update users.
1562 (parse_trace_status): New function.
1563 (tfile_interp_line): New function.
1564 (disconnect_or_stop_tracing): Ensure current trace
1565 status before asking what to do.
1566 (stop_reason_names): New global.
1567 (trace_save_command): New command.
1568 (get_uploaded_tp): Move here from remote.c.
1569 (find_matching_tracepoint): Ditto.
1570 (merge_uploaded_tracepoints): New function.
1571 (parse_trace_status): Use stop_reason_names.
1572 (_initialize_tracepoint): Define tsave command.
1573 * target.h (target_ops): New fields to_save_trace_data,
1574 to_upload_tracepoints, to_upload_trace_state_variables,
1575 to_get_raw_trace_data, change to_get_trace_status
1576 to take a pointer to a status struct.
1577 (target_save_trace_data): New macro.
1578 (target_upload_tracepoints): New macro.
1579 (target_upload_trace_state_variables): New macro.
1580 (target_get_raw_trace_data): New macro.
1581 * target.c (update_current_target): Add new methods, change
1582 signature of to_get_trace_status.
1583 * remote.c (hex2bin): Make globally visible.
1584 (bin2hex): Ditto.
1585 (remote_download_trace_state_variable): Download name also.
1586 (remote_get_trace_status): Update parameter, use
1587 parse_trace_status.
1588 (remote_save_trace_data): New function.
1589 (remote_upload_tracepoints): New function.
1590 (remote_upload_trace_state_variables): New function.
1591 (remote_get_raw_trace_data): New function.
1592 (remote_start_remote): Use them.
1593 (_initialize_remote_ops): Add operations.
1594 * ax-gdb.c: Include breakpoint.h.
1595 * breakpoint.c (create_tracepoint_from_upload): Use
1596 break_command_really, return tracepoint, warn about unimplemented
1597 parts.
1598 * NEWS: Mention trace file addition.
1599
d904de5b
JK
16002010-01-15 Jan Kratochvil <[email protected]>
1601
1602 Fix compilation warning on gcc-3.4.
1603 * exec.c (print_section_info): Move the `displacement' variable
1604 initialization to its declaration.
1605
64aa9731
JK
16062010-01-15 Jan Kratochvil <[email protected]>
1607
1608 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1609 comparison.
1610
ca1f5def 16112010-01-15 Eric Botcazou <[email protected]>
9f0dec2d
JB
1612
1613 "info tasks" broken by typedefs in ATCB type definitions.
1614 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1615 ada_check_typedef before retrieving the length of the type for
1616 regular fields.
1617
12ab9e09
JB
16182010-01-15 Joel Brobecker <[email protected]>
1619
1620 Do not use name-based lookup for unconstrained packed arrays.
1621 * ada-lang.c (find_parallel_type_by_descriptive_type):
1622 Limit the fallback to name-based lookups to the case where
1623 the type is a constrained packed array.
1624
c389c3dc
JB
16252010-01-15 Joel Brobecker <[email protected]>
1626
1627 Enhance gdb-gdb.py to handle main_type.type_specific.
1628 * gdb-gdb.py: Print the type-specific part of struct main_type.
1629
7991dee7
JK
16302010-01-15 Jan Kratochvil <[email protected]>
1631
1632 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1633 * configure: Regenerate.
1634 * config.in: Regenerate.
1635 * utils.c: Include sys/resource.h.
1636 (dump_core, can_dump_core): New.
1637 (internal_vproblem): Update the comment. Check can_dump_core while
1638 setting dump_core_p. Replace two abort calls by dump_core calls.
1639
93c26624
JK
16402010-01-14 Jan Kratochvil <[email protected]>
1641 Eli Zaretskii <[email protected]>
1642
1643 * NEWS: Document the PIE support.
1644
55235ad7
JK
16452010-01-14 Jan Kratochvil <[email protected]>
1646
1647 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1648 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1649
41752192
JK
16502010-01-14 Jan Kratochvil <[email protected]>
1651
1652 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1653 Replace exec_entry_point call by bfd_get_start_address.
1654
9f2982ff
JK
16552010-01-14 Jan Kratochvil <[email protected]>
1656
1657 Support Valgrind attachments broken by the PIE support.
1658 * auxv.c: Include gdbcore.h.
1659 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1660 parameters ops, object and annex. Remove their assertions.
1661 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1662 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1663 (memory_xfer_auxv): ... here.
1664 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1665 memory_xfer_auxv.
1666 * procfs.c (procfs_xfer_partial): Likewise.
1667 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1668 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1669 (svr4_solib_create_inferior_hook): Conditionalize the
1670 svr4_relocate_main_executable call.
1671
61f0d762
JK
16722010-01-14 Jan Kratochvil <[email protected]>
1673
1674 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1675 target_section. Find SECT in current_target_sections, gdb_assert it.
1676 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1677 New variable abfd.
1678 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1679 of separate debug info file.
1680
51bee8e9
JK
16812010-01-14 Jan Kratochvil <[email protected]>
1682
1683 Support PIEs with no symfile_objfile.
1684 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1685 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1686
b8040f19
JK
16872010-01-14 Jan Kratochvil <[email protected]>
1688
1689 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1690 code part to ...
1691 (svr4_static_exec_displacement): ... a new function.
1692 (svr4_exec_displacement): New function.
1693 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1694 new_offsets using alloca now. Remove variable old_chain and changed.
1695 Call objfile_relocate unconditionally now.
1696
eb90ce83
DE
16972010-01-14 Doug Evans <[email protected]>
1698
1699 * gdbtypes.c (arch_flags_type): Fix comment.
1700 * gdbtypes.h (arch_composite_type): Fix comment.
1701
bdfed3bc
TG
17022009-01-14 Tristan Gingold <[email protected]>
1703
1704 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1705 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1706 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1707 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1708 macho_add_oso_symfile.
1709 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1710
1596ad23
JB
17112010-01-14 Joel Brobecker <[email protected]>
1712
1713 Tru64: Dead threads are never deleted.
1714 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1715 (dec_thread_count_gdb_threads): Fix counter increment.
1716 (dec_thread_add_gdb_thread): Fix *listp increment.
1717 (resync_thread_list): Fix bug in deletion of dead threads that
1718 caused all threads to be deleted, instead of just the dead ones.
1719
be759fcf
PM
17202010-01-13 Phil Muldoon <[email protected]>
1721
1722 PR python/10705
1723
1724 * python/python-internal.h: Add lazy_string_object_type
1725 definition.
1726 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1727 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1728 * python/py-value.c (valpy_lazy_string): New function.
1729 (convert_value_from_python): Add lazy string conversion.
1730 * python/py-prettyprint.c (pretty_print_one_value): Check if
1731 return is also a lazy string.
1732 (print_string_repr): Add lazy string printing branch.
1733 (print_children): Likewise.
1734 * python/py-lazy-string.c: New file. Implement lazy strings.
1735 * python/python.c (_initialize_python): Call
1736 gdbpy_initialize_lazy_string.
1737 * varobj.c (value_get_print_value): Add lazy string printing
1738 branch. Account for encoding.
1739 * c-lang.c (c_printstr): Account for new encoding argument. If
1740 encoding is NULL, find encoding suited for type, otherwise use
1741 user encoding.
1742 * language.h (language_defn): Add encoding argument.
1743 (LA_PRINT_STRING): Likewise.
1744 * language.c (unk_lang_printstr): Update to reflect new encoding
1745 argument to language_defn.
1746 * ada-lang.h (ada_printstr): Likewise.
1747 * c-lang.h (c_printstr): Likewise.
1748 * p-lang.h (pascal_printstr);
1749 * f-lang.c (f_printstr): Likewise.
1750 * m2-lang.c (m2_printstr): Likewise.
1751 * objc-lang.c (objc_printstr): Likewise.
1752 * p-lang.c (pascal_printstr): Likewise.
1753 * scm-lang.c (scm_printstr): Likewise.
1754 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1755 encoding argument.
1756 * ada-valprint.c (ada_printstr): Likewise.
1757 * f-valprint.c (f_val_print): Likewise
1758 * m2-valprint.c (m2_val_print): Likewise.
1759 * p-valprint.c (pascal_val_print): Likewise.
1760 * expprint.c (print_subexp_standard): Likewise.
1761 * valprint.c (val_print_string): Likewise.
1762 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1763 (SUBDIR_PYTHON_SRCS): Likewise.
1764 (py-lazy-string.o): New rule.
1765
1fe72117 17662010-01-13 Doug Evans <[email protected]>
8eee9c5a
DE
1767
1768 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1769 uninitialized" warning from gcc on local `tree'.
1770
dc146f7c
VP
17712010-01-13 Vladimir Prus <[email protected]>
1772
1773 Implement core awareness.
1774
1775 * bcache.c (compare_ints): Remove
1776 (print_percentage): Use compare_positive_ints.
1777 * defs.h (compare_positive_ints): Declare.
1778 * linux-nat.h (struct lin_lwp): New field core.
1779 (linux_nat_core_of_thread_1): Declare.
1780 * linux-nat.c (add_lwp): Init the 'core' field.
1781 (linux_nat_wait_1): Record the core.
1782 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1783 (linux_nat_add_target): Register the above.
1784 * linux-thread-db.c (update_thread_core): New.
1785 (thread_db_find_new_threads): Update core information for
1786 every thread.
1787 * remote.c (struct private_thread_info): New.
1788 (free_private_thread_info, demand_private_info): New.
1789 (PACKET_qXfer_threads, use_osdata_threads): New.
1790 (struct thread_item, threads_parsing_context
1791 (start_thread, end_thread, thread_attributes)
1792 (thread_children, threads_children, threads_elements): New.
1793 (remote_threads_info): Try qXfer:threads before anything
1794 else.
1795 (remote_protocol_packets): Register qXfer:threads.
1796 (remote_open_1): Init use_osdata_threads.
1797 (struct stop_reply): New field 'core'.
1798 (remote_parse_stop_reply): Parse core number.
1799 (process_stop_reply): Record core number.
1800 (remote_xfer_partial): Handle qXfer:threads.
1801 (remote_core_of_thread): New.
1802 (init_remote_ops): Register remote_core_of_thread.
1803 (_initialize_remote): Register qXfer:read.
1804 * target.c (target_core_of_thread): New
1805 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1806 (struct target_ops): New field to_core_of_threads.
1807 (target_core_of_thread): Declare.
1808 * gdbthread.h (struct thread_info): New field private_dtor.
1809 * thread.c (print_thread_info): Report the core.
1810 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1811 * utils.c (compare_positive_ints): New.
1812 * features/threads.dtd: New.
1813 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1814 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1815 (do_nothing, free_vector_of_osdata_items)
1816 (splay_tree_int_comparator, free_splay_tree): New.
1817 (print_one_inferior_data): Implemented printing of selected
1818 inferiors. Collect and print cores.
1819 (output_cores): New.
1820 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1821 thread groups together with --available.
1822
d30c5336
JK
18232010-01-12 Jan Kratochvil <[email protected]>
1824
1825 * configure: Regenerate (for _STRUCTURED_PROC).
1826
02893727
JB
18272010-01-12 Joel Brobecker <[email protected]>
1828
1829 Delete dead function.
1830 * ada-lang.c (extract_string): Delete. No longer used.
1831
46ed2d6f
JB
18322010-01-12 Joel Brobecker <[email protected]>
1833
1834 Fix -Wunused warning in dec-thread.c.
1835 * dec-thread.c (dec_thread_count_gdb_threads)
1836 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1837
606b8d1a
JB
18382010-01-12 Joel Brobecker <[email protected]>
1839
1840 * ada-valprint.c (ada_print_floating): Remove trailing space.
1841
b4ba55a1
JB
18422010-01-12 Joel Brobecker <[email protected]>
1843
1844 Add support for DW_AT_GNAT_descriptive_type.
1845 * gdbtypes.h (enum type_specific_kind): New enum.
1846 (struct main_type) [type_specific_field]: New component.
1847 [type_specific]: Add new component "gnat_stuff".
1848 (struct gnat_aux_type): New type.
1849 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1850 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1851 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1852 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1853 (TYPE_SPECIFIC_FIELD): New macros.
1854 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1855 type does not hold any cplus-specific data.
1856 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1857 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1858 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1859 cplus-specific data.
1860 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1861 Set new component TYPE_SPECIFIC_FIELD (type).
1862 (gnat_aux_default): New constant.
1863 (allocate_gnat_aux_type): New function.
1864 (init_type): Add initialization the type-specific stuff for
1865 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1866 (print_gnat_stuff): New function.
1867 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1868 specific data. Adjust code that prints the contents of the
1869 type-specific union using the TYPE_SPECIFIC_FIELD value.
1870 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1871 the type cplus stuff for Ada types.
1872 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1873 Error out if these routines are called with an Ada type.
1874 (read_structure_type, read_array_type, read_subrange_type):
1875 Add call to set_descriptive_type.
1876 (set_die_type): Initialize the gnat-specific data if necessary.
1877 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1878 New functions.
1879 * ada-lang.c (decode_constrained_packed_array_type): Use
1880 decode_constrained_packed_array_type instead of doing a standard
1881 lookup to locate a parallel type.
1882 (find_parallel_type_by_descriptive_type): New function.
1883 (ada_find_parallel_type_with_name): New function.
1884 (ada_find_parallel_type): Reimplement using
1885 ada_find_parallel_type_with_name.
1886 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1887 to check if type has a cplus stuff.
1888 * linespec.c (total_number_of_methods): Likewise.
1889 * mdebugread.c (new_type): Likewise.
1890
b0f02ee9
JK
18912010-01-11 Jan Kratochvil <[email protected]>
1892
1893 * NEWS: Document the 0b binary number prefix parsing.
1894
b260e109
JK
18952010-01-11 Jan Kratochvil <[email protected]>
1896
1897 * objfiles.c (objfile_relocate1): Change the return type to int.
1898 Describe the new return value. Return non-zero if data changed.
1899 (objfile_relocate): New variable changed. Set it. Call
1900 breakpoint_re_set depending on CHANGED.
1901
b5cfddf5
JK
19022010-01-11 Jan Kratochvil <[email protected]>
1903
1904 Implement binary numbers parsing.
1905 * c-exp.y (parse_number): New case 'b' and 'B'.
1906
e0ae4240
JK
19072010-01-11 Jan Kratochvil <[email protected]>
1908 Tristan Gingold <[email protected]>
1909
1910 * solib.c (info_sharedlibrary_command): Replace
1911 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1912 objfile_has_symbols.
1913
6e0e5977
JB
19142010-01-10 Joel Brobecker <[email protected]>
1915
1916 * NEWS: Document the improvements made to the mips-irix port.
1917
7348c5e1
JB
19182010-01-09 Joel Brobecker <[email protected]>
1919
1920 Fix the documentation of valprint.c:value_print.
1921 * valprint.c (value_print): Update the function description to
1922 mention that the syntax of the output follows the current_language,
1923 not necessarily C.
1924
567995e1
JK
19252010-01-09 Jan Kratochvil <[email protected]>
1926
1927 Fix displacement of separate debug info files.
1928 * objfiles.c (objfile_relocate): Rename to ...
1929 (objfile_relocate1): ... here and make it static. Extend the comment.
1930 (objfile_relocate): New function.
1931 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1932 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1933 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1934 allocated using alloca.
1935 * symfile.c (copy_section_addr_info): Remove.
1936 (build_section_addr_info_from_objfile): Make it global. New variables
1937 addr_bit and mask, use them.
1938 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1939 (copy_section_addr_info): Remove.
1940
6d8eadbd
JB
19412010-01-09 Joel Brobecker <[email protected]>
1942
1943 Signal unwinder for mips-irix N32.
1944 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1945 tramp-frame.h.
1946 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1947 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1948 (SIGCONTEXT_LO_OFF): New macros.
1949 (mips_irix_n32_tramp_frame_init): New function.
1950 (mips_irix_n32_tramp_frame): New static constant.
1951 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1952
27087a3d
JB
19532010-01-09 Joel Brobecker <[email protected]>
1954
1955 Breakpoint in shared library does not work on mips-irix.
1956 * procfs.c: #include "observer.h".
1957 (procfs_inferior_created): New function, moving here the code
1958 which unsets the syssgi syscall-exit notifications.
1959 (procfs_create_inferior): Remove the code which unsets the syssgi
1960 syscall-exit notifications. It is too early to do this here.
1961 (_initialize_procfs): Attach the procfs_inferior_created observer.
1962
f08877ba
JB
19632010-01-09 Joel Brobecker <[email protected]>
1964
1965 Wrong return convention for arrays (mips-irix).
1966 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1967 128 bits or smaller are returned the same way as structs
1968 and unions of the the same size.
1969
e4b97d48
JB
19702010-01-09 Joel Brobecker <[email protected]>
1971
1972 Cannot set the PC on mips-irix.
1973 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1974 register number, no the cooked one.
1975
11377e68
JB
19762010-01-09 Joel Brobecker <[email protected]>
1977
1978 Error while loading core file on mips-irix.
1979 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1980 if debugging from a core file.
1981
b2391021
JB
19822010-01-09 Joel Brobecker <[email protected]>
1983
1984 GDB hangs when attaching to process on mips-irix.
1985 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1986 attaching to a process.
1987
f2ec0ecf
JB
19882010-01-09 Joel Brobecker <[email protected]>
1989
1990 Use the correct breakpoint instruction on mips-irix.
1991 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1992 containing the correct breakpoint instruction to use on mips-irix.
1993 Use it when the osabi is GDB_OSABI_IRIX.
1994
3c95f01c
JB
19952010-01-09 Joel Brobecker <[email protected]>
1996
1997 -Wunused warning in procfs.c (mips-irix only).
1998 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1999 throughout instead of using praddset and prdelset respectively.
2000
4b7703ad
JB
20012010-01-09 Joel Brobecker <[email protected]>
2002
2003 GDB crash while stepping into function.
2004 * infrun.c (handle_inferior_event): Refetch the current frame
2005 after handling what.main_action, in case that pointer became
2006 dangling.
2007
12c89474
JB
20082010-01-09 Joel Brobecker <[email protected]>
2009
2010 Fix build failure of solaris-hosted cross debuggers.
2011 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2012
1a3fd262 20132010-01-09 Daniel Gutson <[email protected]>
4c490650
JB
2014
2015 Fix build failure on sparc-solaris.
2016 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2017
75242ef4
JK
20182010-01-08 Jan Kratochvil <[email protected]>
2019
2020 Move some symfile code into subroutines.
2021 * symfile.h (relative_addr_info_to_section_offsets)
2022 (addr_info_make_relative): New prototypes.
2023 * symfile.c (default_symfile_offsets): Move a part to ...
2024 (relative_addr_info_to_section_offsets): ... this new function.
2025 (default_symfile_offsets): Call it.
2026 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2027 this part to ...
2028 (addr_info_make_relative): ... this new function.
2029
268a4a75
JK
20302010-01-08 Jan Kratochvil <[email protected]>
2031
2032 Add from_tty to solib_create_inferior_hook.
2033 * infcmd.c (post_create_inferior): Move solib_add after
2034 solib_create_inferior_hook. Pass from_tty to
2035 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2036 0 from_tty and comment why.
2037 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2038 * linux-nat.c (linux_child_follow_fork): Likewise.
2039 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2040 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2041 from_tty.
2042 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2043 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2044 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2045 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2046 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2047 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2048 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2049 Pass it to svr4_so_ops.solib_create_inferior_hook.
2050 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2051 from_tty.
2052 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2053 solib_add.
2054 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2055 enable_break.
2056 * solib-target.c (solib_target_solib_create_inferior_hook): New
2057 parameter from_tty.
2058 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2059 it to ops->solib_create_inferior_hook.
2060 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2061 Move solib_add after solib_create_inferior_hook, call it now with
2062 from_tty as 0. New comment there.
2063 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2064 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2065 Likewise.
2066
cf00dfa7
VP
20672010-01-08 Vladimir Prus <[email protected]>
2068
2069 Fix multiexec race.
2070 * infrun.c (handle_inferior_event): Use get_thread_regcache
2071 with events ptid, not get_current_regcache.
2072
f91e5ac3
JB
20732009-01-08 Joel Brobecker <[email protected]>
2074
2075 GDB crash with empty executable name (MinGW).
2076 * source.c (openp): Add assert that parameter string is not NULL.
2077 if parameter string is an empty string, then return with a failure
2078 immediately.
2079
92b9ce5b
JB
20802009-01-08 Joel Brobecker <[email protected]>
2081
2082 Get rid of support for VAX Floats.
2083 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2084 (ada_vax_float_print_function): Delete.
2085 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2086 (ada_vax_float_print_function): Delete.
2087 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2088 (ada_print_type): Remove support for VAX floats.
2089 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2090
268a4a75 20912010-01-08 Jan Kratochvil <[email protected]>
d24d8548
JK
2092
2093 * stabsread.c (read_args): Handle zero arguments.
2094
f0f20949
JB
20952009-01-08 Joel Brobecker <[email protected]>
2096
2097 Cannot find in-tree libiconv.a after reconfigure.
2098 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2099 that we can use, then cache the path to this archive.
2100 * configure: Regenerate.
2101
6b6218c5
SS
21022010-01-07 Stan Shebs <[email protected]>
2103
35b1e5cc
SS
2104 Make tracepoint operations go through target vector.
2105 * target.h (enum trace_find_type): New enum.
2106 (struct target_ops): New fields to_trace_init,
2107 to_download_tracepoint, to_download_trace_state_variable,
2108 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2109 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2110 to_set_disconnected_tracing.
2111 (target_trace_init): New macro.
2112 (target_download_tracepoint): New macro.
2113 (target_download_trace_state_variable): New macro.
2114 (target_trace_start): New macro.
2115 (target_trace_set_readonly_regions): New macro.
2116 (target_get_trace_status): New macro.
2117 (target_trace_stop): New macro.
2118 (target_trace_find): New macro.
2119 (target_get_trace_state_variable_value): New macro.
2120 (target_set_disconnected_tracing): New macro.
2121 * target.c (update_current_target): Inherit and set defaults for
2122 tracepoint operations.
2123 * tracepoint.c (default_collect): Make globally visible.
2124 (target_is_remote): Remove, along with all calls.
2125 (tvariables_info): Call target_get_trace_state_variable_value.
2126 (remote_set_transparent_ranges): Remove.
2127 (trace_start_command): Call target_trace_init,
2128 target_download_tracepoint, etc.
2129 (download_tracepoint): Remove.
2130 (trace_stop_command): Simplify.
2131 (stop_tracing): Call target_trace_stop.
2132 (get_trace_status): Call target_get_trace_status.
2133 (trace_status_command): Add case for targets that cannot trace.
2134 (finish_tfind_command): Change to take numerical arguments, call
2135 target_trace_find.
2136 (trace_find_command): Update call to finish_tfind_command.
2137 (trace_find_pc_command): Ditto.
2138 (trace_find_tracepoint_command): Ditto.
2139 (trace_find_line_command): Ditto.
2140 (trace_find_range_command): Ditto.
2141 (trace_find_outside_command): Ditto.
2142 (set_disconnected_tracing_value): Call
2143 target_set_disconnected_tracing.
2144 * remote.c: Add protocol encoding bits from tracepoint.c.
2145 (trace_error): Move from tracepoint.c.
2146 (remote_get_noisy_reply): Ditto.
2147 (free_actions_list_cleanup_wrapper): Ditto.
2148 (free_actions_list): Ditto.
2149 (remote_trace_init): New function.
2150 (remote_download_tracepoint): New function.
2151 (remote_download_trace_state_variable): New function.
2152 (remote_trace_set_readonly_regions): New function.
2153 (remote_trace_start): New function.
2154 (remote_get_trace_status): New function.
2155 (remote_trace_stop): New function.
2156 (remote_trace_find): New function.
2157 (remote_download_trace_state_variable): New function.
2158 (remote_set_disconnected_tracing): New function.
2159 (init_remote_ops): Add tracepoint operations.
2160
6b6218c5
SS
2161 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
2162
089b4803
TG
21632010-01-07 Tristan Gingold <[email protected]>
2164
2165 * symfile.c (build_section_addr_info_from_objfile): New function.
2166 (symbol_file_add_separate): Don't use offsets from objfile but
2167 built an addr info.
2168
d5551862
SS
21692010-01-06 Stan Shebs <[email protected]>
2170
2171 Support disconnected tracing.
2172 * infcmd.c (detach_command): Ask whether to stop tracing.
2173 * cli/cli-cmds.c (quit_command): Ditto.
2174 * breakpoint.h (struct breakpoint): New field number_on_target.
2175 * breakpoint.c (create_tracepoint_from_upload): New function.
2176 (get_tracepoint_by_number_on_target): New function.
2177 * remote.c (struct remote): New field disconnected_tracing.
2178 (remote_disconnected_tracing_feature): New function.
2179 (remote_protocol_features): Add DisconnectedTracing.
2180 (struct uploaded_tp): New struct.
2181 (uploaded_tps): New global.
2182 (get_uploaded_tp): New function.
2183 (find_matching_tracepoint): New function.
2184 (remote_get_tracing_state): New function.
2185 (remote_start_remote): Call it.
2186 * tracepoint.c (disconnected_tracing): New global.
2187 (trace_start_command): Initialize number_on_target.
2188 (stop_tracing): New function, split out from...
2189 (trace_stop_command): Call stop_tracing.
2190 (get_trace_status): New function, split out from...
2191 (trace_status_command): Call get_trace_status, add info on
2192 disconnection behavior.
2193 (disconnect_or_stop_tracing): New function.
2194 (finish_tfind_command): Translate from number on target.
2195 (trace_find_tracepoint_command): Translate to number on target.
2196 (send_disconnected_tracing_value): New function.
2197 (set_disconnected_tracing): New function.
2198 (_initialize_tracepoint): Add disconnected-tracing variable.
2199 * NEWS: Mention disconnected tracing.
2200
15d123c9
TG
22012010-01-06 Tristan Gingold <[email protected]>
2202
2203 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2204 parameter to main_objfile. Iterate on all separate debug objfiles.
2205 * symfile.h (symbol_file_add_separate)
2206 (find_separate_debug_file_by_debuglink): Remove parameter names.
2207 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2208 (reread_symbols): Use free_objfile_separate_debug.
2209 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2210 Adjust comment.
2211 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2212 (free_objfile_separate_debug): New prototypes.
2213 * objfiles.c (objfile_separate_debug_iterate): New function.
2214 (add_separate_debug_objfile, free_objfile_separate_debug): New
2215 functions.
2216 (free_objfile): Use free_objfile_separate_debug. Adjust for
2217 multiple separate debug objfile.
2218 (objfile_has_symbols): Adjust comment. Iterate on all separate
2219 debug objfiles.
2220 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2221 debug objfile.
2222 (lookup_minimal_symbol_text): Ditto.
2223 (lookup_minimal_symbol_by_pc_name): Ditto.
2224 (lookup_minimal_symbol_solib_trampoline): Ditto.
2225 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2226 debug objfiles.
2227
7a697b8d
SS
22282010-01-05 Stan Shebs <[email protected]>
2229
2230 Add fast tracepoints.
2231 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2232 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2233 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2234 * breakpoint.c (tracepoint_type): New function.
2235 (ALL_TRACEPOINTS): Use it.
2236 (should_be_inserted): Ditto.
2237 (bpstat_check_location): Ditto.
2238 (print_one_breakpoint_location): Ditto.
2239 (user_settable_breakpoint): Ditto.
2240 (set_breakpoint_location_function): Ditto.
2241 (disable_breakpoints_in_shlibs): Ditto.
2242 (delete_trace_command): Ditto.
2243 (print_it_typical): Add bp_fast_tracepoint case.
2244 (bpstat_what): Ditto.
2245 (print_one_breakpoint_location): Ditto.
2246 (allocate_bp_location): Ditto.
2247 (mention): Ditto.
2248 (breakpoint_re_set_one): Ditto.
2249 (disable_command): Ditto.
2250 (enable_command): Ditto.
2251 (check_fast_tracepoint_sals): New function.
2252 (break_command_really): Call it.
2253 (ftrace_command): New function.
2254 (_initialize_breakpoint): Add ftrace command.
2255 * gdbarch.sh (fast_tracepoint_valid_at): New.
2256 * gdbarch.h, gdbarch.c: Regenerate.
2257 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2258 (i386_gdbarch_init): Use it.
2259 * remote.c (struct remote_state): New field fast_tracepoints.
2260 (PACKET_FastTracepoints): New packet config type.
2261 (remote_fast_tracepoint_feature): New function.
2262 (remote_protocol_features): Add FastTracepoints.
2263 (remote_supports_fast_tracepoints): New function.
2264 (_initialize_remote): Add FastTracepoints.
2265 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2266 * NEWS: Mention fast tracepoints.
2267
737a160e
JB
22682010-01-06 Joel Brobecker <[email protected]>
2269
2270 * gdb-gdb.py: New file.
2271
ce6cca6d
MS
22722010-01-05 Michael Snyder <[email protected]>
2273
2274 * infrun.c (handle_inferior_event): Fix typo in comment.
2275
0d15807d
JK
22762010-01-05 Jan Kratochvil <[email protected]>
2277
2278 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2279
7803799a
UW
22802010-01-04 Ulrich Weigand <[email protected]>
2281
2282 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2283 and s390x-linux64.
2284 (s390-linux32-expedite): Define.
2285 (s390-linux64-expedite): Define.
2286 (s390x-linux64-expedite): Define.
2287 * features/s390-acr.xml: New file.
2288 * features/s390-fpr.xml: New file.
2289 * features/s390-core32.xml: New file.
2290 * features/s390-core64.xml: New file.
2291 * features/s390x-core64.xml: New file.
2292 * features/s390-linux32.xml: New file.
2293 * features/s390-linux64.xml: New file.
2294 * features/s390x-linux64.xml: New file.
2295 * features/s390-linux32.c: New generated file.
2296 * features/s390-linux64.c: New generated file.
2297 * features/s390x-linux64.c: New generated file.
2298
2299 * regformats/s390-linux32.dat: New generated file.
2300 * regformats/s390-linux64.dat: New generated file.
2301 * regformats/s390x-linux64.dat: New generated file.
2302 * regformats/reg-s390.dat: Remove.
2303 * regformats/reg-s390x.dat: Remove.
2304
2305 * s390-nat.c: Include "auxv.h" and <elf.h>.
2306 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2307 (s390_target_wordsize): New function.
2308 (s390_auxv_parse): Likewise.
2309 (s390_get_hwcap): Likewise.
2310 (s390_read_description): Likewise.
2311 (_initialize_s390_nat): Install s390_auxv_parse and
2312 s390_read_description.
2313
2314 * s390-tdep.c: Include "features/s390-linux32.c",
2315 "features/s390-linux64.c", and "features/s390x-linux64.c".
2316 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2317 (s390_register_call_saved): New function.
2318 (s390_register_name): Remove.
2319 (s390_register_type): Remove.
2320 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2321 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2322 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2323 (s390_pseudo_register_name): New function.
2324 (s390_pseudo_register_type): New function.
2325 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2326 Handle full GPR pesudos and varying pseudo register numbers.
2327 (s390_pseudo_register_write): Likewise
2328 (s390x_pseudo_register_read): Remove.
2329 (s390x_pseudo_register_write): Likewise.
2330 (s390_register_group): Remove.
2331 (s390_pseudo_register_group): New function.
2332 (s390_regmap_gregset): Add GPR upper halves.
2333 (s390x_regmap_gregset): Likewise.
2334 (s390_regmap_fpregset): Likewise.
2335 (s390_regmap_upper): New global variable.
2336 (s390_upper_regset): New global variable.
2337 (s390_upper_regset_sections): New global variable.
2338 (s390_regset_from_core_section): Handle GPR upper halves.
2339 (s390_core_read_description): New function.
2340 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2341 register information. Handle varying pseudo register numbers.
2342 (s390_backchain_frame_unwind_cache): Likewise.
2343 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2344 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2345 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2346 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2347 Handle varying pseudo register numbers.
2348 (s390_unwind_pc): Handle varying pseudo register numbers.
2349 (s390_dwarf2_prev_register): New function.
2350 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2351 register information. Handle varying pseudo register numbers.
2352 Install s390_dwarf2_prev_register to unwind full GPRs.
2353 (s390_gdbarch_init): Handle target descriptions. Assign varying
2354 pseudo register numbers. Install s390_adjust_frame_regnum.
2355 (_initialize_s390_tdep): Initialize target descriptions.
2356
2357 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2358 (S390_NUM_REGS): Redefine to include upper half registers.
2359 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2360 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2361 (tdesc_s390_linux32): Add declaration.
2362 (tdesc_s390_linux64): Likewise.
2363 (tdesc_s390x_linux64): Likewise.
2364
1b1818e4
UW
23652010-01-04 Ulrich Weigand <[email protected]>
2366
2367 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2368 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2369 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2370 (ppc_linux_vmx_regset_sections): Likewise.
2371 (ppc_linux_fp_regset_sections): Likewise.
2372
2373 * corelow.c (get_core_register_section): Constify arguments.
2374 (get_core_registers): Use gdbarch_core_regset_sections instead
2375 of hard-coded platform-specific register section names.
2376
dcbf108f
UW
23772010-01-04 Ulrich Weigand <[email protected]>
2378
2379 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 2380 a register, assume the least-significant part is used.
dcbf108f
UW
2381 (write_pieced_value): Likewise.
2382
704e9165
UW
23832010-01-04 Ulrich Weigand <[email protected]>
2384
2385 * printcmd.c: Include "arch-utils.h".
2386 (do_one_display): Re-parse expression if current architecture changed.
2387
c54eabfa
JK
23882010-01-03 Jan Kratochvil <[email protected]>
2389 Joel Brobecker <[email protected]>
2390
2391 * gdbtypes.c (check_typedef): New comment on type length.
2392 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2393 comment on type length.
2394 (value_primitive_field): Keep the original TYPE value, new comment.
2395
50cb2941
JK
23962010-01-01 Jan Kratochvil <[email protected]>
2397
2398 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2399 p_start. Change != comparisons to > and < comparisons.
2400
be66db07
JK
24012010-01-01 Jan Kratochvil <[email protected]>
2402
2403 * cli/cli-script.c (process_next_line): Check P2 overrun.
2404
abd775ce
JB
24052009-01-01 Joel Brobecker <[email protected]>
2406
2407 Update the copyright hearder to add year 2010 for most GDB files.
2408
6479260d
JB
24092009-01-01 Joel Brobecker <[email protected]>
2410
2411 Fix build failure in inf-ptrace.c.
2412 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2413
4a70f654
JB
24142010-01-01 Joel Brobecker <[email protected]>
2415
2416 * top.c (print_gdb_version): Update copyright year.
2417
b9ee2233
JB
24182010-01-01 Joel Brobecker <[email protected]>
2419
2420 Fix break *FUN'address thread NUM.
2421 * ada-lex.l (task): Expand rule to also match the thread keyword.
2422
70575d34
JB
24232010-01-01 Joel Brobecker <[email protected]>
2424
2425 Fix break *FUN'address task NUM.
2426 * ada-lex.l (task): New rule.
2427 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2428 been built before using it.
2429
e1e4d4a4 2430For older changes see ChangeLog-2009.
c906108c
SS
2431\f
2432Local Variables:
2433mode: change-log
2434left-margin: 8
2435fill-column: 74
2436version-control: never
57da7796 2437coding: utf-8
c906108c 2438End:
This page took 2.648552 seconds and 4 git commands to generate.