]>
Commit | Line | Data |
---|---|---|
74d1f91e JK |
1 | 2010-04-04 Jan Kratochvil <[email protected]> |
2 | ||
3 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
4 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
5 | ||
91d91ceb JK |
6 | 2010-04-04 Jan Kratochvil <[email protected]> |
7 | ||
8 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
9 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
10 | ||
60531b24 JK |
11 | 2010-04-02 Jan Kratochvil <[email protected]> |
12 | ||
13 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
14 | code form. | |
15 | ||
a3c4230a HZ |
16 | 2010-04-02 Hui Zhu <[email protected]> |
17 | ||
18 | * i386-tdep.c (OT_DQUAD): New enum. | |
19 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
20 | SSE3, SSSE3 and SSE4. | |
21 | ||
b15758fe HZ |
22 | 2010-04-02 Hui Zhu <[email protected]> |
23 | ||
24 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
25 | "*addr = 0". | |
26 | ||
afd02f27 PA |
27 | 2010-04-02 Pedro Alves <[email protected]> |
28 | ||
29 | * tracepoint.c (trace_dump_actions): New, factored out from | |
30 | trace_dump_command, and adjusted to recurse into while-stepping's | |
31 | action list. | |
32 | (trace_dump_command): Use it. | |
33 | ||
5cea2a26 PA |
34 | 2010-04-02 Pedro Alves <[email protected]> |
35 | ||
36 | * breakpoint.h (struct counted_command_line): Moved definition to | |
37 | breakpoint.c, and forward declare. | |
38 | (breakpoint_commands): Declare. | |
39 | * breakpoint.c (struct counted_command_line): Moved here. | |
40 | (breakpoint_commands): New. | |
41 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
42 | * remote.c (remote_download_tracepoint): Ditto. | |
43 | ||
7c47795c L |
44 | 2010-04-01 H.J. Lu <[email protected]> |
45 | ||
46 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
47 | of phex_nz for error. | |
48 | ||
fff87407 SS |
49 | 2010-04-01 Stan Shebs <[email protected]> |
50 | Nathan Sidwell <[email protected]> | |
51 | ||
52 | * tracepoint.h (enum actionline_type): Remove. | |
53 | (validate_actionline): Change return to void. | |
54 | * tracepoint.c (report_agent_reqs_errors): New function. | |
55 | (validate_actionline): Call it, change return to void, report errors | |
56 | more consistently. | |
57 | (collect_symbol): Call report_agent_reqs_errors. | |
58 | (encode_actions_1): Ditto. | |
59 | (encode_actions): Don't expect a result from validate_actionline. | |
60 | ||
615bcdef SS |
61 | 2010-04-01 Stan Shebs <[email protected]> |
62 | ||
63 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
64 | (trace_stop_command): Error if trace not running. | |
65 | ||
fe01d668 L |
66 | 2010-04-01 H.J. Lu <[email protected]> |
67 | ||
68 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
69 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
70 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
71 | (amd64_pseudo_register_write): Likewise. | |
72 | (amd64_init_abi): Set num_byte_regs to 20. | |
73 | ||
86b17b60 PA |
74 | 2010-04-01 Pedro Alves <[email protected]> |
75 | ||
76 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
77 | (prev_breakpoint_count): New. | |
78 | (set_breakpoint_count): Adjust. | |
79 | (rbreak_start_breakpoint_count): New. | |
80 | (start_rbreak_breakpoints): Adjust. | |
81 | (end_rbreak_breakpoints): Adjust. | |
82 | (struct commands_info) <arg>: New field. | |
83 | (do_map_commands_command): Tweak output to include breakpoint spec | |
84 | range. | |
85 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
86 | ARG was empty on entry. Set INFO's arg. | |
87 | (create_breakpoint): Adjust. | |
88 | ||
89 | * NEWS: Clarify `commands' changes. | |
90 | ||
2c58c0a9 PA |
91 | 2010-04-01 Pedro Alves <[email protected]> |
92 | ||
93 | * tracepoint.c: Include stack.h. | |
94 | (struct add_local_symbols_data): New. | |
95 | (do_collect_symbol): New. | |
96 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
97 | iterate_over_block_local_vars. | |
98 | * stack.c (print_block_frame_locals): Rewrite as ... | |
99 | (iterate_over_block_locals): ... this. Take a callback function | |
100 | pointer and generic data pointer, and call that instead of | |
101 | print_variable_and_value. | |
102 | (struct print_variable_and_value_data): New. | |
103 | (do_print_variable_and_value): New. | |
104 | (iterate_over_block_local_vars): New, abstracted out from | |
105 | print_frame_local_vars. | |
106 | (print_frame_local_vars): Rewrite using | |
107 | iterate_over_block_local_vars. | |
108 | (iterate_over_block_arg_vars): New, abstracted out from | |
109 | print_frame_arg_vars. | |
110 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
111 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
112 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
113 | ||
d476da0e RE |
114 | 2010-03-31 Richard Earnshaw <[email protected]> |
115 | ||
116 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
117 | instructions. Use the PC+4 if the base of the TBB or TBH is the | |
118 | PC register. | |
119 | ||
8072405b JK |
120 | 2010-03-31 Jan Kratochvil <[email protected]> |
121 | ||
122 | Fix crash on reading wrong function declaration DWARF. | |
123 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
124 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
125 | more close to their use. | |
126 | ||
8bf6485c SS |
127 | 2010-03-31 Stan Shebs <[email protected]> |
128 | ||
129 | * breakpoint.c (tracepoint_save_command): Include variables, | |
130 | conditionals, tracepoint types, and default-collect. | |
131 | * tracepoint.c (save_trace_state_variables): New function. | |
132 | * tracepoint.h (save_trace_state_variables): Declare it. | |
133 | ||
2ae2a0b7 PM |
134 | 2010-03-31 Pierre Muller <[email protected]> |
135 | ||
d476da0e RE |
136 | * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of |
137 | strdup. | |
2ae2a0b7 | 138 | |
86ffb506 KS |
139 | 2010-03-30 Keith Seitz <[email protected]> |
140 | ||
141 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
142 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
143 | Use the passed-in language instead of current_language. | |
144 | (c_type_print_varspec_suffix): Use current_language instead | |
145 | of assuming language_c. | |
146 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
147 | any return type specifier from the physname. | |
148 | ||
956c2c8b PA |
149 | 2010-03-30 Pedro Alves <[email protected]> |
150 | ||
151 | * tui/tui-interp.c (tui_is_toplevel): New. | |
152 | (tui_init): Set it. | |
153 | (tui_allowed_p): New. | |
154 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
155 | enabling it. | |
156 | * tui/tui.h (tui_allowed_p): Declare. | |
157 | ||
98e5a990 TT |
158 | 2010-03-30 Ozkan Sezer <[email protected]> |
159 | ||
160 | * serial.h: Include winsock2.h before windows.h. | |
161 | ||
c8d5aac9 L |
162 | 2010-03-30 H.J. Lu <[email protected]> |
163 | ||
164 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
165 | ||
166 | * i386-tdep.c: Include "remote.h". | |
167 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
168 | ||
169 | * remote.c (remote_support_xml): New. | |
170 | (register_remote_support_xml): Likewise. | |
171 | (remote_query_supported_append): Likewise. | |
172 | (remote_query_supported): Support remote_support_xml. | |
173 | ||
174 | * remote.h (register_remote_support_xml): New. | |
175 | ||
76a2b958 SS |
176 | 2010-03-29 Stan Shebs <[email protected]> |
177 | ||
42e08e69 SS |
178 | * tracepoint.c (trace_find_line_command): Remove dead code. |
179 | ||
409873ef SS |
180 | * tracepoint.h (struct uploaded_string): New struct. |
181 | (struct uploaded_tp): New fields for source strings. | |
182 | * breakpoint.c (this_utp, next_cmd): New globals. | |
183 | (read_uploaded_action): New function. | |
184 | (create_tracepoint_from_upload): Fill in more parts | |
185 | of a tracepoint. | |
186 | * tracepoint.c (encode_source_string): New function. | |
187 | (trace_save): Write out source strings, fix error checks. | |
188 | (parse_tracepoint_definition): Add source string parsing. | |
189 | * remote.c (PACKET_TracepointSource): New packet type. | |
190 | (remote_download_command_source): New function. | |
191 | (remote_download_tracepoint): Download source pieces also. | |
192 | (_initialize_remote): Add packet config command. | |
193 | ||
a0405854 SS |
194 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
195 | expression handler. | |
196 | ||
76a2b958 SS |
197 | * tracepoint.c (start_tracing): Check tracepoints before sending |
198 | commands to target, don't start if all tracepoints disabled. | |
199 | ||
d350db38 PA |
200 | 2010-03-28 Pedro Alves <[email protected]> |
201 | ||
12f2d601 | 202 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 203 | |
8b9b7ef8 SS |
204 | 2010-03-26 Stan Shebs <[email protected]> |
205 | ||
206 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
207 | ||
9766ced4 SS |
208 | 2010-03-26 Tom Tromey <[email protected]> |
209 | ||
210 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
211 | ||
059acae7 UW |
212 | 2010-03-26 Ulrich Weigand <[email protected]> |
213 | ||
214 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
215 | (skip_prologue_sal): Remove local definition. | |
216 | (resolve_sal_pc): Remove now unnecessary code. | |
217 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
218 | * symtab.c (find_function_start_pc): Remove. | |
219 | (find_function_start_sal): Extract prologue skipping into ... | |
220 | (skip_prologue_sal): ... this new function. Handle code both | |
221 | with and without debug info. Respect SAL's explicit_pc and | |
222 | explicit_line flags. Inline old find_function_start_pc. | |
223 | * symtab.h (find_function_start_pc): Remove. | |
224 | (skip_prologue_sal): Add prototype. | |
225 | ||
4a811a97 UW |
226 | 2010-03-26 Ulrich Weigand <[email protected]> |
227 | ||
228 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
229 | for DW_TAG_imported_module children. | |
230 | ||
907af001 UW |
231 | 2010-03-26 Ulrich Weigand <[email protected]> |
232 | ||
233 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
234 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
235 | * completer.c (add_struct_fields): Fix inverted logic. | |
236 | ||
dde2d684 UW |
237 | 2010-03-26 Ulrich Weigand <[email protected]> |
238 | ||
239 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
240 | ||
a609a0c8 PA |
241 | 2010-03-26 Pedro Alves <[email protected]> |
242 | ||
243 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
244 | is non-NULL here. | |
245 | (parse_trace_status): Release a previous error_desc string, and | |
246 | set it to NULL by default. If stop reason is tracepoint_error, | |
247 | make sure error_desc is not left NULL. | |
248 | ||
610197fd PA |
249 | 2010-03-26 Pedro Alves <[email protected]> |
250 | ||
251 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
252 | description. | |
253 | ||
99b5e152 PA |
254 | 2010-03-26 Pedro Alves <[email protected]> |
255 | ||
256 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
257 | the terror description. Don't expect an X prefix. | |
258 | ||
6c28cbf2 SS |
259 | 2010-03-25 Stan Shebs <[email protected]> |
260 | ||
261 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
262 | (struct trace_status): New field error_desc. | |
263 | * tracepoint.c (stop_reason_names): Add terror. | |
264 | (current_trace_status): Ensure non-NULL error description. | |
265 | (trace_status_command): Add error report. | |
266 | (trace_status_mi): Ditto. | |
267 | (trace_save): Add special case for error description. | |
268 | (parse_trace_status): Add case for errors. | |
269 | ||
418835cc KS |
270 | 2010-03-25 Keith Seitz <[email protected]> |
271 | ||
272 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
273 | language is Java, mark any formal parameter named "this" as | |
274 | artificial (GCC/43521). | |
275 | (dwarf2_name): Add special handling for Java constructors. | |
276 | ||
aa7d318d TT |
277 | 2010-03-25 Tom Tromey <[email protected]> |
278 | ||
279 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
280 | * infrun.c (handle_inferior_event): Change initialization of | |
281 | stop_stack_dummy. | |
282 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
283 | (normal_stop): Update use of stop_stack_dummy. | |
284 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
285 | * inferior.h (stop_stack_dummy): Update. | |
286 | * infcmd.c (stop_stack_dummy): Change type. | |
287 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
288 | function. | |
289 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
290 | Rewrite std::terminate handling. | |
291 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
292 | bp_std_terminate_master>: New. | |
293 | (enum stop_stack_kind): New. | |
294 | (struct bpstat_what) <call_dummy>: Change type. | |
295 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
296 | Declare. | |
297 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
298 | function. | |
299 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
300 | Call create_std_terminate_master_breakpoint. | |
301 | (print_it_typical): Handle new breakpoint kinds. | |
302 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
303 | (bpstat_what): Correctly set call_dummy field. Handle | |
304 | bp_std_terminate_master and bp_std_terminate. | |
305 | (print_one_breakpoint_location): Update. | |
306 | (allocate_bp_location): Update. | |
307 | (set_std_terminate_breakpoint): New function. | |
308 | (delete_std_terminate_breakpoint): Likewise. | |
309 | (create_thread_event_breakpoint): Update. | |
310 | (delete_command): Update. | |
311 | (breakpoint_re_set_one): Update. | |
312 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
313 | ||
82ccf5a5 JK |
314 | 2010-03-25 Jan Kratochvil <[email protected]> |
315 | ||
316 | * symfile.c (build_section_addr_info_from_bfd): New. | |
317 | (build_section_addr_info_from_objfile): Base it on | |
318 | build_section_addr_info_from_bfd. | |
319 | (addrs_section_compar, addrs_section_sort): New. | |
320 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
321 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
322 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
323 | ||
737c4c52 MS |
324 | 2010-03-24 Michael Snyder <[email protected]> |
325 | ||
326 | * elfread.c (find_separate_debug_file_by_buildid): | |
327 | Remove unused local variable. | |
328 | ||
95a42b64 TT |
329 | 2010-03-24 Tom Tromey <[email protected]> |
330 | ||
331 | PR breakpoints/9352: | |
332 | * NEWS: Mention changes to `commands' and `rbreak'. | |
333 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
334 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
335 | end_rbreak_breakpoints. | |
336 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
337 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
338 | (multi_start, multi_end, last_was_multi): New globals. | |
339 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
340 | functions. | |
341 | (struct commands_info): New | |
342 | (do_map_commands_command): New function. | |
343 | (commands_command_1): New function. | |
344 | (commands_command): Use it. | |
345 | (commands_from_control_command): Likewise. | |
346 | (do_delete_breakpoint): New function. | |
347 | (delete_command): Use it. | |
348 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
349 | (do_map_disable_breakpoint): New function. | |
350 | (disable_command): Use it. | |
351 | (do_map_enable_breakpoint): New function. | |
352 | (enable_command): Use it. | |
353 | (enable_once_breakpoint): Add argument. | |
354 | (enable_once_command): Update. | |
355 | (enable_delete_breakpoint): Add argument. | |
356 | (enable_delete_command): Update. | |
357 | (break_command_really): Set last_was_multi when needed. | |
358 | (check_tracepoint_command): Fix formatting. | |
359 | (validate_commands_for_breakpoint): New function. | |
360 | (breakpoint_set_commands): Use it. | |
361 | (tracepoint_save_command): Update. | |
362 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
363 | Declare. | |
364 | ||
9add0f1b TT |
365 | 2010-03-24 Tom Tromey <[email protected]> |
366 | ||
367 | * breakpoint.h (struct counted_command_line): New struct. | |
368 | (struct breakpoint) <commands>: Change type. | |
369 | (struct bpstats) <commands>: Change type. | |
370 | <commands_left>: New field. | |
371 | * breakpoint.c (alloc_counted_command_line): New function. | |
372 | (incref_counted_command_line): Likewise. | |
373 | (decref_counted_command_line): Likewise. | |
374 | (do_cleanup_counted_command_line): Likewise. | |
375 | (make_cleanup_decref_counted_command_line): Likewise. | |
376 | (breakpoint_set_commands): Use decref_counted_command_line and | |
377 | alloc_counted_command_line. | |
378 | (commands_command): Don't error if breakpoint commands are | |
379 | executing. | |
380 | (commands_from_control_command): Likewise. | |
381 | (bpstat_free): Update. | |
382 | (bpstat_copy): Likewise. | |
383 | (bpstat_clear_actions): Likewise. | |
384 | (bpstat_do_actions_1): Likewise. | |
385 | (bpstat_stop_status): Likewise. | |
386 | (print_one_breakpoint_location): Likewise. | |
387 | (delete_breakpoint): Likewise. | |
388 | (bpstat_alloc): Initialize new field. | |
389 | (tracepoint_save_command): Update. | |
390 | * tracepoint.c (encode_actions): Update. | |
391 | (trace_dump_command): Update. | |
392 | ||
a6c727b2 DJ |
393 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
394 | ||
395 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
396 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
397 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
398 | no byte size and no children. | |
399 | (read_subroutine_type): Mark functions as prototyped by default. | |
400 | * symtab.c (producer_is_realview): New function. | |
401 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
402 | (producer_is_realview): Declare. | |
403 | ||
0d39a070 DJ |
404 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
405 | ||
406 | * arm-tdep.c (skip_prologue_function): New function. | |
407 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
408 | (thumb_analyze_prologue): Document return value. Recognize more | |
409 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
410 | Add debug output. | |
411 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
412 | for non-GNU compilers. | |
413 | (arm_instruction_changes_pc): New function. | |
414 | (arm_analyze_prologue): New function, broken out from | |
415 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
416 | calls. Update comments. Handle NULL cache. Return the address | |
417 | of the first unrecognized instruction. Do not skip past other | |
418 | instructions which change control flow. Add debug output. | |
419 | (arm_scan_prologue): Use arm_analyze_prologue. | |
420 | (ARM_PC_32): Delete. | |
421 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
422 | ||
4baf5cf4 VP |
423 | 2010-03-24 Vladimir Prus <[email protected]> |
424 | ||
425 | * tracepoint.c (tvariables_info_1): Actually compute | |
426 | the number of rows in the result. | |
427 | ||
4a5e7a5b PA |
428 | 2010-03-24 Pedro Alves <[email protected]> |
429 | ||
430 | * remote.c (crc32): Constify `buf' parameter. | |
431 | (remote_verify_memory): New, abstracted out from... | |
432 | (compare_sections_command): ... this. Remove hardcoded target | |
433 | checks. | |
434 | (init_remote_ops): Install remote_verify_memory. | |
435 | * target.c (target_verify_memory): New. | |
436 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
437 | (target_verify_memory): Declare. | |
438 | ||
011aacb0 VP |
439 | 2010-03-24 Vladimir Prus <[email protected]> |
440 | ||
441 | Implement -trace-save. | |
442 | ||
443 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
444 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
445 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
446 | * remote.c (remote_save_trace_data): Take const parameter. | |
447 | * target.h (struct target_ops::to_save_trace_data): Take | |
448 | const parameter. | |
449 | * target.c (update_current_target): Adjust to the above. | |
450 | * tracepoint.c (trave_save): New, extracted from | |
451 | (trace_save_command): ...this. | |
452 | (tfile_trace_find): Remove message that is unnecessary now | |
453 | that 'tfind' reports found frame. | |
454 | * tracepoint.h (trace_save): Declare. | |
455 | ||
f197e0f1 VP |
456 | 2010-03-24 Vladimir Prus <[email protected]> |
457 | ||
458 | Implement -trace-find. | |
459 | ||
460 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
461 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
462 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
463 | * target.h (struct target_ops): Document to_trace_find. | |
464 | * tracepoint.h (tfind_1): Declare. | |
465 | * tracepoint.c (finish_tfind_command): Rename to... | |
466 | (tfind_1): ...this. | |
467 | * remote.c (remote_trace_find): Return -1 if target say | |
468 | there's no frame. Improve error diagnostics. | |
469 | ||
40e1c229 VP |
470 | 2010-03-24 Vladimir Prus <[email protected]> |
471 | ||
472 | -trace-define-variable and -trace-list-variables. | |
473 | ||
474 | * tracepoint.c (create_trace_state_variable): Make | |
475 | private copy of name, as opposed to assuming the | |
476 | pointer lives forever. | |
477 | (tvariables_info_1): New. | |
478 | (tvariables_info): Use the above. | |
479 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
480 | Declare. | |
481 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
482 | and -trace-list-variables. | |
483 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
484 | (mi_cmd_trace_list_variables): New. | |
485 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
486 | (mi_cmd_trace_list_variables): New. | |
487 | ||
9b4c786c VP |
488 | 2010-03-24 Vladimir Prus <[email protected]> |
489 | ||
490 | Implement -break-passcount. | |
491 | ||
492 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
493 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
494 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
495 | ||
f224b49d VP |
496 | 2010-03-24 Vladimir Prus <[email protected]> |
497 | ||
498 | -trace-start/-trace-end/-trace-status. | |
499 | ||
500 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
501 | and -trace-stop. | |
502 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
503 | (mi_cmd_trace_stop): Declare. | |
504 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
505 | (mi_cmd_trace_stop): New. | |
506 | * tracepoint.c (start_tracing): New, extracted from... | |
507 | (trace_start_command): ...this. | |
508 | (trace_status_mi): New. | |
509 | * tracepoint.h (struct trace_status): Document | |
510 | stopping_tracepoint. | |
511 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
512 | ||
6534d786 VP |
513 | 2010-03-24 Vladimir Prus <[email protected]> |
514 | ||
515 | Implement creating tracepoints with -break-insert. | |
516 | ||
517 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
518 | to mean that tracepoint should be created. | |
519 | ||
51661e93 VP |
520 | 2010-03-24 Vladimir Prus <[email protected]> |
521 | ||
522 | * breakpoint.c (check_no_tracepoint_commands): Use | |
523 | current spelling of 'teval'. | |
524 | ||
a7bdde9e VP |
525 | 2010-03-24 Vladimir Prus <[email protected]> |
526 | ||
527 | Unify actions and commands | |
528 | ||
529 | * defs.h (read_command_lines, read_command_lines_1): New | |
530 | parameters validator and closure. | |
531 | * tracepoint.h (struct action_line): Remove. | |
532 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
533 | field. | |
534 | * defs.h (enum command_control_type): New value | |
535 | while_stepping_control. | |
536 | (struct command_line): Add comments. | |
537 | * breakpoint.c (breakoint_is_tracepoint): New. | |
538 | (breakpoint_set_commands): For tracepoints, | |
539 | verify the commands are permissible. | |
540 | (check_tracepoint_commands): New. | |
541 | (commands_command): Require that each new line is validated using | |
542 | check_tracepoint_command, if we set commands for a tracepoint. | |
543 | (create_tracepoint_from_upload): Likewise. | |
544 | (print_one_breakpoint_location): Remove the code to print | |
545 | actions specifically. | |
546 | (tracepoint_save_command): Relay to print_command_lines. | |
547 | * cli/cli-script.c (process_next_line): New parameters validator | |
548 | and closure. Handle 'while-stepping'. Call validator if not null. | |
549 | (read_command_lines, read_command_lines1): Likewise. | |
550 | (recurse_read_control_structure): New parameters validator and | |
551 | closure. Handle while_stepping_control. | |
552 | (print_command_lines): Handle while-stepping. | |
553 | (get_command_line, define_command, document_command): Adjust. | |
554 | * remote.c (remote_download_tracepoint): Adjust. | |
555 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
556 | (free_actions, do_free_actions_cleanup): Remove. | |
557 | (trace_actions_command): Use read_command_lines. | |
558 | (validate_actionline): Use error in one place. | |
559 | (encode_actions_1): New, extracted from... | |
560 | (encode_actions): ...this. Also use cleanups for exception | |
561 | safety. | |
562 | (trace_dump_command): Adjust. | |
563 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
564 | it's tracepoint. | |
565 | ||
64e3cf3d MF |
566 | 2010-03-23 Mike Frysinger <[email protected]> |
567 | ||
568 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
569 | ||
52e9fde8 SS |
570 | 2010-03-22 Stan Shebs <[email protected]> |
571 | ||
572 | * value.c (value_static_field): Be lazy about the field's value. | |
573 | ||
508ccb1f TT |
574 | 2010-03-22 Reid Kleckner <[email protected]> |
575 | ||
576 | PR gdb/11094 | |
577 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
578 | bp_jit_event. | |
579 | (disable_breakpoints_in_shlibs): Likewise. | |
580 | ||
acebe513 UW |
581 | 2010-03-22 Ulrich Weigand <[email protected]> |
582 | ||
583 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
584 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
585 | (determine_prefix): Likewise. | |
586 | ||
957b8b5a DJ |
587 | 2010-03-20 Daniel Jacobowitz <[email protected]> |
588 | ||
589 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
590 | get_current_arch. | |
591 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
592 | ||
3b11a015 SS |
593 | 2010-03-19 Stan Shebs <[email protected]> |
594 | ||
595 | * ax-gdb.c (gen_fetch): Handle bool. | |
596 | (gen_usual_unary): Ditto. | |
597 | (gen_cast): Ditto. | |
598 | (gen_equal): New function. | |
599 | (gen_less): New function. | |
600 | (gen_expr_binop_rest): Call them, also return integer type from | |
601 | logical operations. | |
602 | (gen_expr): Ditto. | |
603 | ||
20781792 TT |
604 | 2010-03-19 Tom Tromey <[email protected]> |
605 | ||
606 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
607 | (jv_type_objfile_data_key): New globals. | |
608 | (class_symtab): Move earlier. | |
609 | (jv_per_objfile_free): New function. | |
610 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
611 | parameter. | |
612 | Remove ancient #if 1. | |
613 | (add_class_symbol): Remove redundant declaration. | |
614 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
615 | (java_link_class_type): Mark as static. Update. | |
616 | (jv_clear_object_type): New function. | |
617 | (set_java_object_type): Likewise. | |
618 | (get_java_object_type): Use set_java_object_type. | |
619 | (is_object_type): Likewise. | |
620 | (_initialize_java_language): Register new objfile keys. | |
621 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
622 | (add_class_symtab_symbol): Update. | |
623 | (type_from_class): Update. | |
624 | ||
cf3e25ca SS |
625 | 2010-03-19 Stan Shebs <[email protected]> |
626 | ||
627 | * ax-general.c (ax_const_l): Fix a sizing bug. | |
628 | ||
f1ae44c9 | 629 | 2010-03-18 Joel Brobecker <[email protected]> |
630 | ||
631 | GDB 7.1 released. | |
632 | ||
4daf5ac0 SS |
633 | 2010-03-18 Stan Shebs <[email protected]> |
634 | Pedro Alves <[email protected]> | |
635 | ||
636 | * target.h (struct target_ops): New method | |
637 | to_set_circular_trace_buffer. | |
638 | (target_set_circular_trace_buffer): New macro. | |
639 | * target.c (update_current_target): Add | |
640 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
641 | default behavior. | |
642 | * remote.c (remote_set_circular_trace_buffer): New function. | |
643 | (init_remote_ops): Add it to vector. | |
644 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
645 | change buffer_size and buffer_free to int. | |
646 | * tracepoint.c (circular_trace_buffer): New global. | |
647 | (start_tracing): Send values of disconnected tracing and circular | |
648 | trace buffer settings. | |
649 | (set_circular_trace_buffer): New function. | |
650 | (parse_trace_state): Handle total space and frames created. | |
651 | (trace_status_command): Display total space and total frames | |
652 | created. | |
653 | (trace_save): Write out new status values. | |
654 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
655 | buffer_free and buffer_size to -1 by default. | |
656 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
657 | * NEWS: Mention the circular trace buffer option. | |
658 | ||
40c549d6 TT |
659 | 2010-03-18 Tom Tromey <[email protected]> |
660 | ||
661 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
662 | in TRY_CATCH. | |
663 | ||
e8d05480 JB |
664 | 2010-03-18 Joel Brobecker <[email protected]> |
665 | ||
666 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
667 | DIE has a name before creating the associated partial symbol. | |
668 | (read_func_scope): Emit a complaint if the subprogram does not | |
669 | have a name or when we can't extract the subprogram PC bounds. | |
670 | ||
441b986a UW |
671 | 2010-03-18 Ulrich Weigand <[email protected]> |
672 | ||
673 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
674 | instead of selected frame architecture. | |
675 | ||
4247603b PA |
676 | 2010-03-18 Pedro Alves <[email protected]> |
677 | ||
678 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
679 | a valid selected thread, and that it is not running. | |
680 | (advance_command): Ditto. | |
681 | (finish_command): Ditto. | |
682 | ||
400c6af0 SS |
683 | 2010-03-17 Stan Shebs <[email protected]> |
684 | ||
3a96536b SS |
685 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
686 | ||
573cda03 SS |
687 | * infcall.c: Include tracepoint.h. |
688 | (call_function_by_hand): Disallow calls in tfind mode. | |
689 | * infcmd.c: Include tracepoint.h. | |
690 | (ensure_not_tfind_mode): New function. | |
691 | (continue_1): Call it. | |
692 | (step_1) Ditto. | |
693 | (jump_command): Ditto. | |
694 | (signal_command): Ditto. | |
695 | (advance_command): Ditto. | |
696 | (until_command): Ditto. | |
697 | (finish_command): Ditto. | |
698 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
699 | ||
400c6af0 SS |
700 | * ax-gdb.h (struct axs_value): New field optimized_out. |
701 | (gen_trace_for_var): Add gdbarch argument. | |
702 | * ax-gdb.c (gen_trace_static_fields): New function. | |
703 | (gen_traced_pop): Call it, add gdbarch argument. | |
704 | (gen_trace_for_expr): Update call to it. | |
705 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
706 | (gen_struct_ref_recursive): Check for optimized-out value. | |
707 | (gen_struct_elt_for_reference): Ditto. | |
708 | (gen_static_field): Pass gdbarch instead of expression, assume | |
709 | optimization if field not found. | |
710 | (gen_var_ref): Set the optimized_out flag. | |
711 | (gen_expr): Error on optimized-out variable. | |
712 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
713 | expressions, skip optimized-out variables with computed locations. | |
714 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
715 | erroring out if location expression missing. | |
716 | (loclist_tracepoint_var_ref): Don't error out here. | |
717 | ||
a3b2a86b TT |
718 | 2010-03-17 Tom Tromey <[email protected]> |
719 | ||
720 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
721 | DWARF data is available. | |
722 | ||
38963c97 DJ |
723 | 2010-03-17 Daniel Jacobowitz <[email protected]> |
724 | ||
725 | * symfile.c (generic_load): Reset breakpoints after loading. | |
726 | ||
ddabfc73 TT |
727 | 2010-03-17 Tom Tromey <[email protected]> |
728 | ||
729 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
730 | ||
d8c09fb5 JK |
731 | 2010-03-17 Jan Kratochvil <[email protected]> |
732 | ||
733 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
734 | create_breakpoint call, adjust the parameters. | |
735 | ||
bbb0eef6 JK |
736 | 2010-03-16 Jan Kratochvil <[email protected]> |
737 | Chandru <[email protected]> | |
738 | ||
739 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
740 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
741 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
742 | ||
46956e39 HZ |
743 | 2010-03-16 Holger Hans Peter Freyther <[email protected]> |
744 | ||
745 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
746 | ||
b8d088ac JB |
747 | 2010-03-16 Joel Brobecker <[email protected]> |
748 | ||
749 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
750 | before doing the associated thread switch. | |
751 | ||
322be962 DJ |
752 | 2010-03-16 Daniel Jacobowitz <[email protected]> |
753 | ||
754 | * MAINTAINERS: Update my email address. | |
755 | ||
8cdf0e15 VP |
756 | 2010-03-16 Vladimir Prus <[email protected]> |
757 | ||
758 | Simplify MI breakpoint setting. | |
759 | ||
760 | * breakpoint.c (break_command_really): Make nonstatic and | |
761 | rename to... | |
762 | (create_breakpoint): ...this. Rename prior function by this name | |
763 | to... | |
764 | (create_breakpoint_sal): ...this. | |
765 | (create_breakpoints): Rename to... | |
766 | (create_breakpoints_sal): ...this. | |
767 | (set_breakpoint): Remove. | |
768 | * breakpoint.h: Adjust to above changes. | |
769 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
770 | ||
b6e7192f SS |
771 | 2010-03-15 Stan Shebs <[email protected]> |
772 | ||
773 | * ax-gdb.c: Include cp-support.h. | |
774 | (find_field): Remove. | |
775 | (gen_primitive_field): New function. | |
776 | (gen_struct_ref_recursive): New function. | |
777 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
778 | of find_field. | |
779 | (gen_static_field): New function. | |
780 | (gen_struct_elt_for_reference): New. | |
781 | (gen_namespace_elt): New. | |
782 | (gen_maybe_namespace_elt): New. | |
783 | (gen_aggregate_elt_ref): New. | |
784 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
785 | ||
1054b214 TT |
786 | 2010-03-15 Tom Tromey <[email protected]> |
787 | ||
788 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
789 | DW_TAG_subprogram. | |
790 | ||
13387711 SW |
791 | 2010-03-15 Sami Wagiaalla <[email protected]> |
792 | ||
793 | PR c++/7936: | |
794 | * cp-support.h: Added char *declaration element to using_direct | |
795 | data struct. | |
796 | (cp_add_using): Added char *declaration argument. | |
797 | (cp_add_using_directive): Ditto. | |
798 | (cp_lookup_symbol_imports): made extern. | |
799 | * cp-namespace.c: Updated with the above changes. | |
800 | * dwarf2read.c (read_import_statement): Ditto. | |
801 | (read_namespace): Ditto. | |
802 | (read_import_statement): Support import declarations. | |
803 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
804 | declarations. | |
805 | Added support for 'declaration_only' search. | |
806 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
807 | is before consideration of imports. | |
808 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
809 | search at every block level search. | |
810 | Now takes language argument. | |
811 | (lookup_symbol_aux): Updated. | |
812 | ||
6e31430b TT |
813 | 2010-03-15 Tom Tromey <[email protected]> |
814 | ||
815 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
816 | ||
4dea3bb7 | 817 | 2010-03-15 Ralf Corsepius <[email protected]> (tiny change) |
bf307134 JB |
818 | |
819 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
820 | * configure: Regenerate. | |
821 | ||
4d9743af JK |
822 | 2010-03-15 Jan Kratochvil <[email protected]> |
823 | ||
824 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
825 | and ".sdynbss". Update the comment. | |
826 | ||
f75150fe JZ |
827 | 2010-03-15 Jie Zhang <[email protected]> |
828 | ||
829 | * MAINTAINERS: Update my email address. | |
830 | ||
3c13bc11 DJ |
831 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
832 | ||
833 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
834 | ||
43484f03 DJ |
835 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
836 | ||
837 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
838 | (_initialize_charset): Correct type of w32_host_default_charset. | |
839 | ||
5f25d77d PA |
840 | 2010-03-14 Pedro Alves <[email protected]> |
841 | ||
842 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
843 | ||
1c809c68 TT |
844 | 2010-03-12 Tom Tromey <[email protected]> |
845 | ||
846 | PR c++/9708: | |
847 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
848 | in a lexical block does not need a namespace. | |
849 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
850 | list_in_scope in all cases. | |
851 | ||
948103cf SS |
852 | 2010-03-12 Stan Shebs <[email protected]> |
853 | ||
854 | * ax-gdb.c (gen_expr): Add shift expressions. | |
855 | (gen_expr_binop_rest): Ditto. | |
856 | ||
00ae8fef SW |
857 | 2010-03-12 Sami Wagiaalla <[email protected]> |
858 | ||
859 | * buildsym.c (finish_block): Reset using_directives pointer | |
860 | after block initialization. | |
861 | ||
9cad29ac L |
862 | 2010-03-12 H.J. Lu <[email protected]> |
863 | ||
864 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
865 | * i386-tdep.c (i386_word_names): Likewise. | |
866 | ||
2f4d8875 PA |
867 | 2010-03-12 Pedro Alves <[email protected]> |
868 | ||
869 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
870 | inspecting trace frames. | |
871 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
872 | dcache. | |
873 | ||
ccf26247 JK |
874 | 2010-03-11 Jan Kratochvil <[email protected]> |
875 | ||
876 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
877 | for the PIC displacement, print also the displacement value. | |
878 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
879 | ||
477c84a7 KB |
880 | 2010-03-10 Kevin Buettner <[email protected]> |
881 | ||
882 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
883 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
884 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
885 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
886 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
887 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
888 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
889 | comments describing each of these functions. | |
890 | (mips_enter_debug, mips_exit_debug, common_open) | |
891 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
892 | blank line after the comment describing the function. | |
893 | ||
01c30d6e JK |
894 | 2010-03-10 Jan Kratochvil <[email protected]> |
895 | ||
896 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
897 | parameter displacementp. Update comment. | |
898 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
899 | element exists. Return if svr4_exec_displacement was not successful. | |
900 | Update comment. | |
901 | ||
09919ac2 JK |
902 | 2010-03-10 Jan Kratochvil <[email protected]> |
903 | Daniel Jacobowitz <[email protected]> | |
904 | ||
905 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
906 | all program headers. | |
907 | (read_program_headers_from_bfd): New function. | |
908 | (svr4_static_exec_displacement): Remove and move the comment ... | |
909 | (svr4_exec_displacement): ... here. Remove variable found. New | |
910 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
911 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
912 | targets using read_program_headers_from_bfd. Remove the call of | |
913 | svr4_static_exec_displacement. | |
914 | ||
d146bf1e TT |
915 | 2010-03-10 Tom Tromey <[email protected]> |
916 | ||
917 | * dwarf2read.c (struct pubnames_header): Remove. | |
918 | (_PUBNAMES_HEADER): Remove. | |
919 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
920 | (struct aranges_header): Remove. | |
921 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
922 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
923 | (PUBNAMES_SECTION): Remove. | |
924 | (ARANGES_SECTION): Remove. | |
925 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
926 | (dwarf2_build_psymtabs): Remove dead code. | |
927 | (dwarf2_build_psymtabs_easy): Remove. | |
928 | ||
be391dca TT |
929 | 2010-03-10 Tom Tromey <[email protected]> |
930 | ||
931 | * elfread.c (elf_symfile_read): Don't call | |
932 | dwarf2_build_frame_info. | |
933 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
934 | (struct dwarf2_per_objfile) <objfile>: New field. | |
935 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
936 | (dwarf2_read_section): Check and set readin field. Call | |
937 | posix_madvise. | |
938 | (dwarf2_build_psymtabs): Don't read all sections. | |
939 | (read_type_comp_unit_head): Read types section. | |
940 | (create_debug_types_hash_table): Likewise. | |
941 | (init_cu_die_reader): Add asserts. | |
942 | (process_type_comp_unit): Add assert. | |
943 | (dwarf2_build_psymtabs_hard): Read info section. | |
944 | (load_partial_comp_unit): Add assert. | |
945 | (create_all_comp_units): Read info section. | |
946 | (load_full_comp_unit): Likewise. | |
947 | (dwarf2_ranges_read): Read ranges section. | |
948 | (dwarf2_record_block_ranges): Add assert. | |
949 | (dwarf2_read_abbrevs): Read abbrev section. | |
950 | (read_indirect_string): Read str section. | |
951 | (dwarf_decode_line_header): Read line section. | |
952 | (read_signatured_type_at_offset): Read types section. | |
953 | (dwarf_decode_macros): Read macinfo section. | |
954 | (dwarf2_symbol_mark_computed): Read loc section. | |
955 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
956 | dwarf2_build_frame_info. | |
957 | (dwarf2_build_frame_info): Unconditionally set | |
958 | dwarf2_frame_objfile_data on the objfile. | |
959 | * configure.ac: Check for posix_madvise. | |
960 | * config.in, configure: Rebuild. | |
961 | ||
ccefe4c4 TT |
962 | 2010-03-10 Tom Tromey <[email protected]> |
963 | ||
e38df1d0 TT |
964 | * xcoffread.c (xcoff_start_psymtab): Update. |
965 | (xcoff_end_psymtab): Update. | |
966 | * psymtab.c (allocate_psymtab): Remove dead code. | |
967 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
968 | void*. | |
969 | * mdebugread.c (parse_partial_symbols): Update. | |
970 | (new_psymtab): Likewise. | |
971 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
972 | (psymtab_to_symtab_1): Update. | |
973 | * dbxread.c (start_psymtab): Update. | |
974 | (end_psymtab): Likewise. | |
975 | ||
be391dca | 976 | 2010-03-10 Tom Tromey <[email protected]> |
e38df1d0 | 977 | |
ccefe4c4 TT |
978 | * xcoffread.c: Include psymtab.h. |
979 | (xcoff_sym_fns): Update. | |
980 | * symtab.h (struct partial_symbol): Remove. | |
981 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
982 | (struct partial_symtab): Remove. | |
983 | (PSYMTAB_TO_SYMTAB): Remove. | |
984 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
985 | (find_pc_sect_psymtab): Remove. | |
986 | (find_pc_sect_symtab_via_partial): Declare. | |
987 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
988 | (find_main_psymtab): Remove. | |
989 | (find_main_filename): Declare. | |
990 | (fixup_psymbol_section): Remove. | |
991 | (fixup_section): Declare. | |
992 | * symtab.c: Include psymtab.h. | |
993 | (lookup_symtab): Use lookup_symtab method. | |
994 | (lookup_partial_symtab): Remove. | |
995 | (find_pc_sect_psymtab_closer): Remove. | |
996 | (find_pc_sect_psymtab): Remove. | |
997 | (find_pc_sect_symtab_via_partial): New function. | |
998 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
999 | (fixup_section): No longer static. | |
1000 | (fixup_psymbol_section): Remove. | |
1001 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
1002 | (lookup_global_symbol_from_objfile): Likewise. | |
1003 | (lookup_symbol_aux_psymtabs): Remove. | |
1004 | (lookup_symbol_aux_quick): New function. | |
1005 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
1006 | (lookup_partial_symbol): Remove. | |
1007 | (basic_lookup_transparent_type_quick): New function. | |
1008 | (basic_lookup_transparent_type): Use it. | |
1009 | (find_main_psymtab): Remove. | |
1010 | (find_main_filename): New function. | |
1011 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
1012 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
1013 | (output_partial_symbol_filename): New function. | |
1014 | (sources_info): Use map_partial_symbol_filenames. | |
1015 | (struct search_symbols_data): New type. | |
1016 | (search_symbols_file_matches): New function. | |
1017 | (search_symbols_name_matches): Likewise. | |
1018 | (search_symbols): Use expand_symtabs_matching method. | |
1019 | (struct add_name_data): Rename from add_macro_name_data. | |
1020 | (add_macro_name): Update. | |
1021 | (add_partial_symbol_name): New function. | |
1022 | (default_make_symbol_completion_list): Use | |
1023 | map_partial_symbol_names. | |
1024 | (struct add_partial_symbol_name): New type. | |
1025 | (maybe_add_partial_symtab_filename): New function. | |
1026 | (make_source_files_completion_list): Use | |
1027 | map_partial_symbol_filenames. | |
1028 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
1029 | * symmisc.c: Include psymtab.h. | |
1030 | (print_objfile_statistics): Use print_stats method. | |
1031 | (dump_objfile): Use dump method. | |
1032 | (dump_psymtab, maintenance_print_psymbols) | |
1033 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
1034 | (extend_psymbol_list): Remove. | |
1035 | * symfile.h (struct quick_symbol_functions): New struct. | |
1036 | (struct sym_fns) <qf>: New field. | |
1037 | (sort_pst_symbols): Remove. | |
1038 | (increment_reading_symtab): Declare. | |
1039 | * symfile.c: Include psymtab.h. | |
1040 | (compare_psymbols, sort_pst_symbols): Remove. | |
1041 | (psymtab_to_symtab): Remove. | |
1042 | (increment_reading_symtab): New function. | |
1043 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
1044 | method. | |
1045 | (set_initial_language): Use find_main_filename. | |
1046 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
1047 | (free_named_symtabs): Remove unused code. | |
1048 | (start_psymtab_common, add_psymbol_to_bcache) | |
1049 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
1050 | Remove. | |
1051 | * stack.c: Include psymtab.h, symfile.h. | |
1052 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
1053 | * source.h (psymtab_to_fullname): Don't declare. | |
1054 | * source.c: Include psymtab.h. | |
1055 | (select_source_symtab): Use find_last_source_symtab method. | |
1056 | (forget_cached_source_info): Use forget_cached_source_info | |
1057 | method. | |
1058 | (find_and_open_source): No longer static. | |
1059 | (psymtab_to_fullname): Remove. | |
1060 | * somread.c: Include psymtab.h. | |
1061 | (som_sym_fns): Update. | |
1062 | * psympriv.h: New file. | |
1063 | * psymtab.h: New file. | |
1064 | * psymtab.c: New file. | |
1065 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
1066 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
1067 | * objfiles.c: Include psymtab.h. | |
1068 | (objfile_relocate1): Use relocate method. | |
1069 | (objfile_has_partial_symbols): Use has_symbols method. | |
1070 | * mipsread.c: Include psymtab.h. | |
1071 | (ecoff_sym_fns): Update. | |
1072 | * mi/mi-cmd-file.c: Include psymtab.h. | |
1073 | (print_partial_file_name): New function. | |
1074 | (mi_cmd_file_list_exec_source_files): Use | |
1075 | map_partial_symbol_filenames. | |
1076 | * mdebugread.c: Include psympriv.h. | |
1077 | * machoread.c: Include psympriv.h. | |
1078 | (macho_sym_fns): Update. | |
1079 | * m2-exp.y (yylex): Use lookup_symtab. | |
1080 | * elfread.c: Include psympriv.h. | |
1081 | (elf_sym_fns): Update. | |
1082 | * dwarf2read.c: Include psympriv.h. | |
1083 | * dbxread.c: Include psympriv.h. | |
1084 | (aout_sym_fns): Update. | |
1085 | * cp-support.c: Include psymtab.h. | |
1086 | (read_in_psymtabs): Remove. | |
1087 | (make_symbol_overload_list_qualified): Use | |
1088 | expand_symtabs_for_function method. | |
1089 | * coffread.c: Include psympriv.h. | |
1090 | (coff_sym_fns): Update. | |
1091 | * blockframe.c: Include psymtab.h. | |
1092 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
1093 | * ada-lang.h (ada_update_initial_language): Update. | |
1094 | * ada-lang.c: Include psymtab.h. | |
1095 | (ada_update_initial_language): Remove 'main_pst' argument. | |
1096 | (ada_lookup_partial_symbol): Remove. | |
1097 | (struct ada_psym_data): New type. | |
1098 | (ada_add_psyms): New function. | |
1099 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
1100 | (struct add_partial_datum): New type. | |
1101 | (ada_add_partial_symbol_completions): New function. | |
1102 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
1103 | (ada_exception_support_info_sniffer): Update. | |
1104 | * Makefile.in (SFILES): Add psymtab.c. | |
1105 | (COMMON_OBS): Add psymtab.o. | |
1106 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
1107 | ||
7d8500b7 PM |
1108 | 2010-03-10 Pierre Muller <[email protected]> |
1109 | ||
1110 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
1111 | ||
c0cc3a76 SW |
1112 | 2010-03-10 Sami Wagiaalla <[email protected]> |
1113 | ||
1114 | PR C++/11236: | |
1115 | * cp-namespace.c (cp_add_using): Deleted. | |
1116 | (cp_add_using_directive): Use obstack allocations. | |
1117 | Merged the function cp_add_using into this one. | |
1118 | Added 'struct obstack *' argument. | |
1119 | (cp_scan_for_anonymous_namespaces): Updated. | |
1120 | * cp-support.h: Updated. | |
1121 | * dwarf2read.c (read_import_statement): Updated. | |
1122 | (read_namespace): Updated. | |
1123 | ||
452fa064 CF |
1124 | 2010-03-10 Pierre Muller <[email protected]> |
1125 | ||
1126 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
1127 | ||
60e1c644 PA |
1128 | 2010-03-10 Pedro Alves <[email protected]> |
1129 | ||
1130 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
1131 | (is_hardware_watchpoint): Add comment. | |
1132 | (is_watchpoint): New. | |
1133 | (update_watchpoint): Don't reparse the watchpoint's condition | |
1134 | unless necessary. | |
1135 | (WP_IGNORE): New. | |
1136 | (watchpoint_check): Use it. | |
1137 | (bpstat_check_watchpoint): Handle it. | |
1138 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
1139 | conditions in a frame where it makes sense. | |
1140 | (watch_command_1): Store the innermost block of the condition | |
1141 | expression. | |
1142 | (delete_breakpoint): Delete the watchpoint condition expression. | |
1143 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
1144 | (struct breakpoint): New field `cond_exp_valid_block'. | |
1145 | ||
af6b7be1 JB |
1146 | 2010-03-09 Joel Brobecker <[email protected]> |
1147 | ||
1148 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
1149 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
1150 | ||
60c5c021 CF |
1151 | 2010-03-09 Christopher Faylor <[email protected]> |
1152 | Pierre Muller <[email protected]> | |
1153 | ||
1154 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
1155 | from/to posix/win32. | |
1156 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
1157 | (windows_create_inferior): Make sure that cygallargs points to | |
1158 | original args in non Cygwin 1.7. case. | |
1159 | ||
60a1502a MS |
1160 | 2010-03-09 Michael Snyder <[email protected]> |
1161 | ||
1162 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
1163 | after target_read_memory to get host byte order. | |
1164 | (i386_process_record): Ditto. | |
1165 | ||
94af9270 KS |
1166 | 2010-03-09 Keith Seitz <[email protected]> |
1167 | ||
1168 | Based on work from Daniel Jacobowitz <[email protected]> | |
1169 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
1170 | print out const or volatile qualifiers, too. | |
1171 | (c_type_print_args): Add parameters show_artificial and language. | |
1172 | Skip artificial parameters when requested. | |
1173 | Use the appropriate language printer. | |
1174 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
1175 | parameters and pass language_c. | |
1176 | * dwarf2read.c (die_list): New file global. | |
1177 | (struct partial_die_info): Update comments for name field. | |
1178 | (pdi_needs_namespace): Renamed to ... | |
1179 | (die_needs_namespace): ... this. Rewrite. | |
1180 | (dwarf2_linkage_name): Remove. | |
1181 | (add_partial_symbol): Do not predicate the call to | |
1182 | partial_die_full_name based on pdi_needs_namespace. | |
1183 | Remove call to cp_check_possible_namespace_symbols and associated | |
1184 | outdated comments. | |
1185 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
1186 | (dwarf2_fullname): Update comments. | |
1187 | Use die_needs_namespace to assist in computing the name. | |
1188 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
1189 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
1190 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
1191 | dwarf2_linkage_name. | |
1192 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
1193 | (determine_class): Remove. | |
1194 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
1195 | except Ada. | |
1196 | (new_symbol): Unconditionally call dwarf2_name. | |
1197 | Compute the "linkage name" using dwarf2_physname. | |
1198 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
1199 | When determining to scan for anonymous C++ namespaces, ignore | |
1200 | the linkage name. | |
1201 | (dwarf2_physname): New function. | |
1202 | (dwarf2_full_name): Move content to new function and call | |
1203 | that. | |
1204 | (dwarf2_compute_name): "New" function. | |
1205 | (_initialize_dwarf2_read): Initialize die_list. | |
1206 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
1207 | physname. | |
1208 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
1209 | without a demangled name. | |
1210 | Print out type information for non-virtual methods. | |
c8d5aac9 | 1211 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 1212 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
1213 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
1214 | (decode_compound): Stop consuming at an open parenthesis. | |
1215 | Keep template parameters. | |
1216 | Keep any overload information. | |
1217 | Keep keywords like "const". | |
1218 | Remove paren_pointer. | |
1219 | Move is_quoted check from set_flags to here. | |
1220 | Remove #if 0 code from 2000. Ten years is long enough. | |
1221 | (find_method): Before comparing symbol names, canonicalize the string | |
1222 | from the user. | |
1223 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
1224 | (find_method_overload_end): New function. |
1225 | (set_flags): Remove. | |
c8d5aac9 L |
1226 | (decode_compound): Assume that parentheses are matched. |
1227 | It's a lot easier. | |
94af9270 KS |
1228 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
1229 | to cplus_demangle. | |
1230 | * linespec.c (decode_line_1): Keep important keywords like | |
1231 | "const" and "volatile". | |
1232 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
1233 | * typeprint.h (c_type_print_args): Add declaration. | |
1234 | * ui-file.c (do_ui_file_obsavestring): New function. | |
1235 | (ui_file_obsavestring): New function. | |
1236 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
1237 | * valops.c (find_overload_match): Resolve the object to | |
1238 | a non-pointer type. | |
1239 | If the object is a data member, search the object for the member | |
1240 | and return with staticp set. | |
1241 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
1242 | Do not attempt to extract a function name from non-function types. | |
1243 | If the extracted function name and the original name are the same, | |
1244 | we don't have a C++ method. | |
1245 | ||
1246 | From Jan Kratochvil <[email protected]>: | |
1247 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
1248 | ||
1249 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
1250 | and arguments from symbol lookups. | |
1251 | * ax-gdb.c (gen_expr): Likewise. | |
1252 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
1253 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
1254 | lookup_possible_namespace_symbol): Likewise. | |
1255 | * cp-support.c (read_in_psymtabs): Likewise. | |
1256 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
1257 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
1258 | * scm-valprint.c (scm_inferior_print): Likewise. | |
1259 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
1260 | * solib-svr.c (elf_lookup_lib): Likewise. | |
1261 | * solib.c (show_auto_solib_add): Likewise. | |
1262 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
1263 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
1264 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
1265 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
1266 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
1267 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
1268 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
1269 | basic_lookup_transparent_type, find_main_psymtab, | |
1270 | lookup_block_symbol): Likewise. | |
1271 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
1272 | lookup_symbol_global, lookup_symbol_aux_block, | |
1273 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
1274 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
1275 | ||
9cb74f47 PM |
1276 | 2010-03-09 Pierre Muller <[email protected]> |
1277 | ||
1278 | * python/python-internal.h: Include symtab.h. | |
1279 | ||
af6b7be1 JB |
1280 | 2010-03-09 Joel Brobecker <[email protected]> |
1281 | Pierre Muller <[email protected]> | |
e13eedd5 PM |
1282 | |
1283 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
1284 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
1285 | indentation. | |
1286 | ||
bad56014 TT |
1287 | 2010-03-08 Tom Tromey <[email protected]> |
1288 | ||
1289 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
1290 | ||
08105857 PA |
1291 | 2010-03-08 Daniel Jacobowitz <[email protected]> |
1292 | Pedro Alves <[email protected]> | |
1293 | ||
1294 | * solib.c (solib_find): Replace extension if | |
1295 | solib_symbols_extension is set in the target gdbarch. | |
1296 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
1297 | solib_symbols_extension to "sym". | |
1298 | * gdbarch.sh (solib_symbols_extension): New variable. | |
1299 | (pstring): New function. | |
1300 | * gdbarch.h, gdbarch.c: Regenerate. | |
1301 | ||
7c953934 TT |
1302 | 2010-03-08 Tom Tromey <[email protected]> |
1303 | ||
1304 | PR cli/9591: | |
1305 | * NEWS: Update. | |
1306 | * utils.c: Include main.h. | |
1307 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
1308 | (defaulted_query): Use default answer if `batch_flag'. | |
1309 | * main.h (batch_flag): Declare. | |
1310 | * main.c (batch_flag): New global. | |
1311 | (captured_main): Remove 'batch'. Update. | |
1312 | ||
bbd2783e KB |
1313 | 2010-03-08 Kevin Buettner <[email protected]> |
1314 | ||
1315 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
1316 | and Kevin Buettner: | |
1317 | ||
1318 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
1319 | (MON_ROCKHOPPER): New mips_monitor_type. | |
1320 | (read_hex_value): New function. | |
1321 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
1322 | packet argument as a string and use read_hex_value to parse it. | |
1323 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. | |
1324 | (rockhopper_open): New function. | |
1325 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
1326 | read_hex_value to parse them and mips_set_register to commit them. | |
1327 | (mips_set_register): New function. | |
1328 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
1329 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
1330 | (mips_store_registers): Use a 'T' packet to set registers when | |
1331 | using MON_ROCKHOPPER. | |
1332 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
1333 | and expect the total to be printed before the entry address. | |
1334 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
1335 | ||
566f3d17 KB |
1336 | 2010-03-08 Kevin Buettner <[email protected]> |
1337 | ||
1338 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
1339 | Change return value to int. Store value fetched in location | |
1340 | addressed by `val'. Use function's return value as success | |
1341 | or failure indicator. Adjust all callers. | |
1342 | ||
9c8ee2ab | 1343 | 2010-03-08 Pierre Muller <[email protected]> |
f72d4b77 PM |
1344 | |
1345 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
1346 | ||
7155de5a HZ |
1347 | 2010-03-08 Jan Kratochvil <[email protected]> |
1348 | Hui Zhu <[email protected]> | |
1349 | ||
1350 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
1351 | tmp_to_stopped_data_address. | |
1352 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
1353 | tmp_to_stopped_data_address. | |
1354 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
1355 | to_stopped_data_address. | |
1356 | ||
580879fc HZ |
1357 | 2010-03-08 Hui Zhu <[email protected]> |
1358 | ||
1359 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
1360 | ||
b0fcb67f JK |
1361 | 2010-03-08 Jan Kratochvil <[email protected]> |
1362 | ||
1363 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
1364 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
1365 | ||
08597104 JB |
1366 | 2010-03-08 Joel Brobecker <[email protected]> |
1367 | ||
1368 | Memory error when reading wrong core file. | |
1369 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
1370 | errors while reading the inferior memory, and return zero if | |
1371 | an exception was raised. | |
1372 | ||
425b824a MS |
1373 | 2010-03-07 Michael Snyder <[email protected]> |
1374 | ||
ec6dbf37 MS |
1375 | * record.c (record_restore): Rename tmpu8 to rectype. |
1376 | ||
648d0c8b MS |
1377 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
1378 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
1379 | ||
1380 | (i386_record_push): Rename local tmpulongest to addr. | |
1381 | ||
1382 | (i386_process_record): Rename local tmpulongest to addr. | |
1383 | ||
1384 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
1385 | addr64. | |
955db0c0 MS |
1386 | |
1387 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 1388 | |
10760264 JB |
1389 | 2010-03-07 Joel Brobecker <[email protected]> |
1390 | ||
1391 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 1392 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 1393 | |
b3c613f2 CF |
1394 | 2010-03-06 Christopher Faylor <[email protected]> |
1395 | ||
1396 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
1397 | block. Define helper macros to reduce ifdefs in code. | |
1398 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
1399 | size. Call unadorned GetModuleFileNameEx rather than | |
1400 | GetModuleFileNameEx*. | |
1401 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
1402 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
1403 | appropriate. | |
1404 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
1405 | (handle_load_dll): Likewise. | |
1406 | (windows_pid_to_exec_file): Likewise. | |
1407 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
1408 | non-Cygwin. | |
1409 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
1410 | __USEWIDE conditional. | |
1411 | (bad_GetModuleFileNameExA): Likewise. | |
1412 | (_initialize_loadable): Just use real function names without the dyn_ | |
1413 | part since they are defined earlier. | |
1414 | ||
f870a310 TT |
1415 | 2010-03-05 Corinna Vinschen <[email protected]> |
1416 | Tom Tromey <[email protected]> | |
1417 | ||
1418 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
1419 | (parse_escape): Likewise. | |
1420 | * python/py-utils.c (unicode_to_target_string): Update. | |
1421 | (unicode_to_target_python_string): Update. | |
1422 | (target_string_to_unicode): Update. | |
1423 | * printcmd.c (printf_command): Update. | |
1424 | * p-exp.y (yylex): Update. | |
1425 | * objc-exp.y (yylex): Update. | |
1426 | * mi/mi-parse.c: Include charset.h. | |
1427 | (mi_parse_escape): New function. | |
1428 | (mi_parse_argv): Use it. | |
1429 | * jv-exp.y (yylex): Update. | |
1430 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
1431 | function. | |
1432 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
1433 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
1434 | * gdbarch.c: Rebuild. | |
1435 | * gdbarch.h: Rebuild. | |
1436 | * defs.h (parse_escape): Update. | |
1437 | * cli/cli-setshow.c: Include arch-utils.h. | |
1438 | (do_setshow_command): Update. | |
1439 | * cli/cli-cmds.c (echo_command): Update. | |
1440 | * charset.h (target_charset, target_wide_charset): Update. | |
1441 | * charset.c: Include arch-utils.h. | |
1442 | (target_charset_name): Default to "auto". | |
1443 | (target_wide_charset_name): Likewise. | |
1444 | (show_target_charset_name): Handle "auto". | |
1445 | (show_target_wide_charset_name): Likewise. | |
1446 | (be_le_arch): New global. | |
1447 | (set_be_le_names): Add 'gdbarch' argument. | |
1448 | (validate): Likewise. Don't call set_be_le_names. | |
1449 | (set_charset_sfunc, set_host_charset_sfunc) | |
1450 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
1451 | Update. | |
1452 | (target_charset): Add 'gdbarch' argument. | |
1453 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
1454 | (auto_target_charset_name): New global. | |
1455 | (default_auto_charset, default_auto_wide_charset): New functions. | |
1456 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
1457 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
1458 | USE_WIN32API. | |
1459 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
1460 | remove 'byte_order' argument. Update. | |
1461 | (classify_type): Likewise. | |
1462 | (c_emit_char): Update. | |
1463 | (c_printchar): Update. | |
1464 | (c_printstr): Update. | |
1465 | (c_get_string): Update. | |
1466 | (evaluate_subexp_c): Update. | |
1467 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
1468 | Declare. | |
1469 | * python/python.c (gdbpy_target_charset): New function. | |
1470 | (gdbpy_target_wide_charset): Likewise. | |
1471 | (GdbMethods): Update. | |
1472 | * NEWS: Update. | |
1473 | ||
4e7386b0 UW |
1474 | 2010-03-05 Ulrich Weigand <[email protected]> |
1475 | ||
1476 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
1477 | off high address bits. | |
1478 | ||
aab48ede UW |
1479 | 2010-03-05 Ulrich Weigand <[email protected]> |
1480 | ||
1481 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
1482 | address as UnsignedLongLong, not LongLong. | |
1483 | ||
8eeafb51 | 1484 | 2010-03-05 Kevin Buettner <[email protected]> |
c8d5aac9 | 1485 | Pedro Alves <[email protected]> |
8eeafb51 KB |
1486 | |
1487 | * remote-mips.c (gdbthread.h): Include. | |
1488 | (remote_mips_ptid): Declare. | |
1489 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
1490 | (common_open): Set inferior_ptid, add it as an inferior, and | |
1491 | as a thread too. Delete FIXME comment regarding start_remote(). | |
1492 | (mips_close): Invoke generic_mourn_inferior(). | |
1493 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
1494 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
1495 | it's now invoked from mips_close(). | |
1496 | (mips_load): Don't null out inferior_ptid. Don't call | |
1497 | clear_symtab_users(). | |
1498 | (mips_thread_alive, mips_pid_to_str): New functions. | |
1499 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
1500 | to_thread_alive and to_pid_to_str operations. | |
1501 | ||
ae411497 TT |
1502 | 2010-03-04 Tom Tromey <[email protected]> |
1503 | ||
1504 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
1505 | in DWARF 3 and later. | |
1506 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
1507 | ||
0e0b460e KS |
1508 | 2010-03-04 Keith Seitz <[email protected]> |
1509 | ||
1510 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
1511 | If the filename portion of the linespec was quoted, recheck the | |
1512 | remainder for additional quoting. | |
1513 | (locate_first_half): Skip over completer chars, too. | |
1514 | ||
1b93ff13 TT |
1515 | 2010-03-04 Tom Tromey <[email protected]> |
1516 | ||
1517 | * printcmd.c (printf_command): Pass dummy argument to | |
1518 | printf_filtered. | |
1519 | ||
fc36e839 DE |
1520 | 2010-03-04 Doug Evans <[email protected]> |
1521 | ||
111f853c DE |
1522 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
1523 | unwound_fp. | |
1524 | ||
fc36e839 DE |
1525 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
1526 | ||
c7437ca6 PA |
1527 | 2010-03-04 Pedro Alves <[email protected]> |
1528 | ||
1529 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
1530 | the software watchpoint isn't watching any memory. | |
1531 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
1532 | ||
58dadb1b PA |
1533 | 2010-03-04 Pedro Alves <[email protected]> |
1534 | ||
1535 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
1536 | level interpreter before dereferencing it. If there isn't one, | |
1537 | don't paginate either. | |
1538 | ||
50e98be4 DJ |
1539 | 2010-03-04 Matthew Gretton-Dann <[email protected]> |
1540 | ||
1541 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
1542 | the state right when single stepping. | |
1543 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
1544 | Get the next PC along with the instruction state. | |
1545 | (thumb_get_next_pc): Remove. | |
1546 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
1547 | ||
2e3ceee9 HZ |
1548 | 2010-03-04 Hui Zhu <[email protected]> |
1549 | ||
1550 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
1551 | ||
390a8aca PA |
1552 | 2010-03-03 Pedro Alves <[email protected]> |
1553 | ||
1554 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
1555 | top level interpreter is MI. | |
1556 | ||
9355b391 SS |
1557 | 2010-03-03 Stan Shebs <[email protected]> |
1558 | ||
1559 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
1560 | * tracepoint.c (validate_actionline): Ditto. | |
1561 | (encode_actions): Add location argument. | |
1562 | (trace_dump_command): Check all locations to see if stepping | |
1563 | frame. | |
390a8aca | 1564 | |
8685c86f L |
1565 | 2010-03-03 H.J. Lu <[email protected]> |
1566 | Eli Zaretskii <[email protected]> | |
1567 | ||
1568 | * NEWS: Add X86 general purpose registers section. | |
1569 | ||
e8f781e2 TT |
1570 | 2010-03-03 Tom Tromey <[email protected]> |
1571 | ||
1572 | PR mi/11098: | |
1573 | * varobj.c (install_new_value): Handle case where new print_value | |
1574 | is NULL. | |
1575 | ||
a0e0ef55 TT |
1576 | 2010-03-03 Dainis Jonitis <[email protected]> |
1577 | ||
1578 | PR gdb/11345: | |
1579 | * printcmd.c (printf_command): Print end of format string using | |
1580 | printf_filtered. | |
1581 | ||
a58d7472 TT |
1582 | 2010-03-02 Tom Tromey <[email protected]> |
1583 | ||
1584 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
1585 | * defs.h (read_command_lines_1): Add missing 'void'. | |
1586 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
1587 | 'void'. | |
1588 | (read_next_line): Likewise. | |
1589 | (read_command_lines_1): Likewise. | |
1590 | ||
ce50d78b UW |
1591 | 2010-03-02 Ulrich Weigand <[email protected]> |
1592 | ||
1593 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
1594 | store backchain as part of prologue. | |
1595 | ||
7e9af34a DJ |
1596 | 2010-03-02 Daniel Jacobowitz <[email protected]> |
1597 | ||
1598 | * progspace.c (update_address_spaces): Update inferior address spaces | |
1599 | also. | |
1600 | ||
01637564 DE |
1601 | 2010-03-02 Doug Evans <[email protected]> |
1602 | ||
1603 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
1604 | lowpc,highpc args to addrmap_set_empty. | |
1605 | ||
1ba53b71 L |
1606 | 2010-03-02 H.J. Lu <[email protected]> |
1607 | ||
1608 | * amd64-tdep.c (amd64_byte_names): New. | |
1609 | (amd64_word_names): Likewise. | |
1610 | (amd64_dword_names): Likewise. | |
1611 | (amd64_pseudo_register_name): Likewise. | |
1612 | (amd64_pseudo_register_read): Likewise. | |
1613 | (amd64_pseudo_register_write): Likewise. | |
1614 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
1615 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
1616 | set_gdbarch_pseudo_register_write and | |
1617 | set_tdesc_pseudo_register_name. Don't call | |
1618 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
1619 | ||
1620 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
1621 | (i386_num_pseudo_regs): Likewise. | |
1622 | (i386_byte_names): New. | |
1623 | (i386_word_names): Likewise. | |
1624 | (i386_byte_regnum_p): Likewise. | |
1625 | (i386_word_regnum_p): Likewise. | |
1626 | (i386_mmx_regnum_p): Updated. | |
1627 | (i386_pseudo_register_name): Make it global. Handle byte and | |
1628 | word pseudo-registers. | |
1629 | (i386_pseudo_register_read): Likewise. | |
1630 | (i386_pseudo_register_write): Likewise. | |
1631 | (i386_pseudo_register_type): Handle byte, word and dword | |
1632 | pseudo-registers | |
1633 | (i386_register_reggroup_p): Don't include pseudo | |
1634 | registers, except for MXX, in any register groups. Don't | |
1635 | include pseudo byte, word, dword registers in general_reggroup. | |
1636 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
1637 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
1638 | pseudo-registers after word pseudo-registers. Call | |
1639 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
1640 | ||
1641 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
1642 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
1643 | eax_regnum. | |
1644 | (i386_byte_regnum_p): New. | |
1645 | (i386_word_regnum_p): Likewise. | |
1646 | (i386_dword_regnum_p): Likewise. | |
1647 | (i386_pseudo_register_name): Likewise. | |
1648 | (i386_pseudo_register_read): Likewise. | |
1649 | (i386_pseudo_register_write): Likewise. | |
1650 | ||
a6f5ef51 L |
1651 | 2010-03-01 H.J. Lu <[email protected]> |
1652 | ||
1653 | * target-descriptions.c (tdesc_type): Remove | |
1654 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
1655 | (tdesc_predefined_types): Likewise. | |
1656 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
1657 | if flag name is empty. | |
1658 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
1659 | ||
1660 | * features/i386/32bit-core.xml: Define i386_eflags. | |
1661 | * features/i386/64bit-core.xml: Likewise. | |
1662 | ||
1663 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
1664 | * features/i386/64bit-sse.xml: Likewise. | |
1665 | ||
1666 | * features/i386/amd64-linux.c: Regenerated. | |
1667 | * features/i386/amd64.c: Likewise. | |
1668 | * features/i386/i386-linux.c: Likewise. | |
1669 | * features/i386/i386.c: Likewise. | |
1670 | ||
f5dff777 DJ |
1671 | 2010-03-01 Daniel Jacobowitz <[email protected]> |
1672 | ||
1673 | * gdbtypes.c (append_composite_type_field_raw): New. | |
1674 | (append_composite_type_field_aligned): Use the new function. | |
1675 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
1676 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
1677 | (struct tdesc_type_flag): New type. | |
1678 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
1679 | kind. Add size to u.u. Add u.f for flags. | |
1680 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
1681 | (tdesc_free_type): Likewise. | |
1682 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
1683 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
1684 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
1685 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
1686 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
1687 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
1688 | current_type. Add current_type_size and current_type_is_flags. | |
1689 | (tdesc_start_union): Clear the new fields. | |
1690 | (tdesc_start_struct, tdesc_start_flags): New. | |
1691 | (tdesc_start_field): Handle struct fields, including bitfields. | |
1692 | (field_attributes): Make type optional. Add start and end. | |
1693 | (union_children): Rename to struct_union_children. | |
1694 | (union_attributes): Rename to struct_union_attributes. Add optional | |
1695 | size. | |
1696 | (flags_attributes): New. | |
1697 | (feature_children): Add struct and flags. | |
1698 | * features/gdb-target.dtd: Add flags and struct to features. | |
1699 | Make field type optional. Add field start and end. | |
1700 | ||
90884b2b L |
1701 | 2010-03-01 H.J. Lu <[email protected]> |
1702 | ||
1703 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
1704 | (amd64_linux_read_description): Likewise. | |
1705 | (_initialize_amd64_linux_nat): Set to_read_description to | |
1706 | amd64_linux_read_description. | |
1707 | ||
1708 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
1709 | (amd64_linux_register_name): Removed. | |
1710 | (amd64_linux_register_type): Likewise. | |
1711 | (amd64_linux_core_read_description): New. | |
1712 | (amd64_linux_init_abi): Set target description to | |
1713 | tdesc_amd64_linux if needed. Support orig_rax in target | |
1714 | description. Don't call set_gdbarch_register_name nor | |
1715 | set_gdbarch_register_type. Call | |
1716 | set_gdbarch_core_read_description. | |
1717 | (_initialize_amd64_linux_tdep): Call | |
1718 | initialize_tdesc_amd64_linux. | |
1719 | ||
1720 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
1721 | ||
1722 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
1723 | (amd64_register_names): Removed. | |
1724 | (amd64_register_name): Likewise. | |
1725 | (amd64_register_type): Likewise. | |
1726 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
1727 | target description to tdesc_amd64 if needed. Don't call | |
1728 | set_gdbarch_register_name nor set_gdbarch_register_type. | |
1729 | (_initialize_amd64_tdep): New. | |
1730 | ||
1731 | * i386-linux-nat.c (i386_linux_read_description): New. | |
1732 | (_initialize_i386_linux_nat): Set to_read_description to | |
1733 | i386_linux_read_description. | |
1734 | ||
1735 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
1736 | (i386_linux_register_name): Removed. | |
1737 | (i386_linux_core_read_description): New. | |
1738 | (i386_linux_read_description): Likewise. | |
1739 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
1740 | Set target description to tdesc_i386_linux if needed. Support | |
1741 | orig_eax. Set register_reggroup_p. Call | |
1742 | set_gdbarch_core_read_description. | |
1743 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
1744 | ||
1745 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
1746 | ||
1747 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
1748 | with I387_NUM_REGS. | |
1749 | ||
1750 | * i386-tdep.c: Include "features/i386/i386.c". | |
1751 | (i386_register_names): Make it const. | |
1752 | (i386_mmx_names): Likewise. | |
1753 | (i386_num_register_names): Removed. | |
1754 | (i386_register_name): Likewise. | |
1755 | (i386_eflags_type): Likewise. | |
1756 | (i386_mxcsr_type): Likewise. | |
1757 | (i386_sse_type): Likewise. | |
1758 | (i386_register_type): Likewise. | |
1759 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
1760 | (i386_pseudo_register_name): New. | |
1761 | (i386_pseudo_register_type): Likewise. | |
1762 | (i386_mmx_type): Make it static. | |
1763 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
1764 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
1765 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
1766 | Set register_reggroup_p. Set target description to tdesc_i386 | |
1767 | if needed. Call set_tdesc_pseudo_register_type, | |
1768 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
1769 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
1770 | initialize_tdesc_x86_64. | |
1771 | ||
1772 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
1773 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
1774 | register_names, tdesc and register_reggroup_p. | |
1775 | (I386_NUM_FREGS): Removed. | |
1776 | (i386_eflags_type): Likewise. | |
1777 | (i386_mxcsr_type): Likewise. | |
1778 | (i386_mmx_type): Likewise. | |
1779 | (i386_sse_type): Likewise. | |
1780 | (i386_register_name): Likewise. | |
1781 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
1782 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
1783 | ||
1784 | * i387-tdep.h (I387_NUM_REGS): New. | |
1785 | ||
1786 | * regformats/i386/i386-linux.dat: Generated. | |
1787 | * regformats/i386/i386.dat: Likewise. | |
1788 | * regformats/i386/amd64-linux.dat: Likewise. | |
1789 | * regformats/i386/amd64.dat: Likewise. | |
1790 | ||
1791 | * regformats/reg-i386-linux.dat: Removed. | |
1792 | * regformats/reg-i386.dat: Likewise. | |
1793 | * regformats/reg-x86-64-linux.dat: Likewise. | |
1794 | * regformats/reg-x86-64.dat: Likewise. | |
1795 | ||
d0d0ab16 CV |
1796 | 2010-03-01 Corinna Vinschen <[email protected]> |
1797 | ||
1798 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
1799 | cygwin_conv_path API rather than the deprecated | |
1800 | cygwin_conv_to_full_posix_path. | |
1801 | * windows-nat.c: | |
1802 | (GetModuleFileNameExA): Undefine for Cygwin. | |
1803 | (GetModuleFileNameExW): Define for Cygwin. | |
1804 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
1805 | Call GetModuleFileNameExW and convert path to POSIX using | |
1806 | cygwin_conv_path. | |
1807 | (windows_make_so): Always define p. Drop unused variable m. | |
1808 | Don't use Win32 functions to check file existance, rather use | |
1809 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
1810 | Use canonicalize_file_name to get full path. | |
1811 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
1812 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
1813 | use correct target buffer size in call to WideCharToMultiByte. | |
1814 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
1815 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
1816 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
1817 | and use CreateProcessW on Cygwin. | |
1818 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
1819 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
1820 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
1821 | (_initialize_loadable): Load GetModuleFileNameExW into | |
1822 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
1823 | ||
dc00d89f PM |
1824 | 2010-02-28 Phil Muldoon <[email protected]> |
1825 | ||
1826 | PR python/11036 | |
1827 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
1828 | to cope with user provided blocks. | |
1829 | ||
0e095b7e JK |
1830 | 2010-02-28 Jan Kratochvil <[email protected]> |
1831 | ||
1832 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
1833 | New comment. | |
1834 | ||
2f9e05b4 CV |
1835 | 2010-02-28 Corinna Vinschen <[email protected]> |
1836 | ||
1837 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
1838 | (COMMON_OBS): ... to here since it's used unconditionally. | |
1839 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
1840 | (SFILES): To here. | |
1841 | ||
eb195664 DD |
1842 | 2010-02-26 David Daney <[email protected]> |
1843 | ||
1844 | * mips-linux-tdep.c: Update struct sigframe comments. | |
1845 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
1846 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
1847 | this_frame's sp. | |
1848 | (mips_linux_n32n64_sigframe_init): Same. | |
1849 | ||
97b0f3e2 KB |
1850 | 2010-02-26 Kevin Buettner <[email protected]> |
1851 | ||
1852 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
1853 | invalidating regcache. | |
1854 | ||
4069ebbe DJ |
1855 | 2010-02-26 Daniel Jacobowitz <[email protected]> |
1856 | ||
1857 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
1858 | ||
05071a4d PA |
1859 | 2010-02-26 Pedro Alves <[email protected]> |
1860 | ||
1861 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
1862 | support. | |
1863 | ||
6063c216 UW |
1864 | 2010-02-26 Ulrich Weigand <[email protected]> |
1865 | ||
1866 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
1867 | add ADDR_SIZE member. | |
1868 | (allocate_piece_closure): Update. | |
1869 | (copy_pieced_value_closure): Likewise. | |
1870 | (dwarf2_evaluate_loc_desc): Likewise. | |
1871 | (read_pieced_value): Use DWARF address size instead of | |
1872 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
1873 | ||
5107b149 | 1874 | 2010-02-26 Phil Muldoon <[email protected]> |
c8d5aac9 | 1875 | Tom Tromey <[email protected]> |
5107b149 PM |
1876 | |
1877 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
1878 | If provided restrict lookup to specified blocks. | |
1879 | (gdbpy_lookup_type): Likewise. | |
1880 | (typy_lookup_type): Likewise. | |
1881 | ||
78664fa3 PA |
1882 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
1883 | ||
1884 | Symbian config | |
1885 | ||
1886 | gdb/ | |
1887 | * arm-symbian-tdep.c: New. | |
1888 | * configure.tgt (arm*-*-symbianelf*): New target. | |
1889 | (*-*-symbianelf*): New OS. | |
1890 | * osabi.c (gdb_osabi_names): Add Symbian. | |
1891 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
1892 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
1893 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
1894 | ||
eb73e134 DJ |
1895 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
1896 | ||
1897 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
1898 | ||
46ef47e5 PA |
1899 | 2010-02-24 Pedro Alves <[email protected]> |
1900 | ||
1901 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
1902 | ||
f3e9a817 PM |
1903 | 2010-02-24 Phil Muldoon <[email protected]> |
1904 | Tom Tromey <[email protected]> | |
1905 | Thiago Jung Bauermann <[email protected]> | |
1906 | ||
1907 | * python/python.c (_initialize_python): Call | |
1908 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
1909 | gdbpy_initialize_blocks. | |
1910 | * python/python-internal.h: Declare struct symbol, block and | |
1911 | symtab_and_line. Declare block_object_type and | |
1912 | symbol_object_type | |
1913 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
1914 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
1915 | (symbol_to_symbol_object, block_to_block_object) | |
1916 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
1917 | (gdbpy_initialize_blocks ): Declare. | |
1918 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
1919 | (frapy_select): Add methods. | |
1920 | (frapy_read_var): Add symbol branch. | |
1921 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
1922 | py-block. | |
1923 | (SUBDIR_PYTHON_SRCS): Likewise. | |
1924 | (py-symbol.o): New rule. | |
1925 | (py-symtab.o): Likewise. | |
1926 | (py-block.o): Likewise. | |
1927 | * python/py-symbol.c: New file. | |
1928 | * python/py-symtab.c: Likewise. | |
1929 | * python/py-block.c: Likewise. | |
1930 | ||
24291992 PA |
1931 | 2010-02-24 Pedro Alves <[email protected]> |
1932 | ||
1933 | PR gdb/11321 | |
1934 | ||
1935 | * inferior.h (prepare_for_detach): Declare. | |
1936 | (struct inferior) <detaching>: New field. | |
1937 | * infrun.c (prepare_for_detach): New. | |
1938 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
1939 | * target.c (target_detach): Call prepare_for_detach. | |
1940 | ||
fc1cf338 PA |
1941 | 2010-02-24 Pedro Alves <[email protected]> |
1942 | ||
1943 | Per-process displaced stepping queue. | |
1944 | ||
1945 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
1946 | (displaced_step_gdbarch, displaced_step_closure, | |
1947 | (displaced_step_original, displaced_step_copy): Move globals to | |
1948 | this... | |
1949 | (struct displaced_step_inferior_state): ... new structure. | |
1950 | (displaced_step_inferior_states): New global. | |
1951 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
1952 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
1953 | functions. | |
1954 | (displaced_step_clear): Add displaced_step_inferior_state | |
1955 | parameter, and adjust to handle it. | |
1956 | (displaced_step_clear_cleanup): Parameter is now a | |
1957 | displaced_step_inferior_state. Adjust. | |
1958 | (displaced_step_prepare): Adjust. | |
1959 | (displaced_step_fixup, displaced_step_fixup) | |
1960 | (infrun_thread_ptid_changed, resume): Adjust. | |
1961 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
1962 | (infrun_thread_stop_requested): Rewrite. | |
1963 | (_initialize_infrun): Install infrun_inferior_exit as | |
1964 | inferior_exit observer. | |
1965 | ||
0723dbf5 PA |
1966 | 2010-02-24 Pedro Alves <[email protected]> |
1967 | ||
1968 | * inferior.h (ptid_match): Declare. | |
1969 | * infrun.c (ptid_match): New. | |
1970 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
1971 | (handle_notification): Add debug output. | |
1972 | * linux-nat.c (ptid_match): Delete. | |
1973 | ||
09de9781 DM |
1974 | 2010-02-24 David S. Miller <[email protected]> |
1975 | ||
1976 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
1977 | * syscalls/sparc-linux.xml: New. | |
1978 | * syscalls/sparc64-linux.xml: New. | |
1979 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
1980 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
1981 | (sparc32_linux_get_syscall_number): New function. | |
1982 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
1983 | syscall number fetcher. | |
1984 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
1985 | (sparc64_linux_get_syscall_number): New function. | |
1986 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
1987 | syscall number fetcher. | |
1988 | ||
a79b8f6e VP |
1989 | 2010-02-24 Vladimir Prus <[email protected]> |
1990 | ||
1991 | Multiexec MI | |
1992 | ||
1993 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
1994 | * inferior.c (add_inferior_silent): Notify inferior_added | |
1995 | observer. | |
1996 | (delete_inferior_1): Notify inferior_removed observer. | |
1997 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
1998 | (inferior_appeared): Likewise. | |
1999 | (add_inferior_with_spaces): New. | |
2000 | (add_inferior_command): Use the above. | |
2001 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
2002 | Declare. | |
2003 | ||
2004 | * inflow.c (inflow_inferior_exit): Likewise. | |
2005 | * jit.c (jit_inferior_exit_hook): Likewise. | |
2006 | ||
2007 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
2008 | remove-inferior. | |
2009 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
2010 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
2011 | (report_initial_inferior): New. | |
2012 | (mi_inferior_removed): Register the above. Make sure | |
2013 | inferior_added observer is called on the first inferior. | |
2014 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
2015 | inferior number, not pid. | |
2016 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
2017 | affected. | |
2018 | * mi/mi-main.c (current_context): New. | |
2019 | (proceed_thread_callback): Use typed closure. | |
2020 | Proceed everything if pid is 0. Most implementation split into | |
2021 | (proceed_thread): ... this. | |
2022 | (run_one_inferior): New. | |
2023 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
2024 | Adjust for multiexec behaviour. | |
2025 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
2026 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
2027 | Do some extra checks. | |
2028 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
2029 | options. | |
2030 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
2031 | ||
115d30f9 VP |
2032 | 2010-02-24 Vladimir Prus <[email protected]> |
2033 | ||
2034 | Make -exec-run a proper MI commands. | |
2035 | ||
2036 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
2037 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
2038 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
2039 | ||
06cd862c PA |
2040 | 2010-02-24 Pedro Alves <[email protected]> |
2041 | Stan Shebs <[email protected]> | |
2042 | ||
2043 | * tracepoint.h (set_traceframe_number) | |
2044 | (cleanup_restore_current_traceframe): Declare. | |
2045 | * tracepoint.c (set_traceframe_number): New. | |
2046 | (struct current_traceframe_cleanup): New. | |
2047 | (do_restore_current_traceframe_cleanup) | |
2048 | (restore_current_traceframe_cleanup_dtor) | |
2049 | (make_cleanup_restore_current_traceframe): New. | |
2050 | * infrun.c: Include tracepoint.h. | |
2051 | (fetch_inferior_event): Switch out and in of tfind mode. | |
2052 | ||
ab92d69b PA |
2053 | 2010-02-24 Pedro Alves <[email protected]> |
2054 | ||
2055 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
2056 | bp_shlib_event breakpoints. | |
2057 | * solib-frv.c (enable_break): Remove call to | |
2058 | remove_solib_event_breakpoints. | |
2059 | * solib-svr4.c (enable_break): Ditto. | |
2060 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
2061 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
2062 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
2063 | * solib-spu.c (spu_enable_break): Ditto. | |
2064 | ||
e707a91d PA |
2065 | 2010-02-23 Harald Koenig <[email protected]> |
2066 | ||
2067 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
2068 | ||
cfce2ea2 PA |
2069 | 2010-02-23 Harald Koenig <[email protected]> |
2070 | ||
2071 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
2072 | ||
05566b3b TT |
2073 | 2010-02-23 Tom Tromey <[email protected]> |
2074 | ||
2075 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
2076 | handle big-endian values. | |
2077 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
2078 | ||
85d721b8 PA |
2079 | 2010-02-22 Pedro Alves <[email protected]> |
2080 | ||
2081 | PR9605 | |
2082 | ||
2083 | gdb/ | |
2084 | * breakpoint.c (insert_bp_location): If inserting the read | |
2085 | watchpoint failed, fallback to an access watchpoint. | |
2086 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
2087 | if the value changed, if not watching the same memory for writes. | |
2088 | (watchpoint_locations_match): Add comment. | |
2089 | (update_global_location_list): Copy the location's watchpoint type. | |
2090 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
2091 | handle read watchpoints here. | |
2092 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
2093 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
2094 | packets. | |
2095 | * target.h (target_insert_watchpoint): Update description. | |
2096 | ||
48ea67a7 TT |
2097 | 2010-02-19 Tom Tromey <[email protected]> |
2098 | ||
2099 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
2100 | * m2-typeprint.c (m2_print_type): Update. | |
2101 | * gdbtypes.c (recursive_dump_type): Update. | |
2102 | (copy_type_recursive): Update. | |
2103 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
2104 | (c_type_print_base): Update. | |
2105 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
2106 | Remove. | |
2107 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
2108 | <struct template_arg>: Remove. | |
2109 | <is_dynamic>: Move earlier. | |
2110 | (TYPE_TEMPLATE_ARGS): Remove. | |
2111 | (TYPE_NTEMPLATE_ARGS): Remove. | |
2112 | (TYPE_TEMPLATE_ARG): Remove. | |
2113 | ||
48e32051 TT |
2114 | 2010-02-19 Tom Tromey <[email protected]> |
2115 | ||
2116 | PR c++/8693, PR c++/9496: | |
2117 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
2118 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
2119 | write_dollar_variable. Don't try to classify NAME tokens. | |
2120 | (token_and_value): New type. | |
2121 | (token_fifo, popping, name_obstack): New globals. | |
2122 | (classify_name): New function. | |
2123 | (classify_inner_name): Likewise. | |
2124 | (yylex): Likewise. | |
2125 | (VARIABLE): Now has type sval. | |
2126 | (exp : VARIABLE): Call write_dollar_variable. | |
2127 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
2128 | multiple "::" instances. | |
2129 | (variable): Use name_not_typename. | |
2130 | (qualified_type): Remove. | |
2131 | (typebase): Update. | |
2132 | ||
672d9c23 JK |
2133 | 2010-02-19 Jan Kratochvil <[email protected]> |
2134 | ||
2135 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
2136 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
2137 | found by bfd_get_section_by_name. | |
2138 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
2139 | ||
bfbf3774 JB |
2140 | 2010-02-19 Joel Brobecker <[email protected]> |
2141 | ||
2142 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
2143 | 7.0 section" into "Changes in 7.1". | |
2144 | ||
6756b09b | 2145 | 2010-02-19 Joel Brobecker <[email protected]> |
2146 | ||
2147 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
2148 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
2149 | ||
202b96c1 PA |
2150 | 2010-02-18 Harald Koenig <[email protected]> |
2151 | ||
2152 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
2153 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
2154 | ||
de2e5182 TT |
2155 | 2010-02-17 Tom Tromey <[email protected]> |
2156 | ||
2157 | * NEWS: Add Python API Improvements section. | |
2158 | ||
7280022e DJ |
2159 | 2010-02-18 Daniel Jacobowitz <[email protected]> |
2160 | ||
2161 | * NEWS: Correct typo. | |
2162 | ||
6f451e5e TT |
2163 | 2010-02-17 Tom Tromey <[email protected]> |
2164 | ||
2165 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
2166 | ||
012836ea JK |
2167 | 2010-02-17 Jan Kratochvil <[email protected]> |
2168 | ||
2169 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
2170 | only if they are SEC_ALLOC or SEC_LOAD. | |
2171 | ||
d182d057 L |
2172 | 2010-02-17 H.J. Lu <[email protected]> |
2173 | ||
2174 | PR shlibs/11293 | |
2175 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
2176 | of ULONGEST for address size. | |
2177 | ||
4eef138c TT |
2178 | 2010-02-17 Tom Tromey <[email protected]> |
2179 | ||
2180 | * NEWS: Add C++ improvements section. | |
2181 | ||
548a926a UW |
2182 | 2010-02-17 Ulrich Weigand <[email protected]> |
2183 | ||
2184 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
2185 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
2186 | ||
ad3a0e5b JK |
2187 | 2010-02-17 Jan Kratochvil <[email protected]> |
2188 | ||
2189 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
2190 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
2191 | ||
243e2c5d TG |
2192 | 2010-02-17 Tristan Gingold <[email protected]> |
2193 | Petr Hluzín <[email protected]> | |
2194 | ||
2195 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
2196 | gdb_assert. Fix info->size for SIG prologue. | |
2197 | ||
275f2e57 DJ |
2198 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
2199 | ||
2200 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
2201 | Correct output message. | |
2202 | ||
791dfb64 DJ |
2203 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
2204 | ||
2205 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
2206 | FUNCTION contains parentheses. Improve removal of a trailing | |
2207 | single quote. | |
2208 | ||
14d1346b DJ |
2209 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
2210 | ||
2211 | * gcore.c (do_bfd_delete_cleanup): New function. | |
2212 | (gcore_command): Use it. Discard the cleanup after success. | |
2213 | (gcore_copy_callback): Delete dead code. | |
2214 | ||
e76ab67f DJ |
2215 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
2216 | ||
2217 | * symfile.c (addr_info_make_relative): Always use | |
2218 | find_lowest_section. | |
2219 | ||
71dee663 SW |
2220 | 2010-02-16 Sami Wagiaalla <[email protected]> |
2221 | ||
2222 | * NEWS: Added entry for namespace fixes. | |
2223 | ||
a9854bd5 TT |
2224 | 2010-02-15 Tom Tromey <[email protected]> |
2225 | ||
2226 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
2227 | objfile obstack. | |
2228 | ||
fd9e29b5 TT |
2229 | 2010-02-15 Tom Tromey <[email protected]> |
2230 | ||
2231 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
2232 | ||
4e1fc9c9 JK |
2233 | 2010-02-15 Jan Kratochvil <[email protected]> |
2234 | ||
2235 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
2236 | initialize it from ELF BFD. Extend the prelink condition by it. | |
2237 | ||
74164c56 JK |
2238 | 2010-02-15 Jan Kratochvil <[email protected]> |
2239 | ||
2240 | * defs.h (parse_pid_to_attach): New. | |
2241 | * utils.c (parse_pid_to_attach): New. | |
2242 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
2243 | * gnu-nat.c (gnu_attach): Likewise. | |
2244 | * nto-procfs.c (procfs_attach): Likewise. | |
2245 | * procfs.c (procfs_attach): Likewise. | |
2246 | * windows-nat.c (windows_attach): Likewise. | |
2247 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
2248 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
2249 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
2250 | check. | |
2251 | ||
bf6adea8 MM |
2252 | 2010-02-14 Masaki Muranaka <[email protected]> |
2253 | ||
2254 | * MAINTAINERS: Add myself for write after approval privileges. | |
2255 | ||
28f34a8f JK |
2256 | 2010-02-13 Jan Kratochvil <[email protected]> |
2257 | ||
2258 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
2259 | block. | |
2260 | ||
701ed6dc JK |
2261 | 2010-02-13 Jan Kratochvil <[email protected]> |
2262 | ||
2263 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
2264 | only if INFO_VERBOSE. | |
2265 | ||
e5829bee MS |
2266 | 2010-02-12 Tomas Holmberg <[email protected]> |
2267 | ||
2268 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
2269 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
2270 | exec-next-instruction, exec-step-instruction. This is to | |
2271 | support reverse execution over the MI interface to gdb. | |
2272 | ||
081dfbf7 PA |
2273 | 2010-02-12 Pedro Alves <[email protected]> |
2274 | ||
2275 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
2276 | range of `tfind outsize' is exclusive, and that the address range | |
2277 | of `tfind range' is inclusive, in the commands' help strings. | |
2278 | ||
ecc13e53 JB |
2279 | 2010-02-12 Joel Brobecker <[email protected]> |
2280 | ||
2281 | Spurious "dll not found" error messages on x64-windows. | |
2282 | * windows-nat.c: Add include of complaints.h. | |
2283 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
2284 | ||
15c3d785 PA |
2285 | 2010-02-12 Pedro Alves <[email protected]> |
2286 | ||
2287 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
2288 | bp_tracepoint and bp_fast_tracepoint, not | |
2289 | bp_loc_software_breakpoint. | |
2290 | (update_global_location_list): Tracepoints are never duplicates of | |
2291 | anything. | |
2292 | ||
fd9b8c24 PA |
2293 | 2010-02-12 Pedro Alves <[email protected]> |
2294 | ||
2295 | * breakpoint.c (break_command_really): Change return type to int. | |
2296 | Return false if no breakpoint was created, true otherwise. | |
2297 | (trace_command): Don't set the tracepoint count if no tracepoint | |
2298 | was created. | |
2299 | (ftrace_command): Ditto. | |
2300 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
2301 | created in the breakpoints table. | |
2302 | ||
5c0d192f JK |
2303 | 2010-02-11 Jan Kratochvil <[email protected]> |
2304 | Ulrich Weigand <[email protected]> | |
2305 | ||
2306 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
2307 | ||
5d5b640e PA |
2308 | 2010-02-11 Pedro Alves <[email protected]> |
2309 | ||
2310 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
2311 | the offset value isn't of integral type. | |
2312 | ||
e5a0a904 JK |
2313 | 2010-02-11 Jan Kratochvil <[email protected]> |
2314 | ||
2315 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
2316 | New. | |
2317 | ||
be636754 PA |
2318 | 2010-02-11 Pedro Alves <[email protected]> |
2319 | ||
2320 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
2321 | non-subscriptable types. | |
2322 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
2323 | from ... | |
2324 | (binop_user_defined_p): ... this. | |
2325 | * value.h (binop_types_user_defined_p): Declare. | |
2326 | ||
10ef8d6a PA |
2327 | 2010-02-11 Pedro Alves <[email protected]> |
2328 | ||
2329 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
2330 | Merge uploaded TSVs before merging uploaded tracepoints. | |
2331 | ||
b1028c8e PA |
2332 | 2010-02-11 Pedro Alves <[email protected]> |
2333 | ||
2334 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
2335 | ||
7a93fb82 | 2336 | 2010-02-11 Vladimir Prus <[email protected]> |
84d90c10 | 2337 | |
7a93fb82 VP |
2338 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
2339 | whitespace character after a dot in comment. | |
2340 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
2341 | Likewise. | |
2342 | (list_args_or_locals): For the 'all' (that is | |
2343 | -stack-list-variables) case, always output list of tuples. | |
2344 | Output 'arg' field if variable is argument. | |
84d90c10 | 2345 | |
92981e24 TT |
2346 | 2010-02-10 Tom Tromey <[email protected]> |
2347 | ||
2348 | * parser-defs.h (parser_debug): Declare. | |
2349 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
2350 | command. | |
2351 | (parser_debug): New global. | |
2352 | (show_parserdebug): New function. | |
2353 | * c-exp.y (c_parse): Set yydebug. | |
2354 | ||
9fd3625f L |
2355 | 2010-02-10 H.J. Lu <[email protected]> |
2356 | ||
2357 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
2358 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
2359 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
2360 | i386_mxcsr. | |
2361 | (tdesc_find_type): New. | |
2362 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
2363 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
2364 | ||
2365 | * target-descriptions.h (tdesc_find_type): New. | |
2366 | ||
2fe842e5 MS |
2367 | 2010-02-10 Michael Snyder <[email protected]> |
2368 | ||
2369 | * gdb-gdb.py: Comment fix. | |
2370 | ||
f18b4cab TG |
2371 | 2010-02-09 Tristan Gingold <[email protected]> |
2372 | ||
2373 | * machoread.c (macho_symfile_relocate): New function. | |
2374 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
2375 | default_symfile_relocate. | |
2376 | (macho_oso_data): New type. | |
2377 | (current_oso): New variable. | |
2378 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
2379 | instead set vma of sections. | |
2380 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
2381 | Set and clear current_oso. | |
2382 | ||
31dbc1c5 JB |
2383 | 2010-02-09 Joel Brobecker <[email protected]> |
2384 | ||
2385 | Wrong type description for tagged type parameter. | |
2386 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
2387 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
2388 | reference to a tagged type. | |
2389 | ||
399f313b TG |
2390 | 2010-02-09 Tristan Gingold <[email protected]> |
2391 | ||
2392 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
2393 | brothers of the parent. | |
2394 | ||
714f19d5 TT |
2395 | 2010-02-08 Tom Tromey <[email protected]> |
2396 | ||
2397 | PR c++/8017: | |
2398 | * value.h: Update. | |
2399 | * valops.c (search_struct_field): Make 'name' const. | |
2400 | (search_struct_method): Likewise. | |
2401 | (find_method_list): Make 'method' const. | |
2402 | (value_struct_elt): Make 'name' and 'err' const. | |
2403 | (value_find_oload_method_list): Make 'method' const. | |
2404 | (find_overload_match): Make 'name' const. | |
2405 | * eval.c (evaluate_subexp_standard): New locals function, | |
2406 | function_name. | |
2407 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
2408 | ||
de0a0249 UW |
2409 | 2010-02-08 Ulrich Weigand <[email protected]> |
2410 | ||
2411 | * infrun.c (handle_inferior_event): Do not look up regcache | |
2412 | for exited processes. | |
2413 | ||
83b10087 CM |
2414 | Mon Feb 8 13:17:10 2010 Chris Moller <[email protected]> |
2415 | ||
2416 | PR gdb/10728 | |
2417 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
2418 | warn if found, and assume length = 1. | |
2419 | ||
99903ae3 CM |
2420 | 2010-02-08 Chris Moller <[email protected]> |
2421 | ||
2422 | PR gdb/9067 | |
2423 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
2424 | cp_print_static_field) Fix use of obstacks. | |
2425 | ||
e3e9f5a2 PA |
2426 | 2010-02-08 Pedro Alves <[email protected]> |
2427 | ||
2428 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
2429 | resumed LWPs as resumed. | |
2430 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
2431 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
2432 | of throwing an internal error. If an LWP of a process we're not | |
2433 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
2434 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
2435 | go through all LWPs cancelling breakpoints in non-stop mode. | |
2436 | (resume_stopped_resumed_lwps): New. | |
2437 | (linux_nat_wait): Use it. | |
2438 | ||
46763423 L |
2439 | 2010-02-07 H.J. Lu <[email protected]> |
2440 | ||
2441 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
2442 | i386/amd64 and i386/amd64-linux. | |
2443 | (i386/i386-expedite): New. | |
2444 | (i386/i386-linux-expedite): Likewise. | |
2445 | (i386/amd64-expedite):Likewise. | |
2446 | (i386/amd64-linux-expedite): Likewise. | |
2447 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
2448 | ($(outdir)/i386/amd64.dat): Likewise. | |
2449 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
2450 | ||
2451 | * features/i386/32bit-core.xml: New. | |
2452 | * features/i386/32bit-linux.xml: Likewise. | |
2453 | * features/i386/32bit-sse.xml: Likewise. | |
2454 | * features/i386/64bit-core.xml: Likewise. | |
2455 | * features/i386/64bit-linux.xml: Likewise. | |
2456 | * features/i386/64bit-sse.xml: Likewise. | |
2457 | * features/i386/i386-linux.xml: Likewise. | |
2458 | * features/i386/i386.xml: Likewise. | |
2459 | * features/i386/amd64-linux.xml: Likewise. | |
2460 | * features/i386/amd64.xml: Likewise. | |
2461 | * features/i386/i386-linux.c: Likewise. | |
2462 | * features/i386/i386.c: Likewise. | |
2463 | * features/i386/amd64-linux.c: Likewise. | |
2464 | * features/i386/amd64.c: Likewise. | |
2465 | ||
82856980 SW |
2466 | 2010-02-05 Sami Wagiaalla <[email protected]> |
2467 | ||
2468 | PR c++/7935: | |
2469 | * cp-support.h: Added char* alias element to using_direct data | |
2470 | struct. | |
2471 | (cp_add_using): Added char* alias argument. | |
2472 | (cp_add_using_directive): Ditto. | |
2473 | * cp-namespace.c: Updated with the above changes. | |
2474 | (cp_lookup_symbol_imports): Check for aliases. | |
2475 | * dwarf2read.c (read_import_statement): Figure out local alias | |
2476 | for the import and pass it on to cp_add_using. | |
2477 | (read_namespace): Pass alias argument to cp_add_using. | |
2478 | ||
d18b8b7a HZ |
2479 | 2010-02-05 Hui Zhu <[email protected]> |
2480 | ||
2481 | * defs.h (gdb_bfd_errmsg): New extern. | |
2482 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
2483 | gdb_bfd_errmsg. | |
2484 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
2485 | (AMBIGUOUS_MESS2): New macro. | |
2486 | (gdb_bfd_errmsg): New function. | |
2487 | ||
48379de6 DE |
2488 | 2010-02-04 Doug Evans <[email protected]> |
2489 | ||
2490 | * solib-svr4.c (enable_break): Add comment. | |
2491 | ||
4ee73e90 AG |
2492 | 2010-02-04 Anthony Green <[email protected]> |
2493 | ||
2494 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
2495 | gracefully. | |
2496 | ||
1a334831 TT |
2497 | 2010-02-04 Tom Tromey <[email protected]> |
2498 | ||
2499 | * valops.c (search_struct_field): Account for | |
2500 | value_embedded_offset. Fix check for virtual base past the end of | |
2501 | the object. Use value_copy when making a slice of the value. | |
2502 | ||
1180b2c8 L |
2503 | 2010-02-04 H.J. Lu <[email protected]> |
2504 | ||
2505 | PR tui/9622 | |
2506 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
2507 | only if gdb_stdout is a tty. | |
2508 | ||
c3f08eb7 L |
2509 | 2010-02-04 H.J. Lu <[email protected]> |
2510 | ||
2511 | * target-descriptions.c: Include "osabi.h". | |
2512 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
2513 | OSABI. | |
2514 | ||
2d33f7b8 TG |
2515 | 2010-02-04 Tristan Gingold <[email protected]> |
2516 | ||
2517 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
2518 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
2519 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
2520 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
2521 | (macho_new_init): Move this function after declarations. | |
2522 | (macho_symfile_init): Ditto. | |
2523 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
2524 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
2525 | ||
11334b82 VP |
2526 | 2010-02-04 Vladimir Prus <[email protected]> |
2527 | ||
2528 | Include MI command in remotelog. | |
2529 | ||
2530 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
2531 | ||
ff97be06 L |
2532 | 2010-02-03 H.J. Lu <[email protected]> |
2533 | ||
2534 | * remote.c (remote_state): Remove gdbarch. | |
2535 | (init_remote_state): Don't set gdbarch. | |
2536 | (remote_query_supported): Pass target_gdbarch instead of | |
2537 | rs->gdbarch to gdbarch_qsupported. | |
2538 | ||
75cebea9 L |
2539 | 2010-02-03 H.J. Lu <[email protected]> |
2540 | ||
2541 | * gdbarch.sh: Add qsupported. | |
2542 | ||
2543 | * gdbarch.c: Regenerated. | |
2544 | * gdbarch.h: Likewise. | |
2545 | ||
2546 | * remote.c (remote_state): Add gdbarch. | |
2547 | (init_remote_state): Set gdbarch. | |
2548 | (remote_query_supported): Support gdbarch_qsupported. | |
2549 | ||
c1dec97b DJ |
2550 | 2010-02-03 Daniel Jacobowitz <[email protected]> |
2551 | ||
2552 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
2553 | __FreeBSD_kernel_version. | |
2554 | ||
ac8035ab TG |
2555 | 2010-02-03 Tristan Gingold <[email protected]> |
2556 | ||
2557 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
2558 | (default_symfile_relocate): New prototype. | |
2559 | (symfile_relocate_debug_section): First argument is now an objfile. | |
2560 | * symfile.c (default_symfile_relocate): Rename from | |
2561 | symfile_relocate_debug_section, first argument is now an objfile. | |
2562 | (symfile_relocate_debug_section): New function. | |
2563 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
2564 | * somread.c (som_sym_fns): Ditto. | |
2565 | * mipsread.c (ecoff_sym_fns): Ditto. | |
2566 | * machoread.c (macho_sym_fns): Ditto. | |
2567 | * elfread.c (elf_sym_fns): Ditto. | |
2568 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
2569 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
2570 | * dbxread.c (aout_sym_fns): Ditto. | |
2571 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
2572 | (elfstab_build_psymtabs): Ditto. | |
2573 | ||
be52b756 L |
2574 | 2010-02-03 H.J. Lu <[email protected]> |
2575 | ||
2576 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
2577 | ||
9c3c02fd TT |
2578 | 2010-02-02 Tom Tromey <[email protected]> |
2579 | ||
2580 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
2581 | type. | |
2582 | ||
f23f4c59 TT |
2583 | 2010-02-02 Tom Tromey <[email protected]> |
2584 | ||
2585 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
2586 | (gnuv2_baseclass_offset): Now static. | |
2587 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
2588 | * gnu-v2-abi.h: Remove. | |
2589 | ||
0cc2414c TT |
2590 | 2010-02-02 Tom Tromey <[email protected]> |
2591 | ||
2592 | * m2-typeprint.c (m2_record_fields): Don't use | |
2593 | TYPE_DECLARED_TYPE. | |
2594 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
2595 | (struct main_type) <flag_declared_class>: New field. | |
2596 | (struct cplus_struct_type) <declared_type>: Remove. | |
2597 | <ntemplate_args>: Move earlier. | |
2598 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
2599 | (DECLARED_TYPE_TEMPLATE): Remove. | |
2600 | (TYPE_DECLARED_TYPE): Remove. | |
2601 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
2602 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
2603 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
2604 | TYPE_DECLARED_TYPE. | |
2605 | ||
edf3d5f3 TT |
2606 | 2010-02-02 Tom Tromey <[email protected]> |
2607 | ||
2608 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
2609 | * valops.c (search_struct_field): Compute nbases after calling | |
2610 | CHECK_TYPEDEF. | |
2611 | (check_field): Call CHECK_TYPEDEF. | |
2612 | * cp-valprint.c (cp_print_value): Pass correct address to | |
2613 | baseclass_offset. Fix check for virtual base past the end of the | |
2614 | object. Don't offset address passed to cp_print_value_fields or | |
2615 | apply_val_pretty_printer. | |
2616 | (cp_print_value_fields): Fix call to val_print. | |
2617 | (cp_print_value_fields_rtti): New function. | |
2618 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
2619 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
2620 | val_print. | |
2621 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
2622 | offset to address. | |
2623 | * language.h (struct language_defn) <la_val_print>: Document. | |
2624 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
2625 | ||
e4b7f41c JK |
2626 | 2010-02-01 Jan Kratochvil <[email protected]> |
2627 | ||
2628 | PR libc/11214: | |
2629 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
2630 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
2631 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
2632 | ||
7618e12b DJ |
2633 | 2010-02-01 Michael Matz <[email protected]> |
2634 | Daniel Jacobowitz <[email protected]> | |
2635 | ||
e4b7f41c | 2636 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
2637 | functions use a frame pointer. |
2638 | ||
b381ea14 JK |
2639 | 2010-02-01 Jan Kratochvil <[email protected]> |
2640 | ||
2641 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
2642 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
2643 | * config/djgpp/fnchange.lst: Add translations for | |
2644 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
2645 | ||
0e05dfcb DJ |
2646 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
2647 | ||
2648 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
2649 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
2650 | * gdbarch.c: Regenerated. | |
2651 | ||
f9d67f43 DJ |
2652 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
2653 | ||
2654 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
2655 | arm_pc_is_thumb. | |
2656 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
2657 | (extend_buffer_earlier): New function. | |
2658 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
2659 | (arm_adjust_breakpoint_address): New function. | |
2660 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
2661 | ||
177321bd DJ |
2662 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
2663 | ||
2664 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
2665 | (arm_linux_thumb2_le_breakpoint): New constants. | |
2666 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
2667 | thumb2_breakpoint_size. | |
2668 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
2669 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
2670 | Implement support for single stepping through IT blocks if | |
2671 | a 32-bit Thumb breakpoint instruction is available. | |
2672 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
2673 | is available, use it when needed. | |
2674 | (arm_remote_breakpoint_from_pc): New function. | |
2675 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
2676 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
2677 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
2678 | ||
a1dcb23a DJ |
2679 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
2680 | ||
2681 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
2682 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
2683 | * gdbarch.c, gdbarch.h: Regenerated. | |
2684 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
2685 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
2686 | gdbarch_remote_breakpoint_from_pc. | |
2687 | ||
2b009048 DJ |
2688 | 2010-01-29 Daniel Jacobowitz <[email protected]> |
2689 | ||
2690 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
2691 | match a breakpoint. | |
2692 | (handle_inferior_event): Move the check for unusual breakpoint | |
2693 | signals earlier. | |
2694 | ||
e4e2711a JB |
2695 | 2010-01-29 Paul Hilfinger <[email protected]> |
2696 | ||
2697 | amd64 - function returning record with field straddling 2 registers. | |
2698 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
2699 | a record of length <= 16 in which a field straddles the two | |
2700 | eightbytes. | |
2701 | ||
cba6fab5 JB |
2702 | 2010-01-29 Joel Brobecker <[email protected]> |
2703 | ||
2704 | Implement return values on amd64-windows. | |
2705 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
2706 | (amd64_windows_return_value): New function. | |
2707 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
2708 | amd64_windows_return_value. | |
2709 | ||
3af6ddfe JB |
2710 | 2010-01-29 Joel Brobecker <[email protected]> |
2711 | ||
2712 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 2713 | parameter registers. |
3af6ddfe JB |
2714 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
2715 | integer_param_regs_saved_in_caller_frame. | |
2716 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
2717 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
2718 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
2719 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
2720 | ||
80d19a06 JB |
2721 | 2010-01-29 Joel Brobecker <[email protected]> |
2722 | ||
2723 | amd64-windows: memory args passed by pointer during function calls. | |
2724 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
2725 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
2726 | where tdep->memory_args_by_pointer is non-zero. | |
2727 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
2728 | tdep->memory_args_by_pointer to 1. | |
2729 | ||
ba581dc1 JB |
2730 | 2010-01-29 Joel Brobecker <[email protected]> |
2731 | ||
4966b6c2 | 2732 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
2733 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
2734 | amd64-tdep.c. | |
2735 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
2736 | call_dummy_integer_regs, and classify. | |
2737 | * amd64-tdep.h (amd64_classify): Add declaration. | |
2738 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
2739 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
2740 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
2741 | Replace call to amd64_classify by call to tdep->classify. | |
2742 | (amd64_push_arguments): Get the list of registers to use for | |
2743 | passing integer parameters from the gdbarch tdep structure, | |
2744 | rather than using a hardcoded one. Replace calls to amd64_classify | |
2745 | by calls to tdep->classify. | |
2746 | (amd64_push_dummy_call): Get the register number used for | |
2747 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
2748 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
2749 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
2750 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
2751 | (amd64_windows_dummy_call_integer_regs): New static global. | |
2752 | (amd64_windows_classify): New function. | |
2753 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
2754 | tdep->call_dummy_integer_regs and tdep->classify. | |
2755 | ||
d37346f0 DJ |
2756 | 2010-01-28 Daniel Jacobowitz <[email protected]> |
2757 | ||
2758 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
2759 | for the new regcache. All callers updated. | |
2760 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
2761 | (get_thread_arch_regcache): Do not set aspace here. | |
2762 | * regcache.h (regcache_xmalloc): Update declaration. | |
2763 | ||
2764 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
2765 | regcache_xmalloc updated. | |
2766 | ||
7434dadd JB |
2767 | 2010-01-28 Joel Brobecker <[email protected]> |
2768 | ||
2769 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
2770 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
2771 | Only define if SYS_syssgi is defined. | |
2772 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
2773 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
2774 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
2775 | is itself defined. | |
2776 | ||
16d905e2 CF |
2777 | 2010-01-27 Christopher Faylor <[email protected]> |
2778 | ||
2779 | * windows-nat.c (windows_initialization_done): New variable. | |
2780 | (get_windows_debug_event): Issue error when process dies before | |
2781 | completely initializing. | |
2782 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
2783 | the initial steps of attaching to the child. | |
2784 | ||
cd55e50f JK |
2785 | 2010-01-27 Jan Kratochvil <[email protected]> |
2786 | ||
2787 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
2788 | ||
99cc78aa DE |
2789 | 2010-01-27 Doug Evans <[email protected]> |
2790 | ||
4c7dcb84 DE |
2791 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
2792 | ||
99cc78aa DE |
2793 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
2794 | ||
52334bf5 JK |
2795 | 2010-01-27 Jan Kratochvil <[email protected]> |
2796 | ||
2797 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
2798 | objfile via SYMBOL_SYMTAB. | |
2799 | ||
708ead4e TT |
2800 | 2010-01-26 Tom Tromey <[email protected]> |
2801 | ||
2802 | PR exp/7643: | |
2803 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
2804 | coerce_array on result. | |
2805 | ||
b14e635e SW |
2806 | 2010-01-26 Sami Wagiaalla <[email protected]> |
2807 | ||
2808 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
2809 | search_parent argument. | |
2810 | (cp_add_using): Initialize 'searched' field. | |
2811 | (reset_directive_searched): New function. | |
2812 | * cp-support.h: Add 'searched' field to using_direct struct. | |
2813 | (cp_lookup_symbol_imports): Ditto. | |
2814 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
2815 | Perform recursive search. | |
2816 | Implement non parent search. | |
2817 | * valops.c (value_maybe_namespace_elt): Updated. | |
2818 | ||
8540c487 SW |
2819 | 2010-01-26 Sami Wagiaalla <[email protected]> |
2820 | ||
2821 | PR gdb/10929: | |
2822 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
2823 | scopes which contain using directives even if they contain no | |
2824 | declarations. | |
2825 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
2826 | la_lookup_symbol_nonlocal. | |
2827 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
2828 | cp_lookup_symbol_namespace. | |
2829 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
2830 | block level. | |
2831 | (cp_lookup_symbol_imports): New function. | |
2832 | (cp_lookup_symbol_in_namespace): New function. | |
2833 | ||
421d5d99 TT |
2834 | 2010-01-25 Tom Tromey <[email protected]> |
2835 | ||
2836 | PR gdb/11049: | |
2837 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
2838 | result. | |
2839 | ||
6bcc772d RO |
2840 | 2010-01-25 Rainer Orth <[email protected]> |
2841 | ||
2842 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
2843 | Use test to check variables, prefix strings with x. | |
2844 | * configure: Regenerate. | |
2845 | ||
2846 | * solib-osf.c (osf_current_sos): Initialize tail. | |
2847 | ||
1c1238a5 TG |
2848 | 2010-01-25 gingold <[email protected]> |
2849 | ||
c8d5aac9 L |
2850 | * windows-nat.c (windows_continue): Use %x to print thread id. |
2851 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 2852 | |
0b92b5bb TT |
2853 | 2010-01-22 Tom Tromey <[email protected]> |
2854 | ||
2855 | PR symtab/11199: | |
2856 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
2857 | type and arguments. Use smash_to_methodptr_type. | |
2858 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
2859 | later. | |
2860 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
2861 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
2862 | (lookup_methodptr_type): Use it. | |
2863 | ||
0d5392b8 TT |
2864 | 2010-01-21 Tom Tromey <[email protected]> |
2865 | ||
2866 | PR symtab/11198: | |
2867 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
2868 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
2869 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
2870 | (glibc_skip_solib_resolver): Use | |
2871 | lookup_minimal_symbol_and_objfile. | |
2872 | ||
e6d088ec KT |
2873 | 2010-01-21 Kai Tietz <[email protected]> |
2874 | ||
2875 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
2876 | WIN32 targets. | |
2877 | ||
b966cb8a TT |
2878 | 2010-01-20 Tom Tromey <[email protected]> |
2879 | ||
2880 | PR backtrace/10770: | |
2881 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
2882 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
2883 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
2884 | dwarf_stack_values, not CORE_ADDRs. | |
2885 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
2886 | use signed operands. | |
2887 | ||
3f81c18a VP |
2888 | 2010-01-20 Vladimir Prus <[email protected]> |
2889 | ||
2890 | Per-inferior args and tty and environment. | |
2891 | ||
2892 | * infcmd.c (inferior_args): Rename to ... | |
2893 | (inferior_args_scratch): ... this. | |
2894 | (inferior_io_terminal): Rename to ... | |
2895 | (inferior_io_terminal_scratch): ... this. | |
2896 | (inferior_argc, inferior_argv): Remove. | |
2897 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
2898 | inside current_inferior(). | |
2899 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
2900 | (get_inferior_args, set_inferior_args): Store inside | |
2901 | current_inferior(). | |
2902 | (notice_args_set): Likewise and rename to... | |
2903 | (set_args_command): ... this. | |
2904 | (set_inferior_args_vector): Likewise. | |
2905 | (notice_args_read): Rename to... | |
2906 | (show_args_command): ...new. | |
2907 | (tty_command): Remove. | |
2908 | (run_command_1): Don't free old args, as they are freed by | |
2909 | set_inferior_arg now. | |
2910 | (run_no_args_command): Likewise. | |
2911 | (inferior_environ): Remove. | |
2912 | (run_command_1): Use environment of the current inferior. | |
2913 | (environment_info, set_environment_command) | |
2914 | (unset_environment_command, path_info, path_command): Likewise. | |
2915 | (_initialize_infcmd): Adjust for function and variable renames. | |
2916 | Do not init inferior_environ. | |
2917 | * inferior.h (set_inferior_arg): Adjust prototype. | |
2918 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
2919 | (inferior_environ): Remove declaration. | |
2920 | * inferior.c (free_inferior): Free new fields. | |
2921 | (add_inferior_silent): Initialize 'environment' field. | |
2922 | * main.c (captured_main): Set arguments only after the initial | |
2923 | inferior has been created. Set set_inferior_io_terminal, | |
2924 | not tty_command. | |
2925 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
2926 | inferior. | |
2927 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
2928 | inferior_environ. | |
2929 | * solib.c (solib_find): Use environment of the current inferior. | |
2930 | ||
d8b65138 JK |
2931 | 2010-01-20 Jan Kratochvil <[email protected]> |
2932 | ||
2933 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
2934 | HAVE_PYTHON. | |
2935 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
2936 | ||
692465f1 JB |
2937 | 2010-01-20 Joel Brobecker <[email protected]> |
2938 | ||
2939 | Get rid of ada-lang.c:function_name_from_pc. | |
2940 | * ada-lang.c: Add "stack.h" #include. | |
2941 | (function_name_from_pc): Delete. | |
2942 | (is_known_support_routine): Replace call to function_name_from_pc | |
2943 | by call to find_frame_funname. | |
2944 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
2945 | ||
95519e0e TT |
2946 | 2010-01-19 Tom Tromey <[email protected]> |
2947 | ||
2948 | PR c++/11026: | |
2949 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
2950 | objfile obstack. | |
2951 | ||
95c11dc7 TT |
2952 | 2010-01-19 Tom Tromey <[email protected]> |
2953 | ||
2954 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
2955 | ||
a0f49112 JK |
2956 | 2010-01-19 Jan Kratochvil <[email protected]> |
2957 | ||
2958 | * breakpoint.c (watchpoint_check): Check the call | |
2959 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
2960 | Extend the comment. | |
2961 | * config/djgpp/fnchange.lst: Add translations for | |
2962 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and | |
2963 | watchpoint-cond-gone-stripped.c. | |
2964 | ||
ceeb3d5a TT |
2965 | 2010-01-19 Tom Tromey <[email protected]> |
2966 | ||
2967 | PR c++/8000: | |
2968 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
2969 | into parent scope, and enumerator into grandparent scope. | |
2970 | ||
2b71fc8e JB |
2971 | 2010-01-19 Joel Brobecker <[email protected]> |
2972 | ||
2973 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
2974 | ||
03564ed9 JB |
2975 | 2010-01-19 Joel Brobecker <[email protected]> |
2976 | ||
2977 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
2978 | i[34567]86-*-solaris2.1[0-9]*. | |
2979 | * configure.tgt: Likewise. | |
2980 | ||
fb2e7cb4 JB |
2981 | 2010-01-19 Joel Brobecker <[email protected]> |
2982 | ||
2983 | * NEWS: Document the source command enhancement allowing it | |
2984 | to load Python scripts. Document the "set/show script-extension" | |
2985 | commands. | |
2986 | ||
1cb5e2a4 JB |
2987 | 2010-01-19 Joel Brobecker <[email protected]> |
2988 | ||
2989 | Add -Wunused-function to compile flags. | |
2990 | * configure.ac: Add -Wunused-function to build_warnings. | |
2991 | * configure: Regenerate. | |
2992 | ||
0ec6cd0c JB |
2993 | 2010-01-19 Joel Brobecker <[email protected]> |
2994 | ||
2995 | "delete" ada-lex.c:input function, not used. | |
2996 | * ada-lex.l: #define YY_NO_INPUT. | |
2997 | ||
b74845da JB |
2998 | 2010-01-19 Joel Brobecker <[email protected]> |
2999 | ||
3000 | Delete free_named_symtabs and associated cleanup. | |
3001 | * symfile.h (free_named_symtabs): Delete declaration. | |
3002 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
3003 | (cashier_psymtab): Comment function out. | |
3004 | Delete declaration. | |
3005 | (free_named_symtabs): Delete. | |
3006 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
3007 | * dbxread.c (end_psymtab): Likewise. | |
3008 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
3009 | * exec.c (exec_close_1): Ditto. | |
3010 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
3011 | ||
65c06092 JB |
3012 | 2010-01-19 Joel Brobecker <[email protected]> |
3013 | ||
3014 | * stack.c (print_block_frame_labels): Comment function out. | |
3015 | ||
d5cd6034 JB |
3016 | 2010-01-19 Joel Brobecker <[email protected]> |
3017 | ||
3018 | Delete unused or undefined functions. | |
3019 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
3020 | * dcache.c (dcache_write_line): Remove declaration. | |
3021 | * infrun.c (build_infrun): Remove declaration. | |
3022 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
3023 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
3024 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
3025 | * infrun.c (init_execution_control_state): Delete. | |
3026 | (proceed): Update comment to avoid mentioning | |
3027 | init_execution_control_state. | |
3028 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
3029 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
3030 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
3031 | * cp-namespace.c (cp_copy_usings): Delete. | |
3032 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
3033 | * progspace.c (find_program_space_by_num): Delete. | |
3034 | * inflow.c (handle_sigio): Delete declaration. | |
3035 | * hppa-tdep.c (hppa_alignof): Delete. | |
3036 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
3037 | (mipsnbsd_core_osabi_sniffer): Delete. | |
3038 | ||
4e8f195d TT |
3039 | 2010-01-18 Tom Tromey <[email protected]> |
3040 | ||
3041 | PR c++/9680: | |
3042 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
3043 | (CONST_CAST): New tokens. | |
3044 | (exp): Add new productions. | |
3045 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
3046 | reinterpret_cast. | |
3047 | (is_cast_operator): New function. | |
3048 | (yylex): Handle cast operators specially. | |
3049 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
3050 | UNOP_REINTERPRET_CAST>: New cases. | |
3051 | * expprint.c (print_subexp_standard): Likewise. | |
3052 | (op_name_standard): Likewise. | |
3053 | (dump_subexp_body_standard): Likewise. | |
3054 | * parse.c (operator_length_standard): Likewise. | |
3055 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
3056 | UNOP_REINTERPRET_CAST. | |
3057 | * gdbtypes.c (class_types_same_p): New function. | |
3058 | (is_ancestor): Use it. | |
3059 | (is_public_ancestor): New function. | |
3060 | (is_unique_ancestor_worker): Likewise. | |
3061 | (is_unique_ancestor): Likewise. | |
3062 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
3063 | (is_unique_ancestor): Declare. | |
3064 | * valops.c (value_reinterpret_cast): New function. | |
3065 | (dynamic_cast_check_1): Likewise. | |
3066 | (dynamic_cast_check_2): Likewise. | |
3067 | (value_dynamic_cast): Likewise. | |
3068 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
3069 | ||
d9c57d9f JB |
3070 | 2010-01-18 Joel Brobecker <[email protected]> |
3071 | ||
3072 | Fix build failure when building without Python support. | |
3073 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
3074 | is not defined. | |
3075 | ||
f80d3ff2 JB |
3076 | 2010-01-18 Joel Brobecker <[email protected]> |
3077 | ||
3078 | Use XVS field type instead of doing a parallel lookup. | |
3079 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
3080 | if it is a reference type instead of doing a type lookup using | |
3081 | the XVS field name. | |
3082 | ||
5bf03f13 JB |
3083 | 2010-01-18 Joel Brobecker <[email protected]> |
3084 | ||
3085 | Trust PAD types instead of using PAD___XVS. | |
3086 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
3087 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
3088 | parallel XVS type, follow the XVS type instead of the PAD type. | |
3089 | (unwrap_value): Make sure that there is no parallel XVE type | |
3090 | before returning the value as is. | |
3091 | (set_ada_list, show_ada_list): New static variables. | |
3092 | (set_ada_command, show_ada_command): New functions. | |
3093 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
3094 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
3095 | ||
973817a3 JB |
3096 | 2010-01-18 Tom Tromey <[email protected]> |
3097 | Thiago Jung Bauermann <[email protected]> | |
3098 | ||
3099 | Allow "source" to load python scripts. | |
3100 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
3101 | * python/python.c (source_python_script): New function. | |
3102 | * python/python.h (source_python_script): Add declaration. | |
3103 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
3104 | (script_ext_off, script_ext_soft, script_ext_strict) | |
3105 | (script_ext_enums, script_ext_mode): New static constants. | |
3106 | (show_script_ext_mode, find_and_open_script): New functions. | |
3107 | (source_script): Enhance to handle Python scripts. | |
3108 | (init_cli_cmds): Add set/show script-extension commands. | |
3109 | ||
98e03262 SS |
3110 | 2010-01-16 Stan Shebs <[email protected]> |
3111 | ||
3112 | * tracepoint.h (struct trace_status): Use unsigned long long | |
3113 | instead of size_t. | |
3114 | * tracepoint.c (trace_status_command): Fix printf directive. | |
3115 | (trace_save_command): Check fwrite returns, fix printf directive. | |
3116 | (trace_filename): New global. | |
3117 | (tfile_open): Set it, check read returns. | |
3118 | (tfile_close): Free trace_filename. | |
3119 | (tfile_get_traceframe_address): Check read returns. | |
3120 | (tfile_trace_find): Ditto. | |
3121 | (tfile_fetch_registers): Ditto. | |
3122 | (tfile_xfer_partial): Ditto. | |
3123 | (tfile_get_trace_state_variable_value): Ditto. | |
3124 | ||
00bf0b85 SS |
3125 | 2010-01-15 Stan Shebs <[email protected]> |
3126 | ||
3127 | Add trace file support. | |
3128 | * tracepoint.h (enum trace_stop_reason): New enum. | |
3129 | (struct trace_status): New struct. | |
3130 | (parse_trace_status): Declare. | |
3131 | (struct uploaded_tp): Move here from remote.c, | |
3132 | add fields for actions. | |
3133 | (struct uploaded_tsv): New struct. | |
3134 | * tracepoint.c (tfile_ops): New target vector. | |
3135 | (trace_fd): New global. | |
3136 | (tfile_open): New function. | |
3137 | (tfile_close): New function. | |
3138 | (tfile_files_info): New function. | |
3139 | (tfile_get_trace_status): New function. | |
3140 | (tfile_get_traceframe_address): New function. | |
3141 | (tfile_trace_find): New function. | |
3142 | (tfile_fetch_registers): New function. | |
3143 | (tfile_xfer_partial): New function. | |
3144 | (tfile_get_trace_state_variable_value): New function. | |
3145 | (init_tfile_ops): New function. | |
3146 | (_initialize_tracepoint): Call it, add tfile target. | |
3147 | (trace_status): New global. | |
3148 | (current_trace_status): New function. | |
3149 | (trace_running_p): Remove, change all users to get from | |
3150 | current_trace_status()->running. | |
3151 | (get_trace_status): Remove. | |
3152 | (trace_status_command): Call target_get_trace_status directly, | |
3153 | report more detail including tracing stop reasons. | |
3154 | (trace_find_command): Always allow tfind on a file. | |
3155 | (trace_find_pc_command): Ditto. | |
3156 | (trace_find_tracepoint_command): Ditto. | |
3157 | (trace_find_line_command): Ditto. | |
3158 | (trace_find_range_command): Ditto. | |
3159 | (trace_find_outside_command): Ditto. | |
3160 | (trace_frames_offset, cur_offset): Declare as off_t. | |
3161 | (trace_regblock_size): Rename from reg_size, update users. | |
3162 | (parse_trace_status): New function. | |
3163 | (tfile_interp_line): New function. | |
3164 | (disconnect_or_stop_tracing): Ensure current trace | |
3165 | status before asking what to do. | |
3166 | (stop_reason_names): New global. | |
3167 | (trace_save_command): New command. | |
3168 | (get_uploaded_tp): Move here from remote.c. | |
3169 | (find_matching_tracepoint): Ditto. | |
3170 | (merge_uploaded_tracepoints): New function. | |
3171 | (parse_trace_status): Use stop_reason_names. | |
3172 | (_initialize_tracepoint): Define tsave command. | |
3173 | * target.h (target_ops): New fields to_save_trace_data, | |
3174 | to_upload_tracepoints, to_upload_trace_state_variables, | |
3175 | to_get_raw_trace_data, change to_get_trace_status | |
3176 | to take a pointer to a status struct. | |
3177 | (target_save_trace_data): New macro. | |
3178 | (target_upload_tracepoints): New macro. | |
3179 | (target_upload_trace_state_variables): New macro. | |
3180 | (target_get_raw_trace_data): New macro. | |
3181 | * target.c (update_current_target): Add new methods, change | |
3182 | signature of to_get_trace_status. | |
3183 | * remote.c (hex2bin): Make globally visible. | |
3184 | (bin2hex): Ditto. | |
3185 | (remote_download_trace_state_variable): Download name also. | |
3186 | (remote_get_trace_status): Update parameter, use | |
3187 | parse_trace_status. | |
3188 | (remote_save_trace_data): New function. | |
3189 | (remote_upload_tracepoints): New function. | |
3190 | (remote_upload_trace_state_variables): New function. | |
3191 | (remote_get_raw_trace_data): New function. | |
3192 | (remote_start_remote): Use them. | |
3193 | (_initialize_remote_ops): Add operations. | |
3194 | * ax-gdb.c: Include breakpoint.h. | |
3195 | * breakpoint.c (create_tracepoint_from_upload): Use | |
3196 | break_command_really, return tracepoint, warn about unimplemented | |
3197 | parts. | |
3198 | * NEWS: Mention trace file addition. | |
3199 | ||
d904de5b JK |
3200 | 2010-01-15 Jan Kratochvil <[email protected]> |
3201 | ||
3202 | Fix compilation warning on gcc-3.4. | |
3203 | * exec.c (print_section_info): Move the `displacement' variable | |
3204 | initialization to its declaration. | |
3205 | ||
64aa9731 JK |
3206 | 2010-01-15 Jan Kratochvil <[email protected]> |
3207 | ||
3208 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
3209 | comparison. | |
3210 | ||
ca1f5def | 3211 | 2010-01-15 Eric Botcazou <[email protected]> |
9f0dec2d JB |
3212 | |
3213 | "info tasks" broken by typedefs in ATCB type definitions. | |
3214 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
3215 | ada_check_typedef before retrieving the length of the type for | |
3216 | regular fields. | |
3217 | ||
12ab9e09 JB |
3218 | 2010-01-15 Joel Brobecker <[email protected]> |
3219 | ||
3220 | Do not use name-based lookup for unconstrained packed arrays. | |
3221 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
3222 | Limit the fallback to name-based lookups to the case where | |
3223 | the type is a constrained packed array. | |
3224 | ||
c389c3dc JB |
3225 | 2010-01-15 Joel Brobecker <[email protected]> |
3226 | ||
3227 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
3228 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
3229 | ||
7991dee7 JK |
3230 | 2010-01-15 Jan Kratochvil <[email protected]> |
3231 | ||
3232 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
3233 | * configure: Regenerate. | |
3234 | * config.in: Regenerate. | |
3235 | * utils.c: Include sys/resource.h. | |
3236 | (dump_core, can_dump_core): New. | |
3237 | (internal_vproblem): Update the comment. Check can_dump_core while | |
3238 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
3239 | ||
93c26624 JK |
3240 | 2010-01-14 Jan Kratochvil <[email protected]> |
3241 | Eli Zaretskii <[email protected]> | |
3242 | ||
3243 | * NEWS: Document the PIE support. | |
3244 | ||
55235ad7 JK |
3245 | 2010-01-14 Jan Kratochvil <[email protected]> |
3246 | ||
3247 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
3248 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
3249 | ||
41752192 JK |
3250 | 2010-01-14 Jan Kratochvil <[email protected]> |
3251 | ||
3252 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
3253 | Replace exec_entry_point call by bfd_get_start_address. | |
3254 | ||
9f2982ff JK |
3255 | 2010-01-14 Jan Kratochvil <[email protected]> |
3256 | ||
3257 | Support Valgrind attachments broken by the PIE support. | |
3258 | * auxv.c: Include gdbcore.h. | |
3259 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
3260 | parameters ops, object and annex. Remove their assertions. | |
3261 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
3262 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
3263 | (memory_xfer_auxv): ... here. | |
3264 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
3265 | memory_xfer_auxv. | |
3266 | * procfs.c (procfs_xfer_partial): Likewise. | |
3267 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
3268 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
3269 | (svr4_solib_create_inferior_hook): Conditionalize the | |
3270 | svr4_relocate_main_executable call. | |
3271 | ||
61f0d762 JK |
3272 | 2010-01-14 Jan Kratochvil <[email protected]> |
3273 | ||
3274 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
3275 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
3276 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
3277 | New variable abfd. | |
3278 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
3279 | of separate debug info file. | |
3280 | ||
51bee8e9 JK |
3281 | 2010-01-14 Jan Kratochvil <[email protected]> |
3282 | ||
3283 | Support PIEs with no symfile_objfile. | |
3284 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
3285 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
3286 | ||
b8040f19 JK |
3287 | 2010-01-14 Jan Kratochvil <[email protected]> |
3288 | ||
3289 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
3290 | code part to ... | |
3291 | (svr4_static_exec_displacement): ... a new function. | |
3292 | (svr4_exec_displacement): New function. | |
3293 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
3294 | new_offsets using alloca now. Remove variable old_chain and changed. | |
3295 | Call objfile_relocate unconditionally now. | |
3296 | ||
eb90ce83 DE |
3297 | 2010-01-14 Doug Evans <[email protected]> |
3298 | ||
3299 | * gdbtypes.c (arch_flags_type): Fix comment. | |
3300 | * gdbtypes.h (arch_composite_type): Fix comment. | |
3301 | ||
bdfed3bc TG |
3302 | 2009-01-14 Tristan Gingold <[email protected]> |
3303 | ||
3304 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
3305 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
3306 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
3307 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
3308 | macho_add_oso_symfile. | |
3309 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
3310 | ||
1596ad23 JB |
3311 | 2010-01-14 Joel Brobecker <[email protected]> |
3312 | ||
3313 | Tru64: Dead threads are never deleted. | |
3314 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
3315 | (dec_thread_count_gdb_threads): Fix counter increment. | |
3316 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
3317 | (resync_thread_list): Fix bug in deletion of dead threads that | |
3318 | caused all threads to be deleted, instead of just the dead ones. | |
3319 | ||
be759fcf PM |
3320 | 2010-01-13 Phil Muldoon <[email protected]> |
3321 | ||
3322 | PR python/10705 | |
3323 | ||
3324 | * python/python-internal.h: Add lazy_string_object_type | |
3325 | definition. | |
3326 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
3327 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
3328 | * python/py-value.c (valpy_lazy_string): New function. | |
3329 | (convert_value_from_python): Add lazy string conversion. | |
3330 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
3331 | return is also a lazy string. | |
3332 | (print_string_repr): Add lazy string printing branch. | |
3333 | (print_children): Likewise. | |
3334 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
3335 | * python/python.c (_initialize_python): Call | |
3336 | gdbpy_initialize_lazy_string. | |
3337 | * varobj.c (value_get_print_value): Add lazy string printing | |
3338 | branch. Account for encoding. | |
3339 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
3340 | encoding is NULL, find encoding suited for type, otherwise use | |
3341 | user encoding. | |
3342 | * language.h (language_defn): Add encoding argument. | |
3343 | (LA_PRINT_STRING): Likewise. | |
3344 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
3345 | argument to language_defn. | |
3346 | * ada-lang.h (ada_printstr): Likewise. | |
3347 | * c-lang.h (c_printstr): Likewise. | |
3348 | * p-lang.h (pascal_printstr); | |
3349 | * f-lang.c (f_printstr): Likewise. | |
3350 | * m2-lang.c (m2_printstr): Likewise. | |
3351 | * objc-lang.c (objc_printstr): Likewise. | |
3352 | * p-lang.c (pascal_printstr): Likewise. | |
3353 | * scm-lang.c (scm_printstr): Likewise. | |
3354 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
3355 | encoding argument. | |
3356 | * ada-valprint.c (ada_printstr): Likewise. | |
3357 | * f-valprint.c (f_val_print): Likewise | |
3358 | * m2-valprint.c (m2_val_print): Likewise. | |
3359 | * p-valprint.c (pascal_val_print): Likewise. | |
3360 | * expprint.c (print_subexp_standard): Likewise. | |
3361 | * valprint.c (val_print_string): Likewise. | |
3362 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
3363 | (SUBDIR_PYTHON_SRCS): Likewise. | |
3364 | (py-lazy-string.o): New rule. | |
3365 | ||
1fe72117 | 3366 | 2010-01-13 Doug Evans <[email protected]> |
8eee9c5a DE |
3367 | |
3368 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
3369 | uninitialized" warning from gcc on local `tree'. | |
3370 | ||
dc146f7c VP |
3371 | 2010-01-13 Vladimir Prus <[email protected]> |
3372 | ||
3373 | Implement core awareness. | |
3374 | ||
3375 | * bcache.c (compare_ints): Remove | |
3376 | (print_percentage): Use compare_positive_ints. | |
3377 | * defs.h (compare_positive_ints): Declare. | |
3378 | * linux-nat.h (struct lin_lwp): New field core. | |
3379 | (linux_nat_core_of_thread_1): Declare. | |
3380 | * linux-nat.c (add_lwp): Init the 'core' field. | |
3381 | (linux_nat_wait_1): Record the core. | |
3382 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
3383 | (linux_nat_add_target): Register the above. | |
3384 | * linux-thread-db.c (update_thread_core): New. | |
3385 | (thread_db_find_new_threads): Update core information for | |
3386 | every thread. | |
3387 | * remote.c (struct private_thread_info): New. | |
3388 | (free_private_thread_info, demand_private_info): New. | |
3389 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
3390 | (struct thread_item, threads_parsing_context | |
3391 | (start_thread, end_thread, thread_attributes) | |
3392 | (thread_children, threads_children, threads_elements): New. | |
3393 | (remote_threads_info): Try qXfer:threads before anything | |
3394 | else. | |
3395 | (remote_protocol_packets): Register qXfer:threads. | |
3396 | (remote_open_1): Init use_osdata_threads. | |
3397 | (struct stop_reply): New field 'core'. | |
3398 | (remote_parse_stop_reply): Parse core number. | |
3399 | (process_stop_reply): Record core number. | |
3400 | (remote_xfer_partial): Handle qXfer:threads. | |
3401 | (remote_core_of_thread): New. | |
3402 | (init_remote_ops): Register remote_core_of_thread. | |
3403 | (_initialize_remote): Register qXfer:read. | |
3404 | * target.c (target_core_of_thread): New | |
3405 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
3406 | (struct target_ops): New field to_core_of_threads. | |
3407 | (target_core_of_thread): Declare. | |
3408 | * gdbthread.h (struct thread_info): New field private_dtor. | |
3409 | * thread.c (print_thread_info): Report the core. | |
3410 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
3411 | * utils.c (compare_positive_ints): New. | |
3412 | * features/threads.dtd: New. | |
3413 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
3414 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
3415 | (do_nothing, free_vector_of_osdata_items) | |
3416 | (splay_tree_int_comparator, free_splay_tree): New. | |
3417 | (print_one_inferior_data): Implemented printing of selected | |
3418 | inferiors. Collect and print cores. | |
3419 | (output_cores): New. | |
3420 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
3421 | thread groups together with --available. | |
3422 | ||
d30c5336 JK |
3423 | 2010-01-12 Jan Kratochvil <[email protected]> |
3424 | ||
3425 | * configure: Regenerate (for _STRUCTURED_PROC). | |
3426 | ||
02893727 JB |
3427 | 2010-01-12 Joel Brobecker <[email protected]> |
3428 | ||
3429 | Delete dead function. | |
3430 | * ada-lang.c (extract_string): Delete. No longer used. | |
3431 | ||
46ed2d6f JB |
3432 | 2010-01-12 Joel Brobecker <[email protected]> |
3433 | ||
3434 | Fix -Wunused warning in dec-thread.c. | |
3435 | * dec-thread.c (dec_thread_count_gdb_threads) | |
3436 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
3437 | ||
606b8d1a JB |
3438 | 2010-01-12 Joel Brobecker <[email protected]> |
3439 | ||
3440 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
3441 | ||
b4ba55a1 JB |
3442 | 2010-01-12 Joel Brobecker <[email protected]> |
3443 | ||
3444 | Add support for DW_AT_GNAT_descriptive_type. | |
3445 | * gdbtypes.h (enum type_specific_kind): New enum. | |
3446 | (struct main_type) [type_specific_field]: New component. | |
3447 | [type_specific]: Add new component "gnat_stuff". | |
3448 | (struct gnat_aux_type): New type. | |
3449 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
3450 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
3451 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
3452 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
3453 | (TYPE_SPECIFIC_FIELD): New macros. | |
3454 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
3455 | type does not hold any cplus-specific data. | |
3456 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
3457 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
3458 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
3459 | cplus-specific data. | |
3460 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
3461 | Set new component TYPE_SPECIFIC_FIELD (type). | |
3462 | (gnat_aux_default): New constant. | |
3463 | (allocate_gnat_aux_type): New function. | |
3464 | (init_type): Add initialization the type-specific stuff for | |
3465 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
3466 | (print_gnat_stuff): New function. | |
3467 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
3468 | specific data. Adjust code that prints the contents of the | |
3469 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
3470 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
3471 | the type cplus stuff for Ada types. | |
3472 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
3473 | Error out if these routines are called with an Ada type. | |
3474 | (read_structure_type, read_array_type, read_subrange_type): | |
3475 | Add call to set_descriptive_type. | |
3476 | (set_die_type): Initialize the gnat-specific data if necessary. | |
3477 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
3478 | New functions. | |
3479 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
3480 | decode_constrained_packed_array_type instead of doing a standard | |
3481 | lookup to locate a parallel type. | |
3482 | (find_parallel_type_by_descriptive_type): New function. | |
3483 | (ada_find_parallel_type_with_name): New function. | |
3484 | (ada_find_parallel_type): Reimplement using | |
3485 | ada_find_parallel_type_with_name. | |
3486 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
3487 | to check if type has a cplus stuff. | |
3488 | * linespec.c (total_number_of_methods): Likewise. | |
3489 | * mdebugread.c (new_type): Likewise. | |
3490 | ||
b0f02ee9 JK |
3491 | 2010-01-11 Jan Kratochvil <[email protected]> |
3492 | ||
3493 | * NEWS: Document the 0b binary number prefix parsing. | |
3494 | ||
b260e109 JK |
3495 | 2010-01-11 Jan Kratochvil <[email protected]> |
3496 | ||
3497 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
3498 | Describe the new return value. Return non-zero if data changed. | |
3499 | (objfile_relocate): New variable changed. Set it. Call | |
3500 | breakpoint_re_set depending on CHANGED. | |
3501 | ||
b5cfddf5 JK |
3502 | 2010-01-11 Jan Kratochvil <[email protected]> |
3503 | ||
3504 | Implement binary numbers parsing. | |
3505 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
3506 | ||
e0ae4240 JK |
3507 | 2010-01-11 Jan Kratochvil <[email protected]> |
3508 | Tristan Gingold <[email protected]> | |
3509 | ||
3510 | * solib.c (info_sharedlibrary_command): Replace | |
3511 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
3512 | objfile_has_symbols. | |
3513 | ||
6e0e5977 JB |
3514 | 2010-01-10 Joel Brobecker <[email protected]> |
3515 | ||
3516 | * NEWS: Document the improvements made to the mips-irix port. | |
3517 | ||
7348c5e1 JB |
3518 | 2010-01-09 Joel Brobecker <[email protected]> |
3519 | ||
3520 | Fix the documentation of valprint.c:value_print. | |
3521 | * valprint.c (value_print): Update the function description to | |
3522 | mention that the syntax of the output follows the current_language, | |
3523 | not necessarily C. | |
3524 | ||
567995e1 JK |
3525 | 2010-01-09 Jan Kratochvil <[email protected]> |
3526 | ||
3527 | Fix displacement of separate debug info files. | |
3528 | * objfiles.c (objfile_relocate): Rename to ... | |
3529 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
3530 | (objfile_relocate): New function. | |
3531 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
3532 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
3533 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
3534 | allocated using alloca. | |
3535 | * symfile.c (copy_section_addr_info): Remove. | |
3536 | (build_section_addr_info_from_objfile): Make it global. New variables | |
3537 | addr_bit and mask, use them. | |
3538 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
3539 | (copy_section_addr_info): Remove. | |
3540 | ||
6d8eadbd JB |
3541 | 2010-01-09 Joel Brobecker <[email protected]> |
3542 | ||
3543 | Signal unwinder for mips-irix N32. | |
3544 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
3545 | tramp-frame.h. | |
3546 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
3547 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
3548 | (SIGCONTEXT_LO_OFF): New macros. | |
3549 | (mips_irix_n32_tramp_frame_init): New function. | |
3550 | (mips_irix_n32_tramp_frame): New static constant. | |
3551 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
3552 | ||
27087a3d JB |
3553 | 2010-01-09 Joel Brobecker <[email protected]> |
3554 | ||
3555 | Breakpoint in shared library does not work on mips-irix. | |
3556 | * procfs.c: #include "observer.h". | |
3557 | (procfs_inferior_created): New function, moving here the code | |
3558 | which unsets the syssgi syscall-exit notifications. | |
3559 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
3560 | syscall-exit notifications. It is too early to do this here. | |
3561 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
3562 | ||
f08877ba JB |
3563 | 2010-01-09 Joel Brobecker <[email protected]> |
3564 | ||
3565 | Wrong return convention for arrays (mips-irix). | |
3566 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
3567 | 128 bits or smaller are returned the same way as structs | |
3568 | and unions of the the same size. | |
3569 | ||
e4b97d48 JB |
3570 | 2010-01-09 Joel Brobecker <[email protected]> |
3571 | ||
3572 | Cannot set the PC on mips-irix. | |
3573 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
3574 | register number, no the cooked one. | |
3575 | ||
11377e68 JB |
3576 | 2010-01-09 Joel Brobecker <[email protected]> |
3577 | ||
3578 | Error while loading core file on mips-irix. | |
3579 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
3580 | if debugging from a core file. | |
3581 | ||
b2391021 JB |
3582 | 2010-01-09 Joel Brobecker <[email protected]> |
3583 | ||
3584 | GDB hangs when attaching to process on mips-irix. | |
3585 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
3586 | attaching to a process. | |
3587 | ||
f2ec0ecf JB |
3588 | 2010-01-09 Joel Brobecker <[email protected]> |
3589 | ||
3590 | Use the correct breakpoint instruction on mips-irix. | |
3591 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
3592 | containing the correct breakpoint instruction to use on mips-irix. | |
3593 | Use it when the osabi is GDB_OSABI_IRIX. | |
3594 | ||
3c95f01c JB |
3595 | 2010-01-09 Joel Brobecker <[email protected]> |
3596 | ||
3597 | -Wunused warning in procfs.c (mips-irix only). | |
3598 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
3599 | throughout instead of using praddset and prdelset respectively. | |
3600 | ||
4b7703ad JB |
3601 | 2010-01-09 Joel Brobecker <[email protected]> |
3602 | ||
3603 | GDB crash while stepping into function. | |
3604 | * infrun.c (handle_inferior_event): Refetch the current frame | |
3605 | after handling what.main_action, in case that pointer became | |
3606 | dangling. | |
3607 | ||
12c89474 JB |
3608 | 2010-01-09 Joel Brobecker <[email protected]> |
3609 | ||
3610 | Fix build failure of solaris-hosted cross debuggers. | |
3611 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
3612 | ||
1a3fd262 | 3613 | 2010-01-09 Daniel Gutson <[email protected]> |
4c490650 JB |
3614 | |
3615 | Fix build failure on sparc-solaris. | |
3616 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
3617 | ||
75242ef4 JK |
3618 | 2010-01-08 Jan Kratochvil <[email protected]> |
3619 | ||
3620 | Move some symfile code into subroutines. | |
3621 | * symfile.h (relative_addr_info_to_section_offsets) | |
3622 | (addr_info_make_relative): New prototypes. | |
3623 | * symfile.c (default_symfile_offsets): Move a part to ... | |
3624 | (relative_addr_info_to_section_offsets): ... this new function. | |
3625 | (default_symfile_offsets): Call it. | |
3626 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
3627 | this part to ... | |
3628 | (addr_info_make_relative): ... this new function. | |
3629 | ||
268a4a75 JK |
3630 | 2010-01-08 Jan Kratochvil <[email protected]> |
3631 | ||
3632 | Add from_tty to solib_create_inferior_hook. | |
3633 | * infcmd.c (post_create_inferior): Move solib_add after | |
3634 | solib_create_inferior_hook. Pass from_tty to | |
3635 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
3636 | 0 from_tty and comment why. | |
3637 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
3638 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
3639 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
3640 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
3641 | from_tty. | |
3642 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
3643 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
3644 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
3645 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
3646 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
3647 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
3648 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
3649 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
3650 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
3651 | from_tty. | |
3652 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
3653 | solib_add. | |
3654 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
3655 | enable_break. | |
3656 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
3657 | parameter from_tty. | |
3658 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
3659 | it to ops->solib_create_inferior_hook. | |
3660 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
3661 | Move solib_add after solib_create_inferior_hook, call it now with | |
3662 | from_tty as 0. New comment there. | |
3663 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
3664 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
3665 | Likewise. | |
3666 | ||
cf00dfa7 VP |
3667 | 2010-01-08 Vladimir Prus <[email protected]> |
3668 | ||
3669 | Fix multiexec race. | |
3670 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
3671 | with events ptid, not get_current_regcache. | |
3672 | ||
f91e5ac3 JB |
3673 | 2009-01-08 Joel Brobecker <[email protected]> |
3674 | ||
3675 | GDB crash with empty executable name (MinGW). | |
3676 | * source.c (openp): Add assert that parameter string is not NULL. | |
3677 | if parameter string is an empty string, then return with a failure | |
3678 | immediately. | |
3679 | ||
92b9ce5b JB |
3680 | 2009-01-08 Joel Brobecker <[email protected]> |
3681 | ||
3682 | Get rid of support for VAX Floats. | |
3683 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
3684 | (ada_vax_float_print_function): Delete. | |
3685 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
3686 | (ada_vax_float_print_function): Delete. | |
3687 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
3688 | (ada_print_type): Remove support for VAX floats. | |
3689 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
3690 | ||
268a4a75 | 3691 | 2010-01-08 Jan Kratochvil <[email protected]> |
d24d8548 JK |
3692 | |
3693 | * stabsread.c (read_args): Handle zero arguments. | |
3694 | ||
f0f20949 JB |
3695 | 2009-01-08 Joel Brobecker <[email protected]> |
3696 | ||
3697 | Cannot find in-tree libiconv.a after reconfigure. | |
3698 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
3699 | that we can use, then cache the path to this archive. | |
3700 | * configure: Regenerate. | |
3701 | ||
6b6218c5 SS |
3702 | 2010-01-07 Stan Shebs <[email protected]> |
3703 | ||
35b1e5cc SS |
3704 | Make tracepoint operations go through target vector. |
3705 | * target.h (enum trace_find_type): New enum. | |
3706 | (struct target_ops): New fields to_trace_init, | |
3707 | to_download_tracepoint, to_download_trace_state_variable, | |
3708 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
3709 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
3710 | to_set_disconnected_tracing. | |
3711 | (target_trace_init): New macro. | |
3712 | (target_download_tracepoint): New macro. | |
3713 | (target_download_trace_state_variable): New macro. | |
3714 | (target_trace_start): New macro. | |
3715 | (target_trace_set_readonly_regions): New macro. | |
3716 | (target_get_trace_status): New macro. | |
3717 | (target_trace_stop): New macro. | |
3718 | (target_trace_find): New macro. | |
3719 | (target_get_trace_state_variable_value): New macro. | |
3720 | (target_set_disconnected_tracing): New macro. | |
3721 | * target.c (update_current_target): Inherit and set defaults for | |
3722 | tracepoint operations. | |
3723 | * tracepoint.c (default_collect): Make globally visible. | |
3724 | (target_is_remote): Remove, along with all calls. | |
3725 | (tvariables_info): Call target_get_trace_state_variable_value. | |
3726 | (remote_set_transparent_ranges): Remove. | |
3727 | (trace_start_command): Call target_trace_init, | |
3728 | target_download_tracepoint, etc. | |
3729 | (download_tracepoint): Remove. | |
3730 | (trace_stop_command): Simplify. | |
3731 | (stop_tracing): Call target_trace_stop. | |
3732 | (get_trace_status): Call target_get_trace_status. | |
3733 | (trace_status_command): Add case for targets that cannot trace. | |
3734 | (finish_tfind_command): Change to take numerical arguments, call | |
3735 | target_trace_find. | |
3736 | (trace_find_command): Update call to finish_tfind_command. | |
3737 | (trace_find_pc_command): Ditto. | |
3738 | (trace_find_tracepoint_command): Ditto. | |
3739 | (trace_find_line_command): Ditto. | |
3740 | (trace_find_range_command): Ditto. | |
3741 | (trace_find_outside_command): Ditto. | |
3742 | (set_disconnected_tracing_value): Call | |
3743 | target_set_disconnected_tracing. | |
3744 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
3745 | (trace_error): Move from tracepoint.c. | |
3746 | (remote_get_noisy_reply): Ditto. | |
3747 | (free_actions_list_cleanup_wrapper): Ditto. | |
3748 | (free_actions_list): Ditto. | |
3749 | (remote_trace_init): New function. | |
3750 | (remote_download_tracepoint): New function. | |
3751 | (remote_download_trace_state_variable): New function. | |
3752 | (remote_trace_set_readonly_regions): New function. | |
3753 | (remote_trace_start): New function. | |
3754 | (remote_get_trace_status): New function. | |
3755 | (remote_trace_stop): New function. | |
3756 | (remote_trace_find): New function. | |
3757 | (remote_download_trace_state_variable): New function. | |
3758 | (remote_set_disconnected_tracing): New function. | |
3759 | (init_remote_ops): Add tracepoint operations. | |
3760 | ||
6b6218c5 SS |
3761 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
3762 | ||
089b4803 TG |
3763 | 2010-01-07 Tristan Gingold <[email protected]> |
3764 | ||
3765 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
3766 | (symbol_file_add_separate): Don't use offsets from objfile but | |
3767 | built an addr info. | |
3768 | ||
d5551862 SS |
3769 | 2010-01-06 Stan Shebs <[email protected]> |
3770 | ||
3771 | Support disconnected tracing. | |
3772 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
3773 | * cli/cli-cmds.c (quit_command): Ditto. | |
3774 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
3775 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
3776 | (get_tracepoint_by_number_on_target): New function. | |
3777 | * remote.c (struct remote): New field disconnected_tracing. | |
3778 | (remote_disconnected_tracing_feature): New function. | |
3779 | (remote_protocol_features): Add DisconnectedTracing. | |
3780 | (struct uploaded_tp): New struct. | |
3781 | (uploaded_tps): New global. | |
3782 | (get_uploaded_tp): New function. | |
3783 | (find_matching_tracepoint): New function. | |
3784 | (remote_get_tracing_state): New function. | |
3785 | (remote_start_remote): Call it. | |
3786 | * tracepoint.c (disconnected_tracing): New global. | |
3787 | (trace_start_command): Initialize number_on_target. | |
3788 | (stop_tracing): New function, split out from... | |
3789 | (trace_stop_command): Call stop_tracing. | |
3790 | (get_trace_status): New function, split out from... | |
3791 | (trace_status_command): Call get_trace_status, add info on | |
3792 | disconnection behavior. | |
3793 | (disconnect_or_stop_tracing): New function. | |
3794 | (finish_tfind_command): Translate from number on target. | |
3795 | (trace_find_tracepoint_command): Translate to number on target. | |
3796 | (send_disconnected_tracing_value): New function. | |
3797 | (set_disconnected_tracing): New function. | |
3798 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
3799 | * NEWS: Mention disconnected tracing. | |
3800 | ||
15d123c9 TG |
3801 | 2010-01-06 Tristan Gingold <[email protected]> |
3802 | ||
3803 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
3804 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
3805 | * symfile.h (symbol_file_add_separate) | |
3806 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
3807 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
3808 | (reread_symbols): Use free_objfile_separate_debug. | |
3809 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
3810 | Adjust comment. | |
3811 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
3812 | (free_objfile_separate_debug): New prototypes. | |
3813 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
3814 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
3815 | functions. | |
3816 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
3817 | multiple separate debug objfile. | |
3818 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
3819 | debug objfiles. | |
3820 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
3821 | debug objfile. | |
3822 | (lookup_minimal_symbol_text): Ditto. | |
3823 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
3824 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
3825 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
3826 | debug objfiles. | |
3827 | ||
7a697b8d SS |
3828 | 2010-01-05 Stan Shebs <[email protected]> |
3829 | ||
3830 | Add fast tracepoints. | |
3831 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
3832 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
3833 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
3834 | * breakpoint.c (tracepoint_type): New function. | |
3835 | (ALL_TRACEPOINTS): Use it. | |
3836 | (should_be_inserted): Ditto. | |
3837 | (bpstat_check_location): Ditto. | |
3838 | (print_one_breakpoint_location): Ditto. | |
3839 | (user_settable_breakpoint): Ditto. | |
3840 | (set_breakpoint_location_function): Ditto. | |
3841 | (disable_breakpoints_in_shlibs): Ditto. | |
3842 | (delete_trace_command): Ditto. | |
3843 | (print_it_typical): Add bp_fast_tracepoint case. | |
3844 | (bpstat_what): Ditto. | |
3845 | (print_one_breakpoint_location): Ditto. | |
3846 | (allocate_bp_location): Ditto. | |
3847 | (mention): Ditto. | |
3848 | (breakpoint_re_set_one): Ditto. | |
3849 | (disable_command): Ditto. | |
3850 | (enable_command): Ditto. | |
3851 | (check_fast_tracepoint_sals): New function. | |
3852 | (break_command_really): Call it. | |
3853 | (ftrace_command): New function. | |
3854 | (_initialize_breakpoint): Add ftrace command. | |
3855 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
3856 | * gdbarch.h, gdbarch.c: Regenerate. | |
3857 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
3858 | (i386_gdbarch_init): Use it. | |
3859 | * remote.c (struct remote_state): New field fast_tracepoints. | |
3860 | (PACKET_FastTracepoints): New packet config type. | |
3861 | (remote_fast_tracepoint_feature): New function. | |
3862 | (remote_protocol_features): Add FastTracepoints. | |
3863 | (remote_supports_fast_tracepoints): New function. | |
3864 | (_initialize_remote): Add FastTracepoints. | |
3865 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
3866 | * NEWS: Mention fast tracepoints. | |
3867 | ||
737a160e JB |
3868 | 2010-01-06 Joel Brobecker <[email protected]> |
3869 | ||
3870 | * gdb-gdb.py: New file. | |
3871 | ||
ce6cca6d MS |
3872 | 2010-01-05 Michael Snyder <[email protected]> |
3873 | ||
3874 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
3875 | ||
0d15807d JK |
3876 | 2010-01-05 Jan Kratochvil <[email protected]> |
3877 | ||
3878 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
3879 | ||
7803799a UW |
3880 | 2010-01-04 Ulrich Weigand <[email protected]> |
3881 | ||
c8d5aac9 | 3882 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
3883 | and s390x-linux64. |
3884 | (s390-linux32-expedite): Define. | |
3885 | (s390-linux64-expedite): Define. | |
3886 | (s390x-linux64-expedite): Define. | |
3887 | * features/s390-acr.xml: New file. | |
3888 | * features/s390-fpr.xml: New file. | |
3889 | * features/s390-core32.xml: New file. | |
3890 | * features/s390-core64.xml: New file. | |
3891 | * features/s390x-core64.xml: New file. | |
3892 | * features/s390-linux32.xml: New file. | |
3893 | * features/s390-linux64.xml: New file. | |
3894 | * features/s390x-linux64.xml: New file. | |
3895 | * features/s390-linux32.c: New generated file. | |
3896 | * features/s390-linux64.c: New generated file. | |
3897 | * features/s390x-linux64.c: New generated file. | |
3898 | ||
3899 | * regformats/s390-linux32.dat: New generated file. | |
3900 | * regformats/s390-linux64.dat: New generated file. | |
3901 | * regformats/s390x-linux64.dat: New generated file. | |
3902 | * regformats/reg-s390.dat: Remove. | |
3903 | * regformats/reg-s390x.dat: Remove. | |
3904 | ||
3905 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
3906 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
3907 | (s390_target_wordsize): New function. | |
3908 | (s390_auxv_parse): Likewise. | |
3909 | (s390_get_hwcap): Likewise. | |
3910 | (s390_read_description): Likewise. | |
3911 | (_initialize_s390_nat): Install s390_auxv_parse and | |
3912 | s390_read_description. | |
3913 | ||
3914 | * s390-tdep.c: Include "features/s390-linux32.c", | |
3915 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
3916 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
3917 | (s390_register_call_saved): New function. | |
3918 | (s390_register_name): Remove. | |
3919 | (s390_register_type): Remove. | |
3920 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
3921 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
3922 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
3923 | (s390_pseudo_register_name): New function. | |
3924 | (s390_pseudo_register_type): New function. | |
3925 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
3926 | Handle full GPR pesudos and varying pseudo register numbers. | |
3927 | (s390_pseudo_register_write): Likewise | |
3928 | (s390x_pseudo_register_read): Remove. | |
3929 | (s390x_pseudo_register_write): Likewise. | |
3930 | (s390_register_group): Remove. | |
3931 | (s390_pseudo_register_group): New function. | |
3932 | (s390_regmap_gregset): Add GPR upper halves. | |
3933 | (s390x_regmap_gregset): Likewise. | |
3934 | (s390_regmap_fpregset): Likewise. | |
3935 | (s390_regmap_upper): New global variable. | |
3936 | (s390_upper_regset): New global variable. | |
3937 | (s390_upper_regset_sections): New global variable. | |
3938 | (s390_regset_from_core_section): Handle GPR upper halves. | |
3939 | (s390_core_read_description): New function. | |
3940 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
3941 | register information. Handle varying pseudo register numbers. | |
3942 | (s390_backchain_frame_unwind_cache): Likewise. | |
3943 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
3944 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
3945 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
3946 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
3947 | Handle varying pseudo register numbers. | |
3948 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
3949 | (s390_dwarf2_prev_register): New function. | |
3950 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
3951 | register information. Handle varying pseudo register numbers. | |
3952 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
3953 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
3954 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
3955 | (_initialize_s390_tdep): Initialize target descriptions. | |
3956 | ||
3957 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
3958 | (S390_NUM_REGS): Redefine to include upper half registers. | |
3959 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
3960 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
3961 | (tdesc_s390_linux32): Add declaration. | |
3962 | (tdesc_s390_linux64): Likewise. | |
3963 | (tdesc_s390x_linux64): Likewise. | |
3964 | ||
1b1818e4 UW |
3965 | 2010-01-04 Ulrich Weigand <[email protected]> |
3966 | ||
3967 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
3968 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
3969 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
3970 | (ppc_linux_vmx_regset_sections): Likewise. | |
3971 | (ppc_linux_fp_regset_sections): Likewise. | |
3972 | ||
3973 | * corelow.c (get_core_register_section): Constify arguments. | |
3974 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
3975 | of hard-coded platform-specific register section names. | |
3976 | ||
dcbf108f UW |
3977 | 2010-01-04 Ulrich Weigand <[email protected]> |
3978 | ||
3979 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 3980 | a register, assume the least-significant part is used. |
dcbf108f UW |
3981 | (write_pieced_value): Likewise. |
3982 | ||
704e9165 UW |
3983 | 2010-01-04 Ulrich Weigand <[email protected]> |
3984 | ||
3985 | * printcmd.c: Include "arch-utils.h". | |
3986 | (do_one_display): Re-parse expression if current architecture changed. | |
3987 | ||
c54eabfa JK |
3988 | 2010-01-03 Jan Kratochvil <[email protected]> |
3989 | Joel Brobecker <[email protected]> | |
3990 | ||
3991 | * gdbtypes.c (check_typedef): New comment on type length. | |
3992 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
3993 | comment on type length. | |
3994 | (value_primitive_field): Keep the original TYPE value, new comment. | |
3995 | ||
50cb2941 JK |
3996 | 2010-01-01 Jan Kratochvil <[email protected]> |
3997 | ||
3998 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
3999 | p_start. Change != comparisons to > and < comparisons. | |
4000 | ||
be66db07 JK |
4001 | 2010-01-01 Jan Kratochvil <[email protected]> |
4002 | ||
4003 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
4004 | ||
abd775ce JB |
4005 | 2009-01-01 Joel Brobecker <[email protected]> |
4006 | ||
4007 | Update the copyright hearder to add year 2010 for most GDB files. | |
4008 | ||
6479260d JB |
4009 | 2009-01-01 Joel Brobecker <[email protected]> |
4010 | ||
4011 | Fix build failure in inf-ptrace.c. | |
4012 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
4013 | ||
4a70f654 JB |
4014 | 2010-01-01 Joel Brobecker <[email protected]> |
4015 | ||
4016 | * top.c (print_gdb_version): Update copyright year. | |
4017 | ||
b9ee2233 JB |
4018 | 2010-01-01 Joel Brobecker <[email protected]> |
4019 | ||
4020 | Fix break *FUN'address thread NUM. | |
4021 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
4022 | ||
70575d34 JB |
4023 | 2010-01-01 Joel Brobecker <[email protected]> |
4024 | ||
4025 | Fix break *FUN'address task NUM. | |
4026 | * ada-lex.l (task): New rule. | |
4027 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
4028 | been built before using it. | |
4029 | ||
e1e4d4a4 | 4030 | For older changes see ChangeLog-2009. |
c906108c SS |
4031 | \f |
4032 | Local Variables: | |
4033 | mode: change-log | |
4034 | left-margin: 8 | |
4035 | fill-column: 74 | |
4036 | version-control: never | |
57da7796 | 4037 | coding: utf-8 |
c906108c | 4038 | End: |