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