]>
Commit | Line | Data |
---|---|---|
be52b756 L |
1 | 2010-02-03 H.J. Lu <[email protected]> |
2 | ||
3 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
4 | ||
9c3c02fd TT |
5 | 2010-02-02 Tom Tromey <[email protected]> |
6 | ||
7 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
8 | type. | |
9 | ||
f23f4c59 TT |
10 | 2010-02-02 Tom Tromey <[email protected]> |
11 | ||
12 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
13 | (gnuv2_baseclass_offset): Now static. | |
14 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
15 | * gnu-v2-abi.h: Remove. | |
16 | ||
0cc2414c TT |
17 | 2010-02-02 Tom Tromey <[email protected]> |
18 | ||
19 | * m2-typeprint.c (m2_record_fields): Don't use | |
20 | TYPE_DECLARED_TYPE. | |
21 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
22 | (struct main_type) <flag_declared_class>: New field. | |
23 | (struct cplus_struct_type) <declared_type>: Remove. | |
24 | <ntemplate_args>: Move earlier. | |
25 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
26 | (DECLARED_TYPE_TEMPLATE): Remove. | |
27 | (TYPE_DECLARED_TYPE): Remove. | |
28 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
29 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
30 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
31 | TYPE_DECLARED_TYPE. | |
32 | ||
edf3d5f3 TT |
33 | 2010-02-02 Tom Tromey <[email protected]> |
34 | ||
35 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
36 | * valops.c (search_struct_field): Compute nbases after calling | |
37 | CHECK_TYPEDEF. | |
38 | (check_field): Call CHECK_TYPEDEF. | |
39 | * cp-valprint.c (cp_print_value): Pass correct address to | |
40 | baseclass_offset. Fix check for virtual base past the end of the | |
41 | object. Don't offset address passed to cp_print_value_fields or | |
42 | apply_val_pretty_printer. | |
43 | (cp_print_value_fields): Fix call to val_print. | |
44 | (cp_print_value_fields_rtti): New function. | |
45 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
46 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
47 | val_print. | |
48 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
49 | offset to address. | |
50 | * language.h (struct language_defn) <la_val_print>: Document. | |
51 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
52 | ||
e4b7f41c JK |
53 | 2010-02-01 Jan Kratochvil <[email protected]> |
54 | ||
55 | PR libc/11214: | |
56 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
57 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
58 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
59 | ||
7618e12b DJ |
60 | 2010-02-01 Michael Matz <[email protected]> |
61 | Daniel Jacobowitz <[email protected]> | |
62 | ||
e4b7f41c | 63 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
64 | functions use a frame pointer. |
65 | ||
b381ea14 JK |
66 | 2010-02-01 Jan Kratochvil <[email protected]> |
67 | ||
68 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
69 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
70 | * config/djgpp/fnchange.lst: Add translations for | |
71 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
72 | ||
0e05dfcb DJ |
73 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
74 | ||
75 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
76 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
77 | * gdbarch.c: Regenerated. | |
78 | ||
f9d67f43 DJ |
79 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
80 | ||
81 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
82 | arm_pc_is_thumb. | |
83 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
84 | (extend_buffer_earlier): New function. | |
85 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
86 | (arm_adjust_breakpoint_address): New function. | |
87 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
88 | ||
177321bd DJ |
89 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
90 | ||
91 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
92 | (arm_linux_thumb2_le_breakpoint): New constants. | |
93 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
94 | thumb2_breakpoint_size. | |
95 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
96 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
97 | Implement support for single stepping through IT blocks if | |
98 | a 32-bit Thumb breakpoint instruction is available. | |
99 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
100 | is available, use it when needed. | |
101 | (arm_remote_breakpoint_from_pc): New function. | |
102 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
103 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
104 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
105 | ||
a1dcb23a DJ |
106 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
107 | ||
108 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
109 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
110 | * gdbarch.c, gdbarch.h: Regenerated. | |
111 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
112 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
113 | gdbarch_remote_breakpoint_from_pc. | |
114 | ||
2b009048 DJ |
115 | 2010-01-29 Daniel Jacobowitz <[email protected]> |
116 | ||
117 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
118 | match a breakpoint. | |
119 | (handle_inferior_event): Move the check for unusual breakpoint | |
120 | signals earlier. | |
121 | ||
e4e2711a JB |
122 | 2010-01-29 Paul Hilfinger <[email protected]> |
123 | ||
124 | amd64 - function returning record with field straddling 2 registers. | |
125 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
126 | a record of length <= 16 in which a field straddles the two | |
127 | eightbytes. | |
128 | ||
cba6fab5 JB |
129 | 2010-01-29 Joel Brobecker <[email protected]> |
130 | ||
131 | Implement return values on amd64-windows. | |
132 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
133 | (amd64_windows_return_value): New function. | |
134 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
135 | amd64_windows_return_value. | |
136 | ||
3af6ddfe JB |
137 | 2010-01-29 Joel Brobecker <[email protected]> |
138 | ||
139 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 140 | parameter registers. |
3af6ddfe JB |
141 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
142 | integer_param_regs_saved_in_caller_frame. | |
143 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
144 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
145 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
146 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
147 | ||
80d19a06 JB |
148 | 2010-01-29 Joel Brobecker <[email protected]> |
149 | ||
150 | amd64-windows: memory args passed by pointer during function calls. | |
151 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
152 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
153 | where tdep->memory_args_by_pointer is non-zero. | |
154 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
155 | tdep->memory_args_by_pointer to 1. | |
156 | ||
ba581dc1 JB |
157 | 2010-01-29 Joel Brobecker <[email protected]> |
158 | ||
4966b6c2 | 159 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
160 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
161 | amd64-tdep.c. | |
162 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
163 | call_dummy_integer_regs, and classify. | |
164 | * amd64-tdep.h (amd64_classify): Add declaration. | |
165 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
166 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
167 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
168 | Replace call to amd64_classify by call to tdep->classify. | |
169 | (amd64_push_arguments): Get the list of registers to use for | |
170 | passing integer parameters from the gdbarch tdep structure, | |
171 | rather than using a hardcoded one. Replace calls to amd64_classify | |
172 | by calls to tdep->classify. | |
173 | (amd64_push_dummy_call): Get the register number used for | |
174 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
175 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
176 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
177 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
178 | (amd64_windows_dummy_call_integer_regs): New static global. | |
179 | (amd64_windows_classify): New function. | |
180 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
181 | tdep->call_dummy_integer_regs and tdep->classify. | |
182 | ||
d37346f0 DJ |
183 | 2010-01-28 Daniel Jacobowitz <[email protected]> |
184 | ||
185 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
186 | for the new regcache. All callers updated. | |
187 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
188 | (get_thread_arch_regcache): Do not set aspace here. | |
189 | * regcache.h (regcache_xmalloc): Update declaration. | |
190 | ||
191 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
192 | regcache_xmalloc updated. | |
193 | ||
7434dadd JB |
194 | 2010-01-28 Joel Brobecker <[email protected]> |
195 | ||
196 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
197 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
198 | Only define if SYS_syssgi is defined. | |
199 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
200 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
201 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
202 | is itself defined. | |
203 | ||
16d905e2 CF |
204 | 2010-01-27 Christopher Faylor <[email protected]> |
205 | ||
206 | * windows-nat.c (windows_initialization_done): New variable. | |
207 | (get_windows_debug_event): Issue error when process dies before | |
208 | completely initializing. | |
209 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
210 | the initial steps of attaching to the child. | |
211 | ||
cd55e50f JK |
212 | 2010-01-27 Jan Kratochvil <[email protected]> |
213 | ||
214 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
215 | ||
99cc78aa DE |
216 | 2010-01-27 Doug Evans <[email protected]> |
217 | ||
4c7dcb84 DE |
218 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
219 | ||
99cc78aa DE |
220 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
221 | ||
52334bf5 JK |
222 | 2010-01-27 Jan Kratochvil <[email protected]> |
223 | ||
224 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
225 | objfile via SYMBOL_SYMTAB. | |
226 | ||
708ead4e TT |
227 | 2010-01-26 Tom Tromey <[email protected]> |
228 | ||
229 | PR exp/7643: | |
230 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
231 | coerce_array on result. | |
232 | ||
b14e635e SW |
233 | 2010-01-26 Sami Wagiaalla <[email protected]> |
234 | ||
235 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
236 | search_parent argument. | |
237 | (cp_add_using): Initialize 'searched' field. | |
238 | (reset_directive_searched): New function. | |
239 | * cp-support.h: Add 'searched' field to using_direct struct. | |
240 | (cp_lookup_symbol_imports): Ditto. | |
241 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
242 | Perform recursive search. | |
243 | Implement non parent search. | |
244 | * valops.c (value_maybe_namespace_elt): Updated. | |
245 | ||
8540c487 SW |
246 | 2010-01-26 Sami Wagiaalla <[email protected]> |
247 | ||
248 | PR gdb/10929: | |
249 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
250 | scopes which contain using directives even if they contain no | |
251 | declarations. | |
252 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
253 | la_lookup_symbol_nonlocal. | |
254 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
255 | cp_lookup_symbol_namespace. | |
256 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
257 | block level. | |
258 | (cp_lookup_symbol_imports): New function. | |
259 | (cp_lookup_symbol_in_namespace): New function. | |
260 | ||
421d5d99 TT |
261 | 2010-01-25 Tom Tromey <[email protected]> |
262 | ||
263 | PR gdb/11049: | |
264 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
265 | result. | |
266 | ||
6bcc772d RO |
267 | 2010-01-25 Rainer Orth <[email protected]> |
268 | ||
269 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
270 | Use test to check variables, prefix strings with x. | |
271 | * configure: Regenerate. | |
272 | ||
273 | * solib-osf.c (osf_current_sos): Initialize tail. | |
274 | ||
1c1238a5 TG |
275 | 2010-01-25 gingold <[email protected]> |
276 | ||
277 | * windows-nat.c (windows_continue): Use %x to print thread id. | |
278 | (get_windows_debug_event): Ditto. | |
279 | ||
0b92b5bb TT |
280 | 2010-01-22 Tom Tromey <[email protected]> |
281 | ||
282 | PR symtab/11199: | |
283 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
284 | type and arguments. Use smash_to_methodptr_type. | |
285 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
286 | later. | |
287 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
288 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
289 | (lookup_methodptr_type): Use it. | |
290 | ||
0d5392b8 TT |
291 | 2010-01-21 Tom Tromey <[email protected]> |
292 | ||
293 | PR symtab/11198: | |
294 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
295 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
296 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
297 | (glibc_skip_solib_resolver): Use | |
298 | lookup_minimal_symbol_and_objfile. | |
299 | ||
e6d088ec KT |
300 | 2010-01-21 Kai Tietz <[email protected]> |
301 | ||
302 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
303 | WIN32 targets. | |
304 | ||
b966cb8a TT |
305 | 2010-01-20 Tom Tromey <[email protected]> |
306 | ||
307 | PR backtrace/10770: | |
308 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
309 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
310 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
311 | dwarf_stack_values, not CORE_ADDRs. | |
312 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
313 | use signed operands. | |
314 | ||
3f81c18a VP |
315 | 2010-01-20 Vladimir Prus <[email protected]> |
316 | ||
317 | Per-inferior args and tty and environment. | |
318 | ||
319 | * infcmd.c (inferior_args): Rename to ... | |
320 | (inferior_args_scratch): ... this. | |
321 | (inferior_io_terminal): Rename to ... | |
322 | (inferior_io_terminal_scratch): ... this. | |
323 | (inferior_argc, inferior_argv): Remove. | |
324 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
325 | inside current_inferior(). | |
326 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
327 | (get_inferior_args, set_inferior_args): Store inside | |
328 | current_inferior(). | |
329 | (notice_args_set): Likewise and rename to... | |
330 | (set_args_command): ... this. | |
331 | (set_inferior_args_vector): Likewise. | |
332 | (notice_args_read): Rename to... | |
333 | (show_args_command): ...new. | |
334 | (tty_command): Remove. | |
335 | (run_command_1): Don't free old args, as they are freed by | |
336 | set_inferior_arg now. | |
337 | (run_no_args_command): Likewise. | |
338 | (inferior_environ): Remove. | |
339 | (run_command_1): Use environment of the current inferior. | |
340 | (environment_info, set_environment_command) | |
341 | (unset_environment_command, path_info, path_command): Likewise. | |
342 | (_initialize_infcmd): Adjust for function and variable renames. | |
343 | Do not init inferior_environ. | |
344 | * inferior.h (set_inferior_arg): Adjust prototype. | |
345 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
346 | (inferior_environ): Remove declaration. | |
347 | * inferior.c (free_inferior): Free new fields. | |
348 | (add_inferior_silent): Initialize 'environment' field. | |
349 | * main.c (captured_main): Set arguments only after the initial | |
350 | inferior has been created. Set set_inferior_io_terminal, | |
351 | not tty_command. | |
352 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
353 | inferior. | |
354 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
355 | inferior_environ. | |
356 | * solib.c (solib_find): Use environment of the current inferior. | |
357 | ||
d8b65138 JK |
358 | 2010-01-20 Jan Kratochvil <[email protected]> |
359 | ||
360 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
361 | HAVE_PYTHON. | |
362 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
363 | ||
692465f1 JB |
364 | 2010-01-20 Joel Brobecker <[email protected]> |
365 | ||
366 | Get rid of ada-lang.c:function_name_from_pc. | |
367 | * ada-lang.c: Add "stack.h" #include. | |
368 | (function_name_from_pc): Delete. | |
369 | (is_known_support_routine): Replace call to function_name_from_pc | |
370 | by call to find_frame_funname. | |
371 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
372 | ||
95519e0e TT |
373 | 2010-01-19 Tom Tromey <[email protected]> |
374 | ||
375 | PR c++/11026: | |
376 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
377 | objfile obstack. | |
378 | ||
95c11dc7 TT |
379 | 2010-01-19 Tom Tromey <[email protected]> |
380 | ||
381 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
382 | ||
a0f49112 JK |
383 | 2010-01-19 Jan Kratochvil <[email protected]> |
384 | ||
385 | * breakpoint.c (watchpoint_check): Check the call | |
386 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
387 | Extend the comment. | |
388 | * config/djgpp/fnchange.lst: Add translations for | |
389 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and | |
390 | watchpoint-cond-gone-stripped.c. | |
391 | ||
ceeb3d5a TT |
392 | 2010-01-19 Tom Tromey <[email protected]> |
393 | ||
394 | PR c++/8000: | |
395 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
396 | into parent scope, and enumerator into grandparent scope. | |
397 | ||
2b71fc8e JB |
398 | 2010-01-19 Joel Brobecker <[email protected]> |
399 | ||
400 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
401 | ||
03564ed9 JB |
402 | 2010-01-19 Joel Brobecker <[email protected]> |
403 | ||
404 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
405 | i[34567]86-*-solaris2.1[0-9]*. | |
406 | * configure.tgt: Likewise. | |
407 | ||
fb2e7cb4 JB |
408 | 2010-01-19 Joel Brobecker <[email protected]> |
409 | ||
410 | * NEWS: Document the source command enhancement allowing it | |
411 | to load Python scripts. Document the "set/show script-extension" | |
412 | commands. | |
413 | ||
1cb5e2a4 JB |
414 | 2010-01-19 Joel Brobecker <[email protected]> |
415 | ||
416 | Add -Wunused-function to compile flags. | |
417 | * configure.ac: Add -Wunused-function to build_warnings. | |
418 | * configure: Regenerate. | |
419 | ||
0ec6cd0c JB |
420 | 2010-01-19 Joel Brobecker <[email protected]> |
421 | ||
422 | "delete" ada-lex.c:input function, not used. | |
423 | * ada-lex.l: #define YY_NO_INPUT. | |
424 | ||
b74845da JB |
425 | 2010-01-19 Joel Brobecker <[email protected]> |
426 | ||
427 | Delete free_named_symtabs and associated cleanup. | |
428 | * symfile.h (free_named_symtabs): Delete declaration. | |
429 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
430 | (cashier_psymtab): Comment function out. | |
431 | Delete declaration. | |
432 | (free_named_symtabs): Delete. | |
433 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
434 | * dbxread.c (end_psymtab): Likewise. | |
435 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
436 | * exec.c (exec_close_1): Ditto. | |
437 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
438 | ||
65c06092 JB |
439 | 2010-01-19 Joel Brobecker <[email protected]> |
440 | ||
441 | * stack.c (print_block_frame_labels): Comment function out. | |
442 | ||
d5cd6034 JB |
443 | 2010-01-19 Joel Brobecker <[email protected]> |
444 | ||
445 | Delete unused or undefined functions. | |
446 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
447 | * dcache.c (dcache_write_line): Remove declaration. | |
448 | * infrun.c (build_infrun): Remove declaration. | |
449 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
450 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
451 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
452 | * infrun.c (init_execution_control_state): Delete. | |
453 | (proceed): Update comment to avoid mentioning | |
454 | init_execution_control_state. | |
455 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
456 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
457 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
458 | * cp-namespace.c (cp_copy_usings): Delete. | |
459 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
460 | * progspace.c (find_program_space_by_num): Delete. | |
461 | * inflow.c (handle_sigio): Delete declaration. | |
462 | * hppa-tdep.c (hppa_alignof): Delete. | |
463 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
464 | (mipsnbsd_core_osabi_sniffer): Delete. | |
465 | ||
4e8f195d TT |
466 | 2010-01-18 Tom Tromey <[email protected]> |
467 | ||
468 | PR c++/9680: | |
469 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
470 | (CONST_CAST): New tokens. | |
471 | (exp): Add new productions. | |
472 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
473 | reinterpret_cast. | |
474 | (is_cast_operator): New function. | |
475 | (yylex): Handle cast operators specially. | |
476 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
477 | UNOP_REINTERPRET_CAST>: New cases. | |
478 | * expprint.c (print_subexp_standard): Likewise. | |
479 | (op_name_standard): Likewise. | |
480 | (dump_subexp_body_standard): Likewise. | |
481 | * parse.c (operator_length_standard): Likewise. | |
482 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
483 | UNOP_REINTERPRET_CAST. | |
484 | * gdbtypes.c (class_types_same_p): New function. | |
485 | (is_ancestor): Use it. | |
486 | (is_public_ancestor): New function. | |
487 | (is_unique_ancestor_worker): Likewise. | |
488 | (is_unique_ancestor): Likewise. | |
489 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
490 | (is_unique_ancestor): Declare. | |
491 | * valops.c (value_reinterpret_cast): New function. | |
492 | (dynamic_cast_check_1): Likewise. | |
493 | (dynamic_cast_check_2): Likewise. | |
494 | (value_dynamic_cast): Likewise. | |
495 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
496 | ||
d9c57d9f JB |
497 | 2010-01-18 Joel Brobecker <[email protected]> |
498 | ||
499 | Fix build failure when building without Python support. | |
500 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
501 | is not defined. | |
502 | ||
f80d3ff2 JB |
503 | 2010-01-18 Joel Brobecker <[email protected]> |
504 | ||
505 | Use XVS field type instead of doing a parallel lookup. | |
506 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
507 | if it is a reference type instead of doing a type lookup using | |
508 | the XVS field name. | |
509 | ||
5bf03f13 JB |
510 | 2010-01-18 Joel Brobecker <[email protected]> |
511 | ||
512 | Trust PAD types instead of using PAD___XVS. | |
513 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
514 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
515 | parallel XVS type, follow the XVS type instead of the PAD type. | |
516 | (unwrap_value): Make sure that there is no parallel XVE type | |
517 | before returning the value as is. | |
518 | (set_ada_list, show_ada_list): New static variables. | |
519 | (set_ada_command, show_ada_command): New functions. | |
520 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
521 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
522 | ||
973817a3 JB |
523 | 2010-01-18 Tom Tromey <[email protected]> |
524 | Thiago Jung Bauermann <[email protected]> | |
525 | ||
526 | Allow "source" to load python scripts. | |
527 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
528 | * python/python.c (source_python_script): New function. | |
529 | * python/python.h (source_python_script): Add declaration. | |
530 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
531 | (script_ext_off, script_ext_soft, script_ext_strict) | |
532 | (script_ext_enums, script_ext_mode): New static constants. | |
533 | (show_script_ext_mode, find_and_open_script): New functions. | |
534 | (source_script): Enhance to handle Python scripts. | |
535 | (init_cli_cmds): Add set/show script-extension commands. | |
536 | ||
98e03262 SS |
537 | 2010-01-16 Stan Shebs <[email protected]> |
538 | ||
539 | * tracepoint.h (struct trace_status): Use unsigned long long | |
540 | instead of size_t. | |
541 | * tracepoint.c (trace_status_command): Fix printf directive. | |
542 | (trace_save_command): Check fwrite returns, fix printf directive. | |
543 | (trace_filename): New global. | |
544 | (tfile_open): Set it, check read returns. | |
545 | (tfile_close): Free trace_filename. | |
546 | (tfile_get_traceframe_address): Check read returns. | |
547 | (tfile_trace_find): Ditto. | |
548 | (tfile_fetch_registers): Ditto. | |
549 | (tfile_xfer_partial): Ditto. | |
550 | (tfile_get_trace_state_variable_value): Ditto. | |
551 | ||
00bf0b85 SS |
552 | 2010-01-15 Stan Shebs <[email protected]> |
553 | ||
554 | Add trace file support. | |
555 | * tracepoint.h (enum trace_stop_reason): New enum. | |
556 | (struct trace_status): New struct. | |
557 | (parse_trace_status): Declare. | |
558 | (struct uploaded_tp): Move here from remote.c, | |
559 | add fields for actions. | |
560 | (struct uploaded_tsv): New struct. | |
561 | * tracepoint.c (tfile_ops): New target vector. | |
562 | (trace_fd): New global. | |
563 | (tfile_open): New function. | |
564 | (tfile_close): New function. | |
565 | (tfile_files_info): New function. | |
566 | (tfile_get_trace_status): New function. | |
567 | (tfile_get_traceframe_address): New function. | |
568 | (tfile_trace_find): New function. | |
569 | (tfile_fetch_registers): New function. | |
570 | (tfile_xfer_partial): New function. | |
571 | (tfile_get_trace_state_variable_value): New function. | |
572 | (init_tfile_ops): New function. | |
573 | (_initialize_tracepoint): Call it, add tfile target. | |
574 | (trace_status): New global. | |
575 | (current_trace_status): New function. | |
576 | (trace_running_p): Remove, change all users to get from | |
577 | current_trace_status()->running. | |
578 | (get_trace_status): Remove. | |
579 | (trace_status_command): Call target_get_trace_status directly, | |
580 | report more detail including tracing stop reasons. | |
581 | (trace_find_command): Always allow tfind on a file. | |
582 | (trace_find_pc_command): Ditto. | |
583 | (trace_find_tracepoint_command): Ditto. | |
584 | (trace_find_line_command): Ditto. | |
585 | (trace_find_range_command): Ditto. | |
586 | (trace_find_outside_command): Ditto. | |
587 | (trace_frames_offset, cur_offset): Declare as off_t. | |
588 | (trace_regblock_size): Rename from reg_size, update users. | |
589 | (parse_trace_status): New function. | |
590 | (tfile_interp_line): New function. | |
591 | (disconnect_or_stop_tracing): Ensure current trace | |
592 | status before asking what to do. | |
593 | (stop_reason_names): New global. | |
594 | (trace_save_command): New command. | |
595 | (get_uploaded_tp): Move here from remote.c. | |
596 | (find_matching_tracepoint): Ditto. | |
597 | (merge_uploaded_tracepoints): New function. | |
598 | (parse_trace_status): Use stop_reason_names. | |
599 | (_initialize_tracepoint): Define tsave command. | |
600 | * target.h (target_ops): New fields to_save_trace_data, | |
601 | to_upload_tracepoints, to_upload_trace_state_variables, | |
602 | to_get_raw_trace_data, change to_get_trace_status | |
603 | to take a pointer to a status struct. | |
604 | (target_save_trace_data): New macro. | |
605 | (target_upload_tracepoints): New macro. | |
606 | (target_upload_trace_state_variables): New macro. | |
607 | (target_get_raw_trace_data): New macro. | |
608 | * target.c (update_current_target): Add new methods, change | |
609 | signature of to_get_trace_status. | |
610 | * remote.c (hex2bin): Make globally visible. | |
611 | (bin2hex): Ditto. | |
612 | (remote_download_trace_state_variable): Download name also. | |
613 | (remote_get_trace_status): Update parameter, use | |
614 | parse_trace_status. | |
615 | (remote_save_trace_data): New function. | |
616 | (remote_upload_tracepoints): New function. | |
617 | (remote_upload_trace_state_variables): New function. | |
618 | (remote_get_raw_trace_data): New function. | |
619 | (remote_start_remote): Use them. | |
620 | (_initialize_remote_ops): Add operations. | |
621 | * ax-gdb.c: Include breakpoint.h. | |
622 | * breakpoint.c (create_tracepoint_from_upload): Use | |
623 | break_command_really, return tracepoint, warn about unimplemented | |
624 | parts. | |
625 | * NEWS: Mention trace file addition. | |
626 | ||
d904de5b JK |
627 | 2010-01-15 Jan Kratochvil <[email protected]> |
628 | ||
629 | Fix compilation warning on gcc-3.4. | |
630 | * exec.c (print_section_info): Move the `displacement' variable | |
631 | initialization to its declaration. | |
632 | ||
64aa9731 JK |
633 | 2010-01-15 Jan Kratochvil <[email protected]> |
634 | ||
635 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
636 | comparison. | |
637 | ||
ca1f5def | 638 | 2010-01-15 Eric Botcazou <[email protected]> |
9f0dec2d JB |
639 | |
640 | "info tasks" broken by typedefs in ATCB type definitions. | |
641 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
642 | ada_check_typedef before retrieving the length of the type for | |
643 | regular fields. | |
644 | ||
12ab9e09 JB |
645 | 2010-01-15 Joel Brobecker <[email protected]> |
646 | ||
647 | Do not use name-based lookup for unconstrained packed arrays. | |
648 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
649 | Limit the fallback to name-based lookups to the case where | |
650 | the type is a constrained packed array. | |
651 | ||
c389c3dc JB |
652 | 2010-01-15 Joel Brobecker <[email protected]> |
653 | ||
654 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
655 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
656 | ||
7991dee7 JK |
657 | 2010-01-15 Jan Kratochvil <[email protected]> |
658 | ||
659 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
660 | * configure: Regenerate. | |
661 | * config.in: Regenerate. | |
662 | * utils.c: Include sys/resource.h. | |
663 | (dump_core, can_dump_core): New. | |
664 | (internal_vproblem): Update the comment. Check can_dump_core while | |
665 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
666 | ||
93c26624 JK |
667 | 2010-01-14 Jan Kratochvil <[email protected]> |
668 | Eli Zaretskii <[email protected]> | |
669 | ||
670 | * NEWS: Document the PIE support. | |
671 | ||
55235ad7 JK |
672 | 2010-01-14 Jan Kratochvil <[email protected]> |
673 | ||
674 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
675 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
676 | ||
41752192 JK |
677 | 2010-01-14 Jan Kratochvil <[email protected]> |
678 | ||
679 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
680 | Replace exec_entry_point call by bfd_get_start_address. | |
681 | ||
9f2982ff JK |
682 | 2010-01-14 Jan Kratochvil <[email protected]> |
683 | ||
684 | Support Valgrind attachments broken by the PIE support. | |
685 | * auxv.c: Include gdbcore.h. | |
686 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
687 | parameters ops, object and annex. Remove their assertions. | |
688 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
689 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
690 | (memory_xfer_auxv): ... here. | |
691 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
692 | memory_xfer_auxv. | |
693 | * procfs.c (procfs_xfer_partial): Likewise. | |
694 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
695 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
696 | (svr4_solib_create_inferior_hook): Conditionalize the | |
697 | svr4_relocate_main_executable call. | |
698 | ||
61f0d762 JK |
699 | 2010-01-14 Jan Kratochvil <[email protected]> |
700 | ||
701 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
702 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
703 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
704 | New variable abfd. | |
705 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
706 | of separate debug info file. | |
707 | ||
51bee8e9 JK |
708 | 2010-01-14 Jan Kratochvil <[email protected]> |
709 | ||
710 | Support PIEs with no symfile_objfile. | |
711 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
712 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
713 | ||
b8040f19 JK |
714 | 2010-01-14 Jan Kratochvil <[email protected]> |
715 | ||
716 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
717 | code part to ... | |
718 | (svr4_static_exec_displacement): ... a new function. | |
719 | (svr4_exec_displacement): New function. | |
720 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
721 | new_offsets using alloca now. Remove variable old_chain and changed. | |
722 | Call objfile_relocate unconditionally now. | |
723 | ||
eb90ce83 DE |
724 | 2010-01-14 Doug Evans <[email protected]> |
725 | ||
726 | * gdbtypes.c (arch_flags_type): Fix comment. | |
727 | * gdbtypes.h (arch_composite_type): Fix comment. | |
728 | ||
bdfed3bc TG |
729 | 2009-01-14 Tristan Gingold <[email protected]> |
730 | ||
731 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
732 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
733 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
734 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
735 | macho_add_oso_symfile. | |
736 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
737 | ||
1596ad23 JB |
738 | 2010-01-14 Joel Brobecker <[email protected]> |
739 | ||
740 | Tru64: Dead threads are never deleted. | |
741 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
742 | (dec_thread_count_gdb_threads): Fix counter increment. | |
743 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
744 | (resync_thread_list): Fix bug in deletion of dead threads that | |
745 | caused all threads to be deleted, instead of just the dead ones. | |
746 | ||
be759fcf PM |
747 | 2010-01-13 Phil Muldoon <[email protected]> |
748 | ||
749 | PR python/10705 | |
750 | ||
751 | * python/python-internal.h: Add lazy_string_object_type | |
752 | definition. | |
753 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
754 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
755 | * python/py-value.c (valpy_lazy_string): New function. | |
756 | (convert_value_from_python): Add lazy string conversion. | |
757 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
758 | return is also a lazy string. | |
759 | (print_string_repr): Add lazy string printing branch. | |
760 | (print_children): Likewise. | |
761 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
762 | * python/python.c (_initialize_python): Call | |
763 | gdbpy_initialize_lazy_string. | |
764 | * varobj.c (value_get_print_value): Add lazy string printing | |
765 | branch. Account for encoding. | |
766 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
767 | encoding is NULL, find encoding suited for type, otherwise use | |
768 | user encoding. | |
769 | * language.h (language_defn): Add encoding argument. | |
770 | (LA_PRINT_STRING): Likewise. | |
771 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
772 | argument to language_defn. | |
773 | * ada-lang.h (ada_printstr): Likewise. | |
774 | * c-lang.h (c_printstr): Likewise. | |
775 | * p-lang.h (pascal_printstr); | |
776 | * f-lang.c (f_printstr): Likewise. | |
777 | * m2-lang.c (m2_printstr): Likewise. | |
778 | * objc-lang.c (objc_printstr): Likewise. | |
779 | * p-lang.c (pascal_printstr): Likewise. | |
780 | * scm-lang.c (scm_printstr): Likewise. | |
781 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
782 | encoding argument. | |
783 | * ada-valprint.c (ada_printstr): Likewise. | |
784 | * f-valprint.c (f_val_print): Likewise | |
785 | * m2-valprint.c (m2_val_print): Likewise. | |
786 | * p-valprint.c (pascal_val_print): Likewise. | |
787 | * expprint.c (print_subexp_standard): Likewise. | |
788 | * valprint.c (val_print_string): Likewise. | |
789 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
790 | (SUBDIR_PYTHON_SRCS): Likewise. | |
791 | (py-lazy-string.o): New rule. | |
792 | ||
1fe72117 | 793 | 2010-01-13 Doug Evans <[email protected]> |
8eee9c5a DE |
794 | |
795 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
796 | uninitialized" warning from gcc on local `tree'. | |
797 | ||
dc146f7c VP |
798 | 2010-01-13 Vladimir Prus <[email protected]> |
799 | ||
800 | Implement core awareness. | |
801 | ||
802 | * bcache.c (compare_ints): Remove | |
803 | (print_percentage): Use compare_positive_ints. | |
804 | * defs.h (compare_positive_ints): Declare. | |
805 | * linux-nat.h (struct lin_lwp): New field core. | |
806 | (linux_nat_core_of_thread_1): Declare. | |
807 | * linux-nat.c (add_lwp): Init the 'core' field. | |
808 | (linux_nat_wait_1): Record the core. | |
809 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
810 | (linux_nat_add_target): Register the above. | |
811 | * linux-thread-db.c (update_thread_core): New. | |
812 | (thread_db_find_new_threads): Update core information for | |
813 | every thread. | |
814 | * remote.c (struct private_thread_info): New. | |
815 | (free_private_thread_info, demand_private_info): New. | |
816 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
817 | (struct thread_item, threads_parsing_context | |
818 | (start_thread, end_thread, thread_attributes) | |
819 | (thread_children, threads_children, threads_elements): New. | |
820 | (remote_threads_info): Try qXfer:threads before anything | |
821 | else. | |
822 | (remote_protocol_packets): Register qXfer:threads. | |
823 | (remote_open_1): Init use_osdata_threads. | |
824 | (struct stop_reply): New field 'core'. | |
825 | (remote_parse_stop_reply): Parse core number. | |
826 | (process_stop_reply): Record core number. | |
827 | (remote_xfer_partial): Handle qXfer:threads. | |
828 | (remote_core_of_thread): New. | |
829 | (init_remote_ops): Register remote_core_of_thread. | |
830 | (_initialize_remote): Register qXfer:read. | |
831 | * target.c (target_core_of_thread): New | |
832 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
833 | (struct target_ops): New field to_core_of_threads. | |
834 | (target_core_of_thread): Declare. | |
835 | * gdbthread.h (struct thread_info): New field private_dtor. | |
836 | * thread.c (print_thread_info): Report the core. | |
837 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
838 | * utils.c (compare_positive_ints): New. | |
839 | * features/threads.dtd: New. | |
840 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
841 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
842 | (do_nothing, free_vector_of_osdata_items) | |
843 | (splay_tree_int_comparator, free_splay_tree): New. | |
844 | (print_one_inferior_data): Implemented printing of selected | |
845 | inferiors. Collect and print cores. | |
846 | (output_cores): New. | |
847 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
848 | thread groups together with --available. | |
849 | ||
d30c5336 JK |
850 | 2010-01-12 Jan Kratochvil <[email protected]> |
851 | ||
852 | * configure: Regenerate (for _STRUCTURED_PROC). | |
853 | ||
02893727 JB |
854 | 2010-01-12 Joel Brobecker <[email protected]> |
855 | ||
856 | Delete dead function. | |
857 | * ada-lang.c (extract_string): Delete. No longer used. | |
858 | ||
46ed2d6f JB |
859 | 2010-01-12 Joel Brobecker <[email protected]> |
860 | ||
861 | Fix -Wunused warning in dec-thread.c. | |
862 | * dec-thread.c (dec_thread_count_gdb_threads) | |
863 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
864 | ||
606b8d1a JB |
865 | 2010-01-12 Joel Brobecker <[email protected]> |
866 | ||
867 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
868 | ||
b4ba55a1 JB |
869 | 2010-01-12 Joel Brobecker <[email protected]> |
870 | ||
871 | Add support for DW_AT_GNAT_descriptive_type. | |
872 | * gdbtypes.h (enum type_specific_kind): New enum. | |
873 | (struct main_type) [type_specific_field]: New component. | |
874 | [type_specific]: Add new component "gnat_stuff". | |
875 | (struct gnat_aux_type): New type. | |
876 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
877 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
878 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
879 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
880 | (TYPE_SPECIFIC_FIELD): New macros. | |
881 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
882 | type does not hold any cplus-specific data. | |
883 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
884 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
885 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
886 | cplus-specific data. | |
887 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
888 | Set new component TYPE_SPECIFIC_FIELD (type). | |
889 | (gnat_aux_default): New constant. | |
890 | (allocate_gnat_aux_type): New function. | |
891 | (init_type): Add initialization the type-specific stuff for | |
892 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
893 | (print_gnat_stuff): New function. | |
894 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
895 | specific data. Adjust code that prints the contents of the | |
896 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
897 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
898 | the type cplus stuff for Ada types. | |
899 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
900 | Error out if these routines are called with an Ada type. | |
901 | (read_structure_type, read_array_type, read_subrange_type): | |
902 | Add call to set_descriptive_type. | |
903 | (set_die_type): Initialize the gnat-specific data if necessary. | |
904 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
905 | New functions. | |
906 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
907 | decode_constrained_packed_array_type instead of doing a standard | |
908 | lookup to locate a parallel type. | |
909 | (find_parallel_type_by_descriptive_type): New function. | |
910 | (ada_find_parallel_type_with_name): New function. | |
911 | (ada_find_parallel_type): Reimplement using | |
912 | ada_find_parallel_type_with_name. | |
913 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
914 | to check if type has a cplus stuff. | |
915 | * linespec.c (total_number_of_methods): Likewise. | |
916 | * mdebugread.c (new_type): Likewise. | |
917 | ||
b0f02ee9 JK |
918 | 2010-01-11 Jan Kratochvil <[email protected]> |
919 | ||
920 | * NEWS: Document the 0b binary number prefix parsing. | |
921 | ||
b260e109 JK |
922 | 2010-01-11 Jan Kratochvil <[email protected]> |
923 | ||
924 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
925 | Describe the new return value. Return non-zero if data changed. | |
926 | (objfile_relocate): New variable changed. Set it. Call | |
927 | breakpoint_re_set depending on CHANGED. | |
928 | ||
b5cfddf5 JK |
929 | 2010-01-11 Jan Kratochvil <[email protected]> |
930 | ||
931 | Implement binary numbers parsing. | |
932 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
933 | ||
e0ae4240 JK |
934 | 2010-01-11 Jan Kratochvil <[email protected]> |
935 | Tristan Gingold <[email protected]> | |
936 | ||
937 | * solib.c (info_sharedlibrary_command): Replace | |
938 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
939 | objfile_has_symbols. | |
940 | ||
6e0e5977 JB |
941 | 2010-01-10 Joel Brobecker <[email protected]> |
942 | ||
943 | * NEWS: Document the improvements made to the mips-irix port. | |
944 | ||
7348c5e1 JB |
945 | 2010-01-09 Joel Brobecker <[email protected]> |
946 | ||
947 | Fix the documentation of valprint.c:value_print. | |
948 | * valprint.c (value_print): Update the function description to | |
949 | mention that the syntax of the output follows the current_language, | |
950 | not necessarily C. | |
951 | ||
567995e1 JK |
952 | 2010-01-09 Jan Kratochvil <[email protected]> |
953 | ||
954 | Fix displacement of separate debug info files. | |
955 | * objfiles.c (objfile_relocate): Rename to ... | |
956 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
957 | (objfile_relocate): New function. | |
958 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
959 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
960 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
961 | allocated using alloca. | |
962 | * symfile.c (copy_section_addr_info): Remove. | |
963 | (build_section_addr_info_from_objfile): Make it global. New variables | |
964 | addr_bit and mask, use them. | |
965 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
966 | (copy_section_addr_info): Remove. | |
967 | ||
6d8eadbd JB |
968 | 2010-01-09 Joel Brobecker <[email protected]> |
969 | ||
970 | Signal unwinder for mips-irix N32. | |
971 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
972 | tramp-frame.h. | |
973 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
974 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
975 | (SIGCONTEXT_LO_OFF): New macros. | |
976 | (mips_irix_n32_tramp_frame_init): New function. | |
977 | (mips_irix_n32_tramp_frame): New static constant. | |
978 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
979 | ||
27087a3d JB |
980 | 2010-01-09 Joel Brobecker <[email protected]> |
981 | ||
982 | Breakpoint in shared library does not work on mips-irix. | |
983 | * procfs.c: #include "observer.h". | |
984 | (procfs_inferior_created): New function, moving here the code | |
985 | which unsets the syssgi syscall-exit notifications. | |
986 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
987 | syscall-exit notifications. It is too early to do this here. | |
988 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
989 | ||
f08877ba JB |
990 | 2010-01-09 Joel Brobecker <[email protected]> |
991 | ||
992 | Wrong return convention for arrays (mips-irix). | |
993 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
994 | 128 bits or smaller are returned the same way as structs | |
995 | and unions of the the same size. | |
996 | ||
e4b97d48 JB |
997 | 2010-01-09 Joel Brobecker <[email protected]> |
998 | ||
999 | Cannot set the PC on mips-irix. | |
1000 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
1001 | register number, no the cooked one. | |
1002 | ||
11377e68 JB |
1003 | 2010-01-09 Joel Brobecker <[email protected]> |
1004 | ||
1005 | Error while loading core file on mips-irix. | |
1006 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
1007 | if debugging from a core file. | |
1008 | ||
b2391021 JB |
1009 | 2010-01-09 Joel Brobecker <[email protected]> |
1010 | ||
1011 | GDB hangs when attaching to process on mips-irix. | |
1012 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
1013 | attaching to a process. | |
1014 | ||
f2ec0ecf JB |
1015 | 2010-01-09 Joel Brobecker <[email protected]> |
1016 | ||
1017 | Use the correct breakpoint instruction on mips-irix. | |
1018 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
1019 | containing the correct breakpoint instruction to use on mips-irix. | |
1020 | Use it when the osabi is GDB_OSABI_IRIX. | |
1021 | ||
3c95f01c JB |
1022 | 2010-01-09 Joel Brobecker <[email protected]> |
1023 | ||
1024 | -Wunused warning in procfs.c (mips-irix only). | |
1025 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
1026 | throughout instead of using praddset and prdelset respectively. | |
1027 | ||
4b7703ad JB |
1028 | 2010-01-09 Joel Brobecker <[email protected]> |
1029 | ||
1030 | GDB crash while stepping into function. | |
1031 | * infrun.c (handle_inferior_event): Refetch the current frame | |
1032 | after handling what.main_action, in case that pointer became | |
1033 | dangling. | |
1034 | ||
12c89474 JB |
1035 | 2010-01-09 Joel Brobecker <[email protected]> |
1036 | ||
1037 | Fix build failure of solaris-hosted cross debuggers. | |
1038 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
1039 | ||
1a3fd262 | 1040 | 2010-01-09 Daniel Gutson <[email protected]> |
4c490650 JB |
1041 | |
1042 | Fix build failure on sparc-solaris. | |
1043 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
1044 | ||
75242ef4 JK |
1045 | 2010-01-08 Jan Kratochvil <[email protected]> |
1046 | ||
1047 | Move some symfile code into subroutines. | |
1048 | * symfile.h (relative_addr_info_to_section_offsets) | |
1049 | (addr_info_make_relative): New prototypes. | |
1050 | * symfile.c (default_symfile_offsets): Move a part to ... | |
1051 | (relative_addr_info_to_section_offsets): ... this new function. | |
1052 | (default_symfile_offsets): Call it. | |
1053 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
1054 | this part to ... | |
1055 | (addr_info_make_relative): ... this new function. | |
1056 | ||
268a4a75 JK |
1057 | 2010-01-08 Jan Kratochvil <[email protected]> |
1058 | ||
1059 | Add from_tty to solib_create_inferior_hook. | |
1060 | * infcmd.c (post_create_inferior): Move solib_add after | |
1061 | solib_create_inferior_hook. Pass from_tty to | |
1062 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
1063 | 0 from_tty and comment why. | |
1064 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
1065 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
1066 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
1067 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
1068 | from_tty. | |
1069 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
1070 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
1071 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
1072 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
1073 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
1074 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
1075 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
1076 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
1077 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
1078 | from_tty. | |
1079 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
1080 | solib_add. | |
1081 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
1082 | enable_break. | |
1083 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
1084 | parameter from_tty. | |
1085 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
1086 | it to ops->solib_create_inferior_hook. | |
1087 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
1088 | Move solib_add after solib_create_inferior_hook, call it now with | |
1089 | from_tty as 0. New comment there. | |
1090 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
1091 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
1092 | Likewise. | |
1093 | ||
cf00dfa7 VP |
1094 | 2010-01-08 Vladimir Prus <[email protected]> |
1095 | ||
1096 | Fix multiexec race. | |
1097 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
1098 | with events ptid, not get_current_regcache. | |
1099 | ||
f91e5ac3 JB |
1100 | 2009-01-08 Joel Brobecker <[email protected]> |
1101 | ||
1102 | GDB crash with empty executable name (MinGW). | |
1103 | * source.c (openp): Add assert that parameter string is not NULL. | |
1104 | if parameter string is an empty string, then return with a failure | |
1105 | immediately. | |
1106 | ||
92b9ce5b JB |
1107 | 2009-01-08 Joel Brobecker <[email protected]> |
1108 | ||
1109 | Get rid of support for VAX Floats. | |
1110 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
1111 | (ada_vax_float_print_function): Delete. | |
1112 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
1113 | (ada_vax_float_print_function): Delete. | |
1114 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
1115 | (ada_print_type): Remove support for VAX floats. | |
1116 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
1117 | ||
268a4a75 | 1118 | 2010-01-08 Jan Kratochvil <[email protected]> |
d24d8548 JK |
1119 | |
1120 | * stabsread.c (read_args): Handle zero arguments. | |
1121 | ||
f0f20949 JB |
1122 | 2009-01-08 Joel Brobecker <[email protected]> |
1123 | ||
1124 | Cannot find in-tree libiconv.a after reconfigure. | |
1125 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
1126 | that we can use, then cache the path to this archive. | |
1127 | * configure: Regenerate. | |
1128 | ||
6b6218c5 SS |
1129 | 2010-01-07 Stan Shebs <[email protected]> |
1130 | ||
35b1e5cc SS |
1131 | Make tracepoint operations go through target vector. |
1132 | * target.h (enum trace_find_type): New enum. | |
1133 | (struct target_ops): New fields to_trace_init, | |
1134 | to_download_tracepoint, to_download_trace_state_variable, | |
1135 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
1136 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
1137 | to_set_disconnected_tracing. | |
1138 | (target_trace_init): New macro. | |
1139 | (target_download_tracepoint): New macro. | |
1140 | (target_download_trace_state_variable): New macro. | |
1141 | (target_trace_start): New macro. | |
1142 | (target_trace_set_readonly_regions): New macro. | |
1143 | (target_get_trace_status): New macro. | |
1144 | (target_trace_stop): New macro. | |
1145 | (target_trace_find): New macro. | |
1146 | (target_get_trace_state_variable_value): New macro. | |
1147 | (target_set_disconnected_tracing): New macro. | |
1148 | * target.c (update_current_target): Inherit and set defaults for | |
1149 | tracepoint operations. | |
1150 | * tracepoint.c (default_collect): Make globally visible. | |
1151 | (target_is_remote): Remove, along with all calls. | |
1152 | (tvariables_info): Call target_get_trace_state_variable_value. | |
1153 | (remote_set_transparent_ranges): Remove. | |
1154 | (trace_start_command): Call target_trace_init, | |
1155 | target_download_tracepoint, etc. | |
1156 | (download_tracepoint): Remove. | |
1157 | (trace_stop_command): Simplify. | |
1158 | (stop_tracing): Call target_trace_stop. | |
1159 | (get_trace_status): Call target_get_trace_status. | |
1160 | (trace_status_command): Add case for targets that cannot trace. | |
1161 | (finish_tfind_command): Change to take numerical arguments, call | |
1162 | target_trace_find. | |
1163 | (trace_find_command): Update call to finish_tfind_command. | |
1164 | (trace_find_pc_command): Ditto. | |
1165 | (trace_find_tracepoint_command): Ditto. | |
1166 | (trace_find_line_command): Ditto. | |
1167 | (trace_find_range_command): Ditto. | |
1168 | (trace_find_outside_command): Ditto. | |
1169 | (set_disconnected_tracing_value): Call | |
1170 | target_set_disconnected_tracing. | |
1171 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
1172 | (trace_error): Move from tracepoint.c. | |
1173 | (remote_get_noisy_reply): Ditto. | |
1174 | (free_actions_list_cleanup_wrapper): Ditto. | |
1175 | (free_actions_list): Ditto. | |
1176 | (remote_trace_init): New function. | |
1177 | (remote_download_tracepoint): New function. | |
1178 | (remote_download_trace_state_variable): New function. | |
1179 | (remote_trace_set_readonly_regions): New function. | |
1180 | (remote_trace_start): New function. | |
1181 | (remote_get_trace_status): New function. | |
1182 | (remote_trace_stop): New function. | |
1183 | (remote_trace_find): New function. | |
1184 | (remote_download_trace_state_variable): New function. | |
1185 | (remote_set_disconnected_tracing): New function. | |
1186 | (init_remote_ops): Add tracepoint operations. | |
1187 | ||
6b6218c5 SS |
1188 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
1189 | ||
089b4803 TG |
1190 | 2010-01-07 Tristan Gingold <[email protected]> |
1191 | ||
1192 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
1193 | (symbol_file_add_separate): Don't use offsets from objfile but | |
1194 | built an addr info. | |
1195 | ||
d5551862 SS |
1196 | 2010-01-06 Stan Shebs <[email protected]> |
1197 | ||
1198 | Support disconnected tracing. | |
1199 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
1200 | * cli/cli-cmds.c (quit_command): Ditto. | |
1201 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
1202 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
1203 | (get_tracepoint_by_number_on_target): New function. | |
1204 | * remote.c (struct remote): New field disconnected_tracing. | |
1205 | (remote_disconnected_tracing_feature): New function. | |
1206 | (remote_protocol_features): Add DisconnectedTracing. | |
1207 | (struct uploaded_tp): New struct. | |
1208 | (uploaded_tps): New global. | |
1209 | (get_uploaded_tp): New function. | |
1210 | (find_matching_tracepoint): New function. | |
1211 | (remote_get_tracing_state): New function. | |
1212 | (remote_start_remote): Call it. | |
1213 | * tracepoint.c (disconnected_tracing): New global. | |
1214 | (trace_start_command): Initialize number_on_target. | |
1215 | (stop_tracing): New function, split out from... | |
1216 | (trace_stop_command): Call stop_tracing. | |
1217 | (get_trace_status): New function, split out from... | |
1218 | (trace_status_command): Call get_trace_status, add info on | |
1219 | disconnection behavior. | |
1220 | (disconnect_or_stop_tracing): New function. | |
1221 | (finish_tfind_command): Translate from number on target. | |
1222 | (trace_find_tracepoint_command): Translate to number on target. | |
1223 | (send_disconnected_tracing_value): New function. | |
1224 | (set_disconnected_tracing): New function. | |
1225 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
1226 | * NEWS: Mention disconnected tracing. | |
1227 | ||
15d123c9 TG |
1228 | 2010-01-06 Tristan Gingold <[email protected]> |
1229 | ||
1230 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
1231 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
1232 | * symfile.h (symbol_file_add_separate) | |
1233 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
1234 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
1235 | (reread_symbols): Use free_objfile_separate_debug. | |
1236 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
1237 | Adjust comment. | |
1238 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
1239 | (free_objfile_separate_debug): New prototypes. | |
1240 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
1241 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
1242 | functions. | |
1243 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
1244 | multiple separate debug objfile. | |
1245 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
1246 | debug objfiles. | |
1247 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
1248 | debug objfile. | |
1249 | (lookup_minimal_symbol_text): Ditto. | |
1250 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
1251 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
1252 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
1253 | debug objfiles. | |
1254 | ||
7a697b8d SS |
1255 | 2010-01-05 Stan Shebs <[email protected]> |
1256 | ||
1257 | Add fast tracepoints. | |
1258 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
1259 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
1260 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
1261 | * breakpoint.c (tracepoint_type): New function. | |
1262 | (ALL_TRACEPOINTS): Use it. | |
1263 | (should_be_inserted): Ditto. | |
1264 | (bpstat_check_location): Ditto. | |
1265 | (print_one_breakpoint_location): Ditto. | |
1266 | (user_settable_breakpoint): Ditto. | |
1267 | (set_breakpoint_location_function): Ditto. | |
1268 | (disable_breakpoints_in_shlibs): Ditto. | |
1269 | (delete_trace_command): Ditto. | |
1270 | (print_it_typical): Add bp_fast_tracepoint case. | |
1271 | (bpstat_what): Ditto. | |
1272 | (print_one_breakpoint_location): Ditto. | |
1273 | (allocate_bp_location): Ditto. | |
1274 | (mention): Ditto. | |
1275 | (breakpoint_re_set_one): Ditto. | |
1276 | (disable_command): Ditto. | |
1277 | (enable_command): Ditto. | |
1278 | (check_fast_tracepoint_sals): New function. | |
1279 | (break_command_really): Call it. | |
1280 | (ftrace_command): New function. | |
1281 | (_initialize_breakpoint): Add ftrace command. | |
1282 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
1283 | * gdbarch.h, gdbarch.c: Regenerate. | |
1284 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
1285 | (i386_gdbarch_init): Use it. | |
1286 | * remote.c (struct remote_state): New field fast_tracepoints. | |
1287 | (PACKET_FastTracepoints): New packet config type. | |
1288 | (remote_fast_tracepoint_feature): New function. | |
1289 | (remote_protocol_features): Add FastTracepoints. | |
1290 | (remote_supports_fast_tracepoints): New function. | |
1291 | (_initialize_remote): Add FastTracepoints. | |
1292 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
1293 | * NEWS: Mention fast tracepoints. | |
1294 | ||
737a160e JB |
1295 | 2010-01-06 Joel Brobecker <[email protected]> |
1296 | ||
1297 | * gdb-gdb.py: New file. | |
1298 | ||
ce6cca6d MS |
1299 | 2010-01-05 Michael Snyder <[email protected]> |
1300 | ||
1301 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
1302 | ||
0d15807d JK |
1303 | 2010-01-05 Jan Kratochvil <[email protected]> |
1304 | ||
1305 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
1306 | ||
7803799a UW |
1307 | 2010-01-04 Ulrich Weigand <[email protected]> |
1308 | ||
1309 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, | |
1310 | and s390x-linux64. | |
1311 | (s390-linux32-expedite): Define. | |
1312 | (s390-linux64-expedite): Define. | |
1313 | (s390x-linux64-expedite): Define. | |
1314 | * features/s390-acr.xml: New file. | |
1315 | * features/s390-fpr.xml: New file. | |
1316 | * features/s390-core32.xml: New file. | |
1317 | * features/s390-core64.xml: New file. | |
1318 | * features/s390x-core64.xml: New file. | |
1319 | * features/s390-linux32.xml: New file. | |
1320 | * features/s390-linux64.xml: New file. | |
1321 | * features/s390x-linux64.xml: New file. | |
1322 | * features/s390-linux32.c: New generated file. | |
1323 | * features/s390-linux64.c: New generated file. | |
1324 | * features/s390x-linux64.c: New generated file. | |
1325 | ||
1326 | * regformats/s390-linux32.dat: New generated file. | |
1327 | * regformats/s390-linux64.dat: New generated file. | |
1328 | * regformats/s390x-linux64.dat: New generated file. | |
1329 | * regformats/reg-s390.dat: Remove. | |
1330 | * regformats/reg-s390x.dat: Remove. | |
1331 | ||
1332 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
1333 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
1334 | (s390_target_wordsize): New function. | |
1335 | (s390_auxv_parse): Likewise. | |
1336 | (s390_get_hwcap): Likewise. | |
1337 | (s390_read_description): Likewise. | |
1338 | (_initialize_s390_nat): Install s390_auxv_parse and | |
1339 | s390_read_description. | |
1340 | ||
1341 | * s390-tdep.c: Include "features/s390-linux32.c", | |
1342 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
1343 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
1344 | (s390_register_call_saved): New function. | |
1345 | (s390_register_name): Remove. | |
1346 | (s390_register_type): Remove. | |
1347 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
1348 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
1349 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
1350 | (s390_pseudo_register_name): New function. | |
1351 | (s390_pseudo_register_type): New function. | |
1352 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
1353 | Handle full GPR pesudos and varying pseudo register numbers. | |
1354 | (s390_pseudo_register_write): Likewise | |
1355 | (s390x_pseudo_register_read): Remove. | |
1356 | (s390x_pseudo_register_write): Likewise. | |
1357 | (s390_register_group): Remove. | |
1358 | (s390_pseudo_register_group): New function. | |
1359 | (s390_regmap_gregset): Add GPR upper halves. | |
1360 | (s390x_regmap_gregset): Likewise. | |
1361 | (s390_regmap_fpregset): Likewise. | |
1362 | (s390_regmap_upper): New global variable. | |
1363 | (s390_upper_regset): New global variable. | |
1364 | (s390_upper_regset_sections): New global variable. | |
1365 | (s390_regset_from_core_section): Handle GPR upper halves. | |
1366 | (s390_core_read_description): New function. | |
1367 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
1368 | register information. Handle varying pseudo register numbers. | |
1369 | (s390_backchain_frame_unwind_cache): Likewise. | |
1370 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
1371 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
1372 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
1373 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
1374 | Handle varying pseudo register numbers. | |
1375 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
1376 | (s390_dwarf2_prev_register): New function. | |
1377 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
1378 | register information. Handle varying pseudo register numbers. | |
1379 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
1380 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
1381 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
1382 | (_initialize_s390_tdep): Initialize target descriptions. | |
1383 | ||
1384 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
1385 | (S390_NUM_REGS): Redefine to include upper half registers. | |
1386 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
1387 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
1388 | (tdesc_s390_linux32): Add declaration. | |
1389 | (tdesc_s390_linux64): Likewise. | |
1390 | (tdesc_s390x_linux64): Likewise. | |
1391 | ||
1b1818e4 UW |
1392 | 2010-01-04 Ulrich Weigand <[email protected]> |
1393 | ||
1394 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
1395 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
1396 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
1397 | (ppc_linux_vmx_regset_sections): Likewise. | |
1398 | (ppc_linux_fp_regset_sections): Likewise. | |
1399 | ||
1400 | * corelow.c (get_core_register_section): Constify arguments. | |
1401 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
1402 | of hard-coded platform-specific register section names. | |
1403 | ||
dcbf108f UW |
1404 | 2010-01-04 Ulrich Weigand <[email protected]> |
1405 | ||
1406 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 1407 | a register, assume the least-significant part is used. |
dcbf108f UW |
1408 | (write_pieced_value): Likewise. |
1409 | ||
704e9165 UW |
1410 | 2010-01-04 Ulrich Weigand <[email protected]> |
1411 | ||
1412 | * printcmd.c: Include "arch-utils.h". | |
1413 | (do_one_display): Re-parse expression if current architecture changed. | |
1414 | ||
c54eabfa JK |
1415 | 2010-01-03 Jan Kratochvil <[email protected]> |
1416 | Joel Brobecker <[email protected]> | |
1417 | ||
1418 | * gdbtypes.c (check_typedef): New comment on type length. | |
1419 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
1420 | comment on type length. | |
1421 | (value_primitive_field): Keep the original TYPE value, new comment. | |
1422 | ||
50cb2941 JK |
1423 | 2010-01-01 Jan Kratochvil <[email protected]> |
1424 | ||
1425 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
1426 | p_start. Change != comparisons to > and < comparisons. | |
1427 | ||
be66db07 JK |
1428 | 2010-01-01 Jan Kratochvil <[email protected]> |
1429 | ||
1430 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
1431 | ||
abd775ce JB |
1432 | 2009-01-01 Joel Brobecker <[email protected]> |
1433 | ||
1434 | Update the copyright hearder to add year 2010 for most GDB files. | |
1435 | ||
6479260d JB |
1436 | 2009-01-01 Joel Brobecker <[email protected]> |
1437 | ||
1438 | Fix build failure in inf-ptrace.c. | |
1439 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
1440 | ||
4a70f654 JB |
1441 | 2010-01-01 Joel Brobecker <[email protected]> |
1442 | ||
1443 | * top.c (print_gdb_version): Update copyright year. | |
1444 | ||
b9ee2233 JB |
1445 | 2010-01-01 Joel Brobecker <[email protected]> |
1446 | ||
1447 | Fix break *FUN'address thread NUM. | |
1448 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
1449 | ||
70575d34 JB |
1450 | 2010-01-01 Joel Brobecker <[email protected]> |
1451 | ||
1452 | Fix break *FUN'address task NUM. | |
1453 | * ada-lex.l (task): New rule. | |
1454 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
1455 | been built before using it. | |
1456 | ||
e1e4d4a4 | 1457 | For older changes see ChangeLog-2009. |
c906108c SS |
1458 | \f |
1459 | Local Variables: | |
1460 | mode: change-log | |
1461 | left-margin: 8 | |
1462 | fill-column: 74 | |
1463 | version-control: never | |
57da7796 | 1464 | coding: utf-8 |
c906108c | 1465 | End: |