]>
Commit | Line | Data |
---|---|---|
585d1eb8 PM |
1 | 2010-08-03 Phil Muldoon <[email protected]> |
2 | ||
3 | * NEWS: Document Python value inferior function calls. | |
4 | ||
2de00c64 DE |
5 | 2010-08-02 Doug Evans <[email protected]> |
6 | ||
7 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
8 | ||
02d868e8 PP |
9 | 2010-07-31 Paul Pluzhnikov <[email protected]> |
10 | ||
11 | * linux-thread-db.c (libthread_db_debug): New variable. | |
12 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
13 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
14 | (find_new_threads_once): Likewise. | |
15 | (_initialize_thread_db): Set/show it. | |
16 | ||
a19cae16 JK |
17 | 2010-07-31 Jan Kratochvil <[email protected]> |
18 | ||
19 | * common/signals.c (signals): Move the content to signals.def. | |
20 | Include it. Remove the INDENT comments. | |
21 | ||
c2bbed2a TT |
22 | 2010-07-30 Tom Tromey <[email protected]> |
23 | ||
24 | * Makefile.in (install-only): Install gdb-add-index. | |
25 | * gdb-add-index.sh: New file. | |
26 | ||
f32b2f09 CR |
27 | 2010-07-31 Renquan Cheng <[email protected]> |
28 | ||
29 | * MAINTAINERS: Add myself for write after approval privileges. | |
30 | ||
1276c759 JK |
31 | 2010-07-30 Jan Kratochvil <[email protected]> |
32 | ||
33 | * symfile.c (addr_section_name): New function. | |
34 | (addrs_section_compar): Use it. | |
35 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
36 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
37 | ||
420697bb TT |
38 | 2010-07-30 Tom Tromey <[email protected]> |
39 | ||
40 | * configure: Rebuild. | |
41 | * configure.ac: Add missing case for Python 2.7. | |
42 | ||
d0d99561 DD |
43 | 2010-07-29 DJ Delorie <[email protected]> |
44 | ||
45 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
46 | conditions. | |
47 | ||
0b29bdde PA |
48 | 2010-07-29 Pedro Alves <[email protected]> |
49 | ||
50 | * PROBLEMS: Remove mention of all problems. | |
51 | ||
110ed339 PA |
52 | 2010-07-28 Pedro Alves <[email protected]> |
53 | ||
54 | PR build/11848 | |
55 | * configure.ac: Check for wresize. | |
56 | * configure, config.in: Regenerate. | |
57 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
58 | with HAVE_WRESIZE. | |
59 | ||
326fd672 TT |
60 | 2010-07-28 Tom Tromey <[email protected]> |
61 | ||
62 | PR python/11060: | |
63 | * python/py-type.c (typy_legacy_template_argument): New function, | |
64 | extracted from typy_template_argument. | |
65 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
66 | value when needed. | |
67 | ||
4ac8c4da TT |
68 | 2010-07-28 Oleg Nesterov <[email protected]> |
69 | ||
70 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
71 | ||
053315c2 TT |
72 | 2010-07-27 Tom Tromey <[email protected]> |
73 | ||
74 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
75 | ||
3ce3b1ba PA |
76 | 2010-07-28 Daniel Jacobowitz <[email protected]> |
77 | ||
78 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
79 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
80 | ||
2bb4f988 TT |
81 | 2010-07-28 Tom Tromey <[email protected]> |
82 | ||
83 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
84 | ||
74232302 JB |
85 | 2010-07-28 Joel Brobecker <[email protected]> |
86 | ||
87 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
88 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
89 | ||
385d04dc JB |
90 | 2010-07-28 Joel Brobecker <[email protected]> |
91 | ||
92 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
93 | down, just before the block that parse the breakpoint addr_string. | |
94 | ||
34eaf542 TT |
95 | 2010-07-28 Tom Tromey <[email protected]> |
96 | ||
97 | PR c++/9946: | |
98 | * symfile.c (reread_symbols): Clear template_symbols. | |
99 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
100 | field. | |
101 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
102 | (struct template_symbol): New. | |
103 | * symtab.c (lookup_symbol_aux_local): Use | |
104 | cp_lookup_symbol_imports_or_template. | |
105 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
106 | * objfiles.c (relocate_one_symbol): New function. | |
107 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
108 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
109 | template_arguments>: New fields. | |
110 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
111 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
112 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
113 | (lookup_typename): Update. | |
114 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
115 | * dwarf2read.c: Include vec.h. | |
116 | (symbolp): New typedef. | |
117 | (read_func_scope): Read template arguments. Allocate a | |
118 | template_symbol when needed. | |
119 | (read_structure_type): Read template arguments. | |
120 | (new_symbol_full): New function, from new_symbol. Handle | |
121 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
122 | (new_symbol): Rewrite as wrapper. | |
123 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
124 | * cp-namespace.c: Include language.h. | |
125 | (search_symbol_list): New function. | |
126 | (cp_lookup_symbol_imports_or_template): Likewise. | |
127 | ||
d27b3be4 PA |
128 | 2010-07-28 Balazs Kezes <[email protected]> |
129 | ||
130 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
131 | the command window to the new size and position. | |
132 | ||
0036e657 PA |
133 | 2010-07-28 Balazs Kezes <[email protected]> |
134 | ||
a782f43e | 135 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
136 | coordinates. |
137 | ||
36900355 PA |
138 | 2010-07-28 Balazs Kezes <[email protected]> |
139 | ||
a782f43e | 140 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 141 | after a detecting a resize. |
a782f43e | 142 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
143 | call. |
144 | ||
db5e03ae PA |
145 | 2010-07-28 Pedro Alves <[email protected]> |
146 | ||
147 | * configure.ac: Check for resize_term. | |
148 | * configure, config.in: Regenerate. | |
149 | ||
b71fff68 JB |
150 | 2010-07-27 Joel Brobecker <[email protected]> |
151 | ||
152 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
153 | ||
9b1c24c8 PA |
154 | 2010-07-27 Daniel Jacobowitz <[email protected]> |
155 | ||
156 | * dwarf2read.c (read_string): Rename to ... | |
157 | (read_direct_string): ... this. | |
158 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
159 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
160 | ||
00390b84 JK |
161 | 2010-07-27 Jan Kratochvil <[email protected]> |
162 | ||
163 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
164 | (count_events_callback, select_event_lwp_callback) | |
165 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
166 | ||
26ab7092 JK |
167 | 2010-07-27 Jan Kratochvil <[email protected]> |
168 | ||
169 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
170 | (_initialize_ia64_linux_nat): Install it. | |
171 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
172 | (linux_nat_set_status_is_event): New. | |
173 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
174 | cancel_breakpoints_callback, linux_nat_filter_event) | |
175 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
176 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
177 | ||
283e6a52 TT |
178 | 2010-07-27 Tom Tromey <[email protected]> |
179 | ||
180 | * NEWS: Mention labels, .gdb_index. | |
181 | ||
53a71c06 CR |
182 | 2010-07-28 CHENG Renquan <[email protected]> |
183 | ||
184 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 185 | "start,+length" form of arguments. |
53a71c06 CR |
186 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
187 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
188 | description in "Changes in GDB 7.0". | |
189 | ||
c63a1f86 JK |
190 | 2010-07-27 Jan Kratochvil <[email protected]> |
191 | ||
192 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
193 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
194 | (fputs_maybe_filtered): Do not do filtering also on | |
195 | ! INPUT_FROM_TERMINAL_P. | |
196 | ||
abebb8b0 JB |
197 | 2010-07-27 Joel Brobecker <[email protected]> |
198 | ||
199 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
200 | in warning message. | |
201 | ||
5374244e PM |
202 | 2010-07-27 Phil Muldoon <[email protected]> |
203 | ||
204 | * python/py-value.c (valpy_call): New Function. | |
205 | ||
ac0b195c KW |
206 | 2010-07-27 Ken Werner <[email protected]> |
207 | ||
872e696d | 208 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
209 | types_list_elements variables. |
210 | ||
09d8bd00 TT |
211 | 2010-07-26 Tom Tromey <[email protected]> |
212 | ||
213 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
214 | TLS with DW_OP_const4u or DW_OP_const8u. | |
215 | ||
9fe70b4f TJB |
216 | 2010-07-26 Thiago Jung Bauermann <[email protected]> |
217 | ||
218 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
219 | VSX registers contents. | |
220 | ||
caac4577 JG |
221 | 2010-07-26 Jerome Guitton <[email protected]> |
222 | ||
223 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
224 | its adress is null. Add comment to explain why. | |
225 | (new_symbol): Ditto. | |
226 | ||
857d11d0 JK |
227 | 2010-07-25 Jan Kratochvil <[email protected]> |
228 | ||
229 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
230 | the host signal first. | |
231 | ||
1fd400ff TT |
232 | 2010-07-23 Tom Tromey <[email protected]> |
233 | ||
234 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
235 | type_comp_units>: New fields. | |
236 | (dw2_get_cu): New function. | |
237 | (create_cus_from_index): Remove unused argument. | |
238 | (create_signatured_type_hash_from_index): New function. | |
239 | (create_addrmap_from_index): Update. | |
240 | (dwarf2_read_index): Handle version 2. | |
241 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
242 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
243 | (dw2_print_stats, dw2_expand_all_symtabs) | |
244 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
245 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
246 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
247 | (allocate_signatured_type_hash_table): New function. | |
248 | (add_signatured_type_cu_to_list): Likewise. | |
249 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
250 | (read_signatured_type): Ensure section data is available. | |
251 | (add_address_entry): Don't record empty ranges. | |
252 | (struct signatured_type_index_data): New. | |
253 | (write_one_signatured_type): New function. | |
254 | (write_psymtabs_to_index): Write type CUs. | |
255 | (save_gdb_index_command): Update comment. | |
256 | (process_type_comp_unit): Move inititalization of | |
257 | from_debug_types... | |
258 | (create_debug_types_hash_table): ... here. | |
259 | ||
3a674486 JK |
260 | 2010-07-23 Jan Kratochvil <[email protected]> |
261 | ||
262 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
263 | cleanup and generating of gdb script to it. | |
264 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
265 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
266 | ||
54ec275a KS |
267 | 2010-07-23 Keith Seitz <[email protected]> |
268 | ||
269 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
270 | hook for STATIC_BLOCK types, too. | |
271 | ||
8fd447e6 KS |
272 | 2010-07-23 Keith Seitz <[email protected]> |
273 | ||
274 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
275 | and vector definition. | |
276 | ||
25b72dde JK |
277 | 2010-07-23 Jan Kratochvil <[email protected]> |
278 | ||
279 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
280 | ||
96d19272 JK |
281 | 2010-07-22 Jan Kratochvil <[email protected]> |
282 | ||
283 | * dwarf2read.c: Include completer.h. | |
284 | (save_gdb_index_command): Use matching usage command name. | |
285 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
286 | Set filename_completer for it. | |
287 | ||
ca1f3406 TT |
288 | 2010-07-22 Tom Tromey <[email protected]> |
289 | ||
290 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
291 | type signature's per-CU data. | |
292 | ||
ba25b921 PA |
293 | 2010-07-22 Pedro Alves <[email protected]> |
294 | ||
295 | * NEWS: Mention target reported shared libraries support by | |
296 | default. | |
297 | ||
23bd0f7c PA |
298 | 2010-07-21 Pedro Alves <[email protected]> |
299 | ||
300 | PR symtab/11827 | |
301 | ||
302 | Revert: | |
303 | 2010-05-21 Pierre Muller <[email protected]> | |
304 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
305 | and DW_TAG_volatile_type. | |
306 | (new_symbol): Likewise. | |
307 | ||
883df6dd SW |
308 | 2010-07-21 Sami Wagiaalla <[email protected]> |
309 | ||
310 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
311 | function symbols before overload resolution. | |
312 | ||
269b11a2 PA |
313 | 2010-07-21 Pedro Alves <[email protected]> |
314 | ||
315 | * breakpoint.c (bptype_string): New, abstracted out from | |
316 | print_one_breakpoint_location. | |
317 | (print_one_breakpoint_location): Adjust. | |
318 | (breakpoint_1): Adjust the type column width dynamically. | |
319 | ||
569b05a5 JK |
320 | 2010-07-20 Jan Kratochvil <[email protected]> |
321 | ||
322 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
323 | a gdb_assert call, new comment. | |
324 | ||
ad34eb2f JK |
325 | 2010-07-20 Jan Kratochvil <[email protected]> |
326 | ||
327 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
328 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
329 | ||
33355866 JK |
330 | 2010-07-20 Jan Kratochvil <[email protected]> |
331 | ||
332 | Code cleanup. | |
333 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
334 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
335 | ||
26590820 HZ |
336 | 2010-07-20 Hui Zhu <[email protected]> |
337 | ||
338 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
339 | (inf_ptrace_attach): Ditto. | |
340 | ||
c0edd9ed JK |
341 | 2010-07-19 Jan Kratochvil <[email protected]> |
342 | ||
343 | Make core files the process_stratum. | |
344 | * corefile.c (core_target): New variable. | |
345 | (core_file_command): Remove variable t, use core_target. | |
346 | * corelow.c (core_ops): Make it static. | |
347 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
348 | * defs.h (make_cleanup_unpush_target): New prototype. | |
349 | * gdbarch.h: Regenerate. | |
350 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
351 | * gdbcore.h (core_target): New declaration. | |
352 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
353 | variables ops_already_pushed and back_to. Use push_target, | |
354 | make_cleanup_unpush_target and discard_cleanups calls. | |
355 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
356 | * target.c (target_is_pushed): New function. | |
357 | (find_core_target): Remove. | |
358 | * target.h (enum strata) <core_stratum>: Remove. | |
359 | (target_is_pushed): New declaration. | |
360 | (find_core_target): Remove declaration. | |
361 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
362 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
363 | ||
f02253f1 HZ |
364 | 2010-07-19 Hui Zhu <[email protected]> |
365 | ||
366 | * breakpoint.c (single_step_breakpoints_inserted): New | |
367 | function. | |
368 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
369 | * infrun.c (maybe_software_singlestep): Add check code. | |
370 | * record.c (record_resume): Add code for software single step. | |
371 | (record_wait): Ditto. | |
372 | ||
78768c4a JK |
373 | 2010-07-18 Jan Kratochvil <[email protected]> |
374 | ||
375 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
376 | a more inner block. Remove its unused declaration initializer. | |
377 | ||
431e49aa TJB |
378 | 2010-07-16 Thiago Jung Bauermann <[email protected]> |
379 | ||
380 | * NEWS: Mention support for the new ptrace interface and hardware | |
381 | accelerated watchpoint conditions on powerpc-linux. | |
382 | ||
bd91e7ae OS |
383 | 2010-07-16 Ozkan Sezer <[email protected]> |
384 | ||
385 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
386 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
387 | and host_address_to_string() and %s for pointers. | |
388 | (debug_to_remove_breakpoint): Likewise. | |
389 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
390 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
391 | (debug_to_stopped_data_address): Likewise. | |
392 | (debug_to_watchpoint_addr_within_range): Likewise. | |
393 | (debug_to_insert_hw_breakpoint): Likewise. | |
394 | (debug_to_remove_hw_breakpoint): Likewise. | |
395 | (debug_to_insert_watchpoint): Likewise. | |
396 | (debug_to_remove_watchpoint): Likewise. | |
397 | ||
29df156d SW |
398 | 2010-07-16 Sami Wagiaalla <[email protected]> |
399 | ||
400 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
401 | argument. | |
402 | (cplus_specific): New struct. | |
403 | * symtab.c (symbol_set_demangled_name): Updated. | |
404 | Use cplus_specific for cplus symbols. | |
405 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
406 | struct for cplus symbols. | |
407 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
408 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
409 | * symtab.c (symbol_init_cplus_specific): New function. | |
410 | ||
b250c185 SW |
411 | 2010-07-16 Sami Wagiaalla <[email protected]> |
412 | ||
413 | * symtab.h (symbol_set_demangled_name): New function. | |
414 | (symbol_get_demangled_name): New function. | |
415 | * symtab.c (symbol_set_demangled_name): New function. | |
416 | (symbol_get_demangled_name): New function. | |
417 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
418 | (symbol_set_names): Ditto. | |
419 | (symbol_natural_name): Ditto. | |
420 | (symbol_demangled_name): Ditto. | |
421 | * dwarf2read.c (new_symbol): Ditto. | |
422 | ||
afa16725 SW |
423 | 2010-07-16 Sami Wagiaalla <[email protected]> |
424 | ||
425 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
426 | * symtab.c (symbol_init_language_specific): Updated. | |
427 | (symbol_set_names): Updated. | |
428 | (symbol_natural_name): Updated. | |
429 | (symbol_demangled_name): Updated. | |
430 | * ada-lang.c (ada_decode_symbol): Updated. | |
431 | * dwarf2read.c (new_symbol): Updated. | |
432 | ||
3cbaedff KW |
433 | 2010-07-14 Ken Werner <[email protected]> |
434 | ||
435 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
436 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
437 | ||
c932f1be KW |
438 | 2010-07-14 Ken Werner <[email protected]> |
439 | ||
440 | * MAINTAINERS: Add myself for write after approval privileges. | |
441 | ||
91158a56 TT |
442 | 2010-07-13 Emmanuel Thomé <[email protected]> |
443 | ||
444 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
445 | call to val_print_array_elements. | |
446 | ||
b3b272e1 TT |
447 | 2010-07-13 Tom Tromey <[email protected]> |
448 | ||
449 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
450 | ||
bb3fa9d0 TT |
451 | 2010-07-13 Tom Tromey <[email protected]> |
452 | ||
453 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
454 | objfile. | |
455 | ||
dd786858 TT |
456 | 2010-07-13 Tom Tromey <[email protected]> |
457 | ||
458 | * symfile.c (set_initial_language): Update. | |
459 | (deduce_language_from_filename): Argument type now const. | |
460 | * symtab.h (find_main_filename): Update. | |
461 | (deduce_language_from_filename): Update. | |
462 | * symtab.c (find_main_filename): Make result const. | |
463 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
464 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
465 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
466 | Make result const. | |
467 | ||
9291a0cd TT |
468 | 2010-07-13 Tom Tromey <[email protected]> |
469 | ||
470 | * breakpoint.c (save_cmdlist): No longer static. | |
471 | * gdbcmd.h (save_cmdlist): Declare. | |
472 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
473 | OBJF_READNOW on objfile if readnow_symbol_files. | |
474 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
475 | (elf_sym_fns_gdb_index): New global. | |
476 | * dwarf2read.c: Include exceptions.h. | |
477 | (offset_type): New. | |
478 | (struct mapped_index): New. | |
479 | (dwarf2_per_cu_data_ptr): New typedef. | |
480 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
481 | New fields. | |
482 | (GDB_INDEX_SECTION): New define. | |
483 | (struct dwarf2_per_cu_quick_data): New. | |
484 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
485 | <psymtab>: Removed. | |
486 | <v>: New field. | |
487 | (byte_swap): New function. | |
488 | (MAYBE_SWAP): New macro. | |
489 | (INDEX_SUFFIX): New macro. | |
490 | (dw2_do_instantiate_symtab): New function. | |
491 | (dw2_instantiate_symtab): Likewise. | |
492 | (create_cus_from_index): Likewise. | |
493 | (create_addrmap_from_index): Likewise. | |
494 | (mapped_index_string_hash): Likewise. | |
495 | (find_slot_in_mapped_hash): Likewise. | |
496 | (dwarf2_read_index): Likewise. | |
497 | (dw2_setup): Likewise. | |
498 | (dw2_require_line_header): Likewise. | |
499 | (dw2_require_full_path): Likewise. | |
500 | (dw2_find_last_source_symtab): Likewise. | |
501 | (dw2_forget_cached_source_info): Likewise. | |
502 | (dw2_lookup_symtab): Likewise. | |
503 | (dw2_lookup_symbol): Likewise. | |
504 | (dw2_do_expand_symtabs_matching): Likewise. | |
505 | (dw2_pre_expand_symtabs_matching): Likewise. | |
506 | (dw2_print_stats): Likewise. | |
507 | (dw2_dump): Likewise. | |
508 | (dw2_relocate): Likewise. | |
509 | (dw2_expand_symtabs_for_function): Likewise. | |
510 | (dw2_expand_all_symtabs): Likewise. | |
511 | (dw2_expand_symtabs_with_filename): Likewise. | |
512 | (dw2_find_symbol_file): Likewise. | |
513 | (dw2_map_ada_symtabs): Likewise. | |
514 | (dw2_expand_symtabs_matching): Likewise. | |
515 | (dw2_find_pc_sect_symtab): Likewise. | |
516 | (dw2_map_symbol_names): Likewise. | |
517 | (dw2_map_symbol_filenames): Likewise. | |
518 | (dw2_has_symbols): Likewise. | |
519 | (dwarf2_gdb_index_functions): New global. | |
520 | (dwarf2_initialize_objfile): New function. | |
521 | (process_psymtab_comp_unit): Update. | |
522 | (add_partial_subprogram): Likewise. | |
523 | (dwarf2_psymtab_to_symtab): Likewise. | |
524 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
525 | (process_full_comp_unit): Update. | |
526 | (find_file_and_directory): New function. | |
527 | (read_file_scope): Use find_file_and_directory. | |
528 | (dwarf2_per_cu_objfile): Update. | |
529 | (dwarf2_per_cu_addr_size): Update. | |
530 | (dwarf2_per_cu_offset_size): Update. | |
531 | (dwarf2_free_objfile): Free the index, if needed. | |
532 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
533 | (struct strtab_entry): New. | |
534 | (hash_strtab_entry): New function. | |
535 | (eq_strtab_entry): Likewise. | |
536 | (create_strtab): Likewise. | |
537 | (add_string): Likewise. | |
538 | (struct symtab_index_entry): New. | |
539 | (struct mapped_symtab): New. | |
540 | (hash_symtab_entry): New function. | |
541 | (eq_symtab_entry): Likewise. | |
542 | (delete_symtab_entry): Likewise. | |
543 | (create_index_table): Likewise. | |
544 | (create_mapped_symtab): Likewise. | |
545 | (cleanup_mapped_symtab): Likewise. | |
546 | (find_slot): Likewise. | |
547 | (hash_expand): Likewise. | |
548 | (add_index_entry): Likewise. | |
549 | (add_indices_to_cpool): Likewise. | |
550 | (write_hash_table): Likewise. | |
551 | (add_address_entry): Likewise. | |
552 | (write_psymbols): Likewise. | |
553 | (write_obstack): Likewise. | |
554 | (unlink_if_set): Likewise. | |
555 | (write_psymtabs_to_index): Likewise. | |
556 | (save_gdb_index_command): Likewise. | |
557 | (_initialize_dwarf2_read): Install "save gdb-index" | |
558 | command. | |
559 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
560 | (dwarf2_locate_sections): Check for .gdb_index. | |
561 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
562 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
563 | ||
58b6ab13 TT |
564 | 2010-07-13 Tom Tromey <[email protected]> |
565 | ||
566 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
567 | (basic_lookup_transparent_type): Likewise. | |
568 | * symfile.h (struct quick_symbol_functions) | |
569 | <pre_expand_symtabs_matching>: New field. | |
570 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
571 | (psym_functions): Update. | |
572 | ||
0f5238ed TT |
573 | 2010-07-13 Tom Tromey <[email protected]> |
574 | ||
575 | PR breakpoints/8357: | |
576 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
577 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
578 | (decode_label): New function. | |
579 | (symbol_found): Handle LOC_LABEL. | |
580 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
581 | domain. Call add_symbol_to_list. | |
582 | ||
9aa1f1e3 TT |
583 | 2010-07-13 Tom Tromey <[email protected]> |
584 | ||
585 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
586 | * dwarf2loc.c (find_location_expression): Use | |
587 | dwarf2_per_cu_text_offset. | |
588 | (dwarf2_evaluate_loc_desc): Likewise. | |
589 | (dwarf2_loc_desc_needs_frame): Likewise. | |
590 | (compile_dwarf_to_ax): Likewise. | |
591 | (loclist_describe_location): Likewise. | |
592 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
593 | (dwarf2_per_cu_objfile): Update comment. | |
594 | ||
953ac07e JK |
595 | 2010-07-12 Jan Kratochvil <[email protected]> |
596 | ||
597 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
598 | * p-lang.c (pascal_printstr): Likewise. | |
599 | ||
f04e4012 TT |
600 | 2010-07-09 Tom Tromey <[email protected]> |
601 | ||
602 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
603 | 'hint' if it is NULL. | |
604 | ||
f4dfd9c0 HZ |
605 | 2010-07-09 Hui Zhu <[email protected]> |
606 | ||
607 | * source.c (print_source_lines_base): Add check for noprint. | |
608 | ||
7e6e39e5 JB |
609 | 2010-07-08 Joel Brobecker <[email protected]> |
610 | ||
611 | * python/python-config.py: Resync with Python 2.7 version of this | |
612 | script. | |
613 | ||
76b8507d JB |
614 | 2010-07-08 Joel Brobecker <[email protected]> |
615 | ||
616 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
617 | ||
797054e6 JB |
618 | 2010-07-07 Joel Brobecker <[email protected]> |
619 | ||
620 | * NEWS: Create a new section for the next release branch. | |
621 | Rename the section of the current branch, now that it has | |
622 | been cut. | |
623 | ||
c80befee | 624 | 2010-07-07 Joel Brobecker <[email protected]> |
625 | ||
626 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
627 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
628 | ||
ac56253d TT |
629 | 2010-07-07 Tom Tromey <[email protected]> |
630 | ||
631 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
632 | LOC_COMPUTED symbol. | |
633 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
634 | (dwarf2_loc_desc_needs_frame): Likewise. | |
635 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
636 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
637 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
638 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
639 | 'offset' argument. | |
640 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
641 | (dwarf2_frame_cache): Set new field. | |
642 | (dwarf2_frame_prev_register): Update. | |
643 | (dwarf2_frame_sniffer): Update. | |
644 | (dwarf2_frame_base_sniffer): Update. | |
645 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
646 | ||
0cf6dd15 TJB |
647 | 2010-07-07 Sergio Durigan Junior <[email protected]> |
648 | Thiago Jung Bauermann <[email protected]> | |
649 | ||
650 | Support for hw accelerated condition watchpoints in booke powerpc. | |
651 | ||
652 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
653 | and move to eval.c. Change callers. | |
654 | (insert_bp_location): Pass watchpoint condition in | |
655 | target_insert_watchpoint. | |
656 | (remove_breakpoint_1) Pass watchpoint condition in | |
657 | target_remove_watchpoint. | |
658 | (watchpoint_locations_match): Call | |
659 | target_can_accel_watchpoint_condition. | |
660 | * eval.c: Include wrapper.h. | |
661 | (fetch_subexp_value): Moved from breakpoint.c. | |
662 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
663 | Formatting fix. | |
664 | (can_use_watchpoint_cond_accel): New function. | |
665 | (calculate_dvc): Likewise. | |
666 | (num_memory_accesses): Likewise. | |
667 | (check_condition): Likewise. | |
668 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
669 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
670 | check_condition and calculate_dvc. | |
671 | (ppc_linux_remove_watchpoint): Likewise. | |
672 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
673 | ppc_linux_can_accel_watchpoint_condition | |
674 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
675 | condition. | |
676 | (debug_to_remove_watchpoint): Likewise. | |
677 | (debug_to_can_accel_watchpoint_condition): New function. | |
678 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
679 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
680 | * target.h: Add opaque declaration for struct expression. | |
681 | (struct target_ops) <to_insert_watchpoint>, | |
682 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
683 | <to_can_accel_watchpoint_condition>: New member. | |
684 | condition. Update all callers and implementations. | |
685 | (target_can_accel_watchpoint_condition): New macro. | |
686 | * value.c (free_value_chain): New function. | |
687 | * value.h (fetch_subexp_value): New prototype. | |
688 | (free_value_chain): Likewise. | |
689 | ||
2f2241f1 UW |
690 | 2010-07-07 Ulrich Weigand <[email protected]> |
691 | ||
692 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
693 | from gdbarch_core_regset_sections also for .reg if present. | |
694 | ||
695 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
696 | section size for .reg. | |
697 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
698 | (ppc_linux_vmx_regset_sections): Likewise. | |
699 | (ppc_linux_fp_regset_sections): Likewise. | |
700 | (ppc64_linux_vsx_regset_sections): New variable. | |
701 | (ppc64_linux_vmx_regset_sections): Likewise. | |
702 | (ppc64_linux_fp_regset_sections): Likewise. | |
703 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
704 | for current word size. | |
705 | ||
1fd7cdc2 JB |
706 | 2010-07-06 Joel Brobecker <[email protected]> |
707 | ||
708 | * server.c (myresume): Make static. | |
709 | ||
11763c18 TT |
710 | 2010-07-06 Tom Tromey <[email protected]> |
711 | ||
712 | * configure, config.in: Rebuild. | |
713 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
714 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
715 | ||
a6cc4789 AS |
716 | 2010-07-06 Andreas Schwab <[email protected]> |
717 | ||
718 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
719 | "clear". | |
720 | ||
f9e9243a UW |
721 | 2010-07-06 Ken Werner <[email protected]> |
722 | ||
723 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
724 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
725 | * doublest.c (floatformat_from_length): Set format to | |
726 | gdbarch_half_format if length matches. | |
727 | * gdbarch.sh (half_bit): New architecture method. | |
728 | (half_format): Likewise. | |
729 | * gdbarch.h: Regenerate. | |
730 | * gdbarch.c: Likewise. | |
731 | ||
4e5799b6 JK |
732 | 2010-07-05 Jan Kratochvil <[email protected]> |
733 | Joel Brobecker <[email protected]> | |
734 | ||
735 | Fix re-run of PIE executable, PR shlibs/11776. | |
736 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
737 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
738 | ||
86e4bafc JK |
739 | 2010-07-05 Jan Kratochvil <[email protected]> |
740 | Joel Brobecker <[email protected]> | |
741 | ||
742 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
743 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
744 | svr4_relocate_main_executable. | |
745 | (svr4_solib_create_inferior_hook): Make the call to | |
746 | svr4_relocate_main_executable unconditional. | |
747 | ||
3cd07d20 JK |
748 | 2010-07-05 Jan Kratochvil <[email protected]> |
749 | Joel Brobecker <[email protected]> | |
750 | ||
751 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
752 | ||
0a1e94c7 JK |
753 | 2010-07-05 Jan Kratochvil <[email protected]> |
754 | Joel Brobecker <[email protected]> | |
755 | ||
756 | Fix attaching to PIEs prelinked on the disk after the process was | |
757 | started. | |
758 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
759 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
760 | displacement for the phdrs comparison. | |
761 | ||
5387647f TT |
762 | 2010-07-02 Tom Tromey <[email protected]> |
763 | ||
764 | PR exp/11780: | |
765 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
766 | value as optimized-out. | |
767 | ||
38b6c3b3 TJB |
768 | 2010-07-02 Ulrich Weigand <[email protected]> |
769 | Thiago Jung Bauermann <[email protected]> | |
770 | ||
771 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
772 | represent?" question in comment. Change comment to a proper sentence. | |
773 | ||
a17ac5b0 TT |
774 | 2010-07-02 Ken Werner <[email protected]> |
775 | ||
776 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
777 | ||
bddaafad JK |
778 | 2010-07-02 Jan Kratochvil <[email protected]> |
779 | ||
780 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
781 | create_breakpoint prototype. | |
782 | ||
d41c0fc8 PA |
783 | 2010-07-01 Pedro Alves <[email protected]> |
784 | ||
785 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
786 | usefulness suggestion of multiple breakpoints at same location. | |
787 | ||
dc10affe PA |
788 | 2010-07-01 Pedro Alves <[email protected]> |
789 | ||
790 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
791 | ||
cabe9ab6 PA |
792 | 2010-07-01 Pedro Alves <[email protected]> |
793 | ||
794 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
795 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
796 | ||
cce7e648 PA |
797 | 2010-07-01 Pedro Alves <[email protected]> |
798 | ||
799 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
800 | unnecessary space in string. | |
801 | * filesystem.c (_initialize_filesystem): Ditto. | |
802 | * frame.c (_initialize_frame): Ditto. | |
803 | * infcmd.c (step_once): Ditto. | |
804 | * infrun.c (_initialize_infrun): Ditto. | |
805 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
806 | * maint.c (maintenance_deprecate): Ditto. | |
807 | * memattr.c (_initialize_mem): Ditto. | |
808 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
809 | * monitor.c (monitor_open): Ditto. | |
810 | * procfs.c (procfs_xfer_memory): Ditto. | |
811 | * reverse.c (bookmarks_info): Ditto. | |
812 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
813 | * stack.c (_initialize_stack): Ditto. | |
814 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
815 | * xtensa-tdep.c (xtensa_supply_gregset, | |
816 | xtensa_regset_from_core_section): Ditto. | |
817 | ||
b65c7efe TT |
818 | 2010-07-01 Tom Tromey <[email protected]> |
819 | ||
820 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
821 | check_all_valid. | |
822 | * value.c (value_entirely_optimized_out): Invert result. Update | |
823 | for new function name. | |
824 | ||
0fb4aa4b PA |
825 | 2010-07-01 Pedro Alves <[email protected]> |
826 | ||
827 | Static tracepoints support. | |
828 | ||
829 | * NEWS: Mention new support for static tracepoints. | |
830 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
831 | qXfer:statictrace:read. | |
832 | (New features in the GDB remote stub, GDBserver): Mention static | |
833 | tracepoints support using an UST based backend. | |
834 | (New commands): Mention "info static-tracepoint-markers" and | |
835 | "strace". | |
836 | * breakpoint.c (is_marker_spec): New. | |
837 | (is_tracepoint): Handle static tracepoints. | |
838 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
839 | while-stepping. | |
840 | (static_tracepoints_here): New. | |
841 | (bpstat_what): Handle static tracepoints. | |
842 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
843 | Ditto. | |
844 | (create_breakpoint_sal): Ditto. | |
845 | (decode_static_tracepoint_spec): New. | |
846 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
847 | `type_wanted'. Adjust. Handle static tracepoint marker | |
848 | locations. | |
849 | (break_command_1): Adjust. | |
850 | (update_static_tracepoint): New. | |
851 | (update_breakpoint_locations): Handle static tracepoints. | |
852 | (breakpoint_re_set_one): Handle static tracepoint marker | |
853 | locations. | |
854 | (disable_command, enable_command): Handle static tracepoints. | |
855 | (trace_command, ftrace_command): Adjust. | |
856 | (strace_command): New. | |
857 | (create_tracepoint_from_upload): Adjust. | |
858 | (save_breakpoints): Handle static tracepoints. | |
859 | (_initialize_breakpoint): Install the "strace" command. | |
860 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
861 | (struct breakpoint): New fields static_trace_marker_id and | |
862 | static_trace_marker_id_idx. | |
863 | (breakpoints_here_p): Declare. | |
864 | (create_breakpoint): Adjust. | |
865 | (static_tracepoints_here): Declare. | |
866 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
867 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
868 | (remote_static_tracepoint_marker_at): New. | |
869 | (remote_static_tracepoint_markers_by_strid): New. | |
870 | (remote_static_tracepoint_feature): New. | |
871 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
872 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
873 | (remote_supports_static_tracepoints): New. | |
874 | (remote_download_tracepoint): Download static tracepoints. | |
875 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
876 | remote_static_tracepoint_markers_by_strid. | |
877 | (_initialize_remote): Install set|show remote static-tracepoints, | |
878 | and set|show remote read-sdata-object commands. | |
879 | * target.c (update_current_target): Inherit and default | |
880 | to_static_tracepoint_marker_at, and | |
881 | to_static_tracepoint_markers_by_strid. | |
882 | * target.h (static_tracepoint_marker): Forward declare. | |
883 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
884 | (static_tracepoint_marker_p): New typedef. | |
885 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. | |
886 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
887 | to_static_tracepoint_markers_by_strid. | |
888 | (target_static_tracepoint_marker_at) | |
889 | (target_static_tracepoint_markers_by_strid): New. | |
890 | * tracepoint.c: Include source.h. | |
891 | (validate_actionline): Handle $_sdata. | |
892 | (struct collection_list): New field strace_data. | |
893 | (add_static_trace_data): New. | |
894 | (clear_collection_list): Clear strace_data. | |
895 | (stringify_collection_list): Account for a possible static trace | |
896 | data collection. | |
897 | (encode_actions_1): Encode an $_sdata collection. | |
898 | (parse_tracepoint_definition): Handle static tracepoints. | |
899 | (parse_static_tracepoint_marker_definition): New. | |
900 | (release_static_tracepoint_marker): New. | |
901 | (print_one_static_tracepoint_marker): New. | |
902 | (info_static_tracepoint_markers_command): New. | |
903 | (sdata_make_value): New. | |
904 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
905 | Add the "info static-tracepoint-markers" command. | |
906 | Mention $_sdata in the "collect" command's help output. | |
907 | * tracepoint.h (struct static_tracepoint_marker): New. | |
908 | (parse_static_tracepoint_marker_definition) | |
909 | (release_static_tracepoint_marker): Declare. | |
910 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
911 | * python/py-breakpoint.c (bppy_new): Adjust. | |
912 | ||
aac63f0f JB |
913 | 2010-06-30 Joel Brobecker <[email protected]> |
914 | ||
915 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
916 | including Python.h. | |
917 | ||
e68994a7 DE |
918 | 2010-06-29 Doug Evans <[email protected]> |
919 | ||
3863f96c DE |
920 | PR gdb/11702 |
921 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
922 | DW_AT_external is present. | |
923 | ||
254e6b9e DE |
924 | PR gdb/11702 |
925 | * NEWS: Add entry. | |
926 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
927 | create a symbol for the field and record the value. | |
928 | (new_symbol): Handle DW_TAG_member. | |
929 | * gdbtypes.c (field_is_static): Remove FIXME. | |
930 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
931 | only ignore LOC_CONST symbols that are enums. | |
932 | ||
6e70227d DE |
933 | * dwarf2read.c: Remove trailing whitespace. |
934 | ||
e68994a7 DE |
935 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
936 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
937 | (struct main_type, field loc): Delete dwarf_block. | |
938 | (FIELD_DWARF_BLOCK): Delete. | |
939 | (SET_FIELD_DWARF_BLOCK): Delete. | |
940 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
941 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
942 | Update. | |
943 | ||
a480d2f6 HZ |
944 | 2010-06-29 Hui Zhu <[email protected]> |
945 | ||
946 | * record.c (set_record_pic_cmdlist, | |
947 | show_record_pic_cmdlist): New variables. | |
948 | (set_record_pic_command, | |
949 | show_record_pic_command): New functions. | |
950 | (record_pic_function, record_pic_line, record_pic_enum, | |
951 | set_record_pic_type, record_pic_hide_nofunction, | |
952 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
953 | (record_pic_fputs): New function. | |
954 | (function_list, node_list, edge_list): New struct. | |
955 | (function_list, node_list, edge_list): New variables. | |
956 | (record_pic_cleanups, record_pic_node, | |
957 | record_pic_edge, cmd_record_pic): New functions. | |
958 | (_initialize_record): Add new commands for record pic. | |
959 | ||
a0d7a4ff JK |
960 | 2010-06-28 Jan Kratochvil <[email protected]> |
961 | ||
962 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
963 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
964 | ||
595939de PM |
965 | 2010-06-28 Phil Muldoon <[email protected]> |
966 | Tom Tromey <[email protected]> | |
967 | Thiago Jung Bauermann <[email protected]> | |
968 | ||
969 | * value.c (pack_unsigned_long): New function. | |
970 | (value_from_ulongest): New function. | |
971 | * value.h (value_from_ulongest): Declare. | |
972 | * python/python.c (_initialize_python): Call | |
973 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
974 | * python/python-internal.h: Define thread_object. | |
975 | (gdbpy_inferiors, gdbpy_selected_thread) | |
976 | (frame_info_to_frame_object, create_thread_object) | |
977 | (find_thread_object, find_inferior_object) | |
978 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
979 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
980 | * python/py-value.c (builtin_type_upylong): Define. | |
981 | (convert_value_from_python): Add logic for ulongest. | |
982 | (gdbpy_is_value_object): New function. | |
983 | * python/py-utils.c (get_addr_from_python): New function. | |
984 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
985 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
986 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
987 | py-infthread. | |
988 | (SUBDIR_PYTHON_SRCS): Likewise. | |
989 | (py-inferior.o): New Rule. | |
990 | (py-infthread.o): New Rule. | |
991 | * python/py-inferior.c: New File. | |
992 | * python/py-infthread.c: New File. | |
993 | ||
98751a41 JK |
994 | 2010-06-28 Jan Kratochvil <[email protected]> |
995 | ||
996 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
997 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
998 | * dwarf2read.c (struct typedef_field_list) | |
999 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
1000 | (dwarf2_add_typedef): New. | |
1001 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
1002 | Copy also FI.TYPEDEF_FIELD_LIST. | |
1003 | * gdbtypes.h (struct typedef_field) | |
1004 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
1005 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
1006 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
1007 | ||
41f62f39 JK |
1008 | 2010-06-28 Jan Kratochvil <[email protected]> |
1009 | ||
1010 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
1011 | concatenated_name. Turn the current return condition into a reverse | |
1012 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
1013 | name. | |
1014 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
1015 | other files into a called ... | |
1016 | (lookup_static_symbol_aux): ... new function here. | |
1017 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
1018 | * valops.c (value_maybe_namespace_elt): Call also | |
1019 | lookup_static_symbol_aux if we failed otherwise. | |
1020 | ||
af53d231 JK |
1021 | 2010-06-28 Jan Kratochvil <[email protected]> |
1022 | ||
1023 | Fix PR c++/11703 and PR gdb/1448. | |
1024 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
1025 | FIRST_ITER check. | |
1026 | ||
9655fd1a JK |
1027 | 2010-06-28 Jan Kratochvil <[email protected]> |
1028 | ||
1029 | Fix modification of cplus_struct_default. | |
1030 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
1031 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
1032 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
1033 | ||
9279c692 JB |
1034 | 2010-06-28 Joel Brobecker <[email protected]> |
1035 | ||
1036 | * NEWS: Add entry announcing the python directory. | |
1037 | ||
d3f41bb1 TT |
1038 | 2010-06-28 Tom Tromey <[email protected]> |
1039 | ||
1040 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
1041 | ||
23e7acfb DE |
1042 | 2010-06-28 Doug Evans <[email protected]> |
1043 | ||
1044 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
1045 | All callers updated. | |
1046 | ||
6036c742 JK |
1047 | 2010-06-28 Jan Kratochvil <[email protected]> |
1048 | ||
1049 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
1050 | obstack_begin after each obstack_free. | |
1051 | ||
9f18a3b3 DE |
1052 | 2010-06-27 Doug Evans <[email protected]> |
1053 | ||
1596cb5d DE |
1054 | * value.c (value_static_field): Use `switch' instead of `if'. |
1055 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
1056 | ||
9f18a3b3 DE |
1057 | * valops.c (search_struct_field): Fix typo in error message. |
1058 | ||
43dabe42 UW |
1059 | 2010-06-26 Ulrich Weigand <[email protected]> |
1060 | ||
1061 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
1062 | directives at the start of the source line. | |
1063 | ||
0f3bb72e PH |
1064 | 2010-06-25 Paul Hilfinger <[email protected]> |
1065 | ||
6036c742 JK |
1066 | * defs.h (make_command_stats_cleanup): Declare. |
1067 | (set_display_time): Declare. | |
1068 | (set_display_space): Declare. | |
1069 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
1070 | * main.c (display_time, display_space): Move definitions to utils.c. | |
1071 | (captured_main): Use make_command_stats_cleanup to get start-up | |
1072 | statistics. | |
1073 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
1074 | case. | |
1075 | * maint.c (maintenance_time_display): Use set_display_time. | |
1076 | (maintenance_space_display): Use set_display_space. | |
1077 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
1078 | (command_loop): Use make_command_stats_cleanup. | |
1079 | * utils.c (struct cmd_stats): Structure for storing initial time | |
1080 | and space usage. | |
1081 | (display_time, display_space): Move definitions here from utils.c. | |
1082 | (set_display_time): New function. | |
1083 | (set_display_space): New function. | |
1084 | (make_command_stats_cleanup): New function. | |
1085 | (report_command_stats): New auxiliary function for | |
1086 | make_command_stats_cleanup. | |
0f3bb72e | 1087 | |
070c8028 UW |
1088 | 2010-06-25 Ulrich Weigand <[email protected]> |
1089 | ||
1090 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
1091 | hosts where CORE_ADDR is long long. | |
1092 | ||
bc9f0842 TT |
1093 | 2010-06-25 Tom Tromey <[email protected]> |
1094 | ||
1095 | PR python/10808: | |
1096 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
1097 | "to_string" argument. | |
1098 | (struct restore_ui_file_closure): New. | |
1099 | (restore_ui_file): New function. | |
1100 | (make_cleanup_restore_ui_file): Likewise. | |
1101 | (GdbMethods) <execute>: Update. | |
1102 | ||
c0cc4c83 UW |
1103 | 2010-06-25 Ulrich Weigand <[email protected]> |
1104 | ||
1105 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
1106 | during inferior call stack frame setup. | |
1107 | ||
f1d8ee66 UW |
1108 | 2010-06-25 Ken Werner <[email protected]> |
1109 | ||
1110 | * solib-spu.c: Include "exception.h". | |
1111 | (ocl_program_data_key): New variable. | |
1112 | (append_ocl_sos): New function. | |
1113 | (ocl_enable_break): Likewise. | |
1114 | (spu_current_sos): Call append_ocl_sos. | |
1115 | (spu_solib_loaded): Call ocl_enable_break. | |
1116 | (_initialize_spu_solib): Register ocl_program_data_key. | |
1117 | ||
19c0c0f8 UW |
1118 | 2010-06-25 Ulrich Weigand <[email protected]> |
1119 | ||
1120 | * cp-support.c (reset_directive_searched): New function. | |
1121 | (make_symbol_overload_list_using): Prevent recursive calls. | |
1122 | ||
0f6a939d PM |
1123 | 2010-06-25 Phil Muldoon <[email protected]> |
1124 | ||
1125 | * printcmd.c (print_variable_and_value): Print error message on | |
1126 | caught exception. | |
1127 | ||
f2c7657e UW |
1128 | 2010-06-25 Ulrich Weigand <[email protected]> |
1129 | ||
1130 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
1131 | of stack values. | |
1132 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
1133 | "value" member. | |
1134 | (dwarf_expr_push): Change input type to ULONGEST. | |
1135 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
1136 | (dwarf_expr_fetch_address): Add prototype. | |
1137 | (dwarf2_read_address): Remove prototype. | |
1138 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
1139 | Truncate stack values to ctx->addr_size bytes. | |
1140 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
1141 | (dwarf_expr_fetch_address): New function. | |
1142 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
1143 | when appropriate. Update for struct dwarf_expr_piece changes. | |
1144 | (dwarf2_read_address): Remove. | |
1145 | (unsigned_address_type): Remove. | |
1146 | (signed_address_type): Remove. | |
1147 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
1148 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
1149 | values. Perform operations on ULONGEST instead of on GDB values, | |
1150 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
1151 | values and DW_OP_deref results as unsigned integers. | |
1152 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
1153 | changes. | |
1154 | (write_pieced_value): Likewise. | |
1155 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
1156 | dwarf_expr_fetch when appropriate. | |
1157 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
1158 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
1159 | instead of dwarf_expr_fetch when appropriate. | |
1160 | ||
b1d61bc9 PM |
1161 | 2010-06-25 Pierre Muller <[email protected]> |
1162 | ||
1163 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
1164 | ||
b14285f6 JB |
1165 | 2010-06-24 Joel Brobecker <[email protected]> |
1166 | ||
1167 | * python/python.c (_initialize_python): Add new "constant" | |
1168 | PYTHONDIR in gdb module. Insert this path at the head of | |
1169 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
1170 | exec its __init__.py script if it exists in that directory. | |
1171 | ||
fd60dc69 KB |
1172 | 2010-06-24 Kevin Buettner <[email protected]> |
1173 | ||
1174 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
1175 | (RX_NUM_REGS): Redefine to 26. | |
1176 | (rx_register_name): Add register "acc". Change order of several | |
1177 | registers. Change name of "vct" register to "fintv" to match RX | |
1178 | documentation. | |
1179 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
1180 | ||
18430289 TT |
1181 | 2010-06-24 Tom Tromey <[email protected]> |
1182 | ||
1183 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
1184 | ||
40618926 JK |
1185 | 2010-06-24 Jan Kratochvil <[email protected]> |
1186 | Tom Tromey <[email protected]> | |
1187 | ||
1188 | Fix GDB startup on readonly filesystem. | |
1189 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
1190 | ||
628fe4e4 JK |
1191 | 2010-06-24 Jan Kratochvil <[email protected]> |
1192 | Pedro Alves <[email protected]> | |
1193 | ||
1194 | Fix PR 9436. | |
1195 | * breakpoint.c (handle_jit_event): New function. | |
1196 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
1197 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
1198 | this_action and bptype. Change bs_class assignments to this_action | |
1199 | assignments. new unhandled bptype internal error. Move here | |
1200 | shlib_event and jit_event handling from handle_inferior_event. | |
1201 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
1202 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
1203 | BPSTAT_WHAT_CHECK_JIT. | |
1204 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
1205 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
1206 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
1207 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
1208 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
1209 | gdbarch when frame gets reinitialized. | |
1210 | ||
f1421989 HZ |
1211 | 2010-06-24 Hui Zhu <[email protected]> |
1212 | ||
1213 | * printcmd.c (ui_printf): New function. | |
1214 | (printf_command): Call ui_printf. | |
1215 | (_initialize_printcmd): New command "eval". | |
1216 | ||
d03285ec UW |
1217 | 2010-06-23 Ulrich Weigand <[email protected]> |
1218 | ||
1219 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
1220 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
1221 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
1222 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
1223 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
1224 | (detach_breakpoints): Call it. | |
1225 | (cancel_single_step_breakpoints): New function. | |
1226 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
1227 | ||
1228 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
1229 | (spu_gdbarch_init): Install it. | |
1230 | ||
38f6b338 JK |
1231 | 2010-06-23 Jan Kratochvil <[email protected]> |
1232 | ||
1233 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
1234 | * configure: Regenerate. | |
1235 | ||
bb08c432 HZ |
1236 | 2010-06-22 Hui Zhu <[email protected]> |
1237 | ||
1238 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
1239 | (i386_process_record): Ditto. | |
1240 | * record.c (record_memory_query): New variable. | |
1241 | (_initialize_record): New command "set record memory-query". | |
1242 | * record.h (record_memory_query): New extern. | |
1243 | ||
b55078be DE |
1244 | 2010-06-21 Doug Evans <[email protected]> |
1245 | ||
1246 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
1247 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
1248 | (i386_syscall_p): Change type of lengthp to int. | |
1249 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
1250 | syscall insn. | |
1251 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
1252 | i386_displaced_step_copy_insn instead of | |
1253 | simple_displaced_step_copy_insn. | |
1254 | ||
75079b2b TT |
1255 | 2010-06-21 Tom Tromey <[email protected]> |
1256 | ||
1257 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
1258 | (dwarf_type_encoding_name): Likewise. | |
1259 | ||
b00fdb78 TT |
1260 | 2010-06-21 Tom Tromey <[email protected]> |
1261 | ||
1262 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
1263 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
1264 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
1265 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
1266 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
1267 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
1268 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
1269 | failure. | |
1270 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
1271 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
1272 | ||
84951ab5 MS |
1273 | 2010-06-21 Michael Snyder <[email protected]> |
1274 | ||
1275 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, | |
1276 | not add_abbrev_prefix_cmd, for "enable breakpoints". | |
1277 | ||
d4a087c7 UW |
1278 | 2010-06-21 Ulrich Weigand <[email protected]> |
1279 | ||
1280 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
1281 | to base-address-selection entry base addresses. Read addresses | |
1282 | (and offsets) as signed/unsigned integers, depending on the | |
1283 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
1284 | (loclist_describe_location): Likewise. | |
1285 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
1286 | unsigned integer. Do not call dwarf2_read_address. | |
1287 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
1288 | ||
13def385 UW |
1289 | 2010-06-19 Ulrich Weigand <[email protected]> |
1290 | ||
1291 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
1292 | value instead of hard-coded SPU_LS_SIZE. | |
1293 | (spu_software_single_step): Likewise. | |
1294 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
1295 | ||
d2ed6730 UW |
1296 | 2010-06-19 Ulrich Weigand <[email protected]> |
1297 | ||
1298 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
1299 | limit on local store memory accesses. | |
1300 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
1301 | * spu-tdep.c (spu_lslr): Remove. | |
1302 | (spu_pointer_to_address): Do not truncate addresses. | |
1303 | (spu_integer_to_address): Likewise. | |
1304 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
1305 | * spu-tdep.h: Add comments. | |
1306 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
1307 | (SPU_OVERLAY_LMA): Define. | |
1308 | ||
6aed2dbc SS |
1309 | 2010-06-18 Stan Shebs <[email protected]> |
1310 | ||
a61408f8 SS |
1311 | * osdata.c (get_osdata): Warn separately if target does not report |
1312 | type list. | |
1313 | (info_osdata_command): Allow empty type, report error if target | |
1314 | does not return available types of OS data. | |
1315 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
1316 | types if no annex supplied. | |
1317 | ||
6aed2dbc SS |
1318 | * thread.c (thread_id_make_value): Make a value representing the |
1319 | current thread. | |
1320 | (_initialize_thread): Create $_thread. | |
1321 | ||
ec61707d JB |
1322 | 2010-06-17 Joel Brobecker <[email protected]> |
1323 | ||
1324 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
1325 | last local variable declaration. No real code change. | |
1326 | ||
60606b2c TT |
1327 | 2010-06-17 Tom Tromey <[email protected]> |
1328 | ||
1329 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
1330 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
1331 | temporary obstack. | |
1332 | ||
65d79d4b SDJ |
1333 | 2010-06-16 Sergio Durigan Junior <[email protected]> |
1334 | Jan Kratochvil <[email protected]> | |
1335 | ||
1336 | * breakpoint.c: Include parser-defs.h. | |
1337 | (watchpoint_exp_is_const): New function. | |
1338 | (watch_command_1): Call watchpoint_exp_is_const to check | |
1339 | if the expression is constant. | |
1340 | ||
0407b3f1 AS |
1341 | 2010-06-15 Andreas Schwab <[email protected]> |
1342 | ||
1343 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
1344 | * configure: Regenerate. | |
1345 | ||
98d64339 PA |
1346 | 2010-06-15 Pedro Alves <[email protected]> |
1347 | ||
1348 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
1349 | (SFILES): Remove solib-null.c, add solib-target.c. | |
1350 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
1351 | (ALLDEPFILES): Remove solib-target.c. | |
1352 | * solib-target.c (_initialize_solib_target): Set | |
1353 | current_target_so_ops to solib_target_so_ops if not already set. | |
1354 | * solib-null.c: Delete. | |
1355 | ||
6a271cae PA |
1356 | 2010-06-14 Pedro Alves <[email protected]> |
1357 | ||
1358 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
1359 | bytecode. | |
1360 | ||
1e9beacb UW |
1361 | 2010-06-14 Ulrich Weigand <[email protected]> |
1362 | ||
1363 | * cp-valprint.c (cp_print_static_field): Members of | |
1364 | dont_print_stat_array_obstack are of type "struct type *". | |
1365 | (_initialize_cp_valprint): Likewise. | |
1366 | ||
21a176fb UW |
1367 | 2010-06-14 Ulrich Weigand <[email protected]> |
1368 | ||
1369 | * frame.c (frame_register_unwind): Do not access contents | |
1370 | of "optimized out" unwound register value. | |
1371 | ||
25b524e8 JK |
1372 | 2010-06-14 Jan Kratochvil <[email protected]> |
1373 | ||
1374 | * ada-lang.h (ada_print_type): Make varstring const. | |
1375 | * ada-typeprint.c (print_func_type): Make name const. | |
1376 | (ada_print_type): Make varstring const. | |
1377 | * c-lang.h (c_print_type): Make varstring const. | |
1378 | * c-typeprint.c (c_print_type): Likewise. | |
1379 | * f-lang.h (f_print_type): Likewise. | |
1380 | * f-typeprint.c (f_print_type): Likewise. | |
1381 | * jv-lang.h (java_print_type): Likewise. | |
1382 | * jv-typeprint.c (java_print_type): Likewise. | |
1383 | * language.c (unk_lang_print_type): Likewise. | |
1384 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
1385 | * m2-lang.h (m2_print_type): Likewise. | |
1386 | * m2-typeprint.c (m2_print_type): Likewise. | |
1387 | * p-lang.h (pascal_print_type): Likewise. | |
1388 | * p-typeprint.c (pascal_print_type): Likewise. | |
1389 | ||
d914c394 SS |
1390 | 2010-06-11 Stan Shebs <[email protected]> |
1391 | ||
1392 | Add per-operation permission flags. | |
1393 | ||
1394 | * target.h (struct target_ops): New method to_set_permissions. | |
1395 | (target_set_permissions): New macro. | |
1396 | (target_insert_breakpoint): Change macro to function. | |
1397 | (target_remove_breakpoint): Ditto. | |
1398 | (target_stop): Ditto. | |
1399 | (may_write_registers): Declare. | |
1400 | (may_write_memory): Declare. | |
1401 | (may_insert_breakpoints): Declare. | |
1402 | (may_insert_tracepoints): Declare. | |
1403 | (may_insert_fast_tracepoints): Declare. | |
1404 | (may_stop): Declare. | |
1405 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
1406 | (may_write_memory, may_write_memory_1): New globals. | |
1407 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
1408 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
1409 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
1410 | globals. | |
1411 | (may_stop, may_stop_1): New global. | |
1412 | (target_xfer_partial): Test for write permission. | |
1413 | (target_store_registers): Ditto. | |
1414 | (target_insert_breakpoint): New function. | |
1415 | (target_remove_breakpoint): New function. | |
1416 | (target_stop): New function. | |
1417 | (_initialize_targets): Add new set/show variables. | |
1418 | (set_write_memory_permission): New function. | |
1419 | (update_target_permissions): New function. | |
1420 | (set_target_permissions): New function. | |
1421 | (update_current_target): Default to_set_permissions. | |
1422 | (_initialize_targets): Use new globals and setter function. | |
1423 | * tracepoint.c (start_tracing): Test for permission. | |
1424 | * inferior.h (update_observer_mode): Declare. | |
1425 | * infrun.c (non_stop_1): Define earlier. | |
1426 | (observer_mode, observer_mode_1): New globals. | |
1427 | (set_observer_mode, show_observer_mode): New functions. | |
1428 | (update_observer_mode): New function. | |
1429 | (_initialize_infrun): Define "set observer" command. | |
1430 | * remote.c (PACKET_QAllow): New optional packet. | |
1431 | (remote_protocol_features): Add QAllow. | |
1432 | (remote_set_permissions): New function. | |
1433 | (remote_start_remote): Call it. | |
1434 | (init_remote_ops): Add it to target vector. | |
1435 | (_initialize_remote): Add config command for QAllow. | |
1436 | ||
aec5aa8b TT |
1437 | 2010-06-11 Tom Tromey <[email protected]> |
1438 | ||
1439 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
1440 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
1441 | ||
0e03807e TT |
1442 | 2010-06-11 Tom Tromey <[email protected]> |
1443 | ||
1444 | PR gdb/9977, PR exp/11636: | |
1445 | * value.h (value_offset): Update. | |
1446 | (struct lval_funcs) <check_validity>: New field. | |
1447 | <copy_closure>: Make argument const. | |
1448 | (value_computed_closure): Update. | |
1449 | (value_contents_for_printing): Declare. | |
1450 | (value_bits_valid): Likewise. | |
1451 | (val_print): Likewise. | |
1452 | (set_value_component_location): Update. | |
1453 | (value_entirely_optimized_out): Declare. | |
1454 | * value.c (value_offset): Argument now const. | |
1455 | (require_not_optimized_out): New function. | |
1456 | (value_contents_for_printing): New function. | |
1457 | (value_contents_all): Call require_not_optimized_out. | |
1458 | (value_contents): Likewise. | |
1459 | (value_bits_valid): New function. | |
1460 | (value_computed_closure): Argument now const. | |
1461 | (set_value_component_location): Make 'whole' argument const. | |
1462 | (value_entirely_optimized_out): New function. | |
1463 | (value_bitsize): Argument now 'const'. | |
1464 | (value_bitpos): Likewise. | |
1465 | (value_type): Likewise. | |
1466 | * valprint.h (val_print_array_elements): Update. | |
1467 | * valprint.c (val_print): Add 'val' argument. Use | |
1468 | valprint_check_validity. | |
1469 | (valprint_check_validity): New function. | |
1470 | (value_check_printable): Use value_entirely_optimized_out. | |
1471 | (common_val_print): Update. | |
1472 | (value_print): Likewise. | |
1473 | (val_print_array_elements): Add 'val' argument. | |
1474 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
1475 | value_bits_valid. Reinit frame cache for lval_computed. | |
1476 | * sh64-tdep.c (sh64_do_register): Update. | |
1477 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
1478 | * scm-lang.h (scm_val_print): Update. | |
1479 | * python/python.h (apply_val_pretty_printer): Update. | |
1480 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
1481 | argument. Call set_value_component_location. | |
1482 | * printcmd.c (print_scalar_formatted): Update. | |
1483 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
1484 | (pascal_object_print_value_fields): Likewise. | |
1485 | (pascal_object_print_value): Likewise. | |
1486 | (pascal_object_print_static_field): Update. | |
1487 | * p-lang.h (pascal_val_print): Update. | |
1488 | (pascal_object_print_value_fields): Update. | |
1489 | * mt-tdep.c (mt_registers_info): Update. | |
1490 | * mi/mi-main.c (get_register): Update. | |
1491 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
1492 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
1493 | (m2_print_unbounded_array): Likewise. | |
1494 | (m2_val_print): Likewise. | |
1495 | * m2-lang.h (m2_val_print): Update. | |
1496 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
1497 | argument. | |
1498 | (LA_VAL_PRINT): Likewise. | |
1499 | * language.c (unk_lang_val_print): Add 'val' argument. | |
1500 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
1501 | (java_val_print): Likewise. | |
1502 | * jv-lang.h (java_val_print): Add 'val' argument. | |
1503 | * infcmd.c (default_print_registers_info): Update. | |
1504 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
1505 | (f77_print_array): Likewise. | |
1506 | (f_val_print): Likewise. | |
1507 | * f-lang.h (f_val_print): Add 'val' argument. | |
1508 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
1509 | value_bitpos. | |
1510 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
1511 | set_value_optimized_out. | |
1512 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
1513 | <default>: Don't exit loop. | |
1514 | (check_pieced_value_validity): New function. | |
1515 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
1516 | check_pieced_value_invalid. | |
1517 | (copy_pieced_value_closure): Update. | |
1518 | (check_pieced_value_bits): New function. | |
1519 | (check_pieced_value_invalid): New function. | |
1520 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
1521 | (d_val_print): Likewise. | |
1522 | * d-lang.h (d_val_print): Update. | |
1523 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
1524 | (cp_print_value_fields_rtti): Likewise. | |
1525 | (cp_print_value): Likewise. | |
1526 | (cp_print_static_field): Update. | |
1527 | * c-valprint.c (c_val_print): Add 'val' argument. | |
1528 | (c_value_print): Update. | |
1529 | * c-lang.h (c_val_print): Update. | |
1530 | (cp_print_value_fields): Likewise. | |
1531 | (cp_print_value_fields_rtti): Likewise. | |
1532 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
1533 | (val_print_packed_array_elements): Add 'val' argument. | |
1534 | (ada_val_print): Likewise. Rewrite. | |
1535 | (ada_val_print_stub): Remove. | |
1536 | (ada_val_print_array): Add 'val' argument. | |
1537 | (ada_val_print_1): Likewise. | |
1538 | (print_variant_part): Likewise. | |
1539 | (ada_value_print): Update. | |
1540 | (print_record): Add 'val' argument. | |
1541 | (print_field_values): Likewise. | |
1542 | * ada-lang.h (ada_val_print): Update. | |
1543 | ||
3cf03773 TT |
1544 | 2010-06-11 Tom Tromey <[email protected]> |
1545 | ||
1546 | * vec.h (VEC_cleanup): New macro. | |
1547 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
1548 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
1549 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
1550 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
1551 | (unimplemented): New function. | |
1552 | (translate_register): Likewise. | |
1553 | (access_memory): Likewise. | |
1554 | (compile_dwarf_to_ax): Likewise. | |
1555 | (dwarf2_tracepoint_var_loc): Remove. | |
1556 | (dwarf2_tracepoint_var_access): Likewise. | |
1557 | (dwarf2_tracepoint_var_ref): Likewise. | |
1558 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
1559 | (loclist_tracepoint_var_ref): Likewise. | |
1560 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
1561 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
1562 | require_composition. No longer static. | |
1563 | (execute_stack_op): Update. | |
1564 | * ax-gdb.h (trace_kludge): Declare. | |
1565 | ||
2bdf28a0 JK |
1566 | 2010-06-11 Jan Kratochvil <[email protected]> |
1567 | ||
1568 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
1569 | (should_be_inserted): Return zero also on NULL OWNER. | |
1570 | (breakpoint_program_space_exit): New OWNER comment. | |
1571 | (insert_breakpoint_locations): Extend comment for OWNER. | |
1572 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
1573 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
1574 | New OWNER comment. | |
1575 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
1576 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
1577 | (bpstat_check_location): New assert on OWNER. | |
1578 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
1579 | and B initializations to the code block. New assert on them. | |
1580 | (print_one_breakpoint_location): New OWNER comment. | |
1581 | (watchpoint_locations_match): Assert on OWNER. | |
1582 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
1583 | initializations to the code block. New assert on OWNER. | |
1584 | (set_breakpoint_location_function): New assert on OWNER. | |
1585 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
1586 | (bp_location_compare, update_global_location_list) | |
1587 | (update_global_location_list): New OWNER comment. | |
1588 | ||
5b9a19af UW |
1589 | 2010-06-09 Ulrich Weigand <[email protected]> |
1590 | ||
1591 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
1592 | ||
669211f5 UW |
1593 | 2010-06-09 Ulrich Weigand <[email protected]> |
1594 | ||
1595 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
1596 | (lin_thread_get_thread_signals): Remove prototype. | |
1597 | (GET_THREAD_SIGNALS): Remove. | |
1598 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
1599 | * linux-thread-db.c (check_thread_signals): Directly call | |
1600 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
1601 | ||
b7a8b4ef UW |
1602 | 2010-06-09 Ulrich Weigand <[email protected]> |
1603 | ||
1604 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
1605 | (gdb_fpxregset_t): Likewise. | |
1606 | (supply_fpxregset): Remove prototype. | |
1607 | (fill_fpxregset): Likewise. | |
1608 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
1609 | (fill_fpxregset): Likewise. | |
1610 | (fetch_fpxregs): Inline supply_fpxregset call. | |
1611 | (store_fpxregs): Inline fill_fpxregset call. | |
1612 | ||
1613 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
1614 | * config/i386/nm-linux.h: Remove file. | |
1615 | ||
82892036 MS |
1616 | 2010-06-09 Michael Snyder <[email protected]> |
1617 | ||
1618 | * target.c (update_current_target): Fix spelling error in comment. | |
1619 | (target_mourn_inferior): Fix spelling error in error message. | |
1620 | ||
5ddb52fa PH |
1621 | 2010-06-08 Paul Hilfinger <[email protected]> |
1622 | ||
1623 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
1624 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
1625 | ||
0f2caa1b MS |
1626 | 2010-06-08 Michael Snyder <[email protected]> |
1627 | ||
1628 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
1629 | ||
3bebe2f2 JK |
1630 | 2010-06-08 Jan Kratochvil <[email protected]> |
1631 | ||
1632 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
1633 | python#4434. | |
1634 | * configure: Regenerate. | |
1635 | ||
eaaffdf4 HZ |
1636 | 2010-06-08 Hui Zhu <[email protected]> |
1637 | ||
1638 | * record.c (record_wait): Move signal out of replay code. | |
1639 | ||
5c631832 JK |
1640 | 2010-06-07 Jan Kratochvil <[email protected]> |
1641 | ||
1642 | Fix PR 10640. | |
1643 | * dwarf2-frame.c (no_dwarf_call): New function. | |
1644 | (execute_stack_op): Set CTX->DWARF_CALL. | |
1645 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
1646 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
1647 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
1648 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
1649 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
1650 | (needs_frame_dwarf_call): New function. | |
1651 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
1652 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
1653 | Update the comment. Move variables die, offset and error call to ... | |
1654 | (follow_die_ref): ... a new function. | |
1655 | (dwarf2_fetch_die_location_block): New function. | |
1656 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
1657 | ||
17ea53c3 JK |
1658 | 2010-06-07 Jan Kratochvil <[email protected]> |
1659 | ||
1660 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
1661 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
1662 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
1663 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
1664 | this change. | |
1665 | (struct needs_frame_baton): New field per_cu. | |
1666 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
1667 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
1668 | ||
245040d7 SW |
1669 | 2010-06-07 Sami Wagiaalla <[email protected]> |
1670 | ||
1671 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
1672 | static and global blocks. | |
1673 | (make_symbol_overload_list_block): New function. | |
1674 | (make_symbol_overload_list): Separate namespace search from block | |
1675 | search. | |
1676 | (make_symbol_overload_list_qualified): Use | |
1677 | make_symbol_overload_list_block. | |
1678 | ||
4c3376c8 SW |
1679 | 2010-06-07 Sami Wagiaalla <[email protected]> |
1680 | ||
1681 | * value.h: Created oload_search_type enum. | |
1682 | (find_overload_match): Use oload_search_type enum. | |
1683 | * valops.c (find_overload_match): Support combined member and | |
1684 | non-member search. | |
1685 | * eval.c (evaluate_subexp_standard): Calls to | |
1686 | find_overload_match now use oload_search_type enum. | |
1687 | (oload_method_static): Verify index is a proper value. | |
1688 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
1689 | both member and non-member operators. | |
1690 | (value_user_defined_cpp_op): New function. | |
1691 | (value_user_defined_op): New function. | |
1692 | (value_x_unop): Use value_user_defined_op. | |
1693 | (value_x_binop): Ditto. | |
1694 | * cp-support.c (make_symbol_overload_list_using): Added block | |
1695 | iteration. | |
1696 | Add check for namespace aliases and imported declarations. | |
1697 | ||
ee55da67 JK |
1698 | 2010-06-07 Jan Kratochvil <[email protected]> |
1699 | ||
1700 | * breakpoint.h (owner): Extend the comment. | |
1701 | ||
1a2ab13a JK |
1702 | 2010-06-07 Jan Kratochvil <[email protected]> |
1703 | ||
1704 | Clear stale specific bp_location from former whole breakpoint. | |
1705 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
1706 | code ... | |
1707 | (free_bp_location): ... here. Rename there the called function to | |
1708 | bpstat_remove_bp_location_callback. | |
1709 | (bpstat_remove_breakpoint_callback): Rename to ... | |
1710 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
1711 | to struct bp_location. Change the called function to | |
1712 | bpstat_remove_bp_location. Create new declaration for the function. | |
1713 | (bpstat_remove_breakpoint): Rename to ... | |
1714 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
1715 | code for the new parameter type. | |
1716 | ||
16d6b4b7 NS |
1717 | 2010-06-07 Nathan Sidwell <[email protected]> |
1718 | ||
1719 | * README: Make version-agnostic. | |
1720 | ||
7e314c57 JK |
1721 | 2010-06-05 Jan Kratochvil <[email protected]> |
1722 | ||
1723 | Fix duplicate types for single DIE. | |
1724 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
1725 | set_die_type. | |
1726 | (read_array_type): Remove type initialization. Recheck get_die_type | |
1727 | after initial die_type. Move set_die_type before set_descriptive_type. | |
1728 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
1729 | initial die_type. Move attr initialization later. | |
1730 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
1731 | target_type. Recheck get_die_type after initial die_type. | |
1732 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
1733 | die_type and die_containing_type. | |
1734 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
1735 | Recheck get_die_type after initial die_type. | |
1736 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
1737 | Move set_die_type before set_descriptive_type. | |
1738 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
1739 | some type already set. | |
1740 | ||
2f296114 VP |
1741 | 2010-06-05 Vladimir Prus <[email protected]> |
1742 | ||
1743 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
1744 | for current naming of thread groups (iN, not N). | |
1745 | ||
554794dc SDJ |
1746 | 2010-06-04 Sergio Durigan Junior <[email protected]> |
1747 | ||
1748 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
1749 | * parse.c (operator_length): Likewise. | |
1750 | (operator_length_standard): Likewise. | |
1751 | * parser-defs.h (operator_length): Likewise. | |
1752 | (operator_length_standard): Likewise. | |
1753 | (struct exp_descriptor <operator_length>): Likewise. | |
1754 | ||
967cf477 DE |
1755 | 2010-06-04 Doug Evans <[email protected]> |
1756 | ||
bddaacb9 | 1757 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
1758 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
1759 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
1760 | * python/python.c (gdbpy_enabled_cst): Define. | |
1761 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
1762 | * NEWS: Add entry. | |
1763 | ||
2dec564e JK |
1764 | 2010-06-04 Jan Kratochvil <[email protected]> |
1765 | ||
1766 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
1767 | ||
44b5680a HZ |
1768 | 2010-06-04 Hui Zhu <[email protected]> |
1769 | ||
1770 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
1771 | ||
e7a30f46 DE |
1772 | 2010-06-03 Doug Evans <[email protected]> |
1773 | ||
1774 | * configure.ac: Don't fail if python is unusable when | |
1775 | configured with --with-python=auto. | |
1776 | * configure: Regenerate. | |
1777 | ||
84b4420f SW |
1778 | 2010-06-03 Sami Wagiaalla <[email protected]> |
1779 | ||
1780 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. | |
1781 | ||
df178451 PM |
1782 | 2010-06-03 Pierre Muller <[email protected]> |
1783 | ||
1784 | * valprint.h (get_array_bounds): Change low and high parameter types | |
1785 | to LONGEST *. | |
0407b3f1 | 1786 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
1787 | compute bounds. |
1788 | (val_print_array_elements): Adapt to change above. | |
1789 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
1790 | * p-valprint.c (pascal_val_print): Likewise. | |
1791 | ||
fd5700c7 JK |
1792 | 2010-06-02 Jan Kratochvil <[email protected]> |
1793 | ||
1794 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
1795 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
1796 | .F08. | |
1797 | ||
f55ee35c JK |
1798 | 2010-06-02 Jan Kratochvil <[email protected]> |
1799 | ||
1800 | Support DW_TAG_module as separate namespaces. | |
1801 | * dwarf2read.c (typename_concat): New parameter physname. | |
1802 | (read_module_type): New function and declaration. | |
1803 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
1804 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
1805 | to typename_concat backward compatible physname value 0. | |
1806 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
1807 | backward compatible physname value 0. | |
1808 | (add_partial_module, read_module): Remove FIXME comment. | |
1809 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
1810 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
1811 | DIEs under DW_TAG_module. | |
1812 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
1813 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
1814 | && physname and return there instead of just setting NAME. Extend | |
1815 | the main block for language_fortran. Pass physname parameter to the | |
1816 | typename_concat call. | |
1817 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
1818 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
1819 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
1820 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
1821 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
1822 | variables. | |
1823 | (read_type_die) <DW_TAG_module>: New. | |
1824 | (MAX_SEP_LEN): Increase to 7. | |
1825 | (typename_concat): New parameter physname. New variable lead. Support | |
1826 | also language_fortran. | |
1827 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
1828 | * f-lang.c: Include cp-support.h. | |
1829 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
1830 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
1831 | f_word_break_characters and f_make_symbol_completion_list. | |
1832 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
1833 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
1834 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
1835 | (symbol_find_demangled_name): New comment on language_fortran. | |
1836 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
1837 | for language_fortran. | |
1838 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
1839 | (default_make_symbol_completion_list): Rename to ... | |
1840 | (default_make_symbol_completion_list_break_on): ... this name. New | |
1841 | parameter break_on, use it. | |
1842 | (default_make_symbol_completion_list): New stub. | |
1843 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
1844 | prototype. | |
1845 | ||
cb91c06a JB |
1846 | 2010-06-02 Joel Brobecker <[email protected]> |
1847 | ||
1848 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
1849 | to error. | |
1850 | ||
5c315b68 JK |
1851 | 2010-06-02 Jan Kratochvil <[email protected]> |
1852 | ||
1853 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
1854 | ||
9eae7c52 TT |
1855 | 2010-06-02 Tom Tromey <[email protected]> |
1856 | ||
1857 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
1858 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
1859 | type is const. Add 'def' argument. Add missing operators, remove | |
1860 | unhandled ones. | |
1861 | (decode_locdesc): Update. | |
1862 | (dwarf2_always_disassemble): New global. | |
1863 | (show_dwarf2_always_disassemble): New function. | |
1864 | (_initialize_dwarf2_read): Add always-disassemble. | |
1865 | (dwarf2_per_cu_offset_size): New function. | |
1866 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
1867 | (piece_end_p): New function. | |
1868 | (locexpr_describe_location_piece): Replace 'size' argument with | |
1869 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
1870 | some constants. Remove errors. | |
1871 | (disassemble_dwarf_expression): New function. | |
1872 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
1873 | Add 'offset_size' argument. | |
1874 | (loclist_describe_location): Change output formatting. | |
1875 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
1876 | ||
7d3fe98e SW |
1877 | 2010-06-02 Sami Wagiaalla <[email protected]> |
1878 | ||
1879 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
1880 | anonymous type case. | |
1881 | ||
e77813c8 PM |
1882 | 2010-06-02 Pierre Muller <[email protected]> |
1883 | ||
1884 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
1885 | according to Dwarf-2 specifications. | |
1886 | ||
7cf3118a SDJ |
1887 | 2010-06-01 Sergio Durigan Junior <[email protected]> |
1888 | ||
1889 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
1890 | BINOP_EXCL. | |
1891 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
1892 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
1893 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
1894 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
1895 | UNOP_CHMAX, UNOP_CHMIN. | |
1896 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
1897 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
1898 | UNOP_CHMIN>: Remove opcodes. | |
1899 | ||
ae4d0c03 PM |
1900 | 2010-06-01 Pierre Muller <[email protected]> |
1901 | ||
1902 | * dwarf2read.c (read_func_scope): Do not complain for | |
1903 | external function if bounds are not found. | |
1904 | ||
fa593d66 PA |
1905 | 2010-06-01 Pedro Alves <[email protected]> |
1906 | ||
1907 | * NEWS: Mention gdbserver fast tracepoints support. | |
1908 | ||
cd44747c PM |
1909 | 2010-05-31 Pierre Muller <[email protected]> |
1910 | ||
1911 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
1912 | New macros. | |
1913 | (windows_set_console_info): New function. | |
1914 | (windows_create_inferior): Call windows_set_console_info | |
1915 | if NEW_CONSOLE is true. | |
1916 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
1917 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
1918 | GetCurrentConsoleFont. | |
1919 | ||
f6528abd JK |
1920 | 2010-05-28 Jan Kratochvil <[email protected]> |
1921 | ||
1922 | * Makefile.in (RDYNAMIC): New. | |
1923 | (SFILES): Add proc-service.list. | |
1924 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
1925 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
1926 | * config/arm/linux.mh: Likewise. | |
1927 | * config/i386/linux.mh: Likewise. | |
1928 | * config/i386/linux64.mh: Likewise. | |
1929 | * config/ia64/linux.mh: Likewise. | |
1930 | * config/m32r/linux.mh: Likewise. | |
1931 | * config/m68k/linux.mh: Likewise. | |
1932 | * config/mips/linux.mh: Likewise. | |
1933 | * config/pa/linux.mh: Likewise. | |
1934 | * config/powerpc/linux.mh: Likewise. | |
1935 | * config/powerpc/ppc64-linux.mh: Likewise. | |
1936 | * config/s390/s390.mh: Likewise. | |
1937 | * config/sparc/linux.mh: Likewise. | |
1938 | * config/sparc/linux64.mh: Likewise. | |
1939 | * config/xtensa/linux.mh: Likewise. | |
1940 | * configure.ac: New RDYNAMIC on native host and GCC. | |
1941 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
1942 | * configure: Regenerate. | |
1943 | * proc-service.list: New. | |
1944 | ||
ca2a87a0 JK |
1945 | 2010-05-28 Jan Kratochvil <[email protected]> |
1946 | ||
1947 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
1948 | CONTENT. | |
1949 | ||
1e225492 JK |
1950 | 2010-05-28 Jan Kratochvil <[email protected]> |
1951 | ||
1952 | * linux-nat.c (linux_nat_wait_1): Do not call | |
1953 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
1954 | TARGET_WAITKIND_SIGNALLED. | |
1955 | ||
e802dbe0 JB |
1956 | 2010-05-27 Joel Brobecker <[email protected]> |
1957 | ||
1958 | * ada-lang.c (ada_inferior_data): New struct. | |
1959 | (ada_inferior_data): New static global. | |
1960 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
1961 | (ada_get_tsd_type): New functions. | |
1962 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
1963 | to look the tsd type up. | |
1964 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
1965 | event. Set ada_inferior_data. | |
1966 | ||
176a6961 PA |
1967 | 2010-05-27 Pedro Alves <[email protected]> |
1968 | ||
1969 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
1970 | (remote_console_output): Make static, and add forward declaration. | |
1971 | * remote.h: Drop FIXME comment. | |
1972 | (unpack_varlen_hex): Declare. | |
1973 | (remote_console_output, remote_cisco_objfile_relocate) | |
1974 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
1975 | Delete declarations. | |
1976 | * tracepoint.c: Include "remote.h". | |
1977 | (unpack_varlen_hex): Delete declaration. | |
1978 | ||
88bfdde4 TT |
1979 | 2010-05-27 Tom Tromey <[email protected]> |
1980 | ||
1981 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
1982 | (allocate_piece_closure): Initialize refc. | |
1983 | (copy_pieced_value_closure): Use refc. | |
1984 | (free_pieced_value_closure): Likewise. | |
1985 | ||
8c6363cf TT |
1986 | 2010-05-27 Tom Tromey <[email protected]> |
1987 | ||
1988 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
1989 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
1990 | value_contents_writeable. Introduce new temporary. | |
1991 | ||
7ecb917e TT |
1992 | 2010-05-27 Tom Tromey <[email protected]> |
1993 | ||
1994 | * findcmd.c (parse_find_args): Use value_contents, not | |
1995 | value_contents_raw. | |
1996 | ||
f42a0a33 TT |
1997 | 2010-05-27 Tom Tromey <[email protected]> |
1998 | ||
1999 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
2000 | const. Use value_contents, not value_contents_writeable. | |
2001 | ||
12b795ad JB |
2002 | 2010-05-27 Joel Brobecker <[email protected]> |
2003 | ||
2004 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
2005 | by call to value_contents. | |
2006 | ||
5a2e11c7 OS |
2007 | 2010-05-27 Ozkan Sezer <[email protected]> |
2008 | ||
2009 | * MAINTAINERS: Add myself for write after approval privileges. | |
2010 | ||
ec685c5e DE |
2011 | 2010-05-26 Doug Evans <[email protected]> |
2012 | ||
0c4a4063 DE |
2013 | Allow python to find its files if moved from original location. |
2014 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
2015 | (GDB_AC_WITH_DIR): Call it. | |
2016 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
2017 | python installation directory. | |
2018 | * config.in: Regenerate. | |
2019 | * configure: Regenerate. | |
2020 | * defs.h (python_libdir): Declare. | |
2021 | * main.c (python_libdir): Define. | |
2022 | (captured_main): Initialize python_libdir. | |
2023 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
2024 | call Py_SetProgramName to make sure python can find its libraries | |
2025 | and modules. | |
2026 | ||
ec685c5e DE |
2027 | * configure.ac: Try to use python's distutils to fetch compilation |
2028 | parameters. | |
2029 | * configure: Regenerate. | |
2030 | * python/python-config.py: New file. | |
2031 | ||
363a6e9f OS |
2032 | 2010-05-26 Ozkan Sezer <[email protected]> |
2033 | ||
2034 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
2035 | equality to -1 not by it being negative. | |
2036 | (net_close): Likewise. | |
2037 | ||
dde08ee1 PA |
2038 | 2010-05-26 Pedro Alves <[email protected]> |
2039 | ||
2040 | * NEWS: Mention the `qRelocInsn' feature. | |
2041 | * gdbarch.sh (relocate_instruction): New. | |
2042 | * amd64-tdep.c (rip_relative_offset): New. | |
2043 | (append_insns): New. | |
2044 | (amd64_relocate_instruction): New. | |
2045 | (amd64_init_abi): Install it. | |
2046 | * i386-tdep.c (append_insns): New. | |
2047 | (i386_relocate_instruction): New. | |
2048 | (i386_gdbarch_init): Install it. | |
2049 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
2050 | * gdbarch.h, gdbarch.c: Regenerate. | |
2051 | ||
947bb88f TT |
2052 | 2010-05-26 Tom Tromey <[email protected]> |
2053 | ||
2054 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
2055 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
2056 | * dwarf2loc.c (find_location_expression): Constify return type. | |
2057 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
2058 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2059 | (loclist_read_variable): Constify. | |
2060 | (loclist_describe_location): Likewise. | |
2061 | (loclist_tracepoint_var_ref): Likewise. | |
2062 | ||
0d45f56e TT |
2063 | 2010-05-25 Tom Tromey <[email protected]> |
2064 | ||
2065 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
2066 | (dwarf_expr_frame_base_1): Likewise. | |
2067 | (read_pieced_value): Update. | |
2068 | (needs_frame_frame_base): Constify. | |
2069 | (dwarf2_tracepoint_var_loc): Likewise. | |
2070 | (dwarf2_tracepoint_var_access): Likewise. | |
2071 | (locexpr_describe_location_piece): Likewise. | |
2072 | (locexpr_describe_location_1): Likewise. | |
2073 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
2074 | Constify. | |
2075 | (data): Now const. | |
2076 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
2077 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
2078 | (dwarf2_read_address): Update. | |
2079 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
2080 | (read_uleb128): Likewise. | |
2081 | (read_sleb128): Likewise. | |
2082 | (dwarf2_read_address): Likewise. | |
2083 | (require_composition): Likewise. | |
2084 | (execute_stack_op): Likewise. | |
2085 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
2086 | "const gdb_byte *". | |
2087 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
2088 | Now const. | |
2089 | (no_get_frame_base): Constify. | |
2090 | (execute_stack_op): Likewise. | |
2091 | (execute_cfa_program): Likewise. | |
2092 | (read_encoded_value): Likewise. | |
2093 | ||
07ca107c DE |
2094 | 2010-05-25 Doug Evans <[email protected]> |
2095 | ||
e34838f0 DE |
2096 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
2097 | ||
01f69b38 DE |
2098 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
2099 | * event-loop.c: ... here. | |
2100 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
2101 | `error' for clarity. | |
2102 | (tui_getc): Pass correct value for `error' parameter to | |
2103 | tui_readline_output. | |
2104 | ||
07ca107c DE |
2105 | Add python gdb.GdbError and gdb.string_to_argv. |
2106 | * NEWS: Document them. | |
2107 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
2108 | the exception is gdb.GdbError. Print a second traceback if there's | |
2109 | an error computing the error message. | |
2110 | (gdbpy_string_to_argv): New function. | |
2111 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
2112 | (gdbpy_exception_to_string): New function. | |
2113 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
2114 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
2115 | (gdbpy_gdberror_exc): Declare. | |
2116 | * python/python.c (gdbpy_gdberror_exc): New global. | |
2117 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
2118 | gdb.GdbError. | |
2119 | (GdbMethods): Add string_to_argv. | |
2120 | ||
5572ce1f PM |
2121 | 2010-05-21 Pierre Muller <[email protected]> |
2122 | ||
2123 | * windows-nat.c (display_selector): Call GetLastError to give better | |
2124 | failure explanation. | |
2125 | ||
acd5838a PA |
2126 | 2010-05-24 Pedro Alves <[email protected]> |
2127 | ||
2128 | * config.in: Regenerate. | |
2129 | ||
b26a4dcb JK |
2130 | 2010-05-23 Jan Kratochvil <[email protected]> |
2131 | ||
2132 | Code cleanup. | |
2133 | * target.c (push_target): Return only void. Remove the return value | |
2134 | comment. | |
2135 | * target.h (push_target): Return only void. | |
2136 | ||
f434ba03 PA |
2137 | 2010-05-23 Pedro Alves <[email protected]> |
2138 | ||
2139 | Update gnulib from latest git. | |
2140 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
2141 | ||
2142 | * gnulib/memcmp.c: Removed. | |
2143 | * gnulib/memchr.valgrind: New. | |
2144 | * gnulib/stddef.in.h: New. | |
2145 | * gnulib/Makefile.am: Updated. | |
2146 | * gnulib/memchr.c: Updated. | |
2147 | * gnulib/memmem.c: Updated. | |
2148 | * gnulib/stdint.in.h: Updated. | |
2149 | * gnulib/str-two-way.h: Updated. | |
2150 | * gnulib/string.in.h: Updated. | |
2151 | * gnulib/wchar.in.h: Updated. | |
2152 | ||
2153 | * gnulib/extra/link-warning.h: Removed. | |
2154 | * gnulib/extra/c++defs.h: New. | |
2155 | * gnulib/extra/warn-on-use.h: New. | |
2156 | * gnulib/extra/arg-nonnull.h: Updated. | |
2157 | ||
2158 | * gnulib/m4/extensions.m4: Updated. | |
2159 | * gnulib/m4/gnulib-cache.m4: Updated. | |
2160 | * gnulib/m4/gnulib-common.m4: Updated. | |
2161 | * gnulib/m4/gnulib-comp.m4: Updated. | |
2162 | * gnulib/m4/gnulib-tool.m4: Updated. | |
2163 | * gnulib/m4/include_next.m4: Updated. | |
2164 | * gnulib/m4/longlong.m4: Updated. | |
2165 | * gnulib/m4/memchr.m4: Updated. | |
2166 | * gnulib/m4/memmem.m4: Updated. | |
2167 | * gnulib/m4/stdint.m4: Updated. | |
2168 | * gnulib/m4/string_h.m4: Updated. | |
2169 | * gnulib/m4/memcmp.m4: Removed. | |
2170 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
2171 | * gnulib/m4/00gnulib.m4: New. | |
2172 | * gnulib/m4/mmap-anon.m4: New. | |
2173 | * gnulib/m4/multiarch.m4: New. | |
2174 | * gnulib/m4/onceonly.m4: New. | |
2175 | * gnulib/m4/stddef_h.m4: New. | |
2176 | * gnulib/m4/warn-on-use.m4: New. | |
2177 | * gnulib/m4/wchar.m4: Removed. | |
2178 | * gnulib/m4/wchar_h.m4: New. | |
2179 | * gnulib/m4/wchar_t.m4: New. | |
2180 | * gnulib/m4/wint_t.m4: New. | |
2181 | ||
2182 | * aclocal.m4: Regenerate. | |
2183 | * config.in: Likewise. | |
2184 | * configure: Likewise. | |
2185 | * gnulib/Makefile.in: Likewise. | |
2186 | ||
d3b1e874 TT |
2187 | 2010-05-21 Tom Tromey <[email protected]> |
2188 | ||
2189 | * dwarf2loc.c (extract_bits_primitive): New function. | |
2190 | (extract_bits): Likewise. | |
2191 | (insert_bits): Likewise. | |
2192 | (copy_bitwise): Likewise. | |
2193 | (read_pieced_value): Do all operations in bits. | |
2194 | (write_pieced_value): Likewise. | |
2195 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
2196 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
2197 | Always use xrealloc to resize piece array. | |
2198 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
2199 | <DW_OP_piece>: Update. | |
2200 | <DW_OP_bit_piece>: New case. | |
2201 | ||
cb826367 TT |
2202 | 2010-05-21 Tom Tromey <[email protected]> |
2203 | ||
2204 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
2205 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
2206 | * dwarf2expr.h (enum dwarf_value_location) | |
2207 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
2208 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
2209 | (add_piece): Handle empty piece. | |
2210 | (execute_stack_op) <DW_OP_piece>: Handle | |
2211 | DWARF_VALUE_OPTIMIZED_OUT. | |
2212 | ||
74de6778 TT |
2213 | 2010-05-21 Tom Tromey <[email protected]> |
2214 | ||
2215 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
2216 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
2217 | ||
f346a30d PM |
2218 | 2010-05-21 Pierre Muller <[email protected]> |
2219 | ||
2220 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
2221 | attribute. | |
2222 | ||
afd74c5f TT |
2223 | 2010-05-21 Tom Tromey <[email protected]> |
2224 | ||
2225 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
2226 | offset. | |
2227 | (write_pieced_value): Likewise. | |
2228 | ||
90e7c2c5 PM |
2229 | 2010-05-21 Pierre Muller <[email protected]> |
2230 | ||
2231 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
2232 | and DW_TAG_volatile_type. | |
2233 | (new_symbol): Likewise. | |
2234 | ||
8148cf8d PM |
2235 | 2010-05-20 Pierre Muller <[email protected]> |
2236 | ||
2237 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
2238 | to obtain the number of elements in an array. | |
2239 | ||
3a1d4620 DE |
2240 | 2010-05-19 Doug Evans <[email protected]> |
2241 | ||
0bf0f8c4 DE |
2242 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
2243 | ||
3a1d4620 DE |
2244 | * python.c (source_python_script): Add comment. |
2245 | (source_python_script_for_objfile): Remove unnecessary call to | |
2246 | gdbpy_print_stack. | |
2247 | ||
dc21167c JK |
2248 | 2010-05-18 Jan Kratochvil <[email protected]> |
2249 | Sergio Durigan Junior <[email protected]> | |
2250 | ||
2251 | Code cleanup. | |
2252 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
2253 | ||
5b4ee69b MS |
2254 | 2010-05-18 Michael Snyder <[email protected]> |
2255 | ||
2256 | * ada-lang.c: White space. | |
2257 | * ada-typeprint.c: White space. | |
2258 | * ada-valprint.c: White space. | |
2259 | * addrmap.c: White space. | |
2260 | * auxv.c: White space. | |
2261 | * ax-gdb.c: White space. | |
2262 | ||
e17c9e56 HZ |
2263 | 2010-05-18 Hui Zhu <[email protected]> |
2264 | ||
2265 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
2266 | for oldfp. | |
2267 | (inferior_call_waitpid): Move make_cleanup out of check. | |
2268 | Check the return of waitpid. | |
2269 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
2270 | ||
a109c7c1 MS |
2271 | 2010-05-17 Michael Snyder <[email protected]> |
2272 | ||
1c5313c5 MS |
2273 | * tui/tui.c: White space. |
2274 | * tui/tui-data.c: White space. | |
2275 | * tui/tui-disasm.c: White space. | |
2276 | * tui/tui-file.c: White space. | |
2277 | * tui/tui-interp.c: White space. | |
2278 | * tui/tui-main.c: White space. | |
2279 | * tui/tui-out.c: White space. | |
2280 | * tui/tui-regs.c: White space. | |
2281 | * tui/tui-source.c: White space. | |
2282 | * tui/tui-stack.c: White space. | |
2283 | * tui/tui-win.c: White space. | |
2284 | * tui/tui-winsource.c: White space. | |
2285 | ||
f4a14ae6 MS |
2286 | * procfs.c: White space. |
2287 | ||
d59b6f6c MS |
2288 | * python/py-auto-load.c: White space. |
2289 | * python/py-block.c: White space. | |
2290 | * python/py-breakpoint.c: White space. | |
2291 | * python/py-cmd.c: White space. | |
2292 | * python/py-function.c: White space. | |
2293 | * python/py-lazy-string.c: White space. | |
2294 | * python/py-objfile.c: White space. | |
2295 | * python/py-param.c: White space. | |
2296 | * python/py-prettyprint.c: White space. | |
2297 | * python/py-progspace.c: White space. | |
2298 | * python/py-symtab.c: White space. | |
2299 | * python/python.c: White space. | |
2300 | * python/py-type.c: White space. | |
2301 | * python/py-utils.c: White space. | |
2302 | * python/py-value.c: White space. | |
2303 | ||
102040f0 MS |
2304 | * mi/mi-cmd-break.c: White space. |
2305 | * mi/mi-cmd-env.c: White space. | |
2306 | * mi/mi-cmds.c: White space. | |
2307 | * mi/mi-cmd-stack.c: White space. | |
2308 | * mi/mi-cmd-var.c: White space. | |
2309 | * mi/mi-console.c: White space. | |
2310 | * mi/mi-getopt.c: White space. | |
2311 | * mi/mi-interp.c: White space. | |
2312 | * mi/mi-main.c: White space. | |
2313 | * mi/mi-out.c: White space. | |
2314 | * mi/mi-parse.c: White space. | |
2315 | ||
cdb27c12 MS |
2316 | * cli/cli-cmds.c: White space. |
2317 | * cli/cli-decode.c: White space. | |
2318 | * cli/cli-dump.c: White space. | |
2319 | * cli/cli-interp.c: White space. | |
2320 | * cli/cli-logging.c: White space. | |
2321 | * cli/cli-script.c: White space. | |
2322 | * cli/cli-setshow.c: White space. | |
2323 | ||
a109c7c1 MS |
2324 | * valarith.c: White space. |
2325 | * valops.c: White space. | |
2326 | * valprint.c: White space. | |
2327 | * value.c: White space. | |
2328 | * varobj.c: White space. | |
2329 | * xcoffread.c: White space. | |
2330 | * xml-support.c: White space. | |
2331 | * xml-tdesc.c: White space. | |
2332 | ||
3872d37d AS |
2333 | 2010-05-17 Andreas Schwab <[email protected]> |
2334 | ||
2335 | PR gdb/11092 | |
2336 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
2337 | string at first. | |
2338 | ||
0cce5bd9 JB |
2339 | 2010-05-17 Joel Brobecker <[email protected]> |
2340 | ||
2341 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
2342 | its associated language to parse the expression instead of | |
2343 | the current_language. | |
2344 | ||
5f19d646 JB |
2345 | 2010-05-17 Joel Brobecker <[email protected]> |
2346 | ||
2347 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
2348 | (type_from_class): Likewise. | |
2349 | (java_op_print_tab): Remove commented-out elements. | |
2350 | ||
28c85d6c JB |
2351 | 2010-05-17 Joel Brobecker <[email protected]> |
2352 | ||
2353 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
2354 | argument instead of the raw type name. Remove orig_type parameter. | |
2355 | Update calls throughout. | |
2356 | (ada_fixup_array_indexes_type): New function. | |
2357 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
2358 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
2359 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
2360 | Remove name parameter. | |
2361 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
2362 | Update calls to print_range_type. | |
2363 | (ada_print_type): Update calls to print_range_type. | |
2364 | ||
d09039dd PM |
2365 | 2010-05-17 Pierre Muller <[email protected]> |
2366 | ||
2367 | * dwarf2read.c (read_set_type): Set type length if | |
2368 | DW_AT_byte_size attribute is present. | |
2369 | ||
7a081a30 PM |
2370 | 2010-05-17 Pierre Muller <[email protected]> |
2371 | ||
2372 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
2373 | are undefined but size is known. | |
2374 | ||
77382aee PA |
2375 | 2010-05-17 Pedro Alves <[email protected]> |
2376 | ||
2377 | * procfs.c: Reformat. | |
2378 | ||
433759f7 MS |
2379 | 2010-05-16 Michael Snyder <[email protected]> |
2380 | ||
5d502164 MS |
2381 | * target.c: White space. |
2382 | * target-descriptions.c: White space. | |
2383 | * target-memory.c: White space. | |
2384 | * thread.c: White space. | |
2385 | * top.c: White space. | |
2386 | * tracepoint.c: White space. | |
2387 | * trad-frame.c: White space. | |
2388 | * tramp-frame.c: White space. | |
2389 | * ui-file.c: White space. | |
2390 | * ui-out.c: White space. | |
2391 | * user-regs.c: White space. | |
2392 | * utils.c: White space. | |
2393 | ||
433759f7 MS |
2394 | * scm-exp.c: White space. |
2395 | * scm-lang.c: White space. | |
2396 | * scm-valprint.c: White space. | |
2397 | * sentinel-frame.c: White space. | |
2398 | * ser-base.c: White space. | |
2399 | * ser-go32.c: White space. | |
2400 | * serial.c: White space. | |
2401 | * ser-mingw.c: White space. | |
2402 | * ser-pipe.c: White space. | |
2403 | * ser-tcp.c: White space. | |
2404 | * ser-unix.c: White space. | |
2405 | * solib.c: White space. | |
2406 | * solib-darwin.c: White space. | |
2407 | * solib-frv.c: White space. | |
2408 | * solib-irix.c: White space. | |
2409 | * solib-osf.c: White space. | |
2410 | * solib-pa64.c: White space. | |
2411 | * solib-som.c: White space. | |
2412 | * solib-spu.c: White space. | |
2413 | * solib-svr4.c: White space. | |
2414 | * solib-target.c: White space. | |
2415 | * source.c: White space. | |
2416 | * stabsread.c: White space. | |
2417 | * stack.c: White space. | |
2418 | * std-regs.c: White space. | |
2419 | * symfile.c: White space. | |
2420 | * symmisc.c: White space. | |
2421 | * symtab.c: White space. | |
2422 | ||
dd304d53 MS |
2423 | 2010-05-16 Michael Snyder <[email protected]> |
2424 | ||
2425 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
2426 | for the "reverse-search" command. | |
2427 | ||
a744cf53 MS |
2428 | 2010-05-16 Michael Snyder <[email protected]> |
2429 | ||
123f5f96 MS |
2430 | * record.c: White space. |
2431 | * regcache.c: White space. | |
2432 | * reggroups.c: White space. | |
2433 | * remote-fileio.c: White space. | |
2434 | * remote-m32r-sdi.c: White space. | |
2435 | * remote-mips.c: White space. | |
2436 | * remote-sim.c: White space. | |
a744cf53 MS |
2437 | * remote.c: White space. |
2438 | (process_g_packet): Remove orphan braces. | |
2439 | ||
b8d56208 MS |
2440 | 2010-05-15 Michael Snyder <[email protected]> |
2441 | ||
ad3bbd48 MS |
2442 | * parse.c: White space. |
2443 | * p-lang.c: White space. | |
2444 | * posix-hdep.c: White space. | |
2445 | * printcmd.c: White space. | |
2446 | * progspace.c: White space. | |
2447 | * prologue-value.c: White space. | |
2448 | * psymtab.c: White space. | |
2449 | * p-typeprint.c: White space. | |
2450 | * p-valprint.c: White space. | |
2451 | ||
5cc80db3 MS |
2452 | * objc-lang.c: White space. |
2453 | * objfiles.c: White space. | |
2454 | * observer.c: White space. | |
2455 | * osabi.c: White space. | |
2456 | * osdata.c: White space. | |
2457 | ||
b8d56208 MS |
2458 | * m2-lang.c: White space. |
2459 | * m2-valprint.c: White space. | |
2460 | * macrocmd.c: White space. | |
2461 | * macroexp.c: White space. | |
2462 | * macroscope.c: White space. | |
2463 | * macrotab.c: White space. | |
2464 | * main.c: White space. | |
2465 | * maint.c: White space. | |
2466 | * mdebugread.c: White space. | |
2467 | * memattr.c: White space. | |
2468 | * minsyms.c: White space. | |
2469 | * monitor.c: White space. | |
2470 | ||
9a619af0 MS |
2471 | 2010-05-14 Michael Snyder <[email protected]> |
2472 | ||
e0881a8e MS |
2473 | * jv-lang.c: White space. |
2474 | * jv-typeprint.c: White space. | |
2475 | * jv-valprint.c: White space. | |
2476 | * language.c: White space. | |
2477 | * libunwind-frame.c: White space. | |
2478 | * linespec.c: White space. | |
2479 | * linux-nat.c: White space. | |
2480 | * linux-record.c: White space. | |
2481 | * linux-thread-db.c: White space. | |
2482 | ||
abbb1732 MS |
2483 | * infcall.c: White space. |
2484 | * inf-child.c: White space. | |
2485 | * infcmd.c: White space. | |
2486 | * inferior.c: White space. | |
2487 | * inf-loop.c: White space. | |
2488 | * inflow.c: White space. | |
2489 | * inline-frame.c: White space. | |
2490 | * interps.c: White space. | |
2491 | ||
d8734c88 MS |
2492 | * gcore.c: White space. |
2493 | * gdb.c: White space. | |
2494 | * gdbtypes.c: White space. | |
2495 | * gnu-nat.c: White space. | |
2496 | * gnu-v2-abi.c: White space. | |
2497 | * gnu-v3-abi.c: White space. | |
2498 | ||
bb9bcb69 MS |
2499 | * findcmd.c: White space. |
2500 | * findvar.c: White space. | |
2501 | * fork-child.c: White space. | |
2502 | * frame-base.c: White space. | |
2503 | * frame.c: White space. | |
2504 | * frame-unwind.c: White space. | |
2505 | * f-valprint.c: White space. | |
2506 | ||
d7f9d729 MS |
2507 | * elfread.c: White space. |
2508 | * environ.c: White space. | |
2509 | * eval.c: White space. | |
2510 | * event-loop.c: White space. | |
2511 | * event-top.c: White space. | |
2512 | * exceptions.c: White space. | |
2513 | * exec.c: White space. | |
2514 | * expprint.c: White space. | |
2515 | ||
9a619af0 MS |
2516 | * dbxread.c: White space. |
2517 | * dcache.c: White space. | |
2518 | * disasm.c: White space. | |
2519 | * doublest.c: White space. | |
2520 | * dsrec.c: White space. | |
2521 | * dummy-frame.c: White space. | |
2522 | * dwarf2expr.c: White space. | |
2523 | * dwarf2-frame.c: White space. | |
2524 | * dwarf2loc.c: White space. | |
2525 | * dwarf2read.c: White space. | |
2526 | ||
88d4aea7 PM |
2527 | 2010-05-14 Phil Muldoon <[email protected]> |
2528 | ||
2529 | PR python/11482 | |
2530 | ||
2531 | * python/py-value.c (valpy_hash): New function. | |
2532 | (value_object_type): Register valpy_hash. | |
2533 | ||
7a298875 | 2534 | 2010-05-14 Hui Zhu <[email protected]> |
0407b3f1 | 2535 | Michael Snyder <[email protected]> |
7a298875 HZ |
2536 | |
2537 | * linux-fork.c (gdbthread.h): New include. | |
2538 | (fork_info): Add parent_ptid. | |
2539 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
2540 | functions. | |
2541 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
2542 | (checkpoint_command): Set parent_ptid. | |
2543 | ||
c14feecc MS |
2544 | 2010-05-13 Michael Snyder <[email protected]> |
2545 | ||
6595d32b MS |
2546 | * dictionary.c: Re-indent to GNU coding standard. |
2547 | ||
c5504eaf MS |
2548 | * charset.c: White space. |
2549 | * c-lang.c: White space. | |
2550 | * cli-out.c: White space. | |
2551 | * coffread.c: White space. | |
2552 | * complaints.c: White space. | |
2553 | * completer.c: White space. | |
2554 | * corefile.c: White space. | |
2555 | * corelow.c: White space. | |
2556 | * cp-abi.c: White space. | |
2557 | * cp-namespace.c: White space. | |
2558 | * cp-support.c: White space. | |
2559 | * cp-valprint.c: White space. | |
2560 | * c-typeprint.c: White space. | |
2561 | * c-valprint.c: White space. | |
cc59ec59 MS |
2562 | * blockframe.c: White space. |
2563 | * breakpoint.c: White space. | |
2564 | * buildsym.c: White space. | |
2565 | * blockframe.c: White space. | |
b6de9da4 | 2566 | * bcache.c: White space. |
05c547f6 MS |
2567 | * gdbarch.sh: White space, add blank lines. |
2568 | * arch-utils.c: Ditto. | |
2569 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 2570 | * frame.c: White space, add blank lines. |
f89b749f MS |
2571 | * stack.c: White space, add blank lines. |
2572 | (initialize_stack): Remove long-dead code. | |
c14feecc | 2573 | |
a2d33775 JK |
2574 | 2010-05-13 Jan Kratochvil <[email protected]> |
2575 | ||
2576 | Code cleanup. | |
2577 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
2578 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
2579 | ||
33ac96f0 JK |
2580 | 2010-05-13 Jan Kratochvil <[email protected]> |
2581 | ||
2582 | Code cleanup. | |
2583 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
2584 | Remove check of NULL returned by tag_type_to_type. | |
2585 | (die_containing_type): Remove variable type. Remove type_die variable | |
2586 | initialization. Remove check of NULL returned by tag_type_to_type. | |
2587 | ||
f5a010c0 PM |
2588 | 2010-05-11 Pierre Muller <[email protected]> |
2589 | ||
2590 | PR exp/11530. | |
2591 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
2592 | names of unnamed structures or unions. | |
2593 | ||
bf701c2c PM |
2594 | 2010-05-11 Pierre Muller <[email protected]> |
2595 | ||
2596 | * procfs.c (proc_watchpoint_address): New function. | |
0407b3f1 | 2597 | (procfs_stopped_by_watchpoint): Remove useless check after |
bf701c2c PM |
2598 | find_procinfo_or_die call. |
2599 | (procfs_stopped_data_address): New function. | |
2600 | (procfs_use_watchpoints): Register new watchpoint related function. | |
2601 | ||
d02691ef TT |
2602 | 2010-05-11 Tom Tromey <[email protected]> |
2603 | ||
2604 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
2605 | ||
e0627e85 MS |
2606 | 2010-05-10 Michael Snyder <[email protected]> |
2607 | ||
2608 | * utils.c: White space cleanup. | |
2609 | ||
cc73bb8c TT |
2610 | 2010-05-10 Tom Tromey <[email protected]> |
2611 | ||
2612 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
2613 | (evaluate_subexp_standard): Update. | |
2614 | (evaluate_subexp_with_coercion): Update. | |
2615 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
2616 | ||
c02866a0 MS |
2617 | 2010-05-10 Michael Snyder <[email protected]> |
2618 | ||
2619 | * utils.c (do_fclose_cleanup) Restore local variable. | |
2620 | ||
06280d23 DE |
2621 | 2010-05-09 Doug Evans <[email protected]> |
2622 | ||
2623 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
2624 | ||
fa07e785 JB |
2625 | 2010-05-08 Joel Brobecker <[email protected]> |
2626 | ||
2627 | Implement task switching on pa-hpux. | |
2628 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
2629 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
2630 | ||
4c680d1d PM |
2631 | 2010-05-08 Pierre Muller <[email protected]> |
2632 | ||
2633 | * valops.c (find_overload_match): Add missing i18n markup. | |
2634 | ||
28e176a6 PM |
2635 | 2010-05-08 Pierre Muller <[email protected]> |
2636 | ||
2637 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
2638 | ||
48cb83fd JK |
2639 | 2010-05-08 Jan Kratochvil <[email protected]> |
2640 | ||
2641 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
2642 | list for the obconcat call. | |
2643 | * mdebugread.c (parse_symbol): Likewise. | |
2644 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
2645 | Likewise. | |
2646 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
2647 | New variable ap. Remove variables len and val. | |
2648 | * symfile.h (obconcat): Likewise for the prototype. | |
2649 | ||
f92adf3c MS |
2650 | 2010-05-07 Michael Snyder <[email protected]> |
2651 | ||
2652 | * python/python.c (execute_gdb_command): Remove unused variables. | |
2653 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
0407b3f1 | 2654 | * python/py-breakpoint.c (gdbpy_breakpoint_created): |
f92adf3c MS |
2655 | Remove unused variable. |
2656 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
2657 | (cmdpy_completer): Remove unused variable. | |
2658 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
2659 | * python/py-function.c (fnpy_call): Remove unused variable. | |
2660 | * python/py-objfile.c (objfile_to_objfile_object): | |
2661 | Remove unused variable. | |
2662 | * python/py-param.c (parmpy_init): Remove unused variable. | |
0407b3f1 | 2663 | * python/py-prettyprint.c (apply_varobj_pretty_printer): |
f92adf3c MS |
2664 | Remove unused variable. |
2665 | (gdbpy_default_visualizer): Remove unused variable. | |
2666 | * python/py-progspace.c (pspace_to_pspace_object): | |
2667 | Remove unused variable. | |
0407b3f1 | 2668 | * python/py-symtab.c (symtab_and_line_to_sal_object): |
f92adf3c | 2669 | Remove unused variable. |
0407b3f1 | 2670 | * python/py-type.c (typy_template_argument): |
f92adf3c MS |
2671 | Remove unused variable. |
2672 | * python/py-value.c (valpy_string): Remove unused variable. | |
2673 | (convert_value_from_python): Remove unused variables. | |
2674 | ||
d160942f MS |
2675 | 2010-05-07 Michael Snyder <[email protected]> |
2676 | ||
2677 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
2678 | and use it to compute variable 't1'. | |
2679 | ||
587542ab JB |
2680 | 2010-05-07 Joel Brobecker <[email protected]> |
2681 | ||
2682 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
2683 | ||
7322dca9 SW |
2684 | 2010-05-07 Sami Wagiaalla <[email protected]> |
2685 | ||
2686 | PR C++/7943: | |
2687 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
2688 | Add int no_adl argument. | |
2689 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
2690 | when appropriate. | |
2691 | Add int no_adl argument. | |
2692 | (find_oload_champ_namespace): Add int no_adl argument. | |
2693 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
2694 | expression. | |
2695 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
2696 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
2697 | Evaluate arguments and use them to perform ADL lookup. | |
2698 | Pass no_adl argument to find_overload_match. | |
2699 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
2700 | * cp-support.h: Added prototype for | |
2701 | make_symbol_overload_list_namespace. | |
2702 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
2703 | (make_symbol_overload_list_adl_namespace): New function. | |
2704 | (make_symbol_overload_list_adl): New function. | |
2705 | (make_symbol_overload_list_using): Moved code to add function to | |
2706 | overload set to make_symbol_overload_list_namespace. | |
2707 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
2708 | Add parse rule for ADL functions. | |
2709 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
2710 | ||
3f1f6884 JK |
2711 | 2010-05-07 Jan Kratochvil <[email protected]> |
2712 | ||
2713 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
2714 | sentinel. | |
2715 | ||
3caf13b4 JB |
2716 | 2010-05-07 Joel Brobecker <[email protected]> |
2717 | ||
2718 | Implement task switching on solaris targets. | |
2719 | * sol-thread.c (thread_db_find_thread_from_tid) | |
2720 | (sol_get_ada_task_ptid): New functions. | |
2721 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
2722 | ||
94b0dee1 PA |
2723 | 2010-05-07 Pedro Alves <[email protected]> |
2724 | ||
2725 | * remote.c (remote_query_supported_append): Use reconcat. | |
2726 | (remote_query_supported): Install a cleanup. Use reconcat. | |
2727 | ||
1408c251 PA |
2728 | 2010-05-07 Pedro Alves <[email protected]> |
2729 | ||
2730 | * gdbarch.sh (qsupported): Delete. | |
2731 | * gdbarch.h, gdbarch.c: Regenerate. | |
2732 | * remote.c (remote_query_supported): Remove use of | |
2733 | gdbarch_qsupported. | |
2734 | ||
f8e50cfe SDJ |
2735 | 2010-05-06 Sergio Durigan Junior <[email protected]> |
2736 | ||
2737 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
2738 | function. | |
2739 | ||
8ea13695 MS |
2740 | 2010-05-06 Michael Snyder <[email protected]> |
2741 | ||
c6913b7d MS |
2742 | * xml-support.c (xinclude_start_include): Delete unused variable. |
2743 | (xml_process_xincludes): Delete unused variable. | |
2744 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
2745 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
2746 | (tdesc_find_arch_register): Delete unused variable. | |
2747 | (tdesc_use_registers): Delete unused variable. | |
2748 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
2749 | * inferior.c (print_inferior): Delete unused variable. | |
2750 | * record.c (record_open_1): Delete unused variable. | |
2751 | (record_restore): Delete unused variable. | |
2752 | (cmd_record_save): Delete unused variable. | |
2753 | * gcore.c (derive_heap_segment): Delete unused variable. | |
2754 | (objfile_find_memory_regions): Use unused variable. | |
2755 | * jit.c (jit_inferior_init): Delete unused variable. | |
2756 | * progspace.c (clone_program_space): Delete unused variable. | |
2757 | (pspace_empty_p): Delete unused variable. | |
0407b3f1 AS |
2758 | |
2759 | * frame-unwind.c (frame_unwind_find_by_frame): | |
1c5465ac MS |
2760 | Delete unused variable. |
2761 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
2762 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
2763 | (method_name_from_physname): Delete unused variable. | |
2764 | (cp_func_name): Delete unused variable. | |
2765 | (cp_validate_operator): Delete unused variable. | |
0407b3f1 | 2766 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): |
1c5465ac | 2767 | Delete unused variable. |
0407b3f1 | 2768 | * trad-frame.c (trad_frame_get_prev_register): |
1c5465ac MS |
2769 | Delete unused variable. |
2770 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
2771 | ||
1be757cf MS |
2772 | * serial.c (serial_for_fd): Delete unused variable. |
2773 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
2774 | * top.c (execute_command): Delete unused variable. | |
2775 | (init_main): Delete unused variable. | |
2776 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
2777 | (do_all_inferior_continuations): Delete unused variable. | |
2778 | (initialize_utils): Delete unused variable. | |
2779 | (internal_problem_mode): Delete unused global. | |
2780 | * frame.c (get_prev_frame): Delete unused global. | |
2781 | (get_frame_locals_address): Delete unused global. | |
2782 | (get_frame_args_address): Delete unused global. | |
2783 | ||
9216103f MS |
2784 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
2785 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
2786 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
2787 | (f_type_print_varspec_suffix): Delete unused variable. | |
2788 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
2789 | (m2_long_set): Delete unused variable. | |
2790 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
2791 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
0407b3f1 | 2792 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): |
9216103f MS |
2793 | Delete unused variable. |
2794 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
2795 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
2796 | ||
34fa1d9d MS |
2797 | * ui-out.c (ui_out_field_int): Delete unused variable. |
2798 | (ui_out_field_fmt_int): Delete unused variable. | |
2799 | * varobj.c (varobj_list_children): Delete unused variable. | |
2800 | (varobj_set_value): Delete unused variable. | |
2801 | (install_new_value_visualizer): Delete unused variable. | |
2802 | (varobj_set_visualizer): Delete unused variable. | |
2803 | (varobj_update): Delete unused variable. | |
2804 | (varobj_editable_p): Delete unused variable. | |
2805 | (c_value_of_root): Delete unused variable. | |
2806 | (cplus_describe_child): Delete unused variable. | |
2807 | ||
b5385fc0 MS |
2808 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
2809 | (decode_constrained_packed_array_type): Delete unused variable. | |
2810 | (add_defn_to_vec): Delete unused variable. | |
2811 | (symbol_completion_match): Delete unused variable. | |
2812 | (value_tag_from_contents_and_address): Delete unused variable. | |
2813 | (ada_evaluate_subexp): Delete unused variable. | |
2814 | * c-lang.c (classify_type): Delete unused variable. | |
2815 | * f-lang.c (f_printstr): Delete unused variable. | |
2816 | * objc-lang.c (objc_printstr): Delete unused variable. | |
2817 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
2818 | * jv-lang.c (type_from_class): ifdef unused variable. | |
2819 | (java_class_name_from_physname): Delete unused variable. | |
2820 | * m2-lang.c (m2_printstr): Delete unused variable. | |
2821 | ||
4fc06681 MS |
2822 | * objfiles.c (objfile_relocate): Delete unused variable. |
2823 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
2824 | * demangle.c (_initialize_demangler): Delete unused variable. | |
2825 | * corefile.c (reopen_exec_file): Delete unused variable. | |
2826 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
2827 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
2828 | ||
6b4398f7 MS |
2829 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
2830 | * memattr.c (mem_delete): Delete unused variable. | |
2831 | (invalidate_target_mem_regions): Delete unused variable. | |
2832 | * mem-break.c (default_memory_insert_breakpoint): | |
2833 | Delete unused variable. | |
2834 | * target.c (target_get_osdata): Delete unused variable. | |
2835 | * parse.c (length_of_subexp): Delete unused variable. | |
2836 | (prefixify_subexp): Delete unused variable. | |
2837 | (exp_iterate): Delete unused variable. | |
2838 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
2839 | ||
308d96ed MS |
2840 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
2841 | * macroexp.c (gather_arguments): Delete unused variable. | |
2842 | (substitute_args): Delete unused variable. | |
2843 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
2844 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
2845 | (_initialize_gdbarch): Delete unused variable. | |
2846 | * gdbarch.c, gdbarch.h: Regenerate. | |
0407b3f1 | 2847 | * arch-utils.c (initialize_current_architecture): |
308d96ed MS |
2848 | Delete unused variable. |
2849 | (_initialize_gdbarch_utils): Delete unused variable. | |
2850 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
2851 | (make_type_with_address_space): Delete unused variable. | |
2852 | ||
167e4384 MS |
2853 | * linespec.c (decode_compound): Delete unused variable. |
2854 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
2855 | * infcall.c (call_function_by_hand): Delete unused variable. | |
2856 | * infcmd.c (step_1): Delete unused variable. | |
2857 | (registers_info): Delete unused variable. | |
2858 | (attach_command): Delete unused variable. | |
2859 | * infrun.c (follow_exec): Delete unused variable. | |
2860 | (handle_step_into_function_backwards): Delete unused variable. | |
2861 | (_initialize_infrun): Delete unused variable. | |
2862 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
2863 | (frame_info): Delete unused variable. | |
2864 | (backtrace_command_1): Delete unused variable. | |
2865 | (catch_info): Delete unused variable. | |
2866 | ||
8f78b329 MS |
2867 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
2868 | * valops.c (value_cast_pointers): Delete unused variable. | |
2869 | (value_dynamic_cast): Delete unused variable. | |
2870 | (value_array): Delete unused variable. | |
2871 | (find_overload_match): Delete unused variable. | |
2872 | * valarith.c (value_subscript): Delete unused variable. | |
2873 | (value_binop): Delete unused variable. | |
2874 | * valprint.c (_initialize_valprint): Delete unused variable. | |
2875 | * printcmd.c (print_command_1): Delete unused variable. | |
2876 | (address_info): Delete unused variable. | |
2877 | (printf_command): Delete unused variable. | |
2878 | ||
8ea13695 MS |
2879 | * auxv.c (target_auxv_search): Delete unused variable. |
2880 | * blockframe.c (get_frame_block): Delete unused variable. | |
2881 | * regcache.c (regcache_cpy): Delete unused variable. | |
2882 | (regcache_cpy_no_passthrough): Delete unused variable. | |
2883 | * charset.c (wchar_iterate): Delete unused variable. | |
2884 | (find_charset_names): Delete unused variable. | |
2885 | (_initialize_charset): Delete unused variable. | |
0407b3f1 | 2886 | * disasm.c (do_mixed_source_and_assembly): |
8ea13695 | 2887 | Delete unused variable. |
0407b3f1 | 2888 | * source.c (set_default_source_symtab_and_line): |
8ea13695 MS |
2889 | Delete unused variable. |
2890 | (set_substitute_path_command): Delete unused variable. | |
2891 | * value.c (preserve_values): Delete unused variable. | |
2892 | (value_from_double): Delete unused variable. | |
2893 | ||
afe38095 MS |
2894 | 2010-05-05 Michael Snyder <[email protected]> |
2895 | ||
952a6d41 MS |
2896 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
2897 | (find_last_source_symtab_from_partial): Delete unused variable. | |
2898 | * symfile.c (place_section): Delete unused variable. | |
2899 | (default_symfile_offsets): Delete unused variable. | |
2900 | (get_debug_link_info): Delete unused variable. | |
2901 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
2902 | (add_symbol_file_command): Delete unused variable. | |
2903 | (symfile_find_segment_sections): Delete unused variable. | |
2904 | * symmisc.c (free_symtab): Delete unused variable. | |
2905 | (dump_symtab_1): Delete unused variable. | |
2906 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
2907 | (find_pc_sect_symtab): Delete unused variable. | |
2908 | (skip_prologue_using_lineinfo): Delete unused variable. | |
2909 | (sources_info): Delete unused variable. | |
2910 | (completion_list_add_name): Delete unused variable. | |
2911 | (expand_line_sal): Delete unused variable. | |
2912 | ||
0407b3f1 | 2913 | * breakpoint.c (validate_commands_for_breakpoint): |
afe38095 MS |
2914 | Delete unused variables. |
2915 | (insert_catchpoint): Delete unused variable. | |
2916 | (update_watchpoint): Delete unused variable. | |
2917 | (insert_bp_location): Delete unused variable. | |
2918 | (insert_breakpoint_locations): Delete unused variable. | |
2919 | (remove_breakpoint_1): Delete unused variable. | |
2920 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
2921 | (watchpoints_triggered): Delete unused variable. | |
2922 | (bpstat_check_watchpoint): Delete unused variable. | |
2923 | (bpstat_stop_status): Delete unused variable. | |
2924 | (print_one_breakpoint_location): Delete unused variable. | |
2925 | (allocate_bp_location): Delete unused variable. | |
2926 | (create_breakpoint): Delete unused variable. | |
2927 | (watch_command_1): Delete unused variable. | |
2928 | (catch_exception_command_1): Delete unused variable. | |
2929 | (catch_ada_exception_command): Delete unused variable. | |
2930 | (delete_breakpoint): Delete unused variable. | |
2931 | (breakpoint_re_set_one): Delete unused variable. | |
2932 | (do_enable_breakpoint): Delete unused variable. | |
2933 | ||
eda5a4d7 PA |
2934 | 2010-05-06 Pedro Alves <[email protected]> |
2935 | ||
2936 | * amd64-tdep.c: Include disasm.h. | |
2937 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
2938 | (amd64_insn_length): Moved to disasm.c and renamed. | |
2939 | (fixup_riprel): Adjust. | |
2940 | * disasm.c (do_ui_file_delete): New. | |
2941 | (gdb_insn_length): New. | |
2942 | (gdb_buffered_insn_length_fprintf) | |
2943 | (gdb_buffered_insn_length_init_dis) | |
2944 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
2945 | renamed. | |
2946 | * disasm.h (gdb_insn_length): Declare. | |
2947 | (gdb_buffered_insn_length): Declare. | |
2948 | ||
02357a4a PA |
2949 | 2010-05-06 Pedro Alves <[email protected]> |
2950 | ||
2951 | * remote.c (clear_threads_parsing_context): New. | |
2952 | (remote_threads_info): Delete unused null_cleanup. Install a | |
2953 | cleanup to clear the threads_parsing_context in case parsing | |
2954 | throws. | |
2955 | ||
8c5630cb MS |
2956 | 2010-05-05 Michael Snyder <[email protected]> |
2957 | ||
2958 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
2959 | (c_lex): Delete unused variable. | |
2960 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
2961 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
2962 | (write_var_or_type): Delete unused variable. | |
2963 | * jv-exp.y (java_parse): Delete unused variable. | |
2964 | (push_expression_name): Delete unused variable. | |
2965 | * p-exp.y (pascal_lex): Delete unused variable. | |
2966 | ||
46c162d4 PA |
2967 | 2010-05-05 Pedro Alves <[email protected]> |
2968 | ||
2969 | * remote.c (remote_threads_info): Really revert previous previous | |
2970 | change. | |
2971 | ||
0043e6a5 MS |
2972 | 2010-05-05 Michael Snyder <[email protected]> |
2973 | ||
fa238c03 MS |
2974 | * elfread.c (elf_symtab_read): Delete unused variable. |
2975 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
2976 | (elf_symfile_read): Delete unused variable. | |
2977 | ||
2978 | * coffread.c (coff_symfile_read): Delete unused variables. | |
2979 | ||
2980 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
2981 | (read_pe_exported_syms): Delete unused variable. | |
2982 | ||
2983 | * stabsread.c (define_symbol): Delete unused variable. | |
2984 | ||
2985 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
2986 | (process_psymtab_comp_unit): Delete unused variable. | |
2987 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
2988 | (load_partial_comp_unit): Delete unused variable. | |
2989 | (create_all_comp_units): Delete unused variable. | |
2990 | (scan_partial_symbols): Delete unused variable. | |
2991 | (add_partial_symbol): Delete unused variable. | |
2992 | (add_partial_namespace): Delete unused variable. | |
2993 | (add_partial_enumeration): Delete unused variable. | |
2994 | (load_full_comp_unit): Delete unused variable. | |
2995 | (process_full_comp_unit): Delete unused variable. | |
2996 | (read_file_scope): Delete unused variable. | |
2997 | (read_type_unit_scope): Delete unused variable. | |
2998 | (process_structure_scope): Delete unused variable. | |
2999 | (process_enumeration_scope): Delete unused variable. | |
3000 | (read_tag_ptr_to_member_type): Delete unused variable. | |
3001 | (read_typedef): Delete unused variable. | |
3002 | (read_partial_die): Delete unused variable. | |
3003 | (decode_locdesc): Delete unused variable. | |
3004 | (zeroed_partial_die): Delete unused global variable. | |
3005 | ||
0407b3f1 | 3006 | * tui/tui-interp.c (_initialize_tui_interp): |
0043e6a5 | 3007 | Delete unused variable. |
0407b3f1 | 3008 | * tui/tui-regs.c tui_display_registers_from): |
0043e6a5 MS |
3009 | Delete unused variable. |
3010 | (tui_check_register_values): Delete unused variable. | |
3011 | (tui_register_format): Delete unused variable. | |
3012 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
0407b3f1 | 3013 | * tui/tui-windata.c (tui_display_data_from_line): |
0043e6a5 MS |
3014 | Delete unused variables. |
3015 | (tui_vertical_data_scroll): Delete unused variables. | |
3016 | ||
75721c66 MS |
3017 | 2010-05-05 Michael Snyder <[email protected]> |
3018 | ||
c31a71f4 MS |
3019 | * remote.c (remote_threads_info): Revert questionable part of |
3020 | the previous change. | |
3021 | ||
3022 | 2010-05-05 Michael Snyder <[email protected]> | |
3023 | ||
3024 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
3025 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
3026 | (mi_cmd_var_list_children): Delete unused variable. | |
3027 | (varobj_update_one): Delete unused variable. | |
3028 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
0407b3f1 | 3029 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): |
c31a71f4 MS |
3030 | Delete unused variable. |
3031 | (mi_cmd_stack_list_variables): Delete unused variable. | |
3032 | (list_args_or_locals): Delete unused variable. | |
0407b3f1 | 3033 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): |
c31a71f4 MS |
3034 | Delete unused variables. |
3035 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
0407b3f1 | 3036 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): |
c31a71f4 MS |
3037 | Delete unused variable. |
3038 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
3039 | (mi_cmd_interpreter_exec): Delete unused variable. | |
3040 | (mi_on_normal_stop): Delete unused variable. | |
3041 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
3042 | (print_one_inferior): Delete unused variables. | |
3043 | (mi_execute_command): Delete unused variable. | |
3044 | (mi_cmd_execute): Delete unused variable. | |
3045 | (timestamp): Delete unused variable. | |
3046 | ||
3047 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 3048 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
3049 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
3050 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
3051 | (recurse_read_control_structure): Delete unused variable. |
3052 | (script_from_file): Delete unused variable. | |
c31a71f4 | 3053 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
3054 | (disassemble_command): Delete unused variable. |
3055 | ||
3056 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
0407b3f1 | 3057 | * tracepoint.c (delete_trace_variable_command): |
d36fc00b MS |
3058 | Delete unused variables. |
3059 | (encode_actions_1): Delete unused variables. | |
3060 | (start_tracing): Delete unused variable. | |
3061 | (trace_status_mi): Delete unused variable. | |
3062 | (tfind_1): Delete unused variable. | |
3063 | (trace_find_pc_command): Delete unused variable. | |
3064 | (trace_find_line_command): Delete unused variables. | |
3065 | (trace_find_range_command): Delete unused variables. | |
3066 | (trace_find_outside_command): Delete unused variables. | |
3067 | (parse_tracepoint_definition): Delete unused variables. | |
3068 | (tfile_fetch_registers): Delete unused variable. | |
3069 | ||
9128a503 MS |
3070 | * dcache.c (dcache_init): Delete unused variable. |
3071 | (dcache_info): Delete unused variable. | |
3072 | ||
aa369b55 | 3073 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 3074 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
3075 | (remote_get_trace_status): Delete unused variables. |
3076 | ||
9e9547e4 MS |
3077 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
3078 | (thread_from_lwp): Delete unused variable. | |
3079 | (enable_thread_event_reporting): Delete unused variable. | |
3080 | (check_for_thread_db): Delete unused variables. | |
3081 | (thread_db_find_new_threads_2): Delete unused variable. | |
0407b3f1 | 3082 | |
9e9547e4 MS |
3083 | * linux-fork.c (info_checkpoints_command): Delete unused variables. |
3084 | (checkpoint_command): Delete unused variable. | |
3085 | (linux_fork_context): Delete unused variables. | |
3086 | ||
fa238c03 | 3087 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
3088 | (linux_tracefork_child): Delete unused variable. |
3089 | (linux_child_follow_fork): Delete unused variable. | |
3090 | (linux_nat_detach): Delete unused variable. | |
3091 | (linux_handle_extended_wait): Delete unused variable. | |
3092 | (linux_nat_has_pending_sigint): Delete unused variable. | |
3093 | (linux_nat_find_memory_regions): Delete unused variable. | |
3094 | (linux_nat_make_corefile_notes): Delete unused variables. | |
3095 | (linux_nat_info_proc_cmd): Delete unused variable. | |
3096 | (linux_proc_pending_signals): Delete unused variable. | |
3097 | (linux_nat_stop_lwp): Delete unused variables. | |
3098 | (_initialize_linux_nat): Delete unused variable. | |
3099 | ||
fa238c03 | 3100 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 3101 | |
0407b3f1 | 3102 | * linux-record.c (record_linux_system_call): |
e0f069a3 MS |
3103 | Delete unused variables. |
3104 | ||
789d24f0 MS |
3105 | * corelow.c (core_xfer_partial): Delete unused variables. |
3106 | ||
1cd337a5 | 3107 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
0407b3f1 | 3108 | (svr4_solib_create_inferior_hook): Add ifdef around |
1cd337a5 MS |
3109 | conditionally-used variable declarations. |
3110 | ||
b00e3f56 MS |
3111 | * solib.c (solib_find): Delete unused variable. |
3112 | (free_so_symbols): Delete unused variable. | |
3113 | (info_sharedlibrary_command): Delete unused variable. | |
3114 | (reload_shared_libraries_1): Delete unused variable. | |
3115 | (_initialize_solib): Delete unused variable. | |
3116 | ||
90f62196 MS |
3117 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
3118 | (i386_collect_xstateregset): Delete unused variable. | |
3119 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
3120 | ||
75721c66 MS |
3121 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
3122 | Delete unused variable 'type'. | |
3123 | ||
af33db37 JB |
3124 | 2010-05-05 Joel Brobecker <[email protected]> |
3125 | ||
90f62196 | 3126 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
3127 | ada-lang.c: Remove comment mentioning these macros. |
3128 | * m2-exp.y: Delete commented out code. | |
af33db37 | 3129 | |
0497f5b0 JB |
3130 | 2010-05-05 Joel Brobecker <[email protected]> |
3131 | ||
3132 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
3133 | for array types. | |
3134 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
3135 | ||
6e39997a PM |
3136 | 2010-05-04 Pierre Muller <[email protected]> |
3137 | ||
3138 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
0407b3f1 | 3139 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove |
6e39997a PM |
3140 | ATTRIBUTE_UNUSED. |
3141 | (cleanup_kernel_helper_return): Likewise. | |
3142 | * arm-tdep.c (copy_unmodified): Likewise. | |
3143 | (copy_preload): Likewise. | |
3144 | (copy_copro_load_store): Likewise. | |
3145 | (cleanup_branch): Likewise. | |
3146 | (copy_b_bl_blx): Likewise. | |
3147 | (copy_bx_blx_reg): Likewise. | |
3148 | (copy_alu_imm): Likewise. | |
3149 | (copy_alu_reg): Likewise. | |
3150 | (copy_alu_shifted_reg): Likewise. | |
3151 | (cleanup_load): Likewise. | |
3152 | (cleanup_store): Likewise. | |
3153 | (cleanup_block_load_pc): Likewise. | |
3154 | (cleanup_svc): Likewise. | |
3155 | (copy_undef): Likewise. | |
3156 | (copy_unpred): Likewise. | |
3157 | * remote.c (register_remote_support_xml): Likewise. | |
3158 | ||
1412f70b HZ |
3159 | 2010-05-05 Hui Zhu <[email protected]> |
3160 | ||
3161 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
3162 | ||
c4f7c687 MK |
3163 | 2010-05-04 Mark Kettenis <[email protected]> |
3164 | ||
3165 | * remote.c (register_remote_support_xml) | |
3166 | (remote_query_supported_append, remote_query_supported): Add cast | |
3167 | to NULL used as sentinel. | |
3168 | * tracepoint.c (tvariables_info_1): Likewise. | |
3169 | * utils.c (add_internal_problem_command): Likewise. | |
3170 | ||
63b4f126 MGD |
3171 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
3172 | ||
3173 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
3174 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
3175 | registers gracefully. | |
3176 | ||
2f1bdd26 MGD |
3177 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
3178 | ||
0407b3f1 | 3179 | * exec.c (print_section_info): Display entry point without arch |
2f1bdd26 MGD |
3180 | specific parts. |
3181 | ||
e1c34c5d PM |
3182 | 2010-05-04 Pierre Muller <[email protected]> |
3183 | ||
3184 | PR exp/11349. | |
3185 | * printcmd.c (x_command): Only dereference once implicitly for | |
3186 | TYPE_CODE_REF. | |
3187 | ||
ae462839 DE |
3188 | 2010-05-03 Doug Evans <[email protected]> |
3189 | ||
3190 | * event-loop.c (gdb_timer): Delete unused global. | |
3191 | (create_timer): Update. | |
3192 | ||
1ac77ea1 JK |
3193 | 2010-05-03 Jan Kratochvil <[email protected]> |
3194 | ||
3195 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
3196 | CURRENT->DECLARATION case. | |
3197 | * cp-support.h (struct using_direct): Provide extended comment. | |
3198 | ||
7c54a108 MK |
3199 | 2010-05-03 Mark Kettenis <[email protected]> |
3200 | ||
3201 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
3202 | HPPABSD_SIZEOF_GREGS. | |
3203 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
3204 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
3205 | (hppaobsd_supply_fpregset): New function. | |
3206 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
3207 | (hppaobsd_fpregset): New variable. | |
3208 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
3209 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
3210 | ||
278582cb PM |
3211 | 2010-05-03 Pierre Muller <[email protected]> |
3212 | ||
3213 | PR pascal/11349. | |
3214 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
3215 | type code TYPE_CODE_REF. | |
0407b3f1 | 3216 | |
f0223081 PA |
3217 | 2010-05-03 Pedro Alves <[email protected]> |
3218 | ||
3219 | * remote.c (remote_notice_signals): New. | |
3220 | (remote_start_remote): In non-stop mode, update the remote end on | |
3221 | which signals it can silently pass. | |
3222 | (init_remote_ops): Install remote_notice_signals. | |
3223 | ||
c25c4a8b JK |
3224 | 2010-05-02 Jan Kratochvil <[email protected]> |
3225 | ||
3226 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
3227 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
3228 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3229 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
3230 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
3231 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
3232 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3233 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
3234 | (throw_vfatal, throw_error): Remove NORETURN. | |
3235 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3236 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
3237 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
3238 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
3239 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
3240 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
3241 | NORETURN. | |
3242 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
3243 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
3244 | ATTRIBUTE_NORETURN. | |
3245 | * target.c (tcomplain): Likewise. | |
3246 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
3247 | ATTRIBUTE_NORETURN. | |
3248 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
3249 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
3250 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
3251 | ATTRIBUTE_NORETURN. | |
3252 | ||
a0b31db1 JK |
3253 | 2010-05-02 Jan Kratochvil <[email protected]> |
3254 | ||
3255 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3256 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
3257 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
3258 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3259 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
3260 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3261 | * complaints.h (complaint, internal_complaint): Likewise. | |
3262 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
3263 | (ATTR_FORMAT): Remove. | |
3264 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
3265 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
3266 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
3267 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
3268 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
3269 | (internal_error, internal_vwarning, internal_warning, warning) | |
3270 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
3271 | * disasm.c (fprintf_disasm): Likewise. | |
3272 | * exceptions.c (throw_it): Likewise. | |
3273 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
3274 | (throw_error): Likewise. | |
3275 | * language.h (type_error, range_error): Likewise. | |
3276 | * linespec.c (cplusplus_error): Likewise. | |
3277 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
3278 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
3279 | * monitor.c (monitor_debug): Likewise. | |
3280 | * parser-defs.h (parser_fprintf): Likewise. | |
3281 | * serial.h (serial_printf): Likewise. | |
3282 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
3283 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
3284 | (uo_message): Likewise. | |
3285 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
3286 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
3287 | Likewise. | |
3288 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
3289 | ||
02a45ac0 PA |
3290 | 2010-05-02 Pedro Alves <[email protected]> |
3291 | ||
3292 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
3293 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
3294 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
3295 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
3296 | Delete forward declarations. | |
3297 | (cli_ui_out_impl): Move below the callbacks. | |
3298 | (_initialize_cli_out): Delete. | |
3299 | ||
1915ef4f PA |
3300 | 2010-05-02 Pedro Alves <[email protected]> |
3301 | ||
3302 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
3303 | ||
0dfb946f JK |
3304 | 2010-05-02 Jan Kratochvil <[email protected]> |
3305 | ||
3306 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
3307 | ||
4d533103 PA |
3308 | 2010-05-01 Pedro Alves <[email protected]> |
3309 | ||
3310 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
3311 | the thread that got the event before handling the event. | |
3312 | ||
705b5767 TT |
3313 | 2010-04-30 Tom Tromey <[email protected]> |
3314 | ||
3315 | * symtab.c (symbol_set_names): Fix typo. | |
3316 | ||
3c0ee1a4 PM |
3317 | 2010-04-30 Pierre Muller <[email protected]> |
3318 | ||
3319 | * python/py-param.c (parm_constants): Avoid ARI warning | |
3320 | by adding ARI comment. | |
3321 | (parmpy_init): Likewise. | |
3322 | ||
ea1fae46 PM |
3323 | 2010-04-30 Pierre Muller <[email protected]> |
3324 | ||
3325 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
3326 | and created type for re-use. | |
3327 | ||
c24d0242 PM |
3328 | 2010-04-30 Pierre Muller <[email protected]> |
3329 | ||
3330 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
3331 | ||
a26d8d11 DE |
3332 | 2010-04-29 Doug Evans <[email protected]> |
3333 | ||
3334 | * ser-base.h (reschedule): Delete prototype. | |
3335 | * ser-base.c (reschedule): Make static. | |
3336 | ||
f8624c62 MGD |
3337 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
3338 | ||
3339 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
3340 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
0407b3f1 | 3341 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for |
f8624c62 | 3342 | EABI. |
0407b3f1 | 3343 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in |
f8624c62 MGD |
3344 | use. |
3345 | ||
e66408ed PA |
3346 | 2010-04-29 Pedro Alves <[email protected]> |
3347 | ||
3348 | PR gdb/11557 | |
3349 | ||
3350 | * regcache.c (registers_changed): Rename to ... | |
3351 | (registers_changed_ptid): ... this, and only delete register cache | |
3352 | entries matching the ptid filter argument. | |
3353 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
3354 | * regcache.h (registers_changed_ptid): Declare. | |
3355 | * target.c (target_resume): Flush register caches. | |
3356 | ||
d7b32ed3 | 3357 | 2010-04-29 Phil Muldoon <[email protected]> |
0407b3f1 AS |
3358 | Tom Tromey <[email protected]> |
3359 | Thiago Jung Bauermann <[email protected]> | |
3360 | ||
3361 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
3362 | (SUBDIR_PYTHON_SRCS): Likewise. | |
3363 | (py-parameter.o): New rule. | |
3364 | * python/py-parameter.c: New file. | |
3365 | * python/python-internal.h (gdbpy_initialize_parameter) | |
3366 | (gdbpy_parameter, gdbpy_parameter_value) | |
3367 | (gdbpy_parse_command_name): Declare. | |
3368 | * python/py-cmd.c (parse_command_name): Rename to | |
3369 | gdbpy_parse_command_name. | |
3370 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
3371 | use over cmdlist. | |
3372 | (cmdpy_init): Use gdbpy_parse_command_name. | |
3373 | * python/python.c (parameter_to_python): Rename to | |
3374 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
3375 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
3376 | (_initialize_python): Call gdbpy_initialize_parameters. | |
d7b32ed3 | 3377 | |
ce72ce41 MGD |
3378 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
3379 | ||
3380 | * MAINTAINERS: Add myself for write after approval privileges. | |
3381 | ||
6aecb9c2 JB |
3382 | 2010-04-29 Mihail Zenkov <[email protected]> |
3383 | ||
3384 | D language support. | |
3385 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
3386 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
3387 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
3388 | * NEWS: Mention D language support. | |
3389 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
3390 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
3391 | * d-lang.c: New file. | |
3392 | * d-lang.h: New file. | |
3393 | * d-valprint.c: New file. | |
3394 | * defs.h (enum language): Add language_d. | |
3395 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
3396 | * language.c (binop_result_type, integral_type, character_type) | |
3397 | (string_type, boolean_type, structured_type): Add language_d. | |
3398 | * symfile.c (init_filename_language_table): Add language_d. | |
3399 | * symtab.c: Include d-lang.h. | |
3400 | (symbol_init_language_specific, symbol_find_demangled_name) | |
3401 | (symbol_natural_name, lookup_symbol_in_language) | |
3402 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
3403 | ||
6f992fbf JB |
3404 | 2010-04-27 Joel Brobecker <[email protected]> |
3405 | ||
3406 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
3407 | ||
dde59185 JB |
3408 | 2010-04-27 Joel Brobecker <[email protected]> |
3409 | ||
3410 | * symfile.c (init_filename_language_table): Register .dg files | |
3411 | with language_ada. | |
3412 | ||
d09ce91e JB |
3413 | 2010-04-27 Joel Brobecker <[email protected]> |
3414 | ||
3415 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
3416 | field. | |
3417 | ||
67f1675e JB |
3418 | 2010-04-27 Pedro Alves <[email protected]> |
3419 | Tristan Gingold <[email protected]> | |
02aeec7b JB |
3420 | |
3421 | * symfile.c (reread_symbols): Also search for file in libraries. | |
3422 | Update comment. | |
3423 | ||
dfd0fe27 JB |
3424 | 2010-04-27 Joel Brobecker <[email protected]> |
3425 | ||
3426 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
3427 | in terms of configuration. | |
3428 | ||
0133421a JK |
3429 | 2010-04-27 Jan Kratochvil <[email protected]> |
3430 | ||
3431 | * objfiles.c: Include solist.h. | |
3432 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
3433 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
3434 | and no_shared_libraries. | |
3435 | ||
e78f4312 JB |
3436 | 2010-04-27 Joel Brobecker <[email protected]> |
3437 | ||
3438 | ARI warning fix. | |
3439 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
3440 | new-line in i18n string. | |
3441 | ||
9214d371 DE |
3442 | 2010-04-26 Doug Evans <[email protected]> |
3443 | ||
3444 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
3445 | ||
3f172e24 TT |
3446 | 2010-04-26 Tom Tromey <[email protected]> |
3447 | ||
3448 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
3449 | command list. | |
3450 | ||
e790e06e PM |
3451 | 2010-04-26 Pierre Muller <[email protected]> |
3452 | ||
3453 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
3454 | * config/i386/nm-i386sol2.h: Remove file. | |
3455 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
3456 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
3457 | * config/djgpp/fnchange.lst: Remove reference to that file. |
3458 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 3459 | |
b7da9e9f PM |
3460 | 2010-04-26 Pierre Muller <[email protected]> |
3461 | ||
3462 | PR breakpoints/11531. | |
3463 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
3464 | macro definition and related comment. | |
3465 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
3466 | (resume): Remove code and comment related to this macro. | |
3467 | ||
72f6eb52 JK |
3468 | 2010-04-26 Jan Kratochvil <[email protected]> |
3469 | ||
3470 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
3471 | Fix whitespace. | |
3472 | ||
ab38a727 PA |
3473 | 2010-04-24 Pedro Alves <[email protected]> |
3474 | ||
3475 | * defs.h: Adjust comment. | |
3476 | * filesystem.h, filesystem.c: New files. | |
3477 | * Makefile.in (SFILES): Add filesystem.c. | |
3478 | (COMMON_OBS): Add filesystem.o. | |
3479 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
3480 | different target and host path flavours. | |
3481 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
3482 | has_dos_based_file_system on the gdbarch. | |
3483 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
3484 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
3485 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
3486 | * gdbarch.sh (has_dos_based_file_system): New. | |
3487 | * gdbarch.h, gdbarch.c: Regenerate. | |
3488 | * NEWS: Mention improved support for remote targets with DOS-based | |
3489 | filesystems. Mention new `set/show target-file-system-kind' | |
3490 | commands. | |
3491 | ||
35c9c7ba SS |
3492 | 2010-04-23 Stan Shebs <[email protected]> |
3493 | ||
3494 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
3495 | comments. | |
3496 | (struct agent_reqs): Remove. | |
3497 | (ax_reg_mask): Declare. | |
3498 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
3499 | (free_agent_expr): Free reg_mask. | |
3500 | (ax_print): Add scope and register mask info. | |
3501 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
3502 | fields, and move part of register mask computation to... | |
3503 | (ax_reg_mask): New function. | |
3504 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
3505 | (gen_traced_pop): Ditto. | |
3506 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
3507 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
3508 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
3509 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
3510 | (agent_command): Call ax_reqs. | |
3511 | (agent_eval_command): Ditto. | |
3512 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
3513 | (validate_action_line): Ditto. | |
3514 | (collect_symbol): Ditto. | |
3515 | (encode_actions_1): Ditto. | |
3516 | ||
492928e4 JK |
3517 | 2010-04-23 Daniel Jacobowitz <[email protected]> |
3518 | Paul Pluzhnikov <[email protected]> | |
3519 | Jan Kratochvil <[email protected]> | |
3520 | ||
3521 | Fix deadlock on looped list of loaded shared objects. | |
3522 | * solib-svr4.c (LM_PREV): New function. | |
3523 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
3524 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
3525 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
3526 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
3527 | ||
66d09542 DE |
3528 | 2010-04-23 Doug Evans <[email protected]> |
3529 | ||
88a1906b DE |
3530 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
3531 | python. | |
3532 | * configure: Regenerate. | |
3533 | * main.c: #include "python/python.h". | |
3534 | (captured_main): Defer loading auto-loaded scripts until after | |
3535 | local_gdbinit has been sourced. | |
3536 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
3537 | (load_auto_scripts_for_objfile): New function. | |
3538 | (auto_load_new_objfile): Call it. | |
3539 | * python/python.h (gdbpy_global_auto_load): Declare. | |
3540 | (load_auto_scripts_for_objfile): Declare. | |
3541 | ||
66d09542 DE |
3542 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
3543 | * NEWS: Add entry for .debug_gdb_scripts. | |
3544 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
3545 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
3546 | (py-auto-load.o): New rule. | |
3547 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
3548 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
3549 | * python/py-auto-load.c: New file. | |
3550 | * python/python-internal.h: #include <stdio.h>. | |
3551 | (set_python_list, show_python_list): Declare. | |
3552 | (gdbpy_initialize_auto_load): Declare. | |
3553 | (source_python_script_for_objfile): Declare. | |
3554 | * python/python.c: Remove #include of observer.h. | |
3555 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
3556 | (GDBPY_AUTO_FILENAME): Ditto. | |
3557 | (gdbpy_new_objfile): Delete. | |
3558 | (source_python_script_for_objfile): New function. | |
3559 | (set_python_list, show_python_list): Make externally visible. | |
3560 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
3561 | and observer_attach_new_objfile to py-auto-load.c. | |
3562 | ||
3a48e6ff | 3563 | 2010-04-23 Jerome Guitton <[email protected]> |
0407b3f1 | 3564 | |
3a48e6ff JG |
3565 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) |
3566 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
3567 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
3568 | New constants. | |
3569 | (alpha_heuristic_analyze_probing_loop): New function. | |
3570 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
3571 | and handle cases when a stack probe loop is generated. | |
3572 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
3573 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
3574 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
3575 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
3576 | Return 0 when the maximum debuggable frame size has been exceeded. | |
3577 | ||
e4166a49 JB |
3578 | 2010-04-23 Joel Brobecker <[email protected]> |
3579 | ||
3580 | Fix ARI warning. | |
3581 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
3582 | ||
8bd10a10 CM |
3583 | 2010-04-20 Chris Moller <[email protected]> |
3584 | ||
3585 | PR 10179 | |
3586 | ||
3587 | * symtab.c (rbreak_command): Added code to include a filename | |
3588 | specification in the rbreak argument. | |
3589 | * NEWS: Added a brief description of filename-qualified rbreak. | |
3590 | ||
c0201579 JK |
3591 | 2010-04-22 Jan Kratochvil <[email protected]> |
3592 | ||
3593 | Fix crashes on dangling display expressions. | |
3594 | * ada-lang.c (ada_operator_check): New function. | |
3595 | (ada_exp_descriptor): Fill-in the field operator_check. | |
3596 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
3597 | * jv-lang.c (exp_descriptor_java): Likewise. | |
3598 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
3599 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
3600 | * parse.c (exp_descriptor_standard): Likewise. | |
3601 | (operator_check_standard): New function. | |
3602 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
3603 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
3604 | (operator_check_standard, exp_uses_objfile): New declarations. | |
3605 | * printcmd.c: Remove the inclusion of solib.h. | |
3606 | (display_uses_solib_p): Remove the function. | |
3607 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
3608 | and exp_uses_objfile instead of display_uses_solib_p. | |
3609 | * solist.h (struct so_list) <objfile>: New comment. | |
3610 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
3611 | * symtab.h (lookup_objfile_from_block): New declaration. | |
3612 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
3613 | ||
6ffbb7ab TJB |
3614 | 2010-04-22 Sergio Durigan Junior <[email protected]> |
3615 | Thiago Jung Bauermann <[email protected]> | |
3616 | ||
3617 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
3618 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
3619 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
3620 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
3621 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
3622 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
3623 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
3624 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
3625 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
3626 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
3627 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
3628 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
3629 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
3630 | Define, in case <ptrace.h> doesn't provide it. | |
3631 | (booke_debug_info): New variable. | |
3632 | (max_slots_number): Ditto. | |
3633 | (hw_break_tuple): New struct. | |
3634 | (thread_points): Ditto. | |
3635 | (ppc_threads): New variable. | |
3636 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
3637 | (have_ptrace_new_debug_booke): New function. | |
3638 | (ppc_linux_check_watch_resources): Renamed to ... | |
3639 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
3640 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
3641 | (booke_cmp_hw_point): New function. | |
3642 | (booke_find_thread_points_by_tid): Ditto. | |
3643 | (booke_insert_point): Ditto. | |
3644 | (booke_remove_point): Ditto. | |
3645 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
3646 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
3647 | (get_trigger_type): Ditto. | |
3648 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
3649 | (ppc_linux_remove_watchpoint): Ditto. | |
3650 | (ppc_linux_new_thread): Ditto. | |
3651 | (ppc_linux_thread_exit): New function.. | |
3652 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
3653 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
3654 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
3655 | to_remove_hw_breakpoint fields of the target operations struct. | |
3656 | Add observe for the thread_exit event. | |
3657 | ||
be0d2954 L |
3658 | 2010-04-22 H.J. Lu <[email protected]> |
3659 | ||
3660 | * i386-linux-nat.c (regmap): Removed. | |
3661 | (fetch_register): Replace regmap with | |
3662 | i386_linux_gregset_reg_offset. | |
3663 | (store_register): Likewise. | |
3664 | (supply_gregset): Likewise. | |
3665 | (fill_gregset): Likewise. | |
3666 | ||
3667 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
3668 | global. | |
3669 | ||
3670 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
3671 | ||
f56dcb88 CM |
3672 | 2010-04-22 Chris Moller <[email protected]> |
3673 | ||
3674 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
3675 | method of popping recursion-detection stack with a method based on |
3676 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
3677 | the static array obstack rather than the static member obstack.) |
3678 | ||
6cd6a2ae L |
3679 | 2010-04-22 H.J. Lu <[email protected]> |
3680 | ||
3681 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
3682 | (_initialize_amd64_linux_nat): Replace | |
3683 | amd64_linux_gregset64_reg_offset with | |
3684 | amd64_linux_gregset_reg_offset. | |
3685 | ||
3686 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
3687 | global. | |
3688 | ||
3689 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
3690 | ||
621791b8 PM |
3691 | 2010-04-22 Pierre Muller <[email protected]> |
3692 | ||
3693 | PR stabs/11479. | |
3694 | * stabsread.c (set_length_in_type_chain): New function. | |
3695 | (read_struct_type): Call set_length_in_type_chain function. | |
3696 | (read_enum_type): Idem. | |
3697 | ||
105c2d85 SS |
3698 | 2010-04-21 Stan Shebs <[email protected]> |
3699 | Nathan Sidwell <[email protected]> | |
3700 | ||
3701 | * tracepoint.c (trace_save): Open in binary mode. | |
3702 | ||
9a22f0d0 PM |
3703 | 2010-04-22 Pierre Muller <[email protected]> |
3704 | ||
3705 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
3706 | fields. | |
0407b3f1 | 3707 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and |
9a22f0d0 PM |
3708 | builtin_char32 fields. |
3709 | * printcmd.c (decode_format): Set char size to '\0' | |
3710 | for strings unless explicit size is given. | |
3711 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
3712 | for 16 or 32 bit strings. | |
3713 | (do_examine): Do not force byte size for strings. | |
3714 | Use builtin_char16 and builtin_char32 types to display | |
0407b3f1 | 3715 | 16 or 32 bit-wide strings. |
9a22f0d0 PM |
3716 | (x_command): Set LAST_SIZE to 'b' for string type. |
3717 | ||
f335d1b3 L |
3718 | 2010-04-21 H.J. Lu <[email protected]> |
3719 | ||
3720 | PR corefiles/11523 | |
3721 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
3722 | XCR0 first. | |
3723 | ||
3724 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
3725 | there is no .reg-xstate section. | |
3726 | (i386_linux_core_read_description): Check XCR0 first. | |
3727 | ||
a9789a6b MF |
3728 | 2010-04-21 Mike Frysinger <[email protected]> |
3729 | ||
3730 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
3731 | for len <= 8. | |
3732 | ||
0b66f317 CM |
3733 | 2010-04-21 Chris Moller <[email protected]> |
3734 | ||
3735 | PR 9167 | |
3736 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
3737 | method of popping recursion-detection stack with a method based on |
3738 | obstack_object_size(). | |
0b66f317 | 3739 | |
6e354e5e PM |
3740 | 2010-04-21 Pierre Muller <[email protected]> |
3741 | ||
3742 | PR pascal/11492. | |
3743 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
3744 | arrays. | |
3745 | ||
57174f31 PM |
3746 | 2010-04-21 Pierre Muller <[email protected]> |
3747 | ||
3748 | Fix compilation warning on gcc-4.1.2. | |
3749 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
3750 | local variable`pc' to zero. | |
3751 | ||
6fbc7cd8 JB |
3752 | 2010-04-20 Joel Brobecker <[email protected]> |
3753 | ||
3754 | Implement thread support with core files on alpha-tru64. | |
3755 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
3756 | extracted from resync_thread_list. | |
3757 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
3758 | code by call to dec_thread_find_new_threads. | |
3759 | (dec_thread_wait): Update call to resync_thread_list. | |
3760 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
3761 | ||
438c98a1 JB |
3762 | 2010-04-20 Joel Brobecker <[email protected]> |
3763 | ||
3764 | * ada-lang.c (value_pointer): New function. | |
3765 | (make_array_descriptor): Call value_pointer to convert addresses to | |
3766 | pointers. | |
3767 | ||
2971b56b JB |
3768 | 2010-04-20 Joel Brobecker <[email protected]> |
3769 | ||
3770 | * rs6000-aix-tdep.c: #include exceptions.h. | |
3771 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
3772 | while reading the memory at ADDR, then ADDR cannot be a function | |
3773 | descriptor. | |
3774 | ||
be942545 JB |
3775 | 2010-04-20 Joel Brobecker <[email protected]> |
3776 | ||
3777 | * ada-typeprint.c (ada_print_typedef): New function. | |
3778 | * ada-lang.h (ada_print_typedef): Add declaration. | |
3779 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
3780 | to ada_print_typedef. | |
3781 | ||
1ca8fce0 JB |
3782 | 2010-04-20 Joel Brobecker <[email protected]> |
3783 | ||
3784 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
3785 | ||
e9ef4f39 JB |
3786 | 2010-04-20 Joel Brobecker <[email protected]> |
3787 | ||
3788 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
3789 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
3790 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
3791 | Adjust accordingly. | |
3792 | ||
e294797a JB |
3793 | 2010-04-20 Joel Brobecker <[email protected]> |
3794 | ||
3795 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
3796 | a compiler warning. | |
3797 | ||
a223f1e7 JB |
3798 | 2010-04-20 Joel Brobecker <[email protected]> |
3799 | ||
3800 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
3801 | these functions down to define them only when used. | |
3802 | ||
0c3acc09 JB |
3803 | 2010-04-20 Joel Brobecker <[email protected]> |
3804 | ||
3805 | * valprint.c (common_val_print): Fix the value before extracting | |
3806 | its contents. | |
3807 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
3808 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
3809 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
3810 | to avoid code duplication and fix a bug in the handling of | |
3811 | fixed types contents. | |
3812 | ||
31ef98ae TT |
3813 | 2010-04-20 Tom Tromey <[email protected]> |
3814 | ||
3815 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
3816 | (read_partial_die): Likewise. | |
3817 | (dwarf_attr_name): Likewise. | |
3818 | ||
ec31cde5 | 3819 | 2010-04-20 Chris Moller <[email protected]> |
0407b3f1 | 3820 | |
ec31cde5 CM |
3821 | PR 10867 |
3822 | ||
3823 | * cp-valprint.c (global): Adding new static array recursion | |
3824 | detection obstack. | |
3825 | (cp_print_value_fields, cp_print_static_field): Added new static | |
3826 | array recursion detection code. | |
3827 | ||
e0e0e543 MK |
3828 | 2010-04-20 Mark Kettenis <[email protected]> |
3829 | ||
3830 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
3831 | general-purpose register set should be 68 instead of 144. | |
3832 | (i386_linux_sse_regset_sections): Likewise. | |
3833 | (i386_linux_avx_regset_sections): Likewise. | |
3834 | ||
08922a10 SS |
3835 | 2010-04-20 Stan Shebs <[email protected]> |
3836 | Nathan Sidwell <[email protected]> | |
3837 | ||
3838 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
3839 | (dwarf2_tracepoint_var_loc): New function. | |
3840 | (dwarf2_tracepoint_var_access): New function. | |
3841 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
3842 | with DW_OP_piece. | |
3843 | (locexpr_describe_location_piece): New function. | |
3844 | (locexpr_describe_location_1): New function. | |
3845 | (locexpr_describe_location): Call it, update signature. | |
3846 | (loclist_describe_location): Rewrite to loop over locations, | |
3847 | update signature. | |
3848 | * symtab.h (struct symbol_computed_ops): Add address to | |
3849 | describe_location arguments, return void. | |
3850 | * printcmd.c (address_info): Get context PC, pass to computed | |
3851 | location description. | |
3852 | * tracepoint.c (scope_info): Ditto. | |
3853 | * ax-gdb.c (trace_kludge): Export. | |
3854 | ||
2dc7f7b3 TT |
3855 | 2010-04-20 Tom Tromey <[email protected]> |
3856 | ||
3857 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
3858 | (struct dwarf2_cie) <segment_size>: New field. | |
3859 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
3860 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
3861 | DW_FORM_exprloc. | |
3862 | (read_attribute_value): Handle DW_FORM_flag_present, | |
3863 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
3864 | (dump_die_shallow): Likewise. | |
3865 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
3866 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
3867 | (attr_form_is_block): Likewise. | |
3868 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
3869 | (dwarf_decode_line_header): Set new field. | |
3870 | (dwarf_decode_lines): Handle new field. | |
3871 | ||
ce4b0682 SDJ |
3872 | 2010-04-20 Jan Kratochvil <[email protected]> |
3873 | ||
3874 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
3875 | (LOGICAL_S8_KEYWORD): New token. | |
3876 | * f-lang.c (enum f_primitive_types) | |
3877 | <f_primitive_type_logical_s8>: New field. | |
3878 | (f_language_arch_info): Handling `logical*8' type. | |
3879 | (build_fortran_types): Building `logical*8' type. | |
3880 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
3881 | ||
ff9f22f1 DE |
3882 | 2010-04-19 Doug Evans <[email protected]> |
3883 | ||
3884 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
3885 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
3886 | (pipe_close): Ditto. | |
3887 | ||
437125bd PM |
3888 | 2010-04-19 Pierre Muller <[email protected]> |
3889 | ||
3890 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
3891 | ||
e8e6c82e PM |
3892 | 2010-04-19 Pierre Muller <[email protected]> |
3893 | ||
3894 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
3895 | type to void function. | |
3896 | ||
4136fdd2 SS |
3897 | 2010-04-19 Stan Shebs <[email protected]> |
3898 | Vladimir Prus <[email protected]> | |
3899 | ||
3900 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
3901 | tfind mode as such. | |
3902 | * target.c (update_current_target): Make default | |
3903 | to_trace_find return -1. | |
3904 | ||
0c4b2e63 MF |
3905 | 2010-04-19 Mike Frysinger <[email protected]> |
3906 | ||
3907 | * objc-lang.c (find_methods): Move symname check up. | |
3908 | ||
78076abc PA |
3909 | 2010-04-19 Pedro Alves <[email protected]> |
3910 | ||
3911 | * ada-lang.c (print_recreate_exception) | |
3912 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
3913 | not "catch unhandled". | |
3914 | ||
6149aea9 PA |
3915 | 2010-04-19 Pedro Alves <[email protected]> |
3916 | ||
3917 | PR breakpoints/8554. | |
3918 | ||
3919 | Implement `save-breakpoints'. | |
3920 | ||
3921 | * breakpoint.c (save_cmdlist): New. | |
3922 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
3923 | to save_cmdlist. | |
3924 | (print_recreate_catch_fork): New. | |
3925 | (catch_fork_breakpoint_ops): Install it. | |
3926 | (print_recreate_catch_vfork): New. | |
3927 | (catch_vfork_breakpoint_ops): Install it. | |
3928 | (print_recreate_catch_syscall): New. | |
3929 | (catch_syscall_breakpoint_ops): Install it. | |
3930 | (print_recreate_catch_exec): New. | |
3931 | (catch_exec_breakpoint_ops): Install it. | |
3932 | (print_recreate_exception_catchpoint): New. | |
3933 | (gnu_v3_exception_catchpoint_ops): Install it. | |
3934 | (save_breakpoints): New, based on tracepoint_save_command, but | |
3935 | handle all breakpoint types. | |
3936 | (save_breakpoints_command): New. | |
3937 | (tracepoint_save_command): Rename to... | |
3938 | (save_tracepoints_command): ... this, and reimplement using | |
3939 | save_breakpoints. | |
3940 | (save_command): New. | |
3941 | (_initialize_breakpoints): Install the "save" command prefix. | |
3942 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
3943 | deprecated alias for "save tracepoints". | |
3944 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
3945 | * ada-lang.c (print_recreate_exception): New. | |
3946 | (print_recreate_catch_exception): New. | |
3947 | (catch_exception_breakpoint_ops): Install it. | |
3948 | (print_recreate_catch_exception_unhandled): New. | |
3949 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
3950 | (print_recreate_catch_assert): New. | |
3951 | (catch_assert_breakpoint_ops): Install it. | |
3952 | ||
3953 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
3954 | new `save tracepoints' alias and that `save-tracepoints' is now | |
3955 | deprecated. | |
3956 | ||
0a8fce9a PA |
3957 | 2010-04-18 Pedro Alves <[email protected]> |
3958 | ||
3959 | PR tui/9217 | |
3960 | ||
3961 | * tui/tui-out.c: Include cli-out.h. | |
3962 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
3963 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
3964 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
3965 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
3966 | declarations. | |
3967 | (struct ui_out_data): Rename to... | |
3968 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
3969 | `suppress_output' fields, and inherit cli_ui_out_data. | |
3970 | (tui_out_data): New typedef. | |
3971 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
3972 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
3973 | (tui_begin, tui_end): Delete. | |
3974 | (tui_field_int): Adjust to delegate most work to the base type. | |
3975 | (tui_field_skip): Delete. | |
3976 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
3977 | delegate most work to the base type. | |
3978 | (tui_spaces): Delete. | |
3979 | (tui_text): Adjust to delegate most work to the base type. | |
3980 | (tui_message): Delete. | |
3981 | (tui_wrap_hint): Delete. | |
3982 | (tui_flush): Delete. | |
3983 | (out_field_fmt): Delete. | |
3984 | (field_separator): Delete. | |
3985 | (tui_out_new): Adjust to initialize the base type. | |
3986 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
3987 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
3988 | cli_ui_out_data. | |
3989 | (cli_out_data): Adjust. | |
3990 | (cli_ui_out_impl): Make extern. | |
3991 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
3992 | uo_field_string instead of cli_field_string. | |
3993 | (cli_redirect): Adjust to use cli_out_data. | |
3994 | (cli_out_data_ctor): New. | |
3995 | (cli_out_new): Use it. | |
3996 | * cli-out.h (struct ui_file): Remove forward declaration. | |
3997 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
3998 | (cli_ui_out_impl): Declare. | |
3999 | (cli_out_data_ctor): Declare. | |
4000 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
4001 | (uo_field_string): No longer static. | |
4002 | (ui_out_data): Change return type to void pointer. | |
4003 | (ui_out_new): Change `data' parameter type to void pointer. | |
4004 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
4005 | (ui_out_data): Change return type to void pointer. | |
4006 | (ui_out_new): Change `data' parameter type to void pointer. | |
4007 | (uo_field_string): Declare. | |
4008 | ||
172240dd PA |
4009 | 2010-04-17 Pedro Alves <[email protected]> |
4010 | ||
4011 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
4012 | instead of always false. | |
4013 | ||
ed41462c L |
4014 | 2010-04-17 H.J. Lu <[email protected]> |
4015 | ||
4016 | PR corefiles/11511 | |
4017 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
4018 | orig_rax. | |
4019 | ||
cc60f2e3 PA |
4020 | 2010-04-17 Pedro Alves <[email protected]> |
4021 | ||
4022 | * breakpoint.c (watchpoints_triggered): Use | |
4023 | is_hardware_watchpoint. | |
4024 | (watchpoints_triggered): Ditto. | |
4025 | (bpstat_check_location): Use is_watchpoint and | |
4026 | is_hardware_watchpoint. | |
4027 | (bpstat_check_watchpoint): Use is_watchpoint and | |
4028 | is_hardware_watchpoint. | |
4029 | (bpstat_stop_status): Fix comment. | |
4030 | (user_settable_breakpoint): Use is_watchpoint. | |
4031 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
4032 | (disable_watchpoints_before_interactive_call_start): Use | |
4033 | is_watchpoint. | |
4034 | (enable_watchpoints_after_interactive_call_stop): Use | |
4035 | is_watchpoint. | |
4036 | (clear_command): Use is_watchpoint. | |
4037 | (do_enable_breakpoint): Use is_watchpoint. | |
4038 | ||
cb7db0f2 MF |
4039 | 2010-04-16 Mike Frysinger <[email protected]> |
4040 | ||
4041 | * solib-frv.c (enable_break1_done): Delete. | |
4042 | (enable_break2): Do not check enable_break1_done. Move the | |
4043 | enable_break2_done setting and call to | |
4044 | remove_solib_event_breakpoints() to the end. Return without | |
4045 | warning when the contents of _dl_debug_addr are 0. | |
4046 | (enable_break): Do not set enable_break1_done. | |
4047 | (frv_clear_solib): Likewise. | |
4048 | ||
d77b48cf KB |
4049 | 2010-04-16 Kevin Buettner <[email protected]> |
4050 | ||
4051 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
4052 | instead of an error if no PLT entry is found. Return a | |
4053 | potentially useful result. | |
4054 | (m32c_m16c_pointer_to_address): Add code to search for function | |
4055 | address when no .plt entry is found. | |
4056 | ||
f90824dc SS |
4057 | 2010-04-16 Stan Shebs <[email protected]> |
4058 | ||
4059 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
4060 | ||
9b79b476 PM |
4061 | 2010-04-16 Pierre Muller <[email protected]> |
4062 | ||
4063 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
4064 | ||
711e434b PM |
4065 | 2010-04-16 Pierre Muller <[email protected]> |
4066 | ||
4067 | Support for Windows OS Thread Information Block. | |
4068 | * NEWS: Document new feature. | |
4069 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
4070 | (remote_get_tib_address): New function. | |
4071 | (init_remote_ops): Set to_get_tib_address field | |
4072 | to remote_get_tib_address. | |
4073 | (_initialize_remote): Add add_packet_config_cmd | |
4074 | for PACKET_qGetTIBAddr. | |
4075 | * target.c (update_current_target): Set default value for | |
4076 | new to_get_tib_address field. | |
4077 | * target.h (target_ops): New field to_get_tib_address. | |
4078 | (target_get_tib_address): New macro. | |
4079 | * windows-nat.c (thread_info): Add thread_local_base field. | |
4080 | (windows_add_thread): Add tlb argument of type 'void *'. | |
4081 | (fake_create_process): Adapt windows_add_thread call. | |
4082 | (get_windows_debug_event): Idem. | |
4083 | (windows_get_tib_address): New function. | |
4084 | (init_windows_ops): Set to_get_tib_address field | |
4085 | to remote_get_tib_address. | |
4086 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
4087 | initialization by a call to init_w32_command_list. | |
4088 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
4089 | to windows-tdep.c file. | |
4090 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
0407b3f1 | 4091 | (init_w32_command_list): New external function |
711e434b PM |
4092 | declaration. |
4093 | * windows-tdep.c: Add several headers. | |
4094 | (info_w32_cmdlist): to here, made global. | |
4095 | (thread_information_32): New struct. | |
4096 | (thread_information_64): New struct. | |
4097 | (TIB_NAME): New char array. | |
4098 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
4099 | (maint_display_all_tib): New static variable. | |
4100 | (windows_get_tlb_type): New function. | |
4101 | (tlb_value_read, tlb_value_write): New functions. | |
4102 | (tlb_value_funcs): New static struct. | |
4103 | (tlb_make_value): New function. | |
4104 | (display_one_tib): New function. | |
4105 | (display_tib): New function. | |
4106 | (show_maint_show_all_tib):New function. | |
4107 | (info_w32_command): Moved from windows-nat.c. | |
4108 | (init_w32_command_list): New function. | |
4109 | (_initialize_windows_tdep): New function. | |
4110 | New "maint set/show show-all-tib" command | |
4111 | New "$_tlb" internal variable. | |
4112 | ||
cae3f17b JB |
4113 | 2010-04-16 Joel Brobecker <[email protected]> |
4114 | ||
4115 | * tui/tui-regs.c (tui_display_register): Add comment about | |
4116 | a couple of casts. | |
4117 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
4118 | ||
2ce6d6bf SS |
4119 | 2010-04-15 Stan Shebs <[email protected]> |
4120 | ||
4121 | * frame.c: Include tracepoint.h. | |
4122 | (get_current_frame): Allow a trace frame to be an alternate source | |
4123 | of stack frame data. | |
4124 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
4125 | it won't succeed. | |
4126 | ||
7e559477 PA |
4127 | 2010-04-15 Pedro Alves <[email protected]> |
4128 | ||
4129 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
4130 | flags. | |
4131 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
4132 | ||
3f7b2faa DE |
4133 | 2010-04-15 Doug Evans <[email protected]> |
4134 | ||
fa33c3cd DE |
4135 | * NEWS: Add entry for python program space support. |
4136 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
4137 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
4138 | (py-progspace.o): New rule. | |
4139 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
4140 | function. | |
4141 | (find_pretty_printer_from_progspace): New function. | |
4142 | (find_pretty_printer_from_gdb): New function. | |
4143 | (find_pretty_printer): Rewrite. | |
4144 | * python/py-progspace.c: New file. | |
4145 | * python/python-internal.h (program_space): Add forward decl. | |
4146 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
4147 | (gdbpy_initialize_pspace): Declare. | |
4148 | * python/python.c: #include "progspace.h". | |
4149 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
4150 | (_initialize_python): Call gdbpy_initialize_pspace. | |
4151 | (GdbMethods): Add current_progspace, progspaces. | |
4152 | ||
3f7b2faa DE |
4153 | Add -s option to source command. |
4154 | * NEWS: Document new option. | |
4155 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
4156 | Delete from_tty and cleanupp args. Split filep arg into file and | |
4157 | full_pathp. New arg search_path. | |
4158 | (source_script_from_stream): New function. | |
4159 | (source_script_with_search): New function. | |
4160 | (source_script): Rewrite. | |
4161 | (source_command): Parse "-s" option. | |
4162 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
4163 | * python/python.c (source_python_script): Make file arg a const char *. | |
4164 | Don't call fclose, leave for caller. | |
4165 | * python/python.h (source_python_script): Update. | |
4166 | ||
a86988f2 PA |
4167 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
4168 | Pedro Alves <[email protected]> | |
4169 | ||
4170 | Avoid rereading shared libraries that haven't changed. | |
4171 | ||
4172 | * solib.c (free_so_symbols): New function, from ... | |
4173 | (free_so): ... here. Call it. | |
4174 | (solib_read_symbols): Don't warn here if symbols have already been | |
4175 | loaded. | |
4176 | (solib_add): Warn here instead, if a pattern was specified. | |
4177 | (reload_shared_libraries_1): New. | |
4178 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
4179 | ||
e6d9b9c2 DE |
4180 | 2010-04-14 Doug Evans <[email protected]> |
4181 | ||
589390d6 | 4182 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
4183 | concatenating string to search path. |
4184 | ||
516ba659 PA |
4185 | 2010-04-14 Pedro Alves <[email protected]> |
4186 | ||
4187 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
4188 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
4189 | * corelow.c: Include objfiles.h | |
4190 | (core_close): Use gdb_bfd_close_or_warn. | |
4191 | * elfread.c (build_id_verify): Ditto. | |
4192 | * exec.c (exec_close, exec_close_1): Ditto. | |
4193 | ||
048d532d PA |
4194 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
4195 | Pedro Alves <[email protected]> | |
4196 | ||
4197 | Group errors for many missing shared libraries. | |
4198 | ||
4199 | * solist.h (struct so_list): Remove from_tty. | |
4200 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
4201 | (solib_map_sections): Take so_list argument. Return 0 if we | |
4202 | failed to open a BFD. Add target sections here. | |
4203 | (symbol_add_stub): Delete. | |
4204 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
4205 | not from_tty copied from the so_list. Don't warn a second time | |
4206 | for a missing library. | |
4207 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
4208 | add to the section table here. Print out a single warning for all | |
4209 | missing libraries. | |
4210 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
4211 | flags. | |
4212 | ||
044c0f87 PM |
4213 | 2010-04-14 Phil Muldoon <[email protected]> |
4214 | ||
4215 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
4216 | error/warning messages. Capitalize and use complete sentences. | |
4217 | (blpy_block_syms_iternext): Likewise. | |
4218 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
4219 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
4220 | (frame_info_to_frame_object, frapy_read_var) | |
4221 | (gdbpy_frame_stop_reason_string): Likewise. | |
4222 | * python/py-lazy-string.c (stpy_convert_to_value) | |
4223 | (gdbpy_create_lazy_string_object): Likewise. | |
4224 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
4225 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
4226 | * python/python.c (parameter_to_python): Likewise. | |
4227 | * python/py-type.c (typy_range, typy_target): Likewise. | |
4228 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
4229 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
4230 | ||
4231 | ||
79f283fe PM |
4232 | 2010-04-14 Phil Muldoon <[email protected]> |
4233 | ||
4234 | PR python/11381 | |
4235 | ||
4236 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
4237 | Py_None. | |
4238 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
4239 | Return value depending on return type. | |
4240 | (print_children): Take a value indicating whether data was printed | |
4241 | before this function was called. Alter output accordingly. | |
4242 | (apply_val_pretty_printer): Capture return value from | |
4243 | print_string_repr and pass to print_children. | |
4244 | ||
4ac5d44e MK |
4245 | 2010-04-13 Mark Kettenis <[email protected]> |
4246 | ||
e1caee70 | 4247 | PR corefiles/11481 |
4ac5d44e MK |
4248 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
4249 | register note sections. | |
4250 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
4251 | New variables. | |
4252 | (i386_linux_init_abi): Install list of supported register note | |
4253 | sections that matches the target description. | |
4254 | ||
ad91cd99 PA |
4255 | 2010-04-13 Pedro Alves <[email protected]> |
4256 | ||
4257 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
4258 | replies. | |
4259 | (remote_start_remote): Update and merge tracepoints and trace | |
4260 | state variables as long as the target supports tracepoints. | |
4261 | (remote_trace_init): Fix prototype. | |
4262 | (remote_download_trace_state_variable): Validate reply. | |
4263 | (remote_trace_set_readonly_regions): Fix prototype. | |
4264 | (remote_trace_start): Fix prototype. Check for empty reply. | |
4265 | (remote_get_trace_status): Small cleanup. | |
4266 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
4267 | (remote_trace_find): Check for empty reply. | |
4268 | (remote_save_trace_data): Validate reply. | |
4269 | (remote_set_disconnected_tracing): Check for empty reply, and | |
4270 | validate reply. | |
4271 | (remote_set_circular_trace_buffer): Ditto. | |
4272 | ||
ae3bccd4 PM |
4273 | 2010-04-13 Pierre Muller <[email protected]> |
4274 | ||
4275 | Suppress unused value warning during compilation. | |
4276 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
4277 | calls to void. | |
4278 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
4279 | ||
523136f2 SS |
4280 | 2010-04-12 Stan Shebs <[email protected]> |
4281 | ||
4282 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
4283 | ||
0d18d720 MF |
4284 | 2010-04-12 Mike Frysinger <[email protected]> |
4285 | ||
4286 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
4287 | * remote-sim.c (gdbsim_files_info): Likewise. | |
4288 | ||
3b273a55 RE |
4289 | 2010-04-12 Matthew Gretton-Dann <[email protected]> |
4290 | ||
4291 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
4292 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
4293 | variable. | |
4294 | (fetch_vfp_registers): New function to fetch VFP registers. | |
4295 | (store_vfp_registers): New function to store VFP registers. | |
4296 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
4297 | registers. | |
4298 | (arm_linux_store_inferior_registers): Likewise. | |
4299 | (arm_linux_read_description): Likewise. | |
4300 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
4301 | until we need it. | |
4302 | ||
778c7095 L |
4303 | 2010-04-11 H.J. Lu <[email protected]> |
4304 | ||
4305 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
4306 | tdep. | |
4307 | (amd64_collect_xstateregset): Likewise. | |
4308 | ||
2114d44c SS |
4309 | 2010-04-09 Stan Shebs <[email protected]> |
4310 | ||
87290684 SS |
4311 | * tracepoint.c (trace_status_mi): Report frames created. |
4312 | ||
2114d44c SS |
4313 | * tracepoint.c (trace_dump_command): Include default-collect |
4314 | expressions. | |
4315 | ||
86da934b UW |
4316 | 2010-04-09 Ulrich Weigand <[email protected]> |
4317 | ||
4318 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
4319 | before function start address, even if line info is missing. | |
4320 | ||
2d6e647a | 4321 | 2010-04-09 Pedro Alves <[email protected]> |
d337e9f0 PA |
4322 | |
4323 | * NEWS: Mention tracepoints support. | |
4324 | ||
a97153c7 PA |
4325 | 2010-04-09 Pedro Alves <[email protected]> |
4326 | ||
4327 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
4328 | circular trace buffer statuses. | |
4329 | ||
7a66d603 JK |
4330 | 2010-04-09 Jan Kratochvil <[email protected]> |
4331 | ||
4332 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
4333 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
4334 | ||
2566ad2d PA |
4335 | 2010-04-09 Pedro Alves <[email protected]> |
4336 | ||
4337 | * breakpoint.c (condition_command): Pass condition expression to | |
4338 | set_breakpoint_condition stripped from breakpoint number. | |
4339 | ||
adc36818 PM |
4340 | 2010-04-09 Phil Muldoon <[email protected]> |
4341 | Thiago Jung Bauermann <[email protected]> | |
2566ad2d | 4342 | Tom Tromey <[email protected]> |
adc36818 PM |
4343 | |
4344 | * breakpoint.c (condition_command): Simplify. Move condition | |
4345 | setting code to ... | |
4346 | (set_breakpoint_condition): ... here. New function. | |
4347 | * breakpoint.h (set_breakpoint_condition): Declare. | |
4348 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
4349 | (SUBDIR_PYTHON_SRCS): Likewise. | |
4350 | (py-breakpoint.o): New rule. | |
4351 | * python/py-breakpoint.c: New file. | |
4352 | * python/python-internal.h (gdbpy_breakpoints) | |
4353 | (gdbpy_initialize_breakpoints): Declare. | |
4354 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
4355 | ||
219f2f23 PA |
4356 | 2010-04-09 Pedro Alves <[email protected]> |
4357 | ||
4358 | * regformats/regdat.sh: Include server.h. Don't include | |
4359 | regcache.h. | |
4360 | ||
33da3f1c SS |
4361 | 2010-04-08 Stan Shebs <[email protected]> |
4362 | Pedro Alves <[email protected]> | |
4363 | ||
4364 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
4365 | and circular_buffer. | |
4366 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
4367 | * tracepoint.c (trace_status_command): Display target's status for | |
4368 | disconnected tracing and circular buffer. | |
4369 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
4370 | query for non-disconnected-tracing case, remove the stop_tracing | |
4371 | call. | |
4372 | (tfile_open): Clear disconnected and circular buffer status. | |
4373 | (trace_save): Save disconnected and circular buffer status. | |
4374 | (parse_trace_status): Parse disconnected and circular buffer status, | |
4375 | also recognize disconnected as a stop reason. | |
4376 | * remote.c (remote_set_disconnected_tracing): Only set | |
4377 | QTDisconnected if the remote end supports disconnected tracing. | |
4378 | Warn otherwise, if trying to enable disconnected tracing. | |
4379 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
4380 | * cli/cli-cmds.c (quit_command): Ditto. | |
4381 | ||
4e4d8374 L |
4382 | 2010-04-08 H.J. Lu <[email protected]> |
4383 | ||
4384 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
4385 | internal_error. | |
4386 | ||
ad443146 SS |
4387 | 2010-04-08 Stan Shebs <[email protected]> |
4388 | ||
4389 | * breakpoint.c (default_collect_info): New function. | |
4390 | (breakpoints_info): Call it. | |
4391 | (maintenance_info_breakpoints): Ditto. | |
4392 | (tracepoints_info): Ditto. | |
4393 | ||
40936b0d L |
4394 | 2010-04-08 H.J. Lu <[email protected]> |
4395 | ||
4396 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
4397 | ||
3a13a53b L |
4398 | 2010-04-08 H.J. Lu <[email protected]> |
4399 | ||
4400 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
4401 | if HAVE_PTRACE_GETFPXREGS is defined. | |
4402 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
4403 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
4404 | ||
4405 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
4406 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
4407 | if .reg-xfp section doesn't exist. | |
4408 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
4409 | ||
4410 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
4411 | ||
4412 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
4413 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
4414 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
4415 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
4416 | (i386_gdbarch_init): Update comments. | |
4417 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
4418 | ||
4419 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
4420 | ||
4421 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
4422 | ||
4423 | * features/Makefile (i386/i386-mmx-expedite): New. | |
4424 | (i386/i386-mmx-linux-expedite): Likewise. | |
4425 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
4426 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
4427 | ||
4428 | * features/i386/i386-mmx-linux.c: New. | |
4429 | * features/i386/i386-mmx-linux.xml: Likewise. | |
4430 | * features/i386/i386-mmx.c: Likewise. | |
4431 | * features/i386/i386-mmx.xml: Likewise. | |
4432 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
4433 | * regformats/i386/i386-mmx.dat: Likewise. | |
4434 | ||
4435 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
4436 | i386/i386-mmx-linux. | |
4437 | ||
08001717 DE |
4438 | 2010-04-08 Doug Evans <[email protected]> |
4439 | ||
4440 | * source.c (openp): Skip $cdir in PATH. | |
4441 | ||
fff5cc64 PM |
4442 | 2010-04-08 Phil Muldoon <[email protected]> |
4443 | ||
4444 | PR python/11417 | |
fff5cc64 | 4445 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
4446 | a NULL address. |
4447 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
4448 | address and a zero length. | |
fff5cc64 | 4449 | |
f8c4f480 HZ |
4450 | 2010-04-08 Hui Zhu <[email protected]> |
4451 | ||
4452 | * i386-tdep.c (i386_process_record): Add support for insn | |
4453 | rdtsc. | |
4454 | ||
eb5cda86 DE |
4455 | 2010-04-07 Doug Evans <[email protected]> |
4456 | ||
4457 | * python/python.c (source_python_script): Use ensure_python_env | |
4458 | to prepare environment for script. | |
4459 | ||
a055a187 L |
4460 | 2010-04-07 H.J. Lu <[email protected]> |
4461 | ||
4462 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
4463 | <sys/uio.h> and "i386-xstate.h". | |
4464 | (PTRACE_GETREGSET): New. | |
4465 | (PTRACE_SETREGSET): Likewise. | |
4466 | (have_ptrace_getregset): Likewise. | |
4467 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
4468 | registers. | |
4469 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
4470 | registers. | |
4471 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
4472 | (amd64_linux_store_inferior_registers): Likewise. | |
4473 | (amd64_linux_read_description): Check and enable AVX target | |
4474 | descriptions. | |
4475 | ||
4476 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
4477 | and "features/i386/amd64-avx-linux.c". | |
4478 | (amd64_linux_regset_sections): New. | |
4479 | (amd64_linux_core_read_description): Check and enable AVX | |
4480 | target description. | |
4481 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
4482 | set_gdbarch_core_regset_sections. | |
4483 | (_initialize_amd64_linux_tdep): Call | |
4484 | initialize_tdesc_amd64_avx_linux. | |
4485 | ||
4486 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
4487 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
4488 | (tdesc_amd64_avx_linux): New. | |
4489 | (amd64_linux_update_xstateregset): Likewise. | |
4490 | ||
4491 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
4492 | (amd64_ymm_names): New. | |
4493 | (amd64_ymmh_names): Likewise. | |
4494 | (amd64_register_name): Likewise. | |
4495 | (amd64_supply_xstateregset): Likewise. | |
4496 | (amd64_collect_xstateregset): Likewise. | |
4497 | (amd64_supply_xsave): Likewise. | |
4498 | (amd64_collect_xsave): Likewise. | |
4499 | (AMD64_NUM_REGS): Removed. | |
4500 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
4501 | %xmmN if AVX is available. | |
4502 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
4503 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
4504 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
4505 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
4506 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
4507 | ||
4508 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
4509 | AMD64_YMM15H_REGNUM. | |
4510 | (AMD64_NUM_REGS): New. | |
4511 | (amd64_supply_xsave): Likewise. | |
4512 | (amd64_collect_xsave): Likewise. | |
4513 | (amd64_register_name): Removed. | |
4514 | (amd64_register_type): Likewise. | |
4515 | ||
31aeac78 L |
4516 | 2010-04-07 H.J. Lu <[email protected]> |
4517 | ||
4518 | * i387-tdep.c: Include "i386-xstate.h". | |
4519 | (XSAVE_XSTATE_BV_ADDR): New. | |
4520 | (xsave_avxh_offset): Likewise. | |
4521 | (XSAVE_AVXH_ADDR): Likewise. | |
4522 | (i387_supply_xsave): Likewise. | |
4523 | (i387_collect_xsave): Likewise. | |
4524 | ||
4525 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
4526 | (I387_YMM0H_REGNUM): Likewise. | |
4527 | (I387_YMMENDH_REGNUM): Likewise. | |
4528 | (i387_supply_xsave): Likewise. | |
4529 | (i387_collect_xsave): Likewise. | |
4530 | ||
c131fcee L |
4531 | 2010-04-07 H.J. Lu <[email protected]> |
4532 | ||
4533 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
4534 | <sys/uio.h> and "i386-xstate.h". | |
4535 | (PTRACE_GETREGSET): New. | |
4536 | (PTRACE_SETREGSET): Likewise. | |
4537 | (fetch_xstateregs): Likewise. | |
4538 | (store_xstateregs): Likewise. | |
4539 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
4540 | (regmap): Include 8 upper YMM registers. | |
4541 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
4542 | state. | |
4543 | (i386_linux_store_inferior_registers): Likewise. | |
4544 | (i386_linux_read_description): Check and enable AVX target | |
4545 | descriptions. | |
4546 | ||
4547 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
4548 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
4549 | (i386_linux_regset_sections): Add ".reg-xstate". | |
4550 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
4551 | (i386_linux_core_read_xcr0): New. | |
4552 | (i386_linux_core_read_description): Check and enable AVX target | |
4553 | description. | |
4554 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
4555 | (_initialize_i386_linux_tdep): Call | |
4556 | initialize_tdesc_i386_avx_linux. | |
4557 | ||
4558 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
4559 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
4560 | (i386_linux_core_read_xcr0): New. | |
4561 | (tdesc_i386_avx_linux): Likewise. | |
4562 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
4563 | ||
4564 | * i386-tdep.c: Include "i386-xstate.h" and | |
4565 | "features/i386/i386-avx.c". | |
4566 | (i386_ymm_names): New. | |
4567 | (i386_ymmh_names): Likewise. | |
4568 | (i386_ymmh_regnum_p): Likewise. | |
4569 | (i386_ymm_regnum_p): Likewise. | |
4570 | (i386_xmm_regnum_p): Likewise. | |
4571 | (i386_register_name): Likewise. | |
4572 | (i386_ymm_type): Likewise. | |
4573 | (i386_supply_xstateregset): Likewise. | |
4574 | (i386_collect_xstateregset): Likewise. | |
4575 | (i386_sse_regnum_p): Removed. | |
4576 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
4577 | (i386_pseudo_register_type): Likewise. | |
4578 | (i386_pseudo_register_read): Likewise. | |
4579 | (i386_pseudo_register_write): Likewise. | |
4580 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
4581 | %xmmN if AVX is available. | |
4582 | (i386_regset_from_core_section): Support .reg-xstate section. | |
4583 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
4584 | (i386_process_record): Replace i386_sse_regnum_p with | |
4585 | i386_xmm_regnum_p. | |
4586 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
4587 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 4588 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
4589 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
4590 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
4591 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
4592 | Set ymm0_regnum. | |
4593 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
4594 | ||
4595 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
4596 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
4597 | i386_ymm_type. | |
4598 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
4599 | (I386_AVX_NUM_REGS): New. | |
4600 | (i386_xmm_regnum_p): Likewise. | |
4601 | (i386_ymm_regnum_p): Likewise. | |
4602 | (i386_ymmh_regnum_p): Likewise. | |
4603 | ||
4604 | * common/i386-xstate.h: New. | |
4605 | ||
98adf0f3 L |
4606 | 2010-04-07 H.J. Lu <[email protected]> |
4607 | ||
4608 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
4609 | ||
4610 | * features/Makefile (WHICH): Add i386/i386-avx, | |
4611 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
4612 | (i386/i386-avx-expedite): New. | |
4613 | (i386/i386-avx-linux-expedite): Likewise. | |
4614 | (i386/x86-64-avx-expedite):Likewise. | |
4615 | (i386/x86-64-avx-linux-expedite): Likewise. | |
4616 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
4617 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
4618 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
4619 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
4620 | ||
4621 | * features/i386/32bit-avx.xml: New. | |
4622 | * features/i386/64bit-avx.xml: Likewise. | |
4623 | * features/i386/i386-avx-linux.c: Likewise. | |
4624 | * features/i386/i386-avx-linux.xml: Likewise. | |
4625 | * features/i386/i386-avx.c: Likewise. | |
4626 | * features/i386/i386-avx.xml: Likewise. | |
4627 | * features/i386/x86-64-avx-linux.c: Likewise. | |
4628 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
4629 | * features/i386/x86-64-avx.c: Likewise. | |
4630 | * features/i386/x86-64-avx.xml: Likewise. | |
4631 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
4632 | * regformats/i386/i386-avx.dat: Likewise. | |
4633 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
4634 | * regformats/i386/x86-64-avx.dat: Likewise. | |
4635 | ||
05159abe DE |
4636 | 2010-04-07 Doug Evans <[email protected]> |
4637 | ||
4638 | * top.c (source_file_name): Make const char *. | |
4639 | * top.h (source_file_name): Update. | |
4640 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
4641 | const char *. | |
4642 | (script_from_file): Change `file' arg to const char *. | |
4643 | * cli/cli-script.h (script_from_file): Update. | |
4644 | ||
96e39866 DE |
4645 | 2010-04-06 Doug Evans <[email protected]> |
4646 | ||
4647 | * cli/cli-cmds.c (source_command): Run cleanups. | |
4648 | ||
3149d8c1 SS |
4649 | 2010-04-06 Stan Shebs <[email protected]> |
4650 | ||
4651 | * defs.h (char_ptr): Move typedef here from... | |
4652 | * ada-lang.c (char_ptr): Remove. | |
4653 | * charset.c (char_ptr): Remove. | |
4654 | * tracepoint.h (struct uploaded_string): Remove. | |
4655 | (struct uploaded_tp): Use vectors for string arrays. | |
4656 | * tracepoint.c (trace_save): Use vectors of actions. | |
4657 | (parse_tracepoint_definition): Ditto. | |
4658 | (get_uploaded_tp): Clear vectors. | |
4659 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
4660 | (next_cmd): Change to an int. | |
4661 | (read_next_cmd): Use vector of command strings. | |
4662 | ||
4cc23ede DE |
4663 | 2010-04-06 Doug Evans <[email protected]> |
4664 | ||
4665 | * top.h (source_script, cd_command): Delete. | |
4666 | * main.c: #include "cli/cli-cmds.h" | |
4667 | ||
bd333fb7 KB |
4668 | 2010-04-06 Kevin Buettner <[email protected]> |
4669 | ||
4670 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
4671 | type in bytes, not bits. | |
4672 | ||
ec8a089a PM |
4673 | 2010-04-06 Pierre Muller <[email protected]> |
4674 | ||
4675 | * stabsread.c (define_symbol): Add support for char | |
4676 | and string constants. | |
4677 | ||
2244ba2e PM |
4678 | 2010-04-06 Pierre Muller <[email protected]> |
4679 | ||
4680 | Remove remaining "%ll" uses. | |
4681 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
4682 | hex_string call. | |
4683 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
4684 | * solib-pa64.c (pa64_current_sos): Idem. | |
4685 | * solib-spu.c (spu_current_sos): Idem. | |
4686 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
4687 | plongest call. | |
4688 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
4689 | phex (VAR, 8) call. | |
4690 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
4691 | ||
fce3c1f0 SS |
4692 | 2010-04-05 Stan Shebs <[email protected]> |
4693 | ||
4694 | * tracepoint.c: Include gdbcore.h. | |
4695 | (tfile_xfer_partial): Return partial results, also try reading | |
4696 | from executable. | |
4697 | (tfile_has_all_memory): New function. | |
4698 | (init_tfile_ops): Use it. | |
4699 | ||
626ea16d SDJ |
4700 | 2010-04-05 Sergio Durigan Junior <[email protected]> |
4701 | ||
4702 | PR gdb/10736: | |
4703 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
4704 | the changes in data-directory. | |
4705 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
4706 | has changed. | |
4707 | ||
1f7ccab2 JK |
4708 | 2010-04-05 Jan Kratochvil <[email protected]> |
4709 | ||
4710 | Code cleanup. | |
4711 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
4712 | ||
d77f58be SS |
4713 | 2010-04-04 Stan Shebs <[email protected]> |
4714 | Nathan Sidwell <[email protected]> | |
4715 | ||
4716 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
4717 | breakpoints printed. | |
4718 | (is_hardware_watchpoint): Make argument const. | |
4719 | (is_watchpoint): Ditto. | |
4720 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
4721 | use it everywhere. | |
4722 | (breakpoints_info): Pass NULL to breakpoint_1. | |
4723 | (maintenance_info_breakpoints): Ditto. | |
4724 | (watchpoints_info): New function. | |
4725 | (tracepoints_info): Use breakpoint_1 filter. | |
4726 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
4727 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
4728 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
4729 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
4730 | ||
af54718e SS |
4731 | 2010-04-04 Stan Shebs <[email protected]> |
4732 | ||
4733 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
4734 | ||
74d1f91e JK |
4735 | 2010-04-04 Jan Kratochvil <[email protected]> |
4736 | ||
4737 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
4738 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
4739 | ||
91d91ceb JK |
4740 | 2010-04-04 Jan Kratochvil <[email protected]> |
4741 | ||
4742 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
4743 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
4744 | ||
60531b24 JK |
4745 | 2010-04-02 Jan Kratochvil <[email protected]> |
4746 | ||
4747 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
4748 | code form. | |
4749 | ||
a3c4230a HZ |
4750 | 2010-04-02 Hui Zhu <[email protected]> |
4751 | ||
4752 | * i386-tdep.c (OT_DQUAD): New enum. | |
4753 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
4754 | SSE3, SSSE3 and SSE4. | |
4755 | ||
b15758fe HZ |
4756 | 2010-04-02 Hui Zhu <[email protected]> |
4757 | ||
4758 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
4759 | "*addr = 0". | |
4760 | ||
afd02f27 PA |
4761 | 2010-04-02 Pedro Alves <[email protected]> |
4762 | ||
4763 | * tracepoint.c (trace_dump_actions): New, factored out from | |
4764 | trace_dump_command, and adjusted to recurse into while-stepping's | |
4765 | action list. | |
4766 | (trace_dump_command): Use it. | |
4767 | ||
5cea2a26 PA |
4768 | 2010-04-02 Pedro Alves <[email protected]> |
4769 | ||
4770 | * breakpoint.h (struct counted_command_line): Moved definition to | |
4771 | breakpoint.c, and forward declare. | |
4772 | (breakpoint_commands): Declare. | |
4773 | * breakpoint.c (struct counted_command_line): Moved here. | |
4774 | (breakpoint_commands): New. | |
4775 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
4776 | * remote.c (remote_download_tracepoint): Ditto. | |
4777 | ||
7c47795c L |
4778 | 2010-04-01 H.J. Lu <[email protected]> |
4779 | ||
4780 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
4781 | of phex_nz for error. | |
4782 | ||
fff87407 SS |
4783 | 2010-04-01 Stan Shebs <[email protected]> |
4784 | Nathan Sidwell <[email protected]> | |
4785 | ||
4786 | * tracepoint.h (enum actionline_type): Remove. | |
4787 | (validate_actionline): Change return to void. | |
4788 | * tracepoint.c (report_agent_reqs_errors): New function. | |
4789 | (validate_actionline): Call it, change return to void, report errors | |
4790 | more consistently. | |
4791 | (collect_symbol): Call report_agent_reqs_errors. | |
4792 | (encode_actions_1): Ditto. | |
4793 | (encode_actions): Don't expect a result from validate_actionline. | |
4794 | ||
615bcdef SS |
4795 | 2010-04-01 Stan Shebs <[email protected]> |
4796 | ||
4797 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
4798 | (trace_stop_command): Error if trace not running. | |
4799 | ||
fe01d668 L |
4800 | 2010-04-01 H.J. Lu <[email protected]> |
4801 | ||
4802 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
4803 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
4804 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
4805 | (amd64_pseudo_register_write): Likewise. | |
4806 | (amd64_init_abi): Set num_byte_regs to 20. | |
4807 | ||
86b17b60 PA |
4808 | 2010-04-01 Pedro Alves <[email protected]> |
4809 | ||
4810 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
4811 | (prev_breakpoint_count): New. | |
4812 | (set_breakpoint_count): Adjust. | |
4813 | (rbreak_start_breakpoint_count): New. | |
4814 | (start_rbreak_breakpoints): Adjust. | |
4815 | (end_rbreak_breakpoints): Adjust. | |
4816 | (struct commands_info) <arg>: New field. | |
4817 | (do_map_commands_command): Tweak output to include breakpoint spec | |
4818 | range. | |
4819 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
4820 | ARG was empty on entry. Set INFO's arg. | |
4821 | (create_breakpoint): Adjust. | |
4822 | ||
4823 | * NEWS: Clarify `commands' changes. | |
4824 | ||
2c58c0a9 PA |
4825 | 2010-04-01 Pedro Alves <[email protected]> |
4826 | ||
4827 | * tracepoint.c: Include stack.h. | |
4828 | (struct add_local_symbols_data): New. | |
4829 | (do_collect_symbol): New. | |
4830 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
4831 | iterate_over_block_local_vars. | |
4832 | * stack.c (print_block_frame_locals): Rewrite as ... | |
4833 | (iterate_over_block_locals): ... this. Take a callback function | |
4834 | pointer and generic data pointer, and call that instead of | |
4835 | print_variable_and_value. | |
4836 | (struct print_variable_and_value_data): New. | |
4837 | (do_print_variable_and_value): New. | |
4838 | (iterate_over_block_local_vars): New, abstracted out from | |
4839 | print_frame_local_vars. | |
4840 | (print_frame_local_vars): Rewrite using | |
4841 | iterate_over_block_local_vars. | |
4842 | (iterate_over_block_arg_vars): New, abstracted out from | |
4843 | print_frame_arg_vars. | |
4844 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
4845 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
4846 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
4847 | ||
d476da0e RE |
4848 | 2010-03-31 Richard Earnshaw <[email protected]> |
4849 | ||
4850 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 4851 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
4852 | PC register. |
4853 | ||
8072405b JK |
4854 | 2010-03-31 Jan Kratochvil <[email protected]> |
4855 | ||
4856 | Fix crash on reading wrong function declaration DWARF. | |
4857 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
4858 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
4859 | more close to their use. | |
4860 | ||
8bf6485c SS |
4861 | 2010-03-31 Stan Shebs <[email protected]> |
4862 | ||
4863 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 4864 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
4865 | * tracepoint.c (save_trace_state_variables): New function. |
4866 | * tracepoint.h (save_trace_state_variables): Declare it. | |
4867 | ||
2ae2a0b7 PM |
4868 | 2010-03-31 Pierre Muller <[email protected]> |
4869 | ||
1a161f72 | 4870 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 4871 | |
86ffb506 KS |
4872 | 2010-03-30 Keith Seitz <[email protected]> |
4873 | ||
4874 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
4875 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
4876 | Use the passed-in language instead of current_language. | |
4877 | (c_type_print_varspec_suffix): Use current_language instead | |
4878 | of assuming language_c. | |
4879 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
4880 | any return type specifier from the physname. | |
4881 | ||
956c2c8b PA |
4882 | 2010-03-30 Pedro Alves <[email protected]> |
4883 | ||
4884 | * tui/tui-interp.c (tui_is_toplevel): New. | |
4885 | (tui_init): Set it. | |
4886 | (tui_allowed_p): New. | |
4887 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
4888 | enabling it. | |
4889 | * tui/tui.h (tui_allowed_p): Declare. | |
4890 | ||
98e5a990 TT |
4891 | 2010-03-30 Ozkan Sezer <[email protected]> |
4892 | ||
4893 | * serial.h: Include winsock2.h before windows.h. | |
4894 | ||
c8d5aac9 L |
4895 | 2010-03-30 H.J. Lu <[email protected]> |
4896 | ||
4897 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
4898 | ||
4899 | * i386-tdep.c: Include "remote.h". | |
4900 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
4901 | ||
4902 | * remote.c (remote_support_xml): New. | |
4903 | (register_remote_support_xml): Likewise. | |
4904 | (remote_query_supported_append): Likewise. | |
4905 | (remote_query_supported): Support remote_support_xml. | |
4906 | ||
4907 | * remote.h (register_remote_support_xml): New. | |
4908 | ||
76a2b958 SS |
4909 | 2010-03-29 Stan Shebs <[email protected]> |
4910 | ||
42e08e69 SS |
4911 | * tracepoint.c (trace_find_line_command): Remove dead code. |
4912 | ||
409873ef SS |
4913 | * tracepoint.h (struct uploaded_string): New struct. |
4914 | (struct uploaded_tp): New fields for source strings. | |
4915 | * breakpoint.c (this_utp, next_cmd): New globals. | |
4916 | (read_uploaded_action): New function. | |
4917 | (create_tracepoint_from_upload): Fill in more parts | |
4918 | of a tracepoint. | |
4919 | * tracepoint.c (encode_source_string): New function. | |
4920 | (trace_save): Write out source strings, fix error checks. | |
4921 | (parse_tracepoint_definition): Add source string parsing. | |
4922 | * remote.c (PACKET_TracepointSource): New packet type. | |
4923 | (remote_download_command_source): New function. | |
4924 | (remote_download_tracepoint): Download source pieces also. | |
4925 | (_initialize_remote): Add packet config command. | |
4926 | ||
a0405854 SS |
4927 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
4928 | expression handler. | |
4929 | ||
76a2b958 SS |
4930 | * tracepoint.c (start_tracing): Check tracepoints before sending |
4931 | commands to target, don't start if all tracepoints disabled. | |
4932 | ||
d350db38 PA |
4933 | 2010-03-28 Pedro Alves <[email protected]> |
4934 | ||
12f2d601 | 4935 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 4936 | |
8b9b7ef8 SS |
4937 | 2010-03-26 Stan Shebs <[email protected]> |
4938 | ||
4939 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
4940 | ||
9766ced4 SS |
4941 | 2010-03-26 Tom Tromey <[email protected]> |
4942 | ||
4943 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
4944 | ||
059acae7 UW |
4945 | 2010-03-26 Ulrich Weigand <[email protected]> |
4946 | ||
4947 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
4948 | (skip_prologue_sal): Remove local definition. | |
4949 | (resolve_sal_pc): Remove now unnecessary code. | |
4950 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
4951 | * symtab.c (find_function_start_pc): Remove. | |
4952 | (find_function_start_sal): Extract prologue skipping into ... | |
4953 | (skip_prologue_sal): ... this new function. Handle code both | |
4954 | with and without debug info. Respect SAL's explicit_pc and | |
4955 | explicit_line flags. Inline old find_function_start_pc. | |
4956 | * symtab.h (find_function_start_pc): Remove. | |
4957 | (skip_prologue_sal): Add prototype. | |
4958 | ||
4a811a97 UW |
4959 | 2010-03-26 Ulrich Weigand <[email protected]> |
4960 | ||
4961 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
4962 | for DW_TAG_imported_module children. | |
4963 | ||
907af001 UW |
4964 | 2010-03-26 Ulrich Weigand <[email protected]> |
4965 | ||
4966 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
4967 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
4968 | * completer.c (add_struct_fields): Fix inverted logic. | |
4969 | ||
dde2d684 UW |
4970 | 2010-03-26 Ulrich Weigand <[email protected]> |
4971 | ||
4972 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
4973 | ||
a609a0c8 PA |
4974 | 2010-03-26 Pedro Alves <[email protected]> |
4975 | ||
4976 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
4977 | is non-NULL here. | |
4978 | (parse_trace_status): Release a previous error_desc string, and | |
4979 | set it to NULL by default. If stop reason is tracepoint_error, | |
4980 | make sure error_desc is not left NULL. | |
4981 | ||
610197fd PA |
4982 | 2010-03-26 Pedro Alves <[email protected]> |
4983 | ||
4984 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
4985 | description. | |
4986 | ||
99b5e152 PA |
4987 | 2010-03-26 Pedro Alves <[email protected]> |
4988 | ||
4989 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
4990 | the terror description. Don't expect an X prefix. | |
4991 | ||
6c28cbf2 SS |
4992 | 2010-03-25 Stan Shebs <[email protected]> |
4993 | ||
4994 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
4995 | (struct trace_status): New field error_desc. | |
4996 | * tracepoint.c (stop_reason_names): Add terror. | |
4997 | (current_trace_status): Ensure non-NULL error description. | |
4998 | (trace_status_command): Add error report. | |
4999 | (trace_status_mi): Ditto. | |
5000 | (trace_save): Add special case for error description. | |
5001 | (parse_trace_status): Add case for errors. | |
5002 | ||
418835cc KS |
5003 | 2010-03-25 Keith Seitz <[email protected]> |
5004 | ||
5005 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
5006 | language is Java, mark any formal parameter named "this" as | |
5007 | artificial (GCC/43521). | |
5008 | (dwarf2_name): Add special handling for Java constructors. | |
5009 | ||
aa7d318d TT |
5010 | 2010-03-25 Tom Tromey <[email protected]> |
5011 | ||
5012 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
5013 | * infrun.c (handle_inferior_event): Change initialization of | |
5014 | stop_stack_dummy. | |
5015 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
5016 | (normal_stop): Update use of stop_stack_dummy. | |
5017 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
5018 | * inferior.h (stop_stack_dummy): Update. | |
5019 | * infcmd.c (stop_stack_dummy): Change type. | |
5020 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
5021 | function. | |
5022 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
5023 | Rewrite std::terminate handling. | |
5024 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
5025 | bp_std_terminate_master>: New. | |
5026 | (enum stop_stack_kind): New. | |
5027 | (struct bpstat_what) <call_dummy>: Change type. | |
5028 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
5029 | Declare. | |
5030 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
5031 | function. | |
5032 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
5033 | Call create_std_terminate_master_breakpoint. | |
5034 | (print_it_typical): Handle new breakpoint kinds. | |
5035 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
5036 | (bpstat_what): Correctly set call_dummy field. Handle | |
5037 | bp_std_terminate_master and bp_std_terminate. | |
5038 | (print_one_breakpoint_location): Update. | |
5039 | (allocate_bp_location): Update. | |
5040 | (set_std_terminate_breakpoint): New function. | |
5041 | (delete_std_terminate_breakpoint): Likewise. | |
5042 | (create_thread_event_breakpoint): Update. | |
5043 | (delete_command): Update. | |
5044 | (breakpoint_re_set_one): Update. | |
5045 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
5046 | ||
82ccf5a5 JK |
5047 | 2010-03-25 Jan Kratochvil <[email protected]> |
5048 | ||
5049 | * symfile.c (build_section_addr_info_from_bfd): New. | |
5050 | (build_section_addr_info_from_objfile): Base it on | |
5051 | build_section_addr_info_from_bfd. | |
5052 | (addrs_section_compar, addrs_section_sort): New. | |
5053 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
5054 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
5055 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
5056 | ||
737c4c52 MS |
5057 | 2010-03-24 Michael Snyder <[email protected]> |
5058 | ||
8d95cc3b | 5059 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
5060 | Remove unused local variable. |
5061 | ||
95a42b64 TT |
5062 | 2010-03-24 Tom Tromey <[email protected]> |
5063 | ||
5064 | PR breakpoints/9352: | |
5065 | * NEWS: Mention changes to `commands' and `rbreak'. | |
5066 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
5067 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
5068 | end_rbreak_breakpoints. | |
5069 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
5070 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
5071 | (multi_start, multi_end, last_was_multi): New globals. | |
5072 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
5073 | functions. | |
5074 | (struct commands_info): New | |
5075 | (do_map_commands_command): New function. | |
5076 | (commands_command_1): New function. | |
5077 | (commands_command): Use it. | |
5078 | (commands_from_control_command): Likewise. | |
5079 | (do_delete_breakpoint): New function. | |
5080 | (delete_command): Use it. | |
5081 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
5082 | (do_map_disable_breakpoint): New function. | |
5083 | (disable_command): Use it. | |
5084 | (do_map_enable_breakpoint): New function. | |
5085 | (enable_command): Use it. | |
5086 | (enable_once_breakpoint): Add argument. | |
5087 | (enable_once_command): Update. | |
5088 | (enable_delete_breakpoint): Add argument. | |
5089 | (enable_delete_command): Update. | |
5090 | (break_command_really): Set last_was_multi when needed. | |
5091 | (check_tracepoint_command): Fix formatting. | |
5092 | (validate_commands_for_breakpoint): New function. | |
5093 | (breakpoint_set_commands): Use it. | |
5094 | (tracepoint_save_command): Update. | |
5095 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
5096 | Declare. | |
5097 | ||
9add0f1b TT |
5098 | 2010-03-24 Tom Tromey <[email protected]> |
5099 | ||
5100 | * breakpoint.h (struct counted_command_line): New struct. | |
5101 | (struct breakpoint) <commands>: Change type. | |
5102 | (struct bpstats) <commands>: Change type. | |
5103 | <commands_left>: New field. | |
5104 | * breakpoint.c (alloc_counted_command_line): New function. | |
5105 | (incref_counted_command_line): Likewise. | |
5106 | (decref_counted_command_line): Likewise. | |
5107 | (do_cleanup_counted_command_line): Likewise. | |
5108 | (make_cleanup_decref_counted_command_line): Likewise. | |
5109 | (breakpoint_set_commands): Use decref_counted_command_line and | |
5110 | alloc_counted_command_line. | |
5111 | (commands_command): Don't error if breakpoint commands are | |
5112 | executing. | |
5113 | (commands_from_control_command): Likewise. | |
5114 | (bpstat_free): Update. | |
5115 | (bpstat_copy): Likewise. | |
5116 | (bpstat_clear_actions): Likewise. | |
5117 | (bpstat_do_actions_1): Likewise. | |
5118 | (bpstat_stop_status): Likewise. | |
5119 | (print_one_breakpoint_location): Likewise. | |
5120 | (delete_breakpoint): Likewise. | |
5121 | (bpstat_alloc): Initialize new field. | |
5122 | (tracepoint_save_command): Update. | |
5123 | * tracepoint.c (encode_actions): Update. | |
5124 | (trace_dump_command): Update. | |
5125 | ||
a6c727b2 DJ |
5126 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
5127 | ||
5128 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
5129 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
5130 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
5131 | no byte size and no children. | |
5132 | (read_subroutine_type): Mark functions as prototyped by default. | |
5133 | * symtab.c (producer_is_realview): New function. | |
5134 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
5135 | (producer_is_realview): Declare. | |
5136 | ||
0d39a070 DJ |
5137 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
5138 | ||
5139 | * arm-tdep.c (skip_prologue_function): New function. | |
5140 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
5141 | (thumb_analyze_prologue): Document return value. Recognize more | |
5142 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
5143 | Add debug output. | |
5144 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
5145 | for non-GNU compilers. | |
5146 | (arm_instruction_changes_pc): New function. | |
5147 | (arm_analyze_prologue): New function, broken out from | |
5148 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
5149 | calls. Update comments. Handle NULL cache. Return the address | |
5150 | of the first unrecognized instruction. Do not skip past other | |
5151 | instructions which change control flow. Add debug output. | |
5152 | (arm_scan_prologue): Use arm_analyze_prologue. | |
5153 | (ARM_PC_32): Delete. | |
5154 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
5155 | ||
4baf5cf4 VP |
5156 | 2010-03-24 Vladimir Prus <[email protected]> |
5157 | ||
5158 | * tracepoint.c (tvariables_info_1): Actually compute | |
5159 | the number of rows in the result. | |
5160 | ||
4a5e7a5b PA |
5161 | 2010-03-24 Pedro Alves <[email protected]> |
5162 | ||
5163 | * remote.c (crc32): Constify `buf' parameter. | |
5164 | (remote_verify_memory): New, abstracted out from... | |
5165 | (compare_sections_command): ... this. Remove hardcoded target | |
5166 | checks. | |
5167 | (init_remote_ops): Install remote_verify_memory. | |
5168 | * target.c (target_verify_memory): New. | |
5169 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
5170 | (target_verify_memory): Declare. | |
5171 | ||
011aacb0 VP |
5172 | 2010-03-24 Vladimir Prus <[email protected]> |
5173 | ||
5174 | Implement -trace-save. | |
5175 | ||
5176 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
5177 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
5178 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
5179 | * remote.c (remote_save_trace_data): Take const parameter. | |
5180 | * target.h (struct target_ops::to_save_trace_data): Take | |
5181 | const parameter. | |
5182 | * target.c (update_current_target): Adjust to the above. | |
5183 | * tracepoint.c (trave_save): New, extracted from | |
5184 | (trace_save_command): ...this. | |
5185 | (tfile_trace_find): Remove message that is unnecessary now | |
5186 | that 'tfind' reports found frame. | |
5187 | * tracepoint.h (trace_save): Declare. | |
5188 | ||
f197e0f1 VP |
5189 | 2010-03-24 Vladimir Prus <[email protected]> |
5190 | ||
5191 | Implement -trace-find. | |
5192 | ||
5193 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
5194 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
5195 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
5196 | * target.h (struct target_ops): Document to_trace_find. | |
5197 | * tracepoint.h (tfind_1): Declare. | |
5198 | * tracepoint.c (finish_tfind_command): Rename to... | |
5199 | (tfind_1): ...this. | |
5200 | * remote.c (remote_trace_find): Return -1 if target say | |
5201 | there's no frame. Improve error diagnostics. | |
5202 | ||
40e1c229 VP |
5203 | 2010-03-24 Vladimir Prus <[email protected]> |
5204 | ||
5205 | -trace-define-variable and -trace-list-variables. | |
5206 | ||
5207 | * tracepoint.c (create_trace_state_variable): Make | |
5208 | private copy of name, as opposed to assuming the | |
5209 | pointer lives forever. | |
5210 | (tvariables_info_1): New. | |
5211 | (tvariables_info): Use the above. | |
5212 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
5213 | Declare. | |
5214 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
5215 | and -trace-list-variables. | |
5216 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
5217 | (mi_cmd_trace_list_variables): New. | |
5218 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
5219 | (mi_cmd_trace_list_variables): New. | |
5220 | ||
9b4c786c VP |
5221 | 2010-03-24 Vladimir Prus <[email protected]> |
5222 | ||
5223 | Implement -break-passcount. | |
5224 | ||
5225 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
5226 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
5227 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
5228 | ||
f224b49d VP |
5229 | 2010-03-24 Vladimir Prus <[email protected]> |
5230 | ||
5231 | -trace-start/-trace-end/-trace-status. | |
5232 | ||
5233 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
5234 | and -trace-stop. | |
5235 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
5236 | (mi_cmd_trace_stop): Declare. | |
5237 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
5238 | (mi_cmd_trace_stop): New. | |
5239 | * tracepoint.c (start_tracing): New, extracted from... | |
5240 | (trace_start_command): ...this. | |
5241 | (trace_status_mi): New. | |
5242 | * tracepoint.h (struct trace_status): Document | |
5243 | stopping_tracepoint. | |
5244 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
5245 | ||
6534d786 VP |
5246 | 2010-03-24 Vladimir Prus <[email protected]> |
5247 | ||
5248 | Implement creating tracepoints with -break-insert. | |
5249 | ||
5250 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
5251 | to mean that tracepoint should be created. | |
5252 | ||
51661e93 VP |
5253 | 2010-03-24 Vladimir Prus <[email protected]> |
5254 | ||
5255 | * breakpoint.c (check_no_tracepoint_commands): Use | |
5256 | current spelling of 'teval'. | |
5257 | ||
a7bdde9e VP |
5258 | 2010-03-24 Vladimir Prus <[email protected]> |
5259 | ||
5260 | Unify actions and commands | |
5261 | ||
5262 | * defs.h (read_command_lines, read_command_lines_1): New | |
5263 | parameters validator and closure. | |
5264 | * tracepoint.h (struct action_line): Remove. | |
5265 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
5266 | field. | |
5267 | * defs.h (enum command_control_type): New value | |
5268 | while_stepping_control. | |
5269 | (struct command_line): Add comments. | |
5270 | * breakpoint.c (breakoint_is_tracepoint): New. | |
5271 | (breakpoint_set_commands): For tracepoints, | |
5272 | verify the commands are permissible. | |
5273 | (check_tracepoint_commands): New. | |
5274 | (commands_command): Require that each new line is validated using | |
5275 | check_tracepoint_command, if we set commands for a tracepoint. | |
5276 | (create_tracepoint_from_upload): Likewise. | |
5277 | (print_one_breakpoint_location): Remove the code to print | |
5278 | actions specifically. | |
5279 | (tracepoint_save_command): Relay to print_command_lines. | |
5280 | * cli/cli-script.c (process_next_line): New parameters validator | |
5281 | and closure. Handle 'while-stepping'. Call validator if not null. | |
5282 | (read_command_lines, read_command_lines1): Likewise. | |
5283 | (recurse_read_control_structure): New parameters validator and | |
5284 | closure. Handle while_stepping_control. | |
5285 | (print_command_lines): Handle while-stepping. | |
5286 | (get_command_line, define_command, document_command): Adjust. | |
5287 | * remote.c (remote_download_tracepoint): Adjust. | |
5288 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
5289 | (free_actions, do_free_actions_cleanup): Remove. | |
5290 | (trace_actions_command): Use read_command_lines. | |
5291 | (validate_actionline): Use error in one place. | |
5292 | (encode_actions_1): New, extracted from... | |
5293 | (encode_actions): ...this. Also use cleanups for exception | |
5294 | safety. | |
5295 | (trace_dump_command): Adjust. | |
5296 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
5297 | it's tracepoint. | |
5298 | ||
64e3cf3d MF |
5299 | 2010-03-23 Mike Frysinger <[email protected]> |
5300 | ||
5301 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
5302 | ||
52e9fde8 SS |
5303 | 2010-03-22 Stan Shebs <[email protected]> |
5304 | ||
5305 | * value.c (value_static_field): Be lazy about the field's value. | |
5306 | ||
508ccb1f TT |
5307 | 2010-03-22 Reid Kleckner <[email protected]> |
5308 | ||
5309 | PR gdb/11094 | |
5310 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
5311 | bp_jit_event. | |
5312 | (disable_breakpoints_in_shlibs): Likewise. | |
5313 | ||
acebe513 UW |
5314 | 2010-03-22 Ulrich Weigand <[email protected]> |
5315 | ||
5316 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
5317 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
5318 | (determine_prefix): Likewise. | |
5319 | ||
957b8b5a DJ |
5320 | 2010-03-20 Daniel Jacobowitz <[email protected]> |
5321 | ||
5322 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
5323 | get_current_arch. | |
5324 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
5325 | ||
3b11a015 SS |
5326 | 2010-03-19 Stan Shebs <[email protected]> |
5327 | ||
5328 | * ax-gdb.c (gen_fetch): Handle bool. | |
5329 | (gen_usual_unary): Ditto. | |
5330 | (gen_cast): Ditto. | |
5331 | (gen_equal): New function. | |
5332 | (gen_less): New function. | |
5333 | (gen_expr_binop_rest): Call them, also return integer type from | |
5334 | logical operations. | |
5335 | (gen_expr): Ditto. | |
5336 | ||
20781792 TT |
5337 | 2010-03-19 Tom Tromey <[email protected]> |
5338 | ||
5339 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
5340 | (jv_type_objfile_data_key): New globals. | |
5341 | (class_symtab): Move earlier. | |
5342 | (jv_per_objfile_free): New function. | |
5343 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
5344 | parameter. | |
5345 | Remove ancient #if 1. | |
5346 | (add_class_symbol): Remove redundant declaration. | |
5347 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
5348 | (java_link_class_type): Mark as static. Update. | |
5349 | (jv_clear_object_type): New function. | |
5350 | (set_java_object_type): Likewise. | |
5351 | (get_java_object_type): Use set_java_object_type. | |
5352 | (is_object_type): Likewise. | |
5353 | (_initialize_java_language): Register new objfile keys. | |
5354 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
5355 | (add_class_symtab_symbol): Update. | |
5356 | (type_from_class): Update. | |
5357 | ||
cf3e25ca SS |
5358 | 2010-03-19 Stan Shebs <[email protected]> |
5359 | ||
8d95cc3b | 5360 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 5361 | |
f1ae44c9 | 5362 | 2010-03-18 Joel Brobecker <[email protected]> |
5363 | ||
5364 | GDB 7.1 released. | |
5365 | ||
4daf5ac0 SS |
5366 | 2010-03-18 Stan Shebs <[email protected]> |
5367 | Pedro Alves <[email protected]> | |
5368 | ||
5369 | * target.h (struct target_ops): New method | |
5370 | to_set_circular_trace_buffer. | |
5371 | (target_set_circular_trace_buffer): New macro. | |
5372 | * target.c (update_current_target): Add | |
5373 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
5374 | default behavior. | |
5375 | * remote.c (remote_set_circular_trace_buffer): New function. | |
5376 | (init_remote_ops): Add it to vector. | |
5377 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
5378 | change buffer_size and buffer_free to int. | |
5379 | * tracepoint.c (circular_trace_buffer): New global. | |
5380 | (start_tracing): Send values of disconnected tracing and circular | |
5381 | trace buffer settings. | |
5382 | (set_circular_trace_buffer): New function. | |
5383 | (parse_trace_state): Handle total space and frames created. | |
5384 | (trace_status_command): Display total space and total frames | |
5385 | created. | |
5386 | (trace_save): Write out new status values. | |
5387 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
5388 | buffer_free and buffer_size to -1 by default. | |
5389 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
5390 | * NEWS: Mention the circular trace buffer option. | |
5391 | ||
40c549d6 TT |
5392 | 2010-03-18 Tom Tromey <[email protected]> |
5393 | ||
5394 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
5395 | in TRY_CATCH. | |
5396 | ||
e8d05480 JB |
5397 | 2010-03-18 Joel Brobecker <[email protected]> |
5398 | ||
5399 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
5400 | DIE has a name before creating the associated partial symbol. | |
5401 | (read_func_scope): Emit a complaint if the subprogram does not | |
5402 | have a name or when we can't extract the subprogram PC bounds. | |
5403 | ||
441b986a UW |
5404 | 2010-03-18 Ulrich Weigand <[email protected]> |
5405 | ||
5406 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
5407 | instead of selected frame architecture. | |
5408 | ||
4247603b PA |
5409 | 2010-03-18 Pedro Alves <[email protected]> |
5410 | ||
5411 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
5412 | a valid selected thread, and that it is not running. | |
5413 | (advance_command): Ditto. | |
5414 | (finish_command): Ditto. | |
5415 | ||
400c6af0 SS |
5416 | 2010-03-17 Stan Shebs <[email protected]> |
5417 | ||
3a96536b SS |
5418 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
5419 | ||
573cda03 SS |
5420 | * infcall.c: Include tracepoint.h. |
5421 | (call_function_by_hand): Disallow calls in tfind mode. | |
5422 | * infcmd.c: Include tracepoint.h. | |
5423 | (ensure_not_tfind_mode): New function. | |
5424 | (continue_1): Call it. | |
5425 | (step_1) Ditto. | |
5426 | (jump_command): Ditto. | |
5427 | (signal_command): Ditto. | |
5428 | (advance_command): Ditto. | |
5429 | (until_command): Ditto. | |
5430 | (finish_command): Ditto. | |
5431 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
5432 | ||
400c6af0 SS |
5433 | * ax-gdb.h (struct axs_value): New field optimized_out. |
5434 | (gen_trace_for_var): Add gdbarch argument. | |
5435 | * ax-gdb.c (gen_trace_static_fields): New function. | |
5436 | (gen_traced_pop): Call it, add gdbarch argument. | |
5437 | (gen_trace_for_expr): Update call to it. | |
5438 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
5439 | (gen_struct_ref_recursive): Check for optimized-out value. | |
5440 | (gen_struct_elt_for_reference): Ditto. | |
5441 | (gen_static_field): Pass gdbarch instead of expression, assume | |
5442 | optimization if field not found. | |
5443 | (gen_var_ref): Set the optimized_out flag. | |
5444 | (gen_expr): Error on optimized-out variable. | |
5445 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
5446 | expressions, skip optimized-out variables with computed locations. | |
5447 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
5448 | erroring out if location expression missing. | |
5449 | (loclist_tracepoint_var_ref): Don't error out here. | |
5450 | ||
a3b2a86b TT |
5451 | 2010-03-17 Tom Tromey <[email protected]> |
5452 | ||
5453 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
5454 | DWARF data is available. | |
5455 | ||
38963c97 DJ |
5456 | 2010-03-17 Daniel Jacobowitz <[email protected]> |
5457 | ||
5458 | * symfile.c (generic_load): Reset breakpoints after loading. | |
5459 | ||
ddabfc73 TT |
5460 | 2010-03-17 Tom Tromey <[email protected]> |
5461 | ||
5462 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
5463 | ||
d8c09fb5 JK |
5464 | 2010-03-17 Jan Kratochvil <[email protected]> |
5465 | ||
5466 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
5467 | create_breakpoint call, adjust the parameters. | |
5468 | ||
bbb0eef6 JK |
5469 | 2010-03-16 Jan Kratochvil <[email protected]> |
5470 | Chandru <[email protected]> | |
5471 | ||
5472 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
5473 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
5474 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
5475 | ||
46956e39 HZ |
5476 | 2010-03-16 Holger Hans Peter Freyther <[email protected]> |
5477 | ||
5478 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
5479 | ||
b8d088ac JB |
5480 | 2010-03-16 Joel Brobecker <[email protected]> |
5481 | ||
5482 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
5483 | before doing the associated thread switch. | |
5484 | ||
322be962 DJ |
5485 | 2010-03-16 Daniel Jacobowitz <[email protected]> |
5486 | ||
5487 | * MAINTAINERS: Update my email address. | |
5488 | ||
8cdf0e15 VP |
5489 | 2010-03-16 Vladimir Prus <[email protected]> |
5490 | ||
5491 | Simplify MI breakpoint setting. | |
5492 | ||
5493 | * breakpoint.c (break_command_really): Make nonstatic and | |
5494 | rename to... | |
5495 | (create_breakpoint): ...this. Rename prior function by this name | |
5496 | to... | |
5497 | (create_breakpoint_sal): ...this. | |
5498 | (create_breakpoints): Rename to... | |
5499 | (create_breakpoints_sal): ...this. | |
5500 | (set_breakpoint): Remove. | |
5501 | * breakpoint.h: Adjust to above changes. | |
5502 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
5503 | ||
b6e7192f SS |
5504 | 2010-03-15 Stan Shebs <[email protected]> |
5505 | ||
5506 | * ax-gdb.c: Include cp-support.h. | |
5507 | (find_field): Remove. | |
5508 | (gen_primitive_field): New function. | |
5509 | (gen_struct_ref_recursive): New function. | |
5510 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
5511 | of find_field. | |
5512 | (gen_static_field): New function. | |
5513 | (gen_struct_elt_for_reference): New. | |
5514 | (gen_namespace_elt): New. | |
5515 | (gen_maybe_namespace_elt): New. | |
5516 | (gen_aggregate_elt_ref): New. | |
5517 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
5518 | ||
1054b214 TT |
5519 | 2010-03-15 Tom Tromey <[email protected]> |
5520 | ||
5521 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
5522 | DW_TAG_subprogram. | |
5523 | ||
13387711 SW |
5524 | 2010-03-15 Sami Wagiaalla <[email protected]> |
5525 | ||
5526 | PR c++/7936: | |
5527 | * cp-support.h: Added char *declaration element to using_direct | |
5528 | data struct. | |
5529 | (cp_add_using): Added char *declaration argument. | |
5530 | (cp_add_using_directive): Ditto. | |
5531 | (cp_lookup_symbol_imports): made extern. | |
5532 | * cp-namespace.c: Updated with the above changes. | |
5533 | * dwarf2read.c (read_import_statement): Ditto. | |
5534 | (read_namespace): Ditto. | |
5535 | (read_import_statement): Support import declarations. | |
5536 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
5537 | declarations. | |
5538 | Added support for 'declaration_only' search. | |
5539 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
5540 | is before consideration of imports. | |
5541 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
5542 | search at every block level search. | |
5543 | Now takes language argument. | |
5544 | (lookup_symbol_aux): Updated. | |
5545 | ||
6e31430b TT |
5546 | 2010-03-15 Tom Tromey <[email protected]> |
5547 | ||
5548 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
5549 | ||
4dea3bb7 | 5550 | 2010-03-15 Ralf Corsepius <[email protected]> (tiny change) |
bf307134 JB |
5551 | |
5552 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
5553 | * configure: Regenerate. | |
5554 | ||
4d9743af JK |
5555 | 2010-03-15 Jan Kratochvil <[email protected]> |
5556 | ||
5557 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
5558 | and ".sdynbss". Update the comment. | |
5559 | ||
f75150fe JZ |
5560 | 2010-03-15 Jie Zhang <[email protected]> |
5561 | ||
5562 | * MAINTAINERS: Update my email address. | |
5563 | ||
3c13bc11 DJ |
5564 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
5565 | ||
5566 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
5567 | ||
43484f03 DJ |
5568 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
5569 | ||
5570 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
5571 | (_initialize_charset): Correct type of w32_host_default_charset. | |
5572 | ||
5f25d77d PA |
5573 | 2010-03-14 Pedro Alves <[email protected]> |
5574 | ||
5575 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
5576 | ||
1c809c68 TT |
5577 | 2010-03-12 Tom Tromey <[email protected]> |
5578 | ||
5579 | PR c++/9708: | |
5580 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
5581 | in a lexical block does not need a namespace. | |
5582 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
5583 | list_in_scope in all cases. | |
5584 | ||
948103cf SS |
5585 | 2010-03-12 Stan Shebs <[email protected]> |
5586 | ||
5587 | * ax-gdb.c (gen_expr): Add shift expressions. | |
5588 | (gen_expr_binop_rest): Ditto. | |
5589 | ||
00ae8fef SW |
5590 | 2010-03-12 Sami Wagiaalla <[email protected]> |
5591 | ||
5592 | * buildsym.c (finish_block): Reset using_directives pointer | |
5593 | after block initialization. | |
5594 | ||
9cad29ac L |
5595 | 2010-03-12 H.J. Lu <[email protected]> |
5596 | ||
5597 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
5598 | * i386-tdep.c (i386_word_names): Likewise. | |
5599 | ||
2f4d8875 PA |
5600 | 2010-03-12 Pedro Alves <[email protected]> |
5601 | ||
5602 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
5603 | inspecting trace frames. | |
5604 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
5605 | dcache. | |
5606 | ||
ccf26247 JK |
5607 | 2010-03-11 Jan Kratochvil <[email protected]> |
5608 | ||
5609 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
5610 | for the PIC displacement, print also the displacement value. | |
5611 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
5612 | ||
477c84a7 KB |
5613 | 2010-03-10 Kevin Buettner <[email protected]> |
5614 | ||
5615 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
5616 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
5617 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
5618 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
5619 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
5620 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
5621 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
5622 | comments describing each of these functions. | |
5623 | (mips_enter_debug, mips_exit_debug, common_open) | |
5624 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
5625 | blank line after the comment describing the function. | |
5626 | ||
01c30d6e JK |
5627 | 2010-03-10 Jan Kratochvil <[email protected]> |
5628 | ||
5629 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
5630 | parameter displacementp. Update comment. | |
5631 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
5632 | element exists. Return if svr4_exec_displacement was not successful. | |
5633 | Update comment. | |
5634 | ||
09919ac2 JK |
5635 | 2010-03-10 Jan Kratochvil <[email protected]> |
5636 | Daniel Jacobowitz <[email protected]> | |
5637 | ||
5638 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
5639 | all program headers. | |
5640 | (read_program_headers_from_bfd): New function. | |
5641 | (svr4_static_exec_displacement): Remove and move the comment ... | |
5642 | (svr4_exec_displacement): ... here. Remove variable found. New | |
5643 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
5644 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
5645 | targets using read_program_headers_from_bfd. Remove the call of | |
5646 | svr4_static_exec_displacement. | |
5647 | ||
d146bf1e TT |
5648 | 2010-03-10 Tom Tromey <[email protected]> |
5649 | ||
5650 | * dwarf2read.c (struct pubnames_header): Remove. | |
5651 | (_PUBNAMES_HEADER): Remove. | |
5652 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
5653 | (struct aranges_header): Remove. | |
5654 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
5655 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
5656 | (PUBNAMES_SECTION): Remove. | |
5657 | (ARANGES_SECTION): Remove. | |
5658 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
5659 | (dwarf2_build_psymtabs): Remove dead code. | |
5660 | (dwarf2_build_psymtabs_easy): Remove. | |
5661 | ||
be391dca TT |
5662 | 2010-03-10 Tom Tromey <[email protected]> |
5663 | ||
5664 | * elfread.c (elf_symfile_read): Don't call | |
5665 | dwarf2_build_frame_info. | |
5666 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
5667 | (struct dwarf2_per_objfile) <objfile>: New field. | |
5668 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
5669 | (dwarf2_read_section): Check and set readin field. Call | |
5670 | posix_madvise. | |
5671 | (dwarf2_build_psymtabs): Don't read all sections. | |
5672 | (read_type_comp_unit_head): Read types section. | |
5673 | (create_debug_types_hash_table): Likewise. | |
5674 | (init_cu_die_reader): Add asserts. | |
5675 | (process_type_comp_unit): Add assert. | |
5676 | (dwarf2_build_psymtabs_hard): Read info section. | |
5677 | (load_partial_comp_unit): Add assert. | |
5678 | (create_all_comp_units): Read info section. | |
5679 | (load_full_comp_unit): Likewise. | |
5680 | (dwarf2_ranges_read): Read ranges section. | |
5681 | (dwarf2_record_block_ranges): Add assert. | |
5682 | (dwarf2_read_abbrevs): Read abbrev section. | |
5683 | (read_indirect_string): Read str section. | |
5684 | (dwarf_decode_line_header): Read line section. | |
5685 | (read_signatured_type_at_offset): Read types section. | |
5686 | (dwarf_decode_macros): Read macinfo section. | |
5687 | (dwarf2_symbol_mark_computed): Read loc section. | |
5688 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
5689 | dwarf2_build_frame_info. | |
5690 | (dwarf2_build_frame_info): Unconditionally set | |
5691 | dwarf2_frame_objfile_data on the objfile. | |
5692 | * configure.ac: Check for posix_madvise. | |
5693 | * config.in, configure: Rebuild. | |
5694 | ||
ccefe4c4 TT |
5695 | 2010-03-10 Tom Tromey <[email protected]> |
5696 | ||
e38df1d0 TT |
5697 | * xcoffread.c (xcoff_start_psymtab): Update. |
5698 | (xcoff_end_psymtab): Update. | |
5699 | * psymtab.c (allocate_psymtab): Remove dead code. | |
5700 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
5701 | void*. | |
5702 | * mdebugread.c (parse_partial_symbols): Update. | |
5703 | (new_psymtab): Likewise. | |
5704 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
5705 | (psymtab_to_symtab_1): Update. | |
5706 | * dbxread.c (start_psymtab): Update. | |
5707 | (end_psymtab): Likewise. | |
5708 | ||
be391dca | 5709 | 2010-03-10 Tom Tromey <[email protected]> |
e38df1d0 | 5710 | |
ccefe4c4 TT |
5711 | * xcoffread.c: Include psymtab.h. |
5712 | (xcoff_sym_fns): Update. | |
5713 | * symtab.h (struct partial_symbol): Remove. | |
5714 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
5715 | (struct partial_symtab): Remove. | |
5716 | (PSYMTAB_TO_SYMTAB): Remove. | |
5717 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
5718 | (find_pc_sect_psymtab): Remove. | |
5719 | (find_pc_sect_symtab_via_partial): Declare. | |
5720 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
5721 | (find_main_psymtab): Remove. | |
5722 | (find_main_filename): Declare. | |
5723 | (fixup_psymbol_section): Remove. | |
5724 | (fixup_section): Declare. | |
5725 | * symtab.c: Include psymtab.h. | |
5726 | (lookup_symtab): Use lookup_symtab method. | |
5727 | (lookup_partial_symtab): Remove. | |
5728 | (find_pc_sect_psymtab_closer): Remove. | |
5729 | (find_pc_sect_psymtab): Remove. | |
5730 | (find_pc_sect_symtab_via_partial): New function. | |
5731 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
5732 | (fixup_section): No longer static. | |
5733 | (fixup_psymbol_section): Remove. | |
5734 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
5735 | (lookup_global_symbol_from_objfile): Likewise. | |
5736 | (lookup_symbol_aux_psymtabs): Remove. | |
5737 | (lookup_symbol_aux_quick): New function. | |
5738 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
5739 | (lookup_partial_symbol): Remove. | |
5740 | (basic_lookup_transparent_type_quick): New function. | |
5741 | (basic_lookup_transparent_type): Use it. | |
5742 | (find_main_psymtab): Remove. | |
5743 | (find_main_filename): New function. | |
5744 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
5745 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
5746 | (output_partial_symbol_filename): New function. | |
5747 | (sources_info): Use map_partial_symbol_filenames. | |
5748 | (struct search_symbols_data): New type. | |
5749 | (search_symbols_file_matches): New function. | |
5750 | (search_symbols_name_matches): Likewise. | |
5751 | (search_symbols): Use expand_symtabs_matching method. | |
5752 | (struct add_name_data): Rename from add_macro_name_data. | |
5753 | (add_macro_name): Update. | |
5754 | (add_partial_symbol_name): New function. | |
5755 | (default_make_symbol_completion_list): Use | |
5756 | map_partial_symbol_names. | |
5757 | (struct add_partial_symbol_name): New type. | |
5758 | (maybe_add_partial_symtab_filename): New function. | |
5759 | (make_source_files_completion_list): Use | |
5760 | map_partial_symbol_filenames. | |
5761 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
5762 | * symmisc.c: Include psymtab.h. | |
5763 | (print_objfile_statistics): Use print_stats method. | |
5764 | (dump_objfile): Use dump method. | |
5765 | (dump_psymtab, maintenance_print_psymbols) | |
5766 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
5767 | (extend_psymbol_list): Remove. | |
5768 | * symfile.h (struct quick_symbol_functions): New struct. | |
5769 | (struct sym_fns) <qf>: New field. | |
5770 | (sort_pst_symbols): Remove. | |
5771 | (increment_reading_symtab): Declare. | |
5772 | * symfile.c: Include psymtab.h. | |
5773 | (compare_psymbols, sort_pst_symbols): Remove. | |
5774 | (psymtab_to_symtab): Remove. | |
5775 | (increment_reading_symtab): New function. | |
5776 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
5777 | method. | |
5778 | (set_initial_language): Use find_main_filename. | |
5779 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
5780 | (free_named_symtabs): Remove unused code. | |
5781 | (start_psymtab_common, add_psymbol_to_bcache) | |
5782 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
5783 | Remove. | |
5784 | * stack.c: Include psymtab.h, symfile.h. | |
5785 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
5786 | * source.h (psymtab_to_fullname): Don't declare. | |
5787 | * source.c: Include psymtab.h. | |
5788 | (select_source_symtab): Use find_last_source_symtab method. | |
5789 | (forget_cached_source_info): Use forget_cached_source_info | |
5790 | method. | |
5791 | (find_and_open_source): No longer static. | |
5792 | (psymtab_to_fullname): Remove. | |
5793 | * somread.c: Include psymtab.h. | |
5794 | (som_sym_fns): Update. | |
5795 | * psympriv.h: New file. | |
5796 | * psymtab.h: New file. | |
5797 | * psymtab.c: New file. | |
5798 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
5799 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
5800 | * objfiles.c: Include psymtab.h. | |
5801 | (objfile_relocate1): Use relocate method. | |
5802 | (objfile_has_partial_symbols): Use has_symbols method. | |
5803 | * mipsread.c: Include psymtab.h. | |
5804 | (ecoff_sym_fns): Update. | |
5805 | * mi/mi-cmd-file.c: Include psymtab.h. | |
5806 | (print_partial_file_name): New function. | |
5807 | (mi_cmd_file_list_exec_source_files): Use | |
5808 | map_partial_symbol_filenames. | |
5809 | * mdebugread.c: Include psympriv.h. | |
5810 | * machoread.c: Include psympriv.h. | |
5811 | (macho_sym_fns): Update. | |
5812 | * m2-exp.y (yylex): Use lookup_symtab. | |
5813 | * elfread.c: Include psympriv.h. | |
5814 | (elf_sym_fns): Update. | |
5815 | * dwarf2read.c: Include psympriv.h. | |
5816 | * dbxread.c: Include psympriv.h. | |
5817 | (aout_sym_fns): Update. | |
5818 | * cp-support.c: Include psymtab.h. | |
5819 | (read_in_psymtabs): Remove. | |
5820 | (make_symbol_overload_list_qualified): Use | |
5821 | expand_symtabs_for_function method. | |
5822 | * coffread.c: Include psympriv.h. | |
5823 | (coff_sym_fns): Update. | |
5824 | * blockframe.c: Include psymtab.h. | |
5825 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
5826 | * ada-lang.h (ada_update_initial_language): Update. | |
5827 | * ada-lang.c: Include psymtab.h. | |
5828 | (ada_update_initial_language): Remove 'main_pst' argument. | |
5829 | (ada_lookup_partial_symbol): Remove. | |
5830 | (struct ada_psym_data): New type. | |
5831 | (ada_add_psyms): New function. | |
5832 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
5833 | (struct add_partial_datum): New type. | |
5834 | (ada_add_partial_symbol_completions): New function. | |
5835 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
5836 | (ada_exception_support_info_sniffer): Update. | |
5837 | * Makefile.in (SFILES): Add psymtab.c. | |
5838 | (COMMON_OBS): Add psymtab.o. | |
5839 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
5840 | ||
7d8500b7 PM |
5841 | 2010-03-10 Pierre Muller <[email protected]> |
5842 | ||
5843 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
5844 | ||
c0cc3a76 SW |
5845 | 2010-03-10 Sami Wagiaalla <[email protected]> |
5846 | ||
5847 | PR C++/11236: | |
5848 | * cp-namespace.c (cp_add_using): Deleted. | |
5849 | (cp_add_using_directive): Use obstack allocations. | |
5850 | Merged the function cp_add_using into this one. | |
5851 | Added 'struct obstack *' argument. | |
5852 | (cp_scan_for_anonymous_namespaces): Updated. | |
5853 | * cp-support.h: Updated. | |
5854 | * dwarf2read.c (read_import_statement): Updated. | |
5855 | (read_namespace): Updated. | |
5856 | ||
452fa064 CF |
5857 | 2010-03-10 Pierre Muller <[email protected]> |
5858 | ||
5859 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
5860 | ||
60e1c644 PA |
5861 | 2010-03-10 Pedro Alves <[email protected]> |
5862 | ||
5863 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
5864 | (is_hardware_watchpoint): Add comment. | |
5865 | (is_watchpoint): New. | |
5866 | (update_watchpoint): Don't reparse the watchpoint's condition | |
5867 | unless necessary. | |
5868 | (WP_IGNORE): New. | |
5869 | (watchpoint_check): Use it. | |
5870 | (bpstat_check_watchpoint): Handle it. | |
5871 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
5872 | conditions in a frame where it makes sense. | |
5873 | (watch_command_1): Store the innermost block of the condition | |
5874 | expression. | |
5875 | (delete_breakpoint): Delete the watchpoint condition expression. | |
5876 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
5877 | (struct breakpoint): New field `cond_exp_valid_block'. | |
5878 | ||
af6b7be1 JB |
5879 | 2010-03-09 Joel Brobecker <[email protected]> |
5880 | ||
5881 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
5882 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
5883 | ||
60c5c021 CF |
5884 | 2010-03-09 Christopher Faylor <[email protected]> |
5885 | Pierre Muller <[email protected]> | |
5886 | ||
5887 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
5888 | from/to posix/win32. | |
5889 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
5890 | (windows_create_inferior): Make sure that cygallargs points to | |
5891 | original args in non Cygwin 1.7. case. | |
5892 | ||
60a1502a MS |
5893 | 2010-03-09 Michael Snyder <[email protected]> |
5894 | ||
5895 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
5896 | after target_read_memory to get host byte order. | |
5897 | (i386_process_record): Ditto. | |
5898 | ||
94af9270 KS |
5899 | 2010-03-09 Keith Seitz <[email protected]> |
5900 | ||
5901 | Based on work from Daniel Jacobowitz <[email protected]> | |
5902 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
5903 | print out const or volatile qualifiers, too. | |
5904 | (c_type_print_args): Add parameters show_artificial and language. | |
5905 | Skip artificial parameters when requested. | |
5906 | Use the appropriate language printer. | |
5907 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
5908 | parameters and pass language_c. | |
5909 | * dwarf2read.c (die_list): New file global. | |
5910 | (struct partial_die_info): Update comments for name field. | |
5911 | (pdi_needs_namespace): Renamed to ... | |
5912 | (die_needs_namespace): ... this. Rewrite. | |
5913 | (dwarf2_linkage_name): Remove. | |
5914 | (add_partial_symbol): Do not predicate the call to | |
5915 | partial_die_full_name based on pdi_needs_namespace. | |
5916 | Remove call to cp_check_possible_namespace_symbols and associated | |
5917 | outdated comments. | |
5918 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
5919 | (dwarf2_fullname): Update comments. | |
5920 | Use die_needs_namespace to assist in computing the name. | |
5921 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
5922 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
5923 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
5924 | dwarf2_linkage_name. | |
5925 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
5926 | (determine_class): Remove. | |
5927 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
5928 | except Ada. | |
5929 | (new_symbol): Unconditionally call dwarf2_name. | |
5930 | Compute the "linkage name" using dwarf2_physname. | |
5931 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
5932 | When determining to scan for anonymous C++ namespaces, ignore | |
5933 | the linkage name. | |
5934 | (dwarf2_physname): New function. | |
5935 | (dwarf2_full_name): Move content to new function and call | |
5936 | that. | |
5937 | (dwarf2_compute_name): "New" function. | |
5938 | (_initialize_dwarf2_read): Initialize die_list. | |
5939 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
5940 | physname. | |
5941 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
5942 | without a demangled name. | |
5943 | Print out type information for non-virtual methods. | |
c8d5aac9 | 5944 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 5945 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
5946 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
5947 | (decode_compound): Stop consuming at an open parenthesis. | |
5948 | Keep template parameters. | |
5949 | Keep any overload information. | |
5950 | Keep keywords like "const". | |
5951 | Remove paren_pointer. | |
5952 | Move is_quoted check from set_flags to here. | |
5953 | Remove #if 0 code from 2000. Ten years is long enough. | |
5954 | (find_method): Before comparing symbol names, canonicalize the string | |
5955 | from the user. | |
5956 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
5957 | (find_method_overload_end): New function. |
5958 | (set_flags): Remove. | |
c8d5aac9 L |
5959 | (decode_compound): Assume that parentheses are matched. |
5960 | It's a lot easier. | |
94af9270 KS |
5961 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
5962 | to cplus_demangle. | |
5963 | * linespec.c (decode_line_1): Keep important keywords like | |
5964 | "const" and "volatile". | |
5965 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
5966 | * typeprint.h (c_type_print_args): Add declaration. | |
5967 | * ui-file.c (do_ui_file_obsavestring): New function. | |
5968 | (ui_file_obsavestring): New function. | |
5969 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
5970 | * valops.c (find_overload_match): Resolve the object to | |
5971 | a non-pointer type. | |
5972 | If the object is a data member, search the object for the member | |
5973 | and return with staticp set. | |
5974 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
5975 | Do not attempt to extract a function name from non-function types. | |
5976 | If the extracted function name and the original name are the same, | |
5977 | we don't have a C++ method. | |
5978 | ||
8d95cc3b PA |
5979 | From Jan Kratochvil <[email protected]>: |
5980 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
5981 | |
5982 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
5983 | and arguments from symbol lookups. | |
5984 | * ax-gdb.c (gen_expr): Likewise. | |
5985 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
5986 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
5987 | lookup_possible_namespace_symbol): Likewise. | |
5988 | * cp-support.c (read_in_psymtabs): Likewise. | |
5989 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
5990 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
5991 | * scm-valprint.c (scm_inferior_print): Likewise. | |
5992 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
5993 | * solib-svr.c (elf_lookup_lib): Likewise. | |
5994 | * solib.c (show_auto_solib_add): Likewise. | |
5995 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
5996 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
5997 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
5998 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
5999 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
6000 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
6001 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
6002 | basic_lookup_transparent_type, find_main_psymtab, | |
6003 | lookup_block_symbol): Likewise. | |
6004 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
6005 | lookup_symbol_global, lookup_symbol_aux_block, | |
6006 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
6007 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
6008 | ||
9cb74f47 PM |
6009 | 2010-03-09 Pierre Muller <[email protected]> |
6010 | ||
6011 | * python/python-internal.h: Include symtab.h. | |
6012 | ||
af6b7be1 JB |
6013 | 2010-03-09 Joel Brobecker <[email protected]> |
6014 | Pierre Muller <[email protected]> | |
e13eedd5 PM |
6015 | |
6016 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
6017 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
6018 | indentation. | |
6019 | ||
bad56014 TT |
6020 | 2010-03-08 Tom Tromey <[email protected]> |
6021 | ||
6022 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
6023 | ||
08105857 PA |
6024 | 2010-03-08 Daniel Jacobowitz <[email protected]> |
6025 | Pedro Alves <[email protected]> | |
6026 | ||
6027 | * solib.c (solib_find): Replace extension if | |
6028 | solib_symbols_extension is set in the target gdbarch. | |
6029 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
6030 | solib_symbols_extension to "sym". | |
6031 | * gdbarch.sh (solib_symbols_extension): New variable. | |
6032 | (pstring): New function. | |
6033 | * gdbarch.h, gdbarch.c: Regenerate. | |
6034 | ||
7c953934 TT |
6035 | 2010-03-08 Tom Tromey <[email protected]> |
6036 | ||
6037 | PR cli/9591: | |
6038 | * NEWS: Update. | |
6039 | * utils.c: Include main.h. | |
6040 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
6041 | (defaulted_query): Use default answer if `batch_flag'. | |
6042 | * main.h (batch_flag): Declare. | |
6043 | * main.c (batch_flag): New global. | |
6044 | (captured_main): Remove 'batch'. Update. | |
6045 | ||
bbd2783e KB |
6046 | 2010-03-08 Kevin Buettner <[email protected]> |
6047 | ||
6048 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
6049 | and Kevin Buettner: | |
6050 | ||
6051 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
6052 | (MON_ROCKHOPPER): New mips_monitor_type. | |
6053 | (read_hex_value): New function. | |
6054 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 6055 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
6056 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
6057 | (rockhopper_open): New function. | |
6058 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
6059 | read_hex_value to parse them and mips_set_register to commit them. | |
6060 | (mips_set_register): New function. | |
6061 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
6062 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
6063 | (mips_store_registers): Use a 'T' packet to set registers when | |
6064 | using MON_ROCKHOPPER. | |
6065 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
6066 | and expect the total to be printed before the entry address. | |
6067 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
6068 | ||
566f3d17 KB |
6069 | 2010-03-08 Kevin Buettner <[email protected]> |
6070 | ||
6071 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
6072 | Change return value to int. Store value fetched in location | |
6073 | addressed by `val'. Use function's return value as success | |
6074 | or failure indicator. Adjust all callers. | |
6075 | ||
9c8ee2ab | 6076 | 2010-03-08 Pierre Muller <[email protected]> |
f72d4b77 PM |
6077 | |
6078 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
6079 | ||
7155de5a HZ |
6080 | 2010-03-08 Jan Kratochvil <[email protected]> |
6081 | Hui Zhu <[email protected]> | |
6082 | ||
6083 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
6084 | tmp_to_stopped_data_address. | |
6085 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
6086 | tmp_to_stopped_data_address. | |
6087 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
6088 | to_stopped_data_address. | |
6089 | ||
580879fc HZ |
6090 | 2010-03-08 Hui Zhu <[email protected]> |
6091 | ||
6092 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
6093 | ||
b0fcb67f JK |
6094 | 2010-03-08 Jan Kratochvil <[email protected]> |
6095 | ||
6096 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
6097 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
6098 | ||
08597104 JB |
6099 | 2010-03-08 Joel Brobecker <[email protected]> |
6100 | ||
6101 | Memory error when reading wrong core file. | |
6102 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
6103 | errors while reading the inferior memory, and return zero if | |
6104 | an exception was raised. | |
6105 | ||
425b824a MS |
6106 | 2010-03-07 Michael Snyder <[email protected]> |
6107 | ||
ec6dbf37 MS |
6108 | * record.c (record_restore): Rename tmpu8 to rectype. |
6109 | ||
648d0c8b MS |
6110 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
6111 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
6112 | ||
6113 | (i386_record_push): Rename local tmpulongest to addr. | |
6114 | ||
6115 | (i386_process_record): Rename local tmpulongest to addr. | |
6116 | ||
6117 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
6118 | addr64. | |
955db0c0 MS |
6119 | |
6120 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 6121 | |
10760264 JB |
6122 | 2010-03-07 Joel Brobecker <[email protected]> |
6123 | ||
6124 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 6125 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 6126 | |
b3c613f2 CF |
6127 | 2010-03-06 Christopher Faylor <[email protected]> |
6128 | ||
6129 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
6130 | block. Define helper macros to reduce ifdefs in code. | |
6131 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
6132 | size. Call unadorned GetModuleFileNameEx rather than | |
6133 | GetModuleFileNameEx*. | |
6134 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
6135 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
6136 | appropriate. | |
6137 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
6138 | (handle_load_dll): Likewise. | |
6139 | (windows_pid_to_exec_file): Likewise. | |
6140 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
6141 | non-Cygwin. | |
6142 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
6143 | __USEWIDE conditional. | |
6144 | (bad_GetModuleFileNameExA): Likewise. | |
6145 | (_initialize_loadable): Just use real function names without the dyn_ | |
6146 | part since they are defined earlier. | |
6147 | ||
f870a310 TT |
6148 | 2010-03-05 Corinna Vinschen <[email protected]> |
6149 | Tom Tromey <[email protected]> | |
6150 | ||
6151 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
6152 | (parse_escape): Likewise. | |
6153 | * python/py-utils.c (unicode_to_target_string): Update. | |
6154 | (unicode_to_target_python_string): Update. | |
6155 | (target_string_to_unicode): Update. | |
6156 | * printcmd.c (printf_command): Update. | |
6157 | * p-exp.y (yylex): Update. | |
6158 | * objc-exp.y (yylex): Update. | |
6159 | * mi/mi-parse.c: Include charset.h. | |
6160 | (mi_parse_escape): New function. | |
6161 | (mi_parse_argv): Use it. | |
6162 | * jv-exp.y (yylex): Update. | |
6163 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
6164 | function. | |
6165 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
6166 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
6167 | * gdbarch.c: Rebuild. | |
6168 | * gdbarch.h: Rebuild. | |
6169 | * defs.h (parse_escape): Update. | |
6170 | * cli/cli-setshow.c: Include arch-utils.h. | |
6171 | (do_setshow_command): Update. | |
6172 | * cli/cli-cmds.c (echo_command): Update. | |
6173 | * charset.h (target_charset, target_wide_charset): Update. | |
6174 | * charset.c: Include arch-utils.h. | |
6175 | (target_charset_name): Default to "auto". | |
6176 | (target_wide_charset_name): Likewise. | |
6177 | (show_target_charset_name): Handle "auto". | |
6178 | (show_target_wide_charset_name): Likewise. | |
6179 | (be_le_arch): New global. | |
6180 | (set_be_le_names): Add 'gdbarch' argument. | |
6181 | (validate): Likewise. Don't call set_be_le_names. | |
6182 | (set_charset_sfunc, set_host_charset_sfunc) | |
6183 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
6184 | Update. | |
6185 | (target_charset): Add 'gdbarch' argument. | |
6186 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
6187 | (auto_target_charset_name): New global. | |
6188 | (default_auto_charset, default_auto_wide_charset): New functions. | |
6189 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
6190 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
6191 | USE_WIN32API. | |
6192 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
6193 | remove 'byte_order' argument. Update. | |
6194 | (classify_type): Likewise. | |
6195 | (c_emit_char): Update. | |
6196 | (c_printchar): Update. | |
6197 | (c_printstr): Update. | |
6198 | (c_get_string): Update. | |
6199 | (evaluate_subexp_c): Update. | |
6200 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
6201 | Declare. | |
6202 | * python/python.c (gdbpy_target_charset): New function. | |
6203 | (gdbpy_target_wide_charset): Likewise. | |
6204 | (GdbMethods): Update. | |
6205 | * NEWS: Update. | |
6206 | ||
4e7386b0 UW |
6207 | 2010-03-05 Ulrich Weigand <[email protected]> |
6208 | ||
6209 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
6210 | off high address bits. | |
6211 | ||
aab48ede UW |
6212 | 2010-03-05 Ulrich Weigand <[email protected]> |
6213 | ||
6214 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
6215 | address as UnsignedLongLong, not LongLong. | |
6216 | ||
8eeafb51 | 6217 | 2010-03-05 Kevin Buettner <[email protected]> |
c8d5aac9 | 6218 | Pedro Alves <[email protected]> |
8eeafb51 KB |
6219 | |
6220 | * remote-mips.c (gdbthread.h): Include. | |
6221 | (remote_mips_ptid): Declare. | |
6222 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
6223 | (common_open): Set inferior_ptid, add it as an inferior, and | |
6224 | as a thread too. Delete FIXME comment regarding start_remote(). | |
6225 | (mips_close): Invoke generic_mourn_inferior(). | |
6226 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
6227 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
6228 | it's now invoked from mips_close(). | |
6229 | (mips_load): Don't null out inferior_ptid. Don't call | |
6230 | clear_symtab_users(). | |
6231 | (mips_thread_alive, mips_pid_to_str): New functions. | |
6232 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
6233 | to_thread_alive and to_pid_to_str operations. | |
6234 | ||
ae411497 TT |
6235 | 2010-03-04 Tom Tromey <[email protected]> |
6236 | ||
6237 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
6238 | in DWARF 3 and later. | |
6239 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
6240 | ||
0e0b460e KS |
6241 | 2010-03-04 Keith Seitz <[email protected]> |
6242 | ||
6243 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
6244 | If the filename portion of the linespec was quoted, recheck the | |
6245 | remainder for additional quoting. | |
6246 | (locate_first_half): Skip over completer chars, too. | |
6247 | ||
1b93ff13 TT |
6248 | 2010-03-04 Tom Tromey <[email protected]> |
6249 | ||
6250 | * printcmd.c (printf_command): Pass dummy argument to | |
6251 | printf_filtered. | |
6252 | ||
fc36e839 DE |
6253 | 2010-03-04 Doug Evans <[email protected]> |
6254 | ||
111f853c DE |
6255 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
6256 | unwound_fp. | |
6257 | ||
fc36e839 DE |
6258 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
6259 | ||
c7437ca6 PA |
6260 | 2010-03-04 Pedro Alves <[email protected]> |
6261 | ||
6262 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
6263 | the software watchpoint isn't watching any memory. | |
6264 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
6265 | ||
58dadb1b PA |
6266 | 2010-03-04 Pedro Alves <[email protected]> |
6267 | ||
6268 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
6269 | level interpreter before dereferencing it. If there isn't one, | |
6270 | don't paginate either. | |
6271 | ||
50e98be4 DJ |
6272 | 2010-03-04 Matthew Gretton-Dann <[email protected]> |
6273 | ||
6274 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
6275 | the state right when single stepping. | |
6276 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
6277 | Get the next PC along with the instruction state. | |
6278 | (thumb_get_next_pc): Remove. | |
6279 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
6280 | ||
2e3ceee9 HZ |
6281 | 2010-03-04 Hui Zhu <[email protected]> |
6282 | ||
6283 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
6284 | ||
390a8aca PA |
6285 | 2010-03-03 Pedro Alves <[email protected]> |
6286 | ||
6287 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
6288 | top level interpreter is MI. | |
6289 | ||
9355b391 SS |
6290 | 2010-03-03 Stan Shebs <[email protected]> |
6291 | ||
6292 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
6293 | * tracepoint.c (validate_actionline): Ditto. | |
6294 | (encode_actions): Add location argument. | |
6295 | (trace_dump_command): Check all locations to see if stepping | |
6296 | frame. | |
390a8aca | 6297 | |
8685c86f L |
6298 | 2010-03-03 H.J. Lu <[email protected]> |
6299 | Eli Zaretskii <[email protected]> | |
6300 | ||
6301 | * NEWS: Add X86 general purpose registers section. | |
6302 | ||
e8f781e2 TT |
6303 | 2010-03-03 Tom Tromey <[email protected]> |
6304 | ||
6305 | PR mi/11098: | |
6306 | * varobj.c (install_new_value): Handle case where new print_value | |
6307 | is NULL. | |
6308 | ||
a0e0ef55 TT |
6309 | 2010-03-03 Dainis Jonitis <[email protected]> |
6310 | ||
6311 | PR gdb/11345: | |
6312 | * printcmd.c (printf_command): Print end of format string using | |
6313 | printf_filtered. | |
6314 | ||
a58d7472 TT |
6315 | 2010-03-02 Tom Tromey <[email protected]> |
6316 | ||
6317 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
6318 | * defs.h (read_command_lines_1): Add missing 'void'. | |
6319 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
6320 | 'void'. | |
6321 | (read_next_line): Likewise. | |
6322 | (read_command_lines_1): Likewise. | |
6323 | ||
ce50d78b UW |
6324 | 2010-03-02 Ulrich Weigand <[email protected]> |
6325 | ||
6326 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
6327 | store backchain as part of prologue. | |
6328 | ||
7e9af34a DJ |
6329 | 2010-03-02 Daniel Jacobowitz <[email protected]> |
6330 | ||
6331 | * progspace.c (update_address_spaces): Update inferior address spaces | |
6332 | also. | |
6333 | ||
01637564 DE |
6334 | 2010-03-02 Doug Evans <[email protected]> |
6335 | ||
6336 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
6337 | lowpc,highpc args to addrmap_set_empty. | |
6338 | ||
1ba53b71 L |
6339 | 2010-03-02 H.J. Lu <[email protected]> |
6340 | ||
6341 | * amd64-tdep.c (amd64_byte_names): New. | |
6342 | (amd64_word_names): Likewise. | |
6343 | (amd64_dword_names): Likewise. | |
6344 | (amd64_pseudo_register_name): Likewise. | |
6345 | (amd64_pseudo_register_read): Likewise. | |
6346 | (amd64_pseudo_register_write): Likewise. | |
6347 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
6348 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
6349 | set_gdbarch_pseudo_register_write and | |
6350 | set_tdesc_pseudo_register_name. Don't call | |
6351 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
6352 | ||
6353 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
6354 | (i386_num_pseudo_regs): Likewise. | |
6355 | (i386_byte_names): New. | |
6356 | (i386_word_names): Likewise. | |
6357 | (i386_byte_regnum_p): Likewise. | |
6358 | (i386_word_regnum_p): Likewise. | |
6359 | (i386_mmx_regnum_p): Updated. | |
6360 | (i386_pseudo_register_name): Make it global. Handle byte and | |
6361 | word pseudo-registers. | |
6362 | (i386_pseudo_register_read): Likewise. | |
6363 | (i386_pseudo_register_write): Likewise. | |
6364 | (i386_pseudo_register_type): Handle byte, word and dword | |
6365 | pseudo-registers | |
6366 | (i386_register_reggroup_p): Don't include pseudo | |
6367 | registers, except for MXX, in any register groups. Don't | |
6368 | include pseudo byte, word, dword registers in general_reggroup. | |
6369 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
6370 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
6371 | pseudo-registers after word pseudo-registers. Call | |
6372 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
6373 | ||
6374 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
6375 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
6376 | eax_regnum. | |
6377 | (i386_byte_regnum_p): New. | |
6378 | (i386_word_regnum_p): Likewise. | |
6379 | (i386_dword_regnum_p): Likewise. | |
6380 | (i386_pseudo_register_name): Likewise. | |
6381 | (i386_pseudo_register_read): Likewise. | |
6382 | (i386_pseudo_register_write): Likewise. | |
6383 | ||
a6f5ef51 L |
6384 | 2010-03-01 H.J. Lu <[email protected]> |
6385 | ||
6386 | * target-descriptions.c (tdesc_type): Remove | |
6387 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
6388 | (tdesc_predefined_types): Likewise. | |
6389 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
6390 | if flag name is empty. | |
6391 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
6392 | ||
6393 | * features/i386/32bit-core.xml: Define i386_eflags. | |
6394 | * features/i386/64bit-core.xml: Likewise. | |
6395 | ||
6396 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
6397 | * features/i386/64bit-sse.xml: Likewise. | |
6398 | ||
6399 | * features/i386/amd64-linux.c: Regenerated. | |
6400 | * features/i386/amd64.c: Likewise. | |
6401 | * features/i386/i386-linux.c: Likewise. | |
6402 | * features/i386/i386.c: Likewise. | |
6403 | ||
f5dff777 DJ |
6404 | 2010-03-01 Daniel Jacobowitz <[email protected]> |
6405 | ||
6406 | * gdbtypes.c (append_composite_type_field_raw): New. | |
6407 | (append_composite_type_field_aligned): Use the new function. | |
6408 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
6409 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
6410 | (struct tdesc_type_flag): New type. | |
6411 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
6412 | kind. Add size to u.u. Add u.f for flags. | |
6413 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
6414 | (tdesc_free_type): Likewise. | |
6415 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
6416 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
6417 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
6418 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
6419 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
6420 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
6421 | current_type. Add current_type_size and current_type_is_flags. | |
6422 | (tdesc_start_union): Clear the new fields. | |
6423 | (tdesc_start_struct, tdesc_start_flags): New. | |
6424 | (tdesc_start_field): Handle struct fields, including bitfields. | |
6425 | (field_attributes): Make type optional. Add start and end. | |
6426 | (union_children): Rename to struct_union_children. | |
6427 | (union_attributes): Rename to struct_union_attributes. Add optional | |
6428 | size. | |
6429 | (flags_attributes): New. | |
6430 | (feature_children): Add struct and flags. | |
6431 | * features/gdb-target.dtd: Add flags and struct to features. | |
6432 | Make field type optional. Add field start and end. | |
6433 | ||
90884b2b L |
6434 | 2010-03-01 H.J. Lu <[email protected]> |
6435 | ||
6436 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
6437 | (amd64_linux_read_description): Likewise. | |
6438 | (_initialize_amd64_linux_nat): Set to_read_description to | |
6439 | amd64_linux_read_description. | |
6440 | ||
6441 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
6442 | (amd64_linux_register_name): Removed. | |
6443 | (amd64_linux_register_type): Likewise. | |
6444 | (amd64_linux_core_read_description): New. | |
6445 | (amd64_linux_init_abi): Set target description to | |
6446 | tdesc_amd64_linux if needed. Support orig_rax in target | |
6447 | description. Don't call set_gdbarch_register_name nor | |
6448 | set_gdbarch_register_type. Call | |
6449 | set_gdbarch_core_read_description. | |
6450 | (_initialize_amd64_linux_tdep): Call | |
6451 | initialize_tdesc_amd64_linux. | |
6452 | ||
6453 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
6454 | ||
6455 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
6456 | (amd64_register_names): Removed. | |
6457 | (amd64_register_name): Likewise. | |
6458 | (amd64_register_type): Likewise. | |
6459 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 6460 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
6461 | set_gdbarch_register_name nor set_gdbarch_register_type. |
6462 | (_initialize_amd64_tdep): New. | |
6463 | ||
6464 | * i386-linux-nat.c (i386_linux_read_description): New. | |
6465 | (_initialize_i386_linux_nat): Set to_read_description to | |
6466 | i386_linux_read_description. | |
6467 | ||
6468 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
6469 | (i386_linux_register_name): Removed. | |
6470 | (i386_linux_core_read_description): New. | |
6471 | (i386_linux_read_description): Likewise. | |
6472 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
6473 | Set target description to tdesc_i386_linux if needed. Support | |
6474 | orig_eax. Set register_reggroup_p. Call | |
6475 | set_gdbarch_core_read_description. | |
6476 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
6477 | ||
6478 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
6479 | ||
6480 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
6481 | with I387_NUM_REGS. | |
6482 | ||
6483 | * i386-tdep.c: Include "features/i386/i386.c". | |
6484 | (i386_register_names): Make it const. | |
6485 | (i386_mmx_names): Likewise. | |
6486 | (i386_num_register_names): Removed. | |
6487 | (i386_register_name): Likewise. | |
6488 | (i386_eflags_type): Likewise. | |
6489 | (i386_mxcsr_type): Likewise. | |
6490 | (i386_sse_type): Likewise. | |
6491 | (i386_register_type): Likewise. | |
6492 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
6493 | (i386_pseudo_register_name): New. | |
6494 | (i386_pseudo_register_type): Likewise. | |
6495 | (i386_mmx_type): Make it static. | |
6496 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
6497 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
6498 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
6499 | Set register_reggroup_p. Set target description to tdesc_i386 | |
6500 | if needed. Call set_tdesc_pseudo_register_type, | |
6501 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
6502 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
6503 | initialize_tdesc_x86_64. | |
6504 | ||
6505 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
6506 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
6507 | register_names, tdesc and register_reggroup_p. | |
6508 | (I386_NUM_FREGS): Removed. | |
6509 | (i386_eflags_type): Likewise. | |
6510 | (i386_mxcsr_type): Likewise. | |
6511 | (i386_mmx_type): Likewise. | |
6512 | (i386_sse_type): Likewise. | |
6513 | (i386_register_name): Likewise. | |
6514 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
6515 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
6516 | ||
6517 | * i387-tdep.h (I387_NUM_REGS): New. | |
6518 | ||
6519 | * regformats/i386/i386-linux.dat: Generated. | |
6520 | * regformats/i386/i386.dat: Likewise. | |
6521 | * regformats/i386/amd64-linux.dat: Likewise. | |
6522 | * regformats/i386/amd64.dat: Likewise. | |
6523 | ||
6524 | * regformats/reg-i386-linux.dat: Removed. | |
6525 | * regformats/reg-i386.dat: Likewise. | |
6526 | * regformats/reg-x86-64-linux.dat: Likewise. | |
6527 | * regformats/reg-x86-64.dat: Likewise. | |
6528 | ||
d0d0ab16 CV |
6529 | 2010-03-01 Corinna Vinschen <[email protected]> |
6530 | ||
6531 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
6532 | cygwin_conv_path API rather than the deprecated | |
6533 | cygwin_conv_to_full_posix_path. | |
6534 | * windows-nat.c: | |
6535 | (GetModuleFileNameExA): Undefine for Cygwin. | |
6536 | (GetModuleFileNameExW): Define for Cygwin. | |
6537 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
6538 | Call GetModuleFileNameExW and convert path to POSIX using | |
6539 | cygwin_conv_path. | |
6540 | (windows_make_so): Always define p. Drop unused variable m. | |
6541 | Don't use Win32 functions to check file existance, rather use | |
6542 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
6543 | Use canonicalize_file_name to get full path. | |
6544 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
6545 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
6546 | use correct target buffer size in call to WideCharToMultiByte. | |
6547 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
6548 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
6549 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
6550 | and use CreateProcessW on Cygwin. | |
6551 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
6552 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
6553 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
6554 | (_initialize_loadable): Load GetModuleFileNameExW into | |
6555 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
6556 | ||
dc00d89f PM |
6557 | 2010-02-28 Phil Muldoon <[email protected]> |
6558 | ||
6559 | PR python/11036 | |
6560 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
6561 | to cope with user provided blocks. | |
6562 | ||
0e095b7e JK |
6563 | 2010-02-28 Jan Kratochvil <[email protected]> |
6564 | ||
6565 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
6566 | New comment. | |
6567 | ||
2f9e05b4 CV |
6568 | 2010-02-28 Corinna Vinschen <[email protected]> |
6569 | ||
6570 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
6571 | (COMMON_OBS): ... to here since it's used unconditionally. | |
6572 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
6573 | (SFILES): To here. | |
6574 | ||
eb195664 DD |
6575 | 2010-02-26 David Daney <[email protected]> |
6576 | ||
6577 | * mips-linux-tdep.c: Update struct sigframe comments. | |
6578 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
6579 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
6580 | this_frame's sp. | |
6581 | (mips_linux_n32n64_sigframe_init): Same. | |
6582 | ||
97b0f3e2 KB |
6583 | 2010-02-26 Kevin Buettner <[email protected]> |
6584 | ||
6585 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
6586 | invalidating regcache. | |
6587 | ||
4069ebbe DJ |
6588 | 2010-02-26 Daniel Jacobowitz <[email protected]> |
6589 | ||
6590 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
6591 | ||
05071a4d PA |
6592 | 2010-02-26 Pedro Alves <[email protected]> |
6593 | ||
6594 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
6595 | support. | |
6596 | ||
6063c216 UW |
6597 | 2010-02-26 Ulrich Weigand <[email protected]> |
6598 | ||
6599 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
6600 | add ADDR_SIZE member. | |
6601 | (allocate_piece_closure): Update. | |
6602 | (copy_pieced_value_closure): Likewise. | |
6603 | (dwarf2_evaluate_loc_desc): Likewise. | |
6604 | (read_pieced_value): Use DWARF address size instead of | |
6605 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
6606 | ||
5107b149 | 6607 | 2010-02-26 Phil Muldoon <[email protected]> |
c8d5aac9 | 6608 | Tom Tromey <[email protected]> |
5107b149 PM |
6609 | |
6610 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
6611 | If provided restrict lookup to specified blocks. | |
6612 | (gdbpy_lookup_type): Likewise. | |
6613 | (typy_lookup_type): Likewise. | |
6614 | ||
78664fa3 | 6615 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
8d95cc3b | 6616 | |
78664fa3 PA |
6617 | Symbian config |
6618 | ||
6619 | gdb/ | |
6620 | * arm-symbian-tdep.c: New. | |
6621 | * configure.tgt (arm*-*-symbianelf*): New target. | |
6622 | (*-*-symbianelf*): New OS. | |
6623 | * osabi.c (gdb_osabi_names): Add Symbian. | |
6624 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
6625 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
6626 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
6627 | ||
eb73e134 DJ |
6628 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
6629 | ||
6630 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
6631 | ||
46ef47e5 PA |
6632 | 2010-02-24 Pedro Alves <[email protected]> |
6633 | ||
6634 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
6635 | ||
f3e9a817 | 6636 | 2010-02-24 Phil Muldoon <[email protected]> |
8d95cc3b | 6637 | Tom Tromey <[email protected]> |
f3e9a817 PM |
6638 | Thiago Jung Bauermann <[email protected]> |
6639 | ||
6640 | * python/python.c (_initialize_python): Call | |
6641 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
6642 | gdbpy_initialize_blocks. | |
6643 | * python/python-internal.h: Declare struct symbol, block and | |
6644 | symtab_and_line. Declare block_object_type and | |
6645 | symbol_object_type | |
6646 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
6647 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
6648 | (symbol_to_symbol_object, block_to_block_object) | |
6649 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
6650 | (gdbpy_initialize_blocks ): Declare. | |
6651 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
6652 | (frapy_select): Add methods. | |
6653 | (frapy_read_var): Add symbol branch. | |
6654 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
6655 | py-block. | |
6656 | (SUBDIR_PYTHON_SRCS): Likewise. | |
6657 | (py-symbol.o): New rule. | |
6658 | (py-symtab.o): Likewise. | |
6659 | (py-block.o): Likewise. | |
6660 | * python/py-symbol.c: New file. | |
6661 | * python/py-symtab.c: Likewise. | |
6662 | * python/py-block.c: Likewise. | |
6663 | ||
24291992 PA |
6664 | 2010-02-24 Pedro Alves <[email protected]> |
6665 | ||
6666 | PR gdb/11321 | |
6667 | ||
6668 | * inferior.h (prepare_for_detach): Declare. | |
6669 | (struct inferior) <detaching>: New field. | |
6670 | * infrun.c (prepare_for_detach): New. | |
6671 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
6672 | * target.c (target_detach): Call prepare_for_detach. | |
6673 | ||
fc1cf338 PA |
6674 | 2010-02-24 Pedro Alves <[email protected]> |
6675 | ||
6676 | Per-process displaced stepping queue. | |
6677 | ||
6678 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
6679 | (displaced_step_gdbarch, displaced_step_closure, | |
6680 | (displaced_step_original, displaced_step_copy): Move globals to | |
6681 | this... | |
6682 | (struct displaced_step_inferior_state): ... new structure. | |
6683 | (displaced_step_inferior_states): New global. | |
6684 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
6685 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
6686 | functions. | |
6687 | (displaced_step_clear): Add displaced_step_inferior_state | |
6688 | parameter, and adjust to handle it. | |
6689 | (displaced_step_clear_cleanup): Parameter is now a | |
6690 | displaced_step_inferior_state. Adjust. | |
6691 | (displaced_step_prepare): Adjust. | |
6692 | (displaced_step_fixup, displaced_step_fixup) | |
6693 | (infrun_thread_ptid_changed, resume): Adjust. | |
6694 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
6695 | (infrun_thread_stop_requested): Rewrite. | |
6696 | (_initialize_infrun): Install infrun_inferior_exit as | |
6697 | inferior_exit observer. | |
6698 | ||
0723dbf5 PA |
6699 | 2010-02-24 Pedro Alves <[email protected]> |
6700 | ||
6701 | * inferior.h (ptid_match): Declare. | |
6702 | * infrun.c (ptid_match): New. | |
6703 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
6704 | (handle_notification): Add debug output. | |
6705 | * linux-nat.c (ptid_match): Delete. | |
6706 | ||
09de9781 DM |
6707 | 2010-02-24 David S. Miller <[email protected]> |
6708 | ||
6709 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
6710 | * syscalls/sparc-linux.xml: New. | |
6711 | * syscalls/sparc64-linux.xml: New. | |
6712 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
6713 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
6714 | (sparc32_linux_get_syscall_number): New function. | |
6715 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
6716 | syscall number fetcher. | |
6717 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
6718 | (sparc64_linux_get_syscall_number): New function. | |
6719 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
6720 | syscall number fetcher. | |
6721 | ||
a79b8f6e VP |
6722 | 2010-02-24 Vladimir Prus <[email protected]> |
6723 | ||
6724 | Multiexec MI | |
6725 | ||
6726 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
6727 | * inferior.c (add_inferior_silent): Notify inferior_added | |
6728 | observer. | |
6729 | (delete_inferior_1): Notify inferior_removed observer. | |
6730 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
6731 | (inferior_appeared): Likewise. | |
6732 | (add_inferior_with_spaces): New. | |
6733 | (add_inferior_command): Use the above. | |
6734 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
6735 | Declare. | |
6736 | ||
6737 | * inflow.c (inflow_inferior_exit): Likewise. | |
6738 | * jit.c (jit_inferior_exit_hook): Likewise. | |
6739 | ||
6740 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
6741 | remove-inferior. | |
6742 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
6743 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
6744 | (report_initial_inferior): New. | |
6745 | (mi_inferior_removed): Register the above. Make sure | |
6746 | inferior_added observer is called on the first inferior. | |
6747 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
6748 | inferior number, not pid. | |
6749 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
6750 | affected. | |
6751 | * mi/mi-main.c (current_context): New. | |
6752 | (proceed_thread_callback): Use typed closure. | |
6753 | Proceed everything if pid is 0. Most implementation split into | |
6754 | (proceed_thread): ... this. | |
6755 | (run_one_inferior): New. | |
6756 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
6757 | Adjust for multiexec behaviour. | |
6758 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
6759 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
6760 | Do some extra checks. | |
6761 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
6762 | options. | |
6763 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
6764 | ||
115d30f9 VP |
6765 | 2010-02-24 Vladimir Prus <[email protected]> |
6766 | ||
6767 | Make -exec-run a proper MI commands. | |
6768 | ||
6769 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
6770 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
6771 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
6772 | ||
06cd862c PA |
6773 | 2010-02-24 Pedro Alves <[email protected]> |
6774 | Stan Shebs <[email protected]> | |
6775 | ||
6776 | * tracepoint.h (set_traceframe_number) | |
6777 | (cleanup_restore_current_traceframe): Declare. | |
6778 | * tracepoint.c (set_traceframe_number): New. | |
6779 | (struct current_traceframe_cleanup): New. | |
6780 | (do_restore_current_traceframe_cleanup) | |
6781 | (restore_current_traceframe_cleanup_dtor) | |
6782 | (make_cleanup_restore_current_traceframe): New. | |
6783 | * infrun.c: Include tracepoint.h. | |
6784 | (fetch_inferior_event): Switch out and in of tfind mode. | |
6785 | ||
ab92d69b PA |
6786 | 2010-02-24 Pedro Alves <[email protected]> |
6787 | ||
6788 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
6789 | bp_shlib_event breakpoints. | |
6790 | * solib-frv.c (enable_break): Remove call to | |
6791 | remove_solib_event_breakpoints. | |
6792 | * solib-svr4.c (enable_break): Ditto. | |
6793 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
6794 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
6795 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
6796 | * solib-spu.c (spu_enable_break): Ditto. | |
6797 | ||
e707a91d PA |
6798 | 2010-02-23 Harald Koenig <[email protected]> |
6799 | ||
6800 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
6801 | ||
cfce2ea2 PA |
6802 | 2010-02-23 Harald Koenig <[email protected]> |
6803 | ||
6804 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
6805 | ||
05566b3b TT |
6806 | 2010-02-23 Tom Tromey <[email protected]> |
6807 | ||
6808 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
6809 | handle big-endian values. | |
6810 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
6811 | ||
85d721b8 PA |
6812 | 2010-02-22 Pedro Alves <[email protected]> |
6813 | ||
6814 | PR9605 | |
6815 | ||
6816 | gdb/ | |
6817 | * breakpoint.c (insert_bp_location): If inserting the read | |
6818 | watchpoint failed, fallback to an access watchpoint. | |
6819 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
6820 | if the value changed, if not watching the same memory for writes. | |
6821 | (watchpoint_locations_match): Add comment. | |
6822 | (update_global_location_list): Copy the location's watchpoint type. | |
6823 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
6824 | handle read watchpoints here. | |
6825 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
6826 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
6827 | packets. | |
6828 | * target.h (target_insert_watchpoint): Update description. | |
6829 | ||
48ea67a7 TT |
6830 | 2010-02-19 Tom Tromey <[email protected]> |
6831 | ||
6832 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
6833 | * m2-typeprint.c (m2_print_type): Update. | |
6834 | * gdbtypes.c (recursive_dump_type): Update. | |
6835 | (copy_type_recursive): Update. | |
6836 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
6837 | (c_type_print_base): Update. | |
6838 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
6839 | Remove. | |
6840 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
6841 | <struct template_arg>: Remove. | |
6842 | <is_dynamic>: Move earlier. | |
6843 | (TYPE_TEMPLATE_ARGS): Remove. | |
6844 | (TYPE_NTEMPLATE_ARGS): Remove. | |
6845 | (TYPE_TEMPLATE_ARG): Remove. | |
6846 | ||
48e32051 TT |
6847 | 2010-02-19 Tom Tromey <[email protected]> |
6848 | ||
6849 | PR c++/8693, PR c++/9496: | |
6850 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
6851 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
6852 | write_dollar_variable. Don't try to classify NAME tokens. | |
6853 | (token_and_value): New type. | |
6854 | (token_fifo, popping, name_obstack): New globals. | |
6855 | (classify_name): New function. | |
6856 | (classify_inner_name): Likewise. | |
6857 | (yylex): Likewise. | |
6858 | (VARIABLE): Now has type sval. | |
6859 | (exp : VARIABLE): Call write_dollar_variable. | |
6860 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
6861 | multiple "::" instances. | |
6862 | (variable): Use name_not_typename. | |
6863 | (qualified_type): Remove. | |
6864 | (typebase): Update. | |
6865 | ||
672d9c23 JK |
6866 | 2010-02-19 Jan Kratochvil <[email protected]> |
6867 | ||
6868 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
6869 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
6870 | found by bfd_get_section_by_name. | |
6871 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
6872 | ||
bfbf3774 JB |
6873 | 2010-02-19 Joel Brobecker <[email protected]> |
6874 | ||
6875 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
6876 | 7.0 section" into "Changes in 7.1". | |
6877 | ||
6756b09b | 6878 | 2010-02-19 Joel Brobecker <[email protected]> |
6879 | ||
6880 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
6881 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
6882 | ||
202b96c1 PA |
6883 | 2010-02-18 Harald Koenig <[email protected]> |
6884 | ||
6885 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
6886 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
6887 | ||
de2e5182 TT |
6888 | 2010-02-17 Tom Tromey <[email protected]> |
6889 | ||
6890 | * NEWS: Add Python API Improvements section. | |
6891 | ||
7280022e DJ |
6892 | 2010-02-18 Daniel Jacobowitz <[email protected]> |
6893 | ||
6894 | * NEWS: Correct typo. | |
6895 | ||
6f451e5e TT |
6896 | 2010-02-17 Tom Tromey <[email protected]> |
6897 | ||
6898 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
6899 | ||
012836ea JK |
6900 | 2010-02-17 Jan Kratochvil <[email protected]> |
6901 | ||
6902 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
6903 | only if they are SEC_ALLOC or SEC_LOAD. | |
6904 | ||
d182d057 L |
6905 | 2010-02-17 H.J. Lu <[email protected]> |
6906 | ||
6907 | PR shlibs/11293 | |
6908 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
6909 | of ULONGEST for address size. | |
6910 | ||
4eef138c TT |
6911 | 2010-02-17 Tom Tromey <[email protected]> |
6912 | ||
6913 | * NEWS: Add C++ improvements section. | |
6914 | ||
548a926a UW |
6915 | 2010-02-17 Ulrich Weigand <[email protected]> |
6916 | ||
6917 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
6918 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
6919 | ||
ad3a0e5b JK |
6920 | 2010-02-17 Jan Kratochvil <[email protected]> |
6921 | ||
6922 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
6923 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
6924 | ||
243e2c5d | 6925 | 2010-02-17 Tristan Gingold <[email protected]> |
b2319725 | 6926 | Petr Hluzin <[email protected]> |
243e2c5d TG |
6927 | |
6928 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
6929 | gdb_assert. Fix info->size for SIG prologue. | |
6930 | ||
275f2e57 DJ |
6931 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
6932 | ||
6933 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
6934 | Correct output message. | |
6935 | ||
791dfb64 DJ |
6936 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
6937 | ||
6938 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
6939 | FUNCTION contains parentheses. Improve removal of a trailing | |
6940 | single quote. | |
6941 | ||
14d1346b DJ |
6942 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
6943 | ||
6944 | * gcore.c (do_bfd_delete_cleanup): New function. | |
6945 | (gcore_command): Use it. Discard the cleanup after success. | |
6946 | (gcore_copy_callback): Delete dead code. | |
6947 | ||
e76ab67f DJ |
6948 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
6949 | ||
6950 | * symfile.c (addr_info_make_relative): Always use | |
6951 | find_lowest_section. | |
6952 | ||
71dee663 SW |
6953 | 2010-02-16 Sami Wagiaalla <[email protected]> |
6954 | ||
6955 | * NEWS: Added entry for namespace fixes. | |
6956 | ||
a9854bd5 TT |
6957 | 2010-02-15 Tom Tromey <[email protected]> |
6958 | ||
6959 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
6960 | objfile obstack. | |
6961 | ||
fd9e29b5 TT |
6962 | 2010-02-15 Tom Tromey <[email protected]> |
6963 | ||
6964 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
6965 | ||
4e1fc9c9 JK |
6966 | 2010-02-15 Jan Kratochvil <[email protected]> |
6967 | ||
6968 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
6969 | initialize it from ELF BFD. Extend the prelink condition by it. | |
6970 | ||
74164c56 JK |
6971 | 2010-02-15 Jan Kratochvil <[email protected]> |
6972 | ||
6973 | * defs.h (parse_pid_to_attach): New. | |
6974 | * utils.c (parse_pid_to_attach): New. | |
6975 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
6976 | * gnu-nat.c (gnu_attach): Likewise. | |
6977 | * nto-procfs.c (procfs_attach): Likewise. | |
6978 | * procfs.c (procfs_attach): Likewise. | |
6979 | * windows-nat.c (windows_attach): Likewise. | |
6980 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
6981 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
6982 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
6983 | check. | |
6984 | ||
bf6adea8 MM |
6985 | 2010-02-14 Masaki Muranaka <[email protected]> |
6986 | ||
6987 | * MAINTAINERS: Add myself for write after approval privileges. | |
6988 | ||
28f34a8f JK |
6989 | 2010-02-13 Jan Kratochvil <[email protected]> |
6990 | ||
6991 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
6992 | block. | |
6993 | ||
701ed6dc JK |
6994 | 2010-02-13 Jan Kratochvil <[email protected]> |
6995 | ||
6996 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
6997 | only if INFO_VERBOSE. | |
6998 | ||
e5829bee MS |
6999 | 2010-02-12 Tomas Holmberg <[email protected]> |
7000 | ||
7001 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
7002 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
7003 | exec-next-instruction, exec-step-instruction. This is to | |
7004 | support reverse execution over the MI interface to gdb. | |
7005 | ||
081dfbf7 PA |
7006 | 2010-02-12 Pedro Alves <[email protected]> |
7007 | ||
7008 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
7009 | range of `tfind outsize' is exclusive, and that the address range | |
7010 | of `tfind range' is inclusive, in the commands' help strings. | |
7011 | ||
ecc13e53 JB |
7012 | 2010-02-12 Joel Brobecker <[email protected]> |
7013 | ||
7014 | Spurious "dll not found" error messages on x64-windows. | |
7015 | * windows-nat.c: Add include of complaints.h. | |
7016 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
7017 | ||
15c3d785 PA |
7018 | 2010-02-12 Pedro Alves <[email protected]> |
7019 | ||
7020 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
7021 | bp_tracepoint and bp_fast_tracepoint, not | |
7022 | bp_loc_software_breakpoint. | |
7023 | (update_global_location_list): Tracepoints are never duplicates of | |
7024 | anything. | |
7025 | ||
fd9b8c24 PA |
7026 | 2010-02-12 Pedro Alves <[email protected]> |
7027 | ||
7028 | * breakpoint.c (break_command_really): Change return type to int. | |
7029 | Return false if no breakpoint was created, true otherwise. | |
7030 | (trace_command): Don't set the tracepoint count if no tracepoint | |
7031 | was created. | |
7032 | (ftrace_command): Ditto. | |
7033 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
7034 | created in the breakpoints table. | |
7035 | ||
5c0d192f JK |
7036 | 2010-02-11 Jan Kratochvil <[email protected]> |
7037 | Ulrich Weigand <[email protected]> | |
7038 | ||
7039 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
7040 | ||
5d5b640e PA |
7041 | 2010-02-11 Pedro Alves <[email protected]> |
7042 | ||
7043 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
7044 | the offset value isn't of integral type. | |
7045 | ||
e5a0a904 JK |
7046 | 2010-02-11 Jan Kratochvil <[email protected]> |
7047 | ||
7048 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
7049 | New. | |
7050 | ||
be636754 PA |
7051 | 2010-02-11 Pedro Alves <[email protected]> |
7052 | ||
7053 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
7054 | non-subscriptable types. | |
7055 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
7056 | from ... | |
7057 | (binop_user_defined_p): ... this. | |
7058 | * value.h (binop_types_user_defined_p): Declare. | |
7059 | ||
10ef8d6a PA |
7060 | 2010-02-11 Pedro Alves <[email protected]> |
7061 | ||
7062 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
7063 | Merge uploaded TSVs before merging uploaded tracepoints. | |
7064 | ||
b1028c8e PA |
7065 | 2010-02-11 Pedro Alves <[email protected]> |
7066 | ||
7067 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
7068 | ||
7a93fb82 | 7069 | 2010-02-11 Vladimir Prus <[email protected]> |
84d90c10 | 7070 | |
7a93fb82 VP |
7071 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
7072 | whitespace character after a dot in comment. | |
7073 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
7074 | Likewise. | |
7075 | (list_args_or_locals): For the 'all' (that is | |
7076 | -stack-list-variables) case, always output list of tuples. | |
7077 | Output 'arg' field if variable is argument. | |
84d90c10 | 7078 | |
92981e24 TT |
7079 | 2010-02-10 Tom Tromey <[email protected]> |
7080 | ||
7081 | * parser-defs.h (parser_debug): Declare. | |
7082 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
7083 | command. | |
7084 | (parser_debug): New global. | |
7085 | (show_parserdebug): New function. | |
7086 | * c-exp.y (c_parse): Set yydebug. | |
7087 | ||
9fd3625f L |
7088 | 2010-02-10 H.J. Lu <[email protected]> |
7089 | ||
7090 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
7091 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
7092 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
7093 | i386_mxcsr. | |
7094 | (tdesc_find_type): New. | |
7095 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
7096 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
7097 | ||
7098 | * target-descriptions.h (tdesc_find_type): New. | |
7099 | ||
2fe842e5 MS |
7100 | 2010-02-10 Michael Snyder <[email protected]> |
7101 | ||
7102 | * gdb-gdb.py: Comment fix. | |
7103 | ||
f18b4cab TG |
7104 | 2010-02-09 Tristan Gingold <[email protected]> |
7105 | ||
7106 | * machoread.c (macho_symfile_relocate): New function. | |
7107 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
7108 | default_symfile_relocate. | |
7109 | (macho_oso_data): New type. | |
7110 | (current_oso): New variable. | |
7111 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
7112 | instead set vma of sections. | |
7113 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
7114 | Set and clear current_oso. | |
7115 | ||
31dbc1c5 JB |
7116 | 2010-02-09 Joel Brobecker <[email protected]> |
7117 | ||
7118 | Wrong type description for tagged type parameter. | |
7119 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
7120 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
7121 | reference to a tagged type. | |
7122 | ||
399f313b TG |
7123 | 2010-02-09 Tristan Gingold <[email protected]> |
7124 | ||
7125 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
7126 | brothers of the parent. | |
7127 | ||
714f19d5 TT |
7128 | 2010-02-08 Tom Tromey <[email protected]> |
7129 | ||
7130 | PR c++/8017: | |
7131 | * value.h: Update. | |
7132 | * valops.c (search_struct_field): Make 'name' const. | |
7133 | (search_struct_method): Likewise. | |
7134 | (find_method_list): Make 'method' const. | |
7135 | (value_struct_elt): Make 'name' and 'err' const. | |
7136 | (value_find_oload_method_list): Make 'method' const. | |
7137 | (find_overload_match): Make 'name' const. | |
7138 | * eval.c (evaluate_subexp_standard): New locals function, | |
7139 | function_name. | |
7140 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
7141 | ||
de0a0249 UW |
7142 | 2010-02-08 Ulrich Weigand <[email protected]> |
7143 | ||
7144 | * infrun.c (handle_inferior_event): Do not look up regcache | |
7145 | for exited processes. | |
7146 | ||
8d95cc3b | 7147 | 2010-02-08 Chris Moller <[email protected]> |
83b10087 CM |
7148 | |
7149 | PR gdb/10728 | |
7150 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 7151 | warn if found, and assume length = 1. |
83b10087 | 7152 | |
99903ae3 CM |
7153 | 2010-02-08 Chris Moller <[email protected]> |
7154 | ||
7155 | PR gdb/9067 | |
7156 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
6036c742 | 7157 | (cp_print_static_field) Fix use of obstacks. |
8d95cc3b | 7158 | |
e3e9f5a2 PA |
7159 | 2010-02-08 Pedro Alves <[email protected]> |
7160 | ||
7161 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
7162 | resumed LWPs as resumed. | |
7163 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
7164 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
7165 | of throwing an internal error. If an LWP of a process we're not | |
7166 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
7167 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
7168 | go through all LWPs cancelling breakpoints in non-stop mode. | |
7169 | (resume_stopped_resumed_lwps): New. | |
7170 | (linux_nat_wait): Use it. | |
7171 | ||
46763423 L |
7172 | 2010-02-07 H.J. Lu <[email protected]> |
7173 | ||
7174 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
7175 | i386/amd64 and i386/amd64-linux. | |
7176 | (i386/i386-expedite): New. | |
7177 | (i386/i386-linux-expedite): Likewise. | |
7178 | (i386/amd64-expedite):Likewise. | |
7179 | (i386/amd64-linux-expedite): Likewise. | |
7180 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
7181 | ($(outdir)/i386/amd64.dat): Likewise. | |
7182 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
7183 | ||
7184 | * features/i386/32bit-core.xml: New. | |
7185 | * features/i386/32bit-linux.xml: Likewise. | |
7186 | * features/i386/32bit-sse.xml: Likewise. | |
7187 | * features/i386/64bit-core.xml: Likewise. | |
7188 | * features/i386/64bit-linux.xml: Likewise. | |
7189 | * features/i386/64bit-sse.xml: Likewise. | |
7190 | * features/i386/i386-linux.xml: Likewise. | |
7191 | * features/i386/i386.xml: Likewise. | |
7192 | * features/i386/amd64-linux.xml: Likewise. | |
7193 | * features/i386/amd64.xml: Likewise. | |
7194 | * features/i386/i386-linux.c: Likewise. | |
7195 | * features/i386/i386.c: Likewise. | |
7196 | * features/i386/amd64-linux.c: Likewise. | |
7197 | * features/i386/amd64.c: Likewise. | |
7198 | ||
82856980 SW |
7199 | 2010-02-05 Sami Wagiaalla <[email protected]> |
7200 | ||
7201 | PR c++/7935: | |
7202 | * cp-support.h: Added char* alias element to using_direct data | |
7203 | struct. | |
7204 | (cp_add_using): Added char* alias argument. | |
7205 | (cp_add_using_directive): Ditto. | |
7206 | * cp-namespace.c: Updated with the above changes. | |
7207 | (cp_lookup_symbol_imports): Check for aliases. | |
7208 | * dwarf2read.c (read_import_statement): Figure out local alias | |
7209 | for the import and pass it on to cp_add_using. | |
7210 | (read_namespace): Pass alias argument to cp_add_using. | |
7211 | ||
d18b8b7a HZ |
7212 | 2010-02-05 Hui Zhu <[email protected]> |
7213 | ||
7214 | * defs.h (gdb_bfd_errmsg): New extern. | |
7215 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
7216 | gdb_bfd_errmsg. | |
7217 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
7218 | (AMBIGUOUS_MESS2): New macro. | |
7219 | (gdb_bfd_errmsg): New function. | |
7220 | ||
48379de6 DE |
7221 | 2010-02-04 Doug Evans <[email protected]> |
7222 | ||
7223 | * solib-svr4.c (enable_break): Add comment. | |
7224 | ||
4ee73e90 AG |
7225 | 2010-02-04 Anthony Green <[email protected]> |
7226 | ||
7227 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
7228 | gracefully. | |
7229 | ||
1a334831 TT |
7230 | 2010-02-04 Tom Tromey <[email protected]> |
7231 | ||
7232 | * valops.c (search_struct_field): Account for | |
7233 | value_embedded_offset. Fix check for virtual base past the end of | |
7234 | the object. Use value_copy when making a slice of the value. | |
7235 | ||
1180b2c8 L |
7236 | 2010-02-04 H.J. Lu <[email protected]> |
7237 | ||
7238 | PR tui/9622 | |
7239 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
7240 | only if gdb_stdout is a tty. | |
7241 | ||
c3f08eb7 L |
7242 | 2010-02-04 H.J. Lu <[email protected]> |
7243 | ||
7244 | * target-descriptions.c: Include "osabi.h". | |
7245 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
7246 | OSABI. | |
7247 | ||
2d33f7b8 TG |
7248 | 2010-02-04 Tristan Gingold <[email protected]> |
7249 | ||
7250 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
7251 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
7252 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
7253 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
7254 | (macho_new_init): Move this function after declarations. | |
7255 | (macho_symfile_init): Ditto. | |
7256 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
7257 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
7258 | ||
11334b82 VP |
7259 | 2010-02-04 Vladimir Prus <[email protected]> |
7260 | ||
7261 | Include MI command in remotelog. | |
7262 | ||
7263 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
7264 | ||
ff97be06 L |
7265 | 2010-02-03 H.J. Lu <[email protected]> |
7266 | ||
7267 | * remote.c (remote_state): Remove gdbarch. | |
7268 | (init_remote_state): Don't set gdbarch. | |
7269 | (remote_query_supported): Pass target_gdbarch instead of | |
7270 | rs->gdbarch to gdbarch_qsupported. | |
7271 | ||
75cebea9 L |
7272 | 2010-02-03 H.J. Lu <[email protected]> |
7273 | ||
7274 | * gdbarch.sh: Add qsupported. | |
7275 | ||
7276 | * gdbarch.c: Regenerated. | |
7277 | * gdbarch.h: Likewise. | |
7278 | ||
7279 | * remote.c (remote_state): Add gdbarch. | |
7280 | (init_remote_state): Set gdbarch. | |
7281 | (remote_query_supported): Support gdbarch_qsupported. | |
7282 | ||
c1dec97b DJ |
7283 | 2010-02-03 Daniel Jacobowitz <[email protected]> |
7284 | ||
7285 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
7286 | __FreeBSD_kernel_version. | |
7287 | ||
ac8035ab TG |
7288 | 2010-02-03 Tristan Gingold <[email protected]> |
7289 | ||
7290 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
7291 | (default_symfile_relocate): New prototype. | |
7292 | (symfile_relocate_debug_section): First argument is now an objfile. | |
7293 | * symfile.c (default_symfile_relocate): Rename from | |
7294 | symfile_relocate_debug_section, first argument is now an objfile. | |
7295 | (symfile_relocate_debug_section): New function. | |
7296 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
7297 | * somread.c (som_sym_fns): Ditto. | |
7298 | * mipsread.c (ecoff_sym_fns): Ditto. | |
7299 | * machoread.c (macho_sym_fns): Ditto. | |
7300 | * elfread.c (elf_sym_fns): Ditto. | |
7301 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
7302 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
7303 | * dbxread.c (aout_sym_fns): Ditto. | |
7304 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
7305 | (elfstab_build_psymtabs): Ditto. | |
7306 | ||
be52b756 L |
7307 | 2010-02-03 H.J. Lu <[email protected]> |
7308 | ||
7309 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
7310 | ||
9c3c02fd TT |
7311 | 2010-02-02 Tom Tromey <[email protected]> |
7312 | ||
7313 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
7314 | type. | |
7315 | ||
f23f4c59 TT |
7316 | 2010-02-02 Tom Tromey <[email protected]> |
7317 | ||
7318 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
7319 | (gnuv2_baseclass_offset): Now static. | |
7320 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
7321 | * gnu-v2-abi.h: Remove. | |
7322 | ||
0cc2414c TT |
7323 | 2010-02-02 Tom Tromey <[email protected]> |
7324 | ||
7325 | * m2-typeprint.c (m2_record_fields): Don't use | |
7326 | TYPE_DECLARED_TYPE. | |
7327 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
7328 | (struct main_type) <flag_declared_class>: New field. | |
7329 | (struct cplus_struct_type) <declared_type>: Remove. | |
7330 | <ntemplate_args>: Move earlier. | |
7331 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
7332 | (DECLARED_TYPE_TEMPLATE): Remove. | |
7333 | (TYPE_DECLARED_TYPE): Remove. | |
7334 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
7335 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
7336 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
7337 | TYPE_DECLARED_TYPE. | |
7338 | ||
edf3d5f3 TT |
7339 | 2010-02-02 Tom Tromey <[email protected]> |
7340 | ||
7341 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
7342 | * valops.c (search_struct_field): Compute nbases after calling | |
7343 | CHECK_TYPEDEF. | |
7344 | (check_field): Call CHECK_TYPEDEF. | |
7345 | * cp-valprint.c (cp_print_value): Pass correct address to | |
7346 | baseclass_offset. Fix check for virtual base past the end of the | |
7347 | object. Don't offset address passed to cp_print_value_fields or | |
7348 | apply_val_pretty_printer. | |
7349 | (cp_print_value_fields): Fix call to val_print. | |
7350 | (cp_print_value_fields_rtti): New function. | |
7351 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
7352 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
7353 | val_print. | |
7354 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
7355 | offset to address. | |
7356 | * language.h (struct language_defn) <la_val_print>: Document. | |
7357 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
7358 | ||
e4b7f41c JK |
7359 | 2010-02-01 Jan Kratochvil <[email protected]> |
7360 | ||
7361 | PR libc/11214: | |
7362 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
7363 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
7364 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
7365 | ||
7618e12b DJ |
7366 | 2010-02-01 Michael Matz <[email protected]> |
7367 | Daniel Jacobowitz <[email protected]> | |
7368 | ||
e4b7f41c | 7369 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
7370 | functions use a frame pointer. |
7371 | ||
b381ea14 JK |
7372 | 2010-02-01 Jan Kratochvil <[email protected]> |
7373 | ||
7374 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
7375 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
7376 | * config/djgpp/fnchange.lst: Add translations for | |
7377 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
7378 | ||
0e05dfcb DJ |
7379 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
7380 | ||
7381 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
7382 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
7383 | * gdbarch.c: Regenerated. | |
7384 | ||
f9d67f43 DJ |
7385 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
7386 | ||
7387 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
7388 | arm_pc_is_thumb. | |
7389 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
7390 | (extend_buffer_earlier): New function. | |
7391 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
7392 | (arm_adjust_breakpoint_address): New function. | |
7393 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
7394 | ||
177321bd DJ |
7395 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
7396 | ||
7397 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
7398 | (arm_linux_thumb2_le_breakpoint): New constants. | |
7399 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
7400 | thumb2_breakpoint_size. | |
7401 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
7402 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
7403 | Implement support for single stepping through IT blocks if | |
7404 | a 32-bit Thumb breakpoint instruction is available. | |
7405 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
7406 | is available, use it when needed. | |
7407 | (arm_remote_breakpoint_from_pc): New function. | |
7408 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
7409 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
7410 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
7411 | ||
a1dcb23a DJ |
7412 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
7413 | ||
7414 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
7415 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
7416 | * gdbarch.c, gdbarch.h: Regenerated. | |
7417 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
7418 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
7419 | gdbarch_remote_breakpoint_from_pc. | |
7420 | ||
2b009048 DJ |
7421 | 2010-01-29 Daniel Jacobowitz <[email protected]> |
7422 | ||
7423 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
7424 | match a breakpoint. | |
7425 | (handle_inferior_event): Move the check for unusual breakpoint | |
7426 | signals earlier. | |
7427 | ||
e4e2711a JB |
7428 | 2010-01-29 Paul Hilfinger <[email protected]> |
7429 | ||
7430 | amd64 - function returning record with field straddling 2 registers. | |
7431 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
7432 | a record of length <= 16 in which a field straddles the two | |
7433 | eightbytes. | |
7434 | ||
cba6fab5 JB |
7435 | 2010-01-29 Joel Brobecker <[email protected]> |
7436 | ||
7437 | Implement return values on amd64-windows. | |
7438 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
7439 | (amd64_windows_return_value): New function. | |
7440 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
7441 | amd64_windows_return_value. | |
7442 | ||
3af6ddfe JB |
7443 | 2010-01-29 Joel Brobecker <[email protected]> |
7444 | ||
7445 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 7446 | parameter registers. |
3af6ddfe JB |
7447 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
7448 | integer_param_regs_saved_in_caller_frame. | |
7449 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
7450 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
7451 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
7452 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
7453 | ||
80d19a06 JB |
7454 | 2010-01-29 Joel Brobecker <[email protected]> |
7455 | ||
7456 | amd64-windows: memory args passed by pointer during function calls. | |
7457 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
7458 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
7459 | where tdep->memory_args_by_pointer is non-zero. | |
7460 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
7461 | tdep->memory_args_by_pointer to 1. | |
7462 | ||
ba581dc1 JB |
7463 | 2010-01-29 Joel Brobecker <[email protected]> |
7464 | ||
4966b6c2 | 7465 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
7466 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
7467 | amd64-tdep.c. | |
7468 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
7469 | call_dummy_integer_regs, and classify. | |
7470 | * amd64-tdep.h (amd64_classify): Add declaration. | |
7471 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
7472 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
7473 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
7474 | Replace call to amd64_classify by call to tdep->classify. | |
7475 | (amd64_push_arguments): Get the list of registers to use for | |
7476 | passing integer parameters from the gdbarch tdep structure, | |
7477 | rather than using a hardcoded one. Replace calls to amd64_classify | |
7478 | by calls to tdep->classify. | |
7479 | (amd64_push_dummy_call): Get the register number used for | |
7480 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
7481 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
7482 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
7483 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
7484 | (amd64_windows_dummy_call_integer_regs): New static global. | |
7485 | (amd64_windows_classify): New function. | |
7486 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
7487 | tdep->call_dummy_integer_regs and tdep->classify. | |
7488 | ||
d37346f0 DJ |
7489 | 2010-01-28 Daniel Jacobowitz <[email protected]> |
7490 | ||
7491 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
7492 | for the new regcache. All callers updated. | |
7493 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
7494 | (get_thread_arch_regcache): Do not set aspace here. | |
7495 | * regcache.h (regcache_xmalloc): Update declaration. | |
7496 | ||
7497 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
7498 | regcache_xmalloc updated. | |
7499 | ||
7434dadd JB |
7500 | 2010-01-28 Joel Brobecker <[email protected]> |
7501 | ||
7502 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
7503 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
7504 | Only define if SYS_syssgi is defined. | |
7505 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
7506 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
7507 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
7508 | is itself defined. | |
7509 | ||
16d905e2 CF |
7510 | 2010-01-27 Christopher Faylor <[email protected]> |
7511 | ||
7512 | * windows-nat.c (windows_initialization_done): New variable. | |
7513 | (get_windows_debug_event): Issue error when process dies before | |
7514 | completely initializing. | |
7515 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
7516 | the initial steps of attaching to the child. | |
7517 | ||
cd55e50f JK |
7518 | 2010-01-27 Jan Kratochvil <[email protected]> |
7519 | ||
7520 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
7521 | ||
99cc78aa DE |
7522 | 2010-01-27 Doug Evans <[email protected]> |
7523 | ||
4c7dcb84 DE |
7524 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
7525 | ||
99cc78aa DE |
7526 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
7527 | ||
52334bf5 JK |
7528 | 2010-01-27 Jan Kratochvil <[email protected]> |
7529 | ||
7530 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
7531 | objfile via SYMBOL_SYMTAB. | |
7532 | ||
708ead4e TT |
7533 | 2010-01-26 Tom Tromey <[email protected]> |
7534 | ||
7535 | PR exp/7643: | |
7536 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
7537 | coerce_array on result. | |
7538 | ||
b14e635e SW |
7539 | 2010-01-26 Sami Wagiaalla <[email protected]> |
7540 | ||
7541 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
7542 | search_parent argument. | |
7543 | (cp_add_using): Initialize 'searched' field. | |
7544 | (reset_directive_searched): New function. | |
7545 | * cp-support.h: Add 'searched' field to using_direct struct. | |
7546 | (cp_lookup_symbol_imports): Ditto. | |
7547 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
7548 | Perform recursive search. | |
7549 | Implement non parent search. | |
7550 | * valops.c (value_maybe_namespace_elt): Updated. | |
7551 | ||
8540c487 SW |
7552 | 2010-01-26 Sami Wagiaalla <[email protected]> |
7553 | ||
7554 | PR gdb/10929: | |
7555 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
7556 | scopes which contain using directives even if they contain no | |
7557 | declarations. | |
7558 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
7559 | la_lookup_symbol_nonlocal. | |
7560 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
7561 | cp_lookup_symbol_namespace. | |
7562 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
7563 | block level. | |
7564 | (cp_lookup_symbol_imports): New function. | |
7565 | (cp_lookup_symbol_in_namespace): New function. | |
7566 | ||
421d5d99 TT |
7567 | 2010-01-25 Tom Tromey <[email protected]> |
7568 | ||
7569 | PR gdb/11049: | |
7570 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
7571 | result. | |
7572 | ||
6bcc772d RO |
7573 | 2010-01-25 Rainer Orth <[email protected]> |
7574 | ||
7575 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
7576 | Use test to check variables, prefix strings with x. | |
7577 | * configure: Regenerate. | |
7578 | ||
7579 | * solib-osf.c (osf_current_sos): Initialize tail. | |
7580 | ||
1c1238a5 TG |
7581 | 2010-01-25 gingold <[email protected]> |
7582 | ||
c8d5aac9 L |
7583 | * windows-nat.c (windows_continue): Use %x to print thread id. |
7584 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 7585 | |
0b92b5bb TT |
7586 | 2010-01-22 Tom Tromey <[email protected]> |
7587 | ||
7588 | PR symtab/11199: | |
7589 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
7590 | type and arguments. Use smash_to_methodptr_type. | |
7591 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
7592 | later. | |
7593 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
7594 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
7595 | (lookup_methodptr_type): Use it. | |
7596 | ||
0d5392b8 TT |
7597 | 2010-01-21 Tom Tromey <[email protected]> |
7598 | ||
7599 | PR symtab/11198: | |
7600 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
7601 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
7602 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
7603 | (glibc_skip_solib_resolver): Use | |
7604 | lookup_minimal_symbol_and_objfile. | |
7605 | ||
e6d088ec KT |
7606 | 2010-01-21 Kai Tietz <[email protected]> |
7607 | ||
7608 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
7609 | WIN32 targets. | |
7610 | ||
b966cb8a TT |
7611 | 2010-01-20 Tom Tromey <[email protected]> |
7612 | ||
7613 | PR backtrace/10770: | |
7614 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
7615 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
7616 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
7617 | dwarf_stack_values, not CORE_ADDRs. | |
7618 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
7619 | use signed operands. | |
7620 | ||
3f81c18a VP |
7621 | 2010-01-20 Vladimir Prus <[email protected]> |
7622 | ||
7623 | Per-inferior args and tty and environment. | |
7624 | ||
7625 | * infcmd.c (inferior_args): Rename to ... | |
7626 | (inferior_args_scratch): ... this. | |
7627 | (inferior_io_terminal): Rename to ... | |
7628 | (inferior_io_terminal_scratch): ... this. | |
7629 | (inferior_argc, inferior_argv): Remove. | |
7630 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
7631 | inside current_inferior(). | |
7632 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
7633 | (get_inferior_args, set_inferior_args): Store inside | |
7634 | current_inferior(). | |
7635 | (notice_args_set): Likewise and rename to... | |
7636 | (set_args_command): ... this. | |
7637 | (set_inferior_args_vector): Likewise. | |
7638 | (notice_args_read): Rename to... | |
7639 | (show_args_command): ...new. | |
7640 | (tty_command): Remove. | |
7641 | (run_command_1): Don't free old args, as they are freed by | |
7642 | set_inferior_arg now. | |
7643 | (run_no_args_command): Likewise. | |
7644 | (inferior_environ): Remove. | |
7645 | (run_command_1): Use environment of the current inferior. | |
7646 | (environment_info, set_environment_command) | |
7647 | (unset_environment_command, path_info, path_command): Likewise. | |
7648 | (_initialize_infcmd): Adjust for function and variable renames. | |
7649 | Do not init inferior_environ. | |
7650 | * inferior.h (set_inferior_arg): Adjust prototype. | |
7651 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
7652 | (inferior_environ): Remove declaration. | |
7653 | * inferior.c (free_inferior): Free new fields. | |
7654 | (add_inferior_silent): Initialize 'environment' field. | |
7655 | * main.c (captured_main): Set arguments only after the initial | |
7656 | inferior has been created. Set set_inferior_io_terminal, | |
7657 | not tty_command. | |
7658 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
7659 | inferior. | |
7660 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
7661 | inferior_environ. | |
7662 | * solib.c (solib_find): Use environment of the current inferior. | |
7663 | ||
d8b65138 JK |
7664 | 2010-01-20 Jan Kratochvil <[email protected]> |
7665 | ||
7666 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
7667 | HAVE_PYTHON. | |
7668 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
7669 | ||
692465f1 JB |
7670 | 2010-01-20 Joel Brobecker <[email protected]> |
7671 | ||
7672 | Get rid of ada-lang.c:function_name_from_pc. | |
7673 | * ada-lang.c: Add "stack.h" #include. | |
7674 | (function_name_from_pc): Delete. | |
7675 | (is_known_support_routine): Replace call to function_name_from_pc | |
7676 | by call to find_frame_funname. | |
7677 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
7678 | ||
95519e0e TT |
7679 | 2010-01-19 Tom Tromey <[email protected]> |
7680 | ||
7681 | PR c++/11026: | |
7682 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
7683 | objfile obstack. | |
7684 | ||
95c11dc7 TT |
7685 | 2010-01-19 Tom Tromey <[email protected]> |
7686 | ||
7687 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
7688 | ||
a0f49112 JK |
7689 | 2010-01-19 Jan Kratochvil <[email protected]> |
7690 | ||
7691 | * breakpoint.c (watchpoint_check): Check the call | |
7692 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
7693 | Extend the comment. | |
8d95cc3b | 7694 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
7695 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
7696 | watchpoint-cond-gone-stripped.c. | |
7697 | ||
ceeb3d5a TT |
7698 | 2010-01-19 Tom Tromey <[email protected]> |
7699 | ||
7700 | PR c++/8000: | |
7701 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
7702 | into parent scope, and enumerator into grandparent scope. | |
7703 | ||
2b71fc8e JB |
7704 | 2010-01-19 Joel Brobecker <[email protected]> |
7705 | ||
7706 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
7707 | ||
03564ed9 JB |
7708 | 2010-01-19 Joel Brobecker <[email protected]> |
7709 | ||
7710 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
7711 | i[34567]86-*-solaris2.1[0-9]*. | |
7712 | * configure.tgt: Likewise. | |
7713 | ||
fb2e7cb4 JB |
7714 | 2010-01-19 Joel Brobecker <[email protected]> |
7715 | ||
7716 | * NEWS: Document the source command enhancement allowing it | |
7717 | to load Python scripts. Document the "set/show script-extension" | |
7718 | commands. | |
7719 | ||
1cb5e2a4 JB |
7720 | 2010-01-19 Joel Brobecker <[email protected]> |
7721 | ||
7722 | Add -Wunused-function to compile flags. | |
7723 | * configure.ac: Add -Wunused-function to build_warnings. | |
7724 | * configure: Regenerate. | |
7725 | ||
0ec6cd0c JB |
7726 | 2010-01-19 Joel Brobecker <[email protected]> |
7727 | ||
7728 | "delete" ada-lex.c:input function, not used. | |
7729 | * ada-lex.l: #define YY_NO_INPUT. | |
7730 | ||
b74845da JB |
7731 | 2010-01-19 Joel Brobecker <[email protected]> |
7732 | ||
7733 | Delete free_named_symtabs and associated cleanup. | |
7734 | * symfile.h (free_named_symtabs): Delete declaration. | |
7735 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
7736 | (cashier_psymtab): Comment function out. | |
7737 | Delete declaration. | |
7738 | (free_named_symtabs): Delete. | |
7739 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
7740 | * dbxread.c (end_psymtab): Likewise. | |
7741 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
7742 | * exec.c (exec_close_1): Ditto. | |
7743 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
7744 | ||
65c06092 JB |
7745 | 2010-01-19 Joel Brobecker <[email protected]> |
7746 | ||
7747 | * stack.c (print_block_frame_labels): Comment function out. | |
7748 | ||
d5cd6034 JB |
7749 | 2010-01-19 Joel Brobecker <[email protected]> |
7750 | ||
7751 | Delete unused or undefined functions. | |
7752 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
7753 | * dcache.c (dcache_write_line): Remove declaration. | |
7754 | * infrun.c (build_infrun): Remove declaration. | |
7755 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
7756 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
7757 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
7758 | * infrun.c (init_execution_control_state): Delete. | |
7759 | (proceed): Update comment to avoid mentioning | |
7760 | init_execution_control_state. | |
7761 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
7762 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
7763 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
7764 | * cp-namespace.c (cp_copy_usings): Delete. | |
7765 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
7766 | * progspace.c (find_program_space_by_num): Delete. | |
7767 | * inflow.c (handle_sigio): Delete declaration. | |
7768 | * hppa-tdep.c (hppa_alignof): Delete. | |
7769 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
7770 | (mipsnbsd_core_osabi_sniffer): Delete. | |
7771 | ||
4e8f195d TT |
7772 | 2010-01-18 Tom Tromey <[email protected]> |
7773 | ||
7774 | PR c++/9680: | |
7775 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
7776 | (CONST_CAST): New tokens. | |
7777 | (exp): Add new productions. | |
7778 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
7779 | reinterpret_cast. | |
7780 | (is_cast_operator): New function. | |
7781 | (yylex): Handle cast operators specially. | |
7782 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
7783 | UNOP_REINTERPRET_CAST>: New cases. | |
7784 | * expprint.c (print_subexp_standard): Likewise. | |
7785 | (op_name_standard): Likewise. | |
7786 | (dump_subexp_body_standard): Likewise. | |
7787 | * parse.c (operator_length_standard): Likewise. | |
7788 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
7789 | UNOP_REINTERPRET_CAST. | |
7790 | * gdbtypes.c (class_types_same_p): New function. | |
7791 | (is_ancestor): Use it. | |
7792 | (is_public_ancestor): New function. | |
7793 | (is_unique_ancestor_worker): Likewise. | |
7794 | (is_unique_ancestor): Likewise. | |
7795 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
7796 | (is_unique_ancestor): Declare. | |
7797 | * valops.c (value_reinterpret_cast): New function. | |
7798 | (dynamic_cast_check_1): Likewise. | |
7799 | (dynamic_cast_check_2): Likewise. | |
7800 | (value_dynamic_cast): Likewise. | |
7801 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
7802 | ||
d9c57d9f JB |
7803 | 2010-01-18 Joel Brobecker <[email protected]> |
7804 | ||
7805 | Fix build failure when building without Python support. | |
7806 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
7807 | is not defined. | |
7808 | ||
f80d3ff2 JB |
7809 | 2010-01-18 Joel Brobecker <[email protected]> |
7810 | ||
7811 | Use XVS field type instead of doing a parallel lookup. | |
7812 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
7813 | if it is a reference type instead of doing a type lookup using | |
7814 | the XVS field name. | |
7815 | ||
5bf03f13 JB |
7816 | 2010-01-18 Joel Brobecker <[email protected]> |
7817 | ||
7818 | Trust PAD types instead of using PAD___XVS. | |
7819 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
7820 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
7821 | parallel XVS type, follow the XVS type instead of the PAD type. | |
7822 | (unwrap_value): Make sure that there is no parallel XVE type | |
7823 | before returning the value as is. | |
7824 | (set_ada_list, show_ada_list): New static variables. | |
7825 | (set_ada_command, show_ada_command): New functions. | |
7826 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
7827 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
7828 | ||
973817a3 JB |
7829 | 2010-01-18 Tom Tromey <[email protected]> |
7830 | Thiago Jung Bauermann <[email protected]> | |
7831 | ||
7832 | Allow "source" to load python scripts. | |
7833 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
7834 | * python/python.c (source_python_script): New function. | |
7835 | * python/python.h (source_python_script): Add declaration. | |
7836 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
7837 | (script_ext_off, script_ext_soft, script_ext_strict) | |
7838 | (script_ext_enums, script_ext_mode): New static constants. | |
7839 | (show_script_ext_mode, find_and_open_script): New functions. | |
7840 | (source_script): Enhance to handle Python scripts. | |
7841 | (init_cli_cmds): Add set/show script-extension commands. | |
7842 | ||
98e03262 SS |
7843 | 2010-01-16 Stan Shebs <[email protected]> |
7844 | ||
7845 | * tracepoint.h (struct trace_status): Use unsigned long long | |
7846 | instead of size_t. | |
7847 | * tracepoint.c (trace_status_command): Fix printf directive. | |
7848 | (trace_save_command): Check fwrite returns, fix printf directive. | |
7849 | (trace_filename): New global. | |
7850 | (tfile_open): Set it, check read returns. | |
7851 | (tfile_close): Free trace_filename. | |
7852 | (tfile_get_traceframe_address): Check read returns. | |
7853 | (tfile_trace_find): Ditto. | |
7854 | (tfile_fetch_registers): Ditto. | |
7855 | (tfile_xfer_partial): Ditto. | |
7856 | (tfile_get_trace_state_variable_value): Ditto. | |
7857 | ||
00bf0b85 SS |
7858 | 2010-01-15 Stan Shebs <[email protected]> |
7859 | ||
7860 | Add trace file support. | |
7861 | * tracepoint.h (enum trace_stop_reason): New enum. | |
7862 | (struct trace_status): New struct. | |
7863 | (parse_trace_status): Declare. | |
7864 | (struct uploaded_tp): Move here from remote.c, | |
7865 | add fields for actions. | |
7866 | (struct uploaded_tsv): New struct. | |
7867 | * tracepoint.c (tfile_ops): New target vector. | |
7868 | (trace_fd): New global. | |
7869 | (tfile_open): New function. | |
7870 | (tfile_close): New function. | |
7871 | (tfile_files_info): New function. | |
7872 | (tfile_get_trace_status): New function. | |
7873 | (tfile_get_traceframe_address): New function. | |
7874 | (tfile_trace_find): New function. | |
7875 | (tfile_fetch_registers): New function. | |
7876 | (tfile_xfer_partial): New function. | |
7877 | (tfile_get_trace_state_variable_value): New function. | |
7878 | (init_tfile_ops): New function. | |
7879 | (_initialize_tracepoint): Call it, add tfile target. | |
7880 | (trace_status): New global. | |
7881 | (current_trace_status): New function. | |
7882 | (trace_running_p): Remove, change all users to get from | |
7883 | current_trace_status()->running. | |
7884 | (get_trace_status): Remove. | |
7885 | (trace_status_command): Call target_get_trace_status directly, | |
7886 | report more detail including tracing stop reasons. | |
7887 | (trace_find_command): Always allow tfind on a file. | |
7888 | (trace_find_pc_command): Ditto. | |
7889 | (trace_find_tracepoint_command): Ditto. | |
7890 | (trace_find_line_command): Ditto. | |
7891 | (trace_find_range_command): Ditto. | |
7892 | (trace_find_outside_command): Ditto. | |
7893 | (trace_frames_offset, cur_offset): Declare as off_t. | |
7894 | (trace_regblock_size): Rename from reg_size, update users. | |
7895 | (parse_trace_status): New function. | |
7896 | (tfile_interp_line): New function. | |
7897 | (disconnect_or_stop_tracing): Ensure current trace | |
7898 | status before asking what to do. | |
7899 | (stop_reason_names): New global. | |
7900 | (trace_save_command): New command. | |
7901 | (get_uploaded_tp): Move here from remote.c. | |
7902 | (find_matching_tracepoint): Ditto. | |
7903 | (merge_uploaded_tracepoints): New function. | |
7904 | (parse_trace_status): Use stop_reason_names. | |
7905 | (_initialize_tracepoint): Define tsave command. | |
7906 | * target.h (target_ops): New fields to_save_trace_data, | |
7907 | to_upload_tracepoints, to_upload_trace_state_variables, | |
7908 | to_get_raw_trace_data, change to_get_trace_status | |
7909 | to take a pointer to a status struct. | |
7910 | (target_save_trace_data): New macro. | |
7911 | (target_upload_tracepoints): New macro. | |
7912 | (target_upload_trace_state_variables): New macro. | |
7913 | (target_get_raw_trace_data): New macro. | |
7914 | * target.c (update_current_target): Add new methods, change | |
7915 | signature of to_get_trace_status. | |
7916 | * remote.c (hex2bin): Make globally visible. | |
7917 | (bin2hex): Ditto. | |
7918 | (remote_download_trace_state_variable): Download name also. | |
7919 | (remote_get_trace_status): Update parameter, use | |
7920 | parse_trace_status. | |
7921 | (remote_save_trace_data): New function. | |
7922 | (remote_upload_tracepoints): New function. | |
7923 | (remote_upload_trace_state_variables): New function. | |
7924 | (remote_get_raw_trace_data): New function. | |
7925 | (remote_start_remote): Use them. | |
7926 | (_initialize_remote_ops): Add operations. | |
7927 | * ax-gdb.c: Include breakpoint.h. | |
7928 | * breakpoint.c (create_tracepoint_from_upload): Use | |
7929 | break_command_really, return tracepoint, warn about unimplemented | |
7930 | parts. | |
7931 | * NEWS: Mention trace file addition. | |
7932 | ||
d904de5b JK |
7933 | 2010-01-15 Jan Kratochvil <[email protected]> |
7934 | ||
7935 | Fix compilation warning on gcc-3.4. | |
7936 | * exec.c (print_section_info): Move the `displacement' variable | |
7937 | initialization to its declaration. | |
7938 | ||
64aa9731 JK |
7939 | 2010-01-15 Jan Kratochvil <[email protected]> |
7940 | ||
7941 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
7942 | comparison. | |
7943 | ||
ca1f5def | 7944 | 2010-01-15 Eric Botcazou <[email protected]> |
9f0dec2d JB |
7945 | |
7946 | "info tasks" broken by typedefs in ATCB type definitions. | |
7947 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
7948 | ada_check_typedef before retrieving the length of the type for | |
7949 | regular fields. | |
7950 | ||
12ab9e09 JB |
7951 | 2010-01-15 Joel Brobecker <[email protected]> |
7952 | ||
7953 | Do not use name-based lookup for unconstrained packed arrays. | |
7954 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
7955 | Limit the fallback to name-based lookups to the case where | |
7956 | the type is a constrained packed array. | |
7957 | ||
c389c3dc JB |
7958 | 2010-01-15 Joel Brobecker <[email protected]> |
7959 | ||
7960 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
7961 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
7962 | ||
7991dee7 JK |
7963 | 2010-01-15 Jan Kratochvil <[email protected]> |
7964 | ||
7965 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
7966 | * configure: Regenerate. | |
7967 | * config.in: Regenerate. | |
7968 | * utils.c: Include sys/resource.h. | |
7969 | (dump_core, can_dump_core): New. | |
7970 | (internal_vproblem): Update the comment. Check can_dump_core while | |
7971 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
7972 | ||
93c26624 JK |
7973 | 2010-01-14 Jan Kratochvil <[email protected]> |
7974 | Eli Zaretskii <[email protected]> | |
7975 | ||
7976 | * NEWS: Document the PIE support. | |
7977 | ||
55235ad7 JK |
7978 | 2010-01-14 Jan Kratochvil <[email protected]> |
7979 | ||
7980 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
7981 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
7982 | ||
41752192 JK |
7983 | 2010-01-14 Jan Kratochvil <[email protected]> |
7984 | ||
7985 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
7986 | Replace exec_entry_point call by bfd_get_start_address. | |
7987 | ||
9f2982ff JK |
7988 | 2010-01-14 Jan Kratochvil <[email protected]> |
7989 | ||
7990 | Support Valgrind attachments broken by the PIE support. | |
7991 | * auxv.c: Include gdbcore.h. | |
7992 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
7993 | parameters ops, object and annex. Remove their assertions. | |
7994 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
7995 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
7996 | (memory_xfer_auxv): ... here. | |
7997 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
7998 | memory_xfer_auxv. | |
7999 | * procfs.c (procfs_xfer_partial): Likewise. | |
8000 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
8001 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
8002 | (svr4_solib_create_inferior_hook): Conditionalize the | |
8003 | svr4_relocate_main_executable call. | |
8004 | ||
61f0d762 JK |
8005 | 2010-01-14 Jan Kratochvil <[email protected]> |
8006 | ||
8007 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
8008 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
8009 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
8010 | New variable abfd. | |
8011 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
8012 | of separate debug info file. | |
8013 | ||
51bee8e9 JK |
8014 | 2010-01-14 Jan Kratochvil <[email protected]> |
8015 | ||
8016 | Support PIEs with no symfile_objfile. | |
8017 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
8018 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
8019 | ||
b8040f19 JK |
8020 | 2010-01-14 Jan Kratochvil <[email protected]> |
8021 | ||
8022 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
8023 | code part to ... | |
8024 | (svr4_static_exec_displacement): ... a new function. | |
8025 | (svr4_exec_displacement): New function. | |
8026 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
8027 | new_offsets using alloca now. Remove variable old_chain and changed. | |
8028 | Call objfile_relocate unconditionally now. | |
8029 | ||
eb90ce83 DE |
8030 | 2010-01-14 Doug Evans <[email protected]> |
8031 | ||
8032 | * gdbtypes.c (arch_flags_type): Fix comment. | |
8033 | * gdbtypes.h (arch_composite_type): Fix comment. | |
8034 | ||
bdfed3bc TG |
8035 | 2009-01-14 Tristan Gingold <[email protected]> |
8036 | ||
8037 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
8038 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
8039 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
8040 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
8041 | macho_add_oso_symfile. | |
8042 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
8043 | ||
1596ad23 JB |
8044 | 2010-01-14 Joel Brobecker <[email protected]> |
8045 | ||
8046 | Tru64: Dead threads are never deleted. | |
8047 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
8048 | (dec_thread_count_gdb_threads): Fix counter increment. | |
8049 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
8050 | (resync_thread_list): Fix bug in deletion of dead threads that | |
8051 | caused all threads to be deleted, instead of just the dead ones. | |
8052 | ||
be759fcf PM |
8053 | 2010-01-13 Phil Muldoon <[email protected]> |
8054 | ||
8055 | PR python/10705 | |
8056 | ||
8057 | * python/python-internal.h: Add lazy_string_object_type | |
8058 | definition. | |
8059 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
8060 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
8061 | * python/py-value.c (valpy_lazy_string): New function. | |
8062 | (convert_value_from_python): Add lazy string conversion. | |
8063 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
8064 | return is also a lazy string. | |
8065 | (print_string_repr): Add lazy string printing branch. | |
8066 | (print_children): Likewise. | |
8067 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
8068 | * python/python.c (_initialize_python): Call | |
8069 | gdbpy_initialize_lazy_string. | |
8070 | * varobj.c (value_get_print_value): Add lazy string printing | |
8071 | branch. Account for encoding. | |
8072 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
8073 | encoding is NULL, find encoding suited for type, otherwise use | |
8074 | user encoding. | |
8075 | * language.h (language_defn): Add encoding argument. | |
8076 | (LA_PRINT_STRING): Likewise. | |
8077 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
8078 | argument to language_defn. | |
8079 | * ada-lang.h (ada_printstr): Likewise. | |
8080 | * c-lang.h (c_printstr): Likewise. | |
8081 | * p-lang.h (pascal_printstr); | |
8082 | * f-lang.c (f_printstr): Likewise. | |
8083 | * m2-lang.c (m2_printstr): Likewise. | |
8084 | * objc-lang.c (objc_printstr): Likewise. | |
8085 | * p-lang.c (pascal_printstr): Likewise. | |
8086 | * scm-lang.c (scm_printstr): Likewise. | |
8087 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
8088 | encoding argument. | |
8089 | * ada-valprint.c (ada_printstr): Likewise. | |
8090 | * f-valprint.c (f_val_print): Likewise | |
8091 | * m2-valprint.c (m2_val_print): Likewise. | |
8092 | * p-valprint.c (pascal_val_print): Likewise. | |
8093 | * expprint.c (print_subexp_standard): Likewise. | |
8094 | * valprint.c (val_print_string): Likewise. | |
8095 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
8096 | (SUBDIR_PYTHON_SRCS): Likewise. | |
8097 | (py-lazy-string.o): New rule. | |
8098 | ||
1fe72117 | 8099 | 2010-01-13 Doug Evans <[email protected]> |
8eee9c5a DE |
8100 | |
8101 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
8102 | uninitialized" warning from gcc on local `tree'. | |
8103 | ||
dc146f7c VP |
8104 | 2010-01-13 Vladimir Prus <[email protected]> |
8105 | ||
8106 | Implement core awareness. | |
8107 | ||
8108 | * bcache.c (compare_ints): Remove | |
8109 | (print_percentage): Use compare_positive_ints. | |
8110 | * defs.h (compare_positive_ints): Declare. | |
8111 | * linux-nat.h (struct lin_lwp): New field core. | |
8112 | (linux_nat_core_of_thread_1): Declare. | |
8113 | * linux-nat.c (add_lwp): Init the 'core' field. | |
8114 | (linux_nat_wait_1): Record the core. | |
8115 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
8116 | (linux_nat_add_target): Register the above. | |
8117 | * linux-thread-db.c (update_thread_core): New. | |
8118 | (thread_db_find_new_threads): Update core information for | |
8119 | every thread. | |
8120 | * remote.c (struct private_thread_info): New. | |
8121 | (free_private_thread_info, demand_private_info): New. | |
8122 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
8123 | (struct thread_item, threads_parsing_context | |
8124 | (start_thread, end_thread, thread_attributes) | |
8125 | (thread_children, threads_children, threads_elements): New. | |
8126 | (remote_threads_info): Try qXfer:threads before anything | |
8127 | else. | |
8128 | (remote_protocol_packets): Register qXfer:threads. | |
8129 | (remote_open_1): Init use_osdata_threads. | |
8130 | (struct stop_reply): New field 'core'. | |
8131 | (remote_parse_stop_reply): Parse core number. | |
8132 | (process_stop_reply): Record core number. | |
8133 | (remote_xfer_partial): Handle qXfer:threads. | |
8134 | (remote_core_of_thread): New. | |
8135 | (init_remote_ops): Register remote_core_of_thread. | |
8136 | (_initialize_remote): Register qXfer:read. | |
8137 | * target.c (target_core_of_thread): New | |
8138 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
8139 | (struct target_ops): New field to_core_of_threads. | |
8140 | (target_core_of_thread): Declare. | |
8141 | * gdbthread.h (struct thread_info): New field private_dtor. | |
8142 | * thread.c (print_thread_info): Report the core. | |
8143 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
8144 | * utils.c (compare_positive_ints): New. | |
8145 | * features/threads.dtd: New. | |
8146 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
8147 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
8148 | (do_nothing, free_vector_of_osdata_items) | |
8149 | (splay_tree_int_comparator, free_splay_tree): New. | |
8150 | (print_one_inferior_data): Implemented printing of selected | |
8151 | inferiors. Collect and print cores. | |
8152 | (output_cores): New. | |
8153 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
8154 | thread groups together with --available. | |
8155 | ||
d30c5336 JK |
8156 | 2010-01-12 Jan Kratochvil <[email protected]> |
8157 | ||
8158 | * configure: Regenerate (for _STRUCTURED_PROC). | |
8159 | ||
02893727 JB |
8160 | 2010-01-12 Joel Brobecker <[email protected]> |
8161 | ||
8162 | Delete dead function. | |
8163 | * ada-lang.c (extract_string): Delete. No longer used. | |
8164 | ||
46ed2d6f JB |
8165 | 2010-01-12 Joel Brobecker <[email protected]> |
8166 | ||
8167 | Fix -Wunused warning in dec-thread.c. | |
8168 | * dec-thread.c (dec_thread_count_gdb_threads) | |
8169 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
8170 | ||
606b8d1a JB |
8171 | 2010-01-12 Joel Brobecker <[email protected]> |
8172 | ||
8173 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
8174 | ||
b4ba55a1 JB |
8175 | 2010-01-12 Joel Brobecker <[email protected]> |
8176 | ||
8177 | Add support for DW_AT_GNAT_descriptive_type. | |
8178 | * gdbtypes.h (enum type_specific_kind): New enum. | |
8179 | (struct main_type) [type_specific_field]: New component. | |
8180 | [type_specific]: Add new component "gnat_stuff". | |
8181 | (struct gnat_aux_type): New type. | |
8182 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
8183 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
8184 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
8185 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
8186 | (TYPE_SPECIFIC_FIELD): New macros. | |
8187 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
8188 | type does not hold any cplus-specific data. | |
8189 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
8190 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
8191 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
8192 | cplus-specific data. | |
8193 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
8194 | Set new component TYPE_SPECIFIC_FIELD (type). | |
8195 | (gnat_aux_default): New constant. | |
8196 | (allocate_gnat_aux_type): New function. | |
8197 | (init_type): Add initialization the type-specific stuff for | |
8198 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
8199 | (print_gnat_stuff): New function. | |
8200 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
8201 | specific data. Adjust code that prints the contents of the | |
8202 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
8203 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
8204 | the type cplus stuff for Ada types. | |
8205 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
8206 | Error out if these routines are called with an Ada type. | |
8207 | (read_structure_type, read_array_type, read_subrange_type): | |
8208 | Add call to set_descriptive_type. | |
8209 | (set_die_type): Initialize the gnat-specific data if necessary. | |
8210 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
8211 | New functions. | |
8212 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
8213 | decode_constrained_packed_array_type instead of doing a standard | |
8214 | lookup to locate a parallel type. | |
8215 | (find_parallel_type_by_descriptive_type): New function. | |
8216 | (ada_find_parallel_type_with_name): New function. | |
8217 | (ada_find_parallel_type): Reimplement using | |
8218 | ada_find_parallel_type_with_name. | |
8219 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
8220 | to check if type has a cplus stuff. | |
8221 | * linespec.c (total_number_of_methods): Likewise. | |
8222 | * mdebugread.c (new_type): Likewise. | |
8223 | ||
b0f02ee9 JK |
8224 | 2010-01-11 Jan Kratochvil <[email protected]> |
8225 | ||
8226 | * NEWS: Document the 0b binary number prefix parsing. | |
8227 | ||
b260e109 JK |
8228 | 2010-01-11 Jan Kratochvil <[email protected]> |
8229 | ||
8230 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
8231 | Describe the new return value. Return non-zero if data changed. | |
8232 | (objfile_relocate): New variable changed. Set it. Call | |
8233 | breakpoint_re_set depending on CHANGED. | |
8234 | ||
b5cfddf5 JK |
8235 | 2010-01-11 Jan Kratochvil <[email protected]> |
8236 | ||
8237 | Implement binary numbers parsing. | |
8238 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
8239 | ||
e0ae4240 JK |
8240 | 2010-01-11 Jan Kratochvil <[email protected]> |
8241 | Tristan Gingold <[email protected]> | |
8242 | ||
8243 | * solib.c (info_sharedlibrary_command): Replace | |
8244 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
8245 | objfile_has_symbols. | |
8246 | ||
6e0e5977 JB |
8247 | 2010-01-10 Joel Brobecker <[email protected]> |
8248 | ||
8249 | * NEWS: Document the improvements made to the mips-irix port. | |
8250 | ||
7348c5e1 JB |
8251 | 2010-01-09 Joel Brobecker <[email protected]> |
8252 | ||
8253 | Fix the documentation of valprint.c:value_print. | |
8254 | * valprint.c (value_print): Update the function description to | |
8255 | mention that the syntax of the output follows the current_language, | |
8256 | not necessarily C. | |
8257 | ||
567995e1 JK |
8258 | 2010-01-09 Jan Kratochvil <[email protected]> |
8259 | ||
8260 | Fix displacement of separate debug info files. | |
8261 | * objfiles.c (objfile_relocate): Rename to ... | |
8262 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
8263 | (objfile_relocate): New function. | |
8264 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
8265 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
8266 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
8267 | allocated using alloca. | |
8268 | * symfile.c (copy_section_addr_info): Remove. | |
8269 | (build_section_addr_info_from_objfile): Make it global. New variables | |
8270 | addr_bit and mask, use them. | |
8271 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
8272 | (copy_section_addr_info): Remove. | |
8273 | ||
6d8eadbd JB |
8274 | 2010-01-09 Joel Brobecker <[email protected]> |
8275 | ||
8276 | Signal unwinder for mips-irix N32. | |
8277 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
8278 | tramp-frame.h. | |
8279 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
8280 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
8281 | (SIGCONTEXT_LO_OFF): New macros. |
8282 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
8283 | (mips_irix_n32_tramp_frame): New static constant. |
8284 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
8285 | ||
27087a3d JB |
8286 | 2010-01-09 Joel Brobecker <[email protected]> |
8287 | ||
8288 | Breakpoint in shared library does not work on mips-irix. | |
8289 | * procfs.c: #include "observer.h". | |
8290 | (procfs_inferior_created): New function, moving here the code | |
8291 | which unsets the syssgi syscall-exit notifications. | |
8292 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
8293 | syscall-exit notifications. It is too early to do this here. | |
8294 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
8295 | ||
f08877ba JB |
8296 | 2010-01-09 Joel Brobecker <[email protected]> |
8297 | ||
8298 | Wrong return convention for arrays (mips-irix). | |
8299 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
8300 | 128 bits or smaller are returned the same way as structs | |
8301 | and unions of the the same size. | |
8302 | ||
e4b97d48 JB |
8303 | 2010-01-09 Joel Brobecker <[email protected]> |
8304 | ||
8305 | Cannot set the PC on mips-irix. | |
8306 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
8307 | register number, no the cooked one. | |
8308 | ||
11377e68 JB |
8309 | 2010-01-09 Joel Brobecker <[email protected]> |
8310 | ||
8311 | Error while loading core file on mips-irix. | |
8312 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
8313 | if debugging from a core file. | |
8314 | ||
b2391021 JB |
8315 | 2010-01-09 Joel Brobecker <[email protected]> |
8316 | ||
8317 | GDB hangs when attaching to process on mips-irix. | |
8318 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
8319 | attaching to a process. | |
8320 | ||
f2ec0ecf JB |
8321 | 2010-01-09 Joel Brobecker <[email protected]> |
8322 | ||
8323 | Use the correct breakpoint instruction on mips-irix. | |
8324 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
8325 | containing the correct breakpoint instruction to use on mips-irix. | |
8326 | Use it when the osabi is GDB_OSABI_IRIX. | |
8327 | ||
3c95f01c JB |
8328 | 2010-01-09 Joel Brobecker <[email protected]> |
8329 | ||
8330 | -Wunused warning in procfs.c (mips-irix only). | |
8331 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
8332 | throughout instead of using praddset and prdelset respectively. | |
8333 | ||
4b7703ad JB |
8334 | 2010-01-09 Joel Brobecker <[email protected]> |
8335 | ||
8336 | GDB crash while stepping into function. | |
8337 | * infrun.c (handle_inferior_event): Refetch the current frame | |
8338 | after handling what.main_action, in case that pointer became | |
8339 | dangling. | |
8340 | ||
12c89474 JB |
8341 | 2010-01-09 Joel Brobecker <[email protected]> |
8342 | ||
8343 | Fix build failure of solaris-hosted cross debuggers. | |
8344 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
8345 | ||
1a3fd262 | 8346 | 2010-01-09 Daniel Gutson <[email protected]> |
4c490650 JB |
8347 | |
8348 | Fix build failure on sparc-solaris. | |
8349 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
8350 | ||
75242ef4 JK |
8351 | 2010-01-08 Jan Kratochvil <[email protected]> |
8352 | ||
8353 | Move some symfile code into subroutines. | |
8354 | * symfile.h (relative_addr_info_to_section_offsets) | |
8355 | (addr_info_make_relative): New prototypes. | |
8356 | * symfile.c (default_symfile_offsets): Move a part to ... | |
8357 | (relative_addr_info_to_section_offsets): ... this new function. | |
8358 | (default_symfile_offsets): Call it. | |
8359 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
8360 | this part to ... | |
8361 | (addr_info_make_relative): ... this new function. | |
8362 | ||
268a4a75 JK |
8363 | 2010-01-08 Jan Kratochvil <[email protected]> |
8364 | ||
8365 | Add from_tty to solib_create_inferior_hook. | |
8366 | * infcmd.c (post_create_inferior): Move solib_add after | |
8367 | solib_create_inferior_hook. Pass from_tty to | |
8368 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
8369 | 0 from_tty and comment why. | |
8370 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
8371 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
8372 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
8373 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
8374 | from_tty. | |
8375 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
8376 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
8377 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
8378 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
8379 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
8380 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
8381 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
8382 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
8383 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
8384 | from_tty. | |
8385 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
8386 | solib_add. | |
8387 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
8388 | enable_break. | |
8389 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
8390 | parameter from_tty. | |
8391 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
8392 | it to ops->solib_create_inferior_hook. | |
8393 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
8394 | Move solib_add after solib_create_inferior_hook, call it now with | |
8395 | from_tty as 0. New comment there. | |
8396 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
8397 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
8398 | Likewise. | |
8399 | ||
cf00dfa7 VP |
8400 | 2010-01-08 Vladimir Prus <[email protected]> |
8401 | ||
8402 | Fix multiexec race. | |
8403 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
8404 | with events ptid, not get_current_regcache. | |
8405 | ||
f91e5ac3 JB |
8406 | 2009-01-08 Joel Brobecker <[email protected]> |
8407 | ||
8408 | GDB crash with empty executable name (MinGW). | |
8409 | * source.c (openp): Add assert that parameter string is not NULL. | |
8410 | if parameter string is an empty string, then return with a failure | |
8411 | immediately. | |
8412 | ||
92b9ce5b JB |
8413 | 2009-01-08 Joel Brobecker <[email protected]> |
8414 | ||
8415 | Get rid of support for VAX Floats. | |
8416 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
8417 | (ada_vax_float_print_function): Delete. | |
8418 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
8419 | (ada_vax_float_print_function): Delete. | |
8420 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
8421 | (ada_print_type): Remove support for VAX floats. | |
8422 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
8423 | ||
268a4a75 | 8424 | 2010-01-08 Jan Kratochvil <[email protected]> |
d24d8548 JK |
8425 | |
8426 | * stabsread.c (read_args): Handle zero arguments. | |
8427 | ||
f0f20949 JB |
8428 | 2009-01-08 Joel Brobecker <[email protected]> |
8429 | ||
8430 | Cannot find in-tree libiconv.a after reconfigure. | |
8431 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
8432 | that we can use, then cache the path to this archive. | |
8433 | * configure: Regenerate. | |
8434 | ||
6b6218c5 SS |
8435 | 2010-01-07 Stan Shebs <[email protected]> |
8436 | ||
35b1e5cc SS |
8437 | Make tracepoint operations go through target vector. |
8438 | * target.h (enum trace_find_type): New enum. | |
8439 | (struct target_ops): New fields to_trace_init, | |
8440 | to_download_tracepoint, to_download_trace_state_variable, | |
8441 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
8442 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
8443 | to_set_disconnected_tracing. | |
8444 | (target_trace_init): New macro. | |
8445 | (target_download_tracepoint): New macro. | |
8446 | (target_download_trace_state_variable): New macro. | |
8447 | (target_trace_start): New macro. | |
8448 | (target_trace_set_readonly_regions): New macro. | |
8449 | (target_get_trace_status): New macro. | |
8450 | (target_trace_stop): New macro. | |
8451 | (target_trace_find): New macro. | |
8452 | (target_get_trace_state_variable_value): New macro. | |
8453 | (target_set_disconnected_tracing): New macro. | |
8454 | * target.c (update_current_target): Inherit and set defaults for | |
8455 | tracepoint operations. | |
8456 | * tracepoint.c (default_collect): Make globally visible. | |
8457 | (target_is_remote): Remove, along with all calls. | |
8458 | (tvariables_info): Call target_get_trace_state_variable_value. | |
8459 | (remote_set_transparent_ranges): Remove. | |
8460 | (trace_start_command): Call target_trace_init, | |
8461 | target_download_tracepoint, etc. | |
8462 | (download_tracepoint): Remove. | |
8463 | (trace_stop_command): Simplify. | |
8464 | (stop_tracing): Call target_trace_stop. | |
8465 | (get_trace_status): Call target_get_trace_status. | |
8466 | (trace_status_command): Add case for targets that cannot trace. | |
8467 | (finish_tfind_command): Change to take numerical arguments, call | |
8468 | target_trace_find. | |
8469 | (trace_find_command): Update call to finish_tfind_command. | |
8470 | (trace_find_pc_command): Ditto. | |
8471 | (trace_find_tracepoint_command): Ditto. | |
8472 | (trace_find_line_command): Ditto. | |
8473 | (trace_find_range_command): Ditto. | |
8474 | (trace_find_outside_command): Ditto. | |
8475 | (set_disconnected_tracing_value): Call | |
8476 | target_set_disconnected_tracing. | |
8477 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
8478 | (trace_error): Move from tracepoint.c. | |
8479 | (remote_get_noisy_reply): Ditto. | |
8480 | (free_actions_list_cleanup_wrapper): Ditto. | |
8481 | (free_actions_list): Ditto. | |
8482 | (remote_trace_init): New function. | |
8483 | (remote_download_tracepoint): New function. | |
8484 | (remote_download_trace_state_variable): New function. | |
8485 | (remote_trace_set_readonly_regions): New function. | |
8486 | (remote_trace_start): New function. | |
8487 | (remote_get_trace_status): New function. | |
8488 | (remote_trace_stop): New function. | |
8489 | (remote_trace_find): New function. | |
8490 | (remote_download_trace_state_variable): New function. | |
8491 | (remote_set_disconnected_tracing): New function. | |
8492 | (init_remote_ops): Add tracepoint operations. | |
8493 | ||
6b6218c5 SS |
8494 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
8495 | ||
089b4803 TG |
8496 | 2010-01-07 Tristan Gingold <[email protected]> |
8497 | ||
8498 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
8499 | (symbol_file_add_separate): Don't use offsets from objfile but | |
8500 | built an addr info. | |
8501 | ||
d5551862 SS |
8502 | 2010-01-06 Stan Shebs <[email protected]> |
8503 | ||
8504 | Support disconnected tracing. | |
8505 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
8506 | * cli/cli-cmds.c (quit_command): Ditto. | |
8507 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
8508 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
8509 | (get_tracepoint_by_number_on_target): New function. | |
8510 | * remote.c (struct remote): New field disconnected_tracing. | |
8511 | (remote_disconnected_tracing_feature): New function. | |
8512 | (remote_protocol_features): Add DisconnectedTracing. | |
8513 | (struct uploaded_tp): New struct. | |
8514 | (uploaded_tps): New global. | |
8515 | (get_uploaded_tp): New function. | |
8516 | (find_matching_tracepoint): New function. | |
8517 | (remote_get_tracing_state): New function. | |
8518 | (remote_start_remote): Call it. | |
8519 | * tracepoint.c (disconnected_tracing): New global. | |
8520 | (trace_start_command): Initialize number_on_target. | |
8521 | (stop_tracing): New function, split out from... | |
8522 | (trace_stop_command): Call stop_tracing. | |
8523 | (get_trace_status): New function, split out from... | |
8524 | (trace_status_command): Call get_trace_status, add info on | |
8525 | disconnection behavior. | |
8526 | (disconnect_or_stop_tracing): New function. | |
8527 | (finish_tfind_command): Translate from number on target. | |
8528 | (trace_find_tracepoint_command): Translate to number on target. | |
8529 | (send_disconnected_tracing_value): New function. | |
8530 | (set_disconnected_tracing): New function. | |
8531 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
8532 | * NEWS: Mention disconnected tracing. | |
8533 | ||
15d123c9 TG |
8534 | 2010-01-06 Tristan Gingold <[email protected]> |
8535 | ||
8536 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
8537 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
8538 | * symfile.h (symbol_file_add_separate) | |
8539 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
8540 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
8541 | (reread_symbols): Use free_objfile_separate_debug. | |
8542 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
8543 | Adjust comment. | |
8544 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
8545 | (free_objfile_separate_debug): New prototypes. | |
8546 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
8547 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
8548 | functions. | |
8549 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
8550 | multiple separate debug objfile. | |
8551 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
8552 | debug objfiles. | |
8553 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
8554 | debug objfile. | |
8555 | (lookup_minimal_symbol_text): Ditto. | |
8556 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
8557 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
8558 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
8559 | debug objfiles. | |
8560 | ||
7a697b8d SS |
8561 | 2010-01-05 Stan Shebs <[email protected]> |
8562 | ||
8563 | Add fast tracepoints. | |
8564 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
8565 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
8566 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
8567 | * breakpoint.c (tracepoint_type): New function. | |
8568 | (ALL_TRACEPOINTS): Use it. | |
8569 | (should_be_inserted): Ditto. | |
8570 | (bpstat_check_location): Ditto. | |
8571 | (print_one_breakpoint_location): Ditto. | |
8572 | (user_settable_breakpoint): Ditto. | |
8573 | (set_breakpoint_location_function): Ditto. | |
8574 | (disable_breakpoints_in_shlibs): Ditto. | |
8575 | (delete_trace_command): Ditto. | |
8576 | (print_it_typical): Add bp_fast_tracepoint case. | |
8577 | (bpstat_what): Ditto. | |
8578 | (print_one_breakpoint_location): Ditto. | |
8579 | (allocate_bp_location): Ditto. | |
8580 | (mention): Ditto. | |
8581 | (breakpoint_re_set_one): Ditto. | |
8582 | (disable_command): Ditto. | |
8583 | (enable_command): Ditto. | |
8584 | (check_fast_tracepoint_sals): New function. | |
8585 | (break_command_really): Call it. | |
8586 | (ftrace_command): New function. | |
8587 | (_initialize_breakpoint): Add ftrace command. | |
8588 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
8589 | * gdbarch.h, gdbarch.c: Regenerate. | |
8590 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
8591 | (i386_gdbarch_init): Use it. | |
8592 | * remote.c (struct remote_state): New field fast_tracepoints. | |
8593 | (PACKET_FastTracepoints): New packet config type. | |
8594 | (remote_fast_tracepoint_feature): New function. | |
8595 | (remote_protocol_features): Add FastTracepoints. | |
8596 | (remote_supports_fast_tracepoints): New function. | |
8597 | (_initialize_remote): Add FastTracepoints. | |
8598 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
8599 | * NEWS: Mention fast tracepoints. | |
8600 | ||
737a160e JB |
8601 | 2010-01-06 Joel Brobecker <[email protected]> |
8602 | ||
8603 | * gdb-gdb.py: New file. | |
8604 | ||
ce6cca6d MS |
8605 | 2010-01-05 Michael Snyder <[email protected]> |
8606 | ||
8607 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
8608 | ||
0d15807d JK |
8609 | 2010-01-05 Jan Kratochvil <[email protected]> |
8610 | ||
8611 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
8612 | ||
7803799a UW |
8613 | 2010-01-04 Ulrich Weigand <[email protected]> |
8614 | ||
c8d5aac9 | 8615 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
8616 | and s390x-linux64. |
8617 | (s390-linux32-expedite): Define. | |
8618 | (s390-linux64-expedite): Define. | |
8619 | (s390x-linux64-expedite): Define. | |
8620 | * features/s390-acr.xml: New file. | |
8621 | * features/s390-fpr.xml: New file. | |
8622 | * features/s390-core32.xml: New file. | |
8623 | * features/s390-core64.xml: New file. | |
8624 | * features/s390x-core64.xml: New file. | |
8625 | * features/s390-linux32.xml: New file. | |
8626 | * features/s390-linux64.xml: New file. | |
8627 | * features/s390x-linux64.xml: New file. | |
8628 | * features/s390-linux32.c: New generated file. | |
8629 | * features/s390-linux64.c: New generated file. | |
8630 | * features/s390x-linux64.c: New generated file. | |
8631 | ||
8632 | * regformats/s390-linux32.dat: New generated file. | |
8633 | * regformats/s390-linux64.dat: New generated file. | |
8634 | * regformats/s390x-linux64.dat: New generated file. | |
8635 | * regformats/reg-s390.dat: Remove. | |
8636 | * regformats/reg-s390x.dat: Remove. | |
8637 | ||
8638 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
8639 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
8640 | (s390_target_wordsize): New function. | |
8641 | (s390_auxv_parse): Likewise. | |
8642 | (s390_get_hwcap): Likewise. | |
8643 | (s390_read_description): Likewise. | |
8644 | (_initialize_s390_nat): Install s390_auxv_parse and | |
8645 | s390_read_description. | |
8646 | ||
8647 | * s390-tdep.c: Include "features/s390-linux32.c", | |
8648 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
8649 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
8650 | (s390_register_call_saved): New function. | |
8651 | (s390_register_name): Remove. | |
8652 | (s390_register_type): Remove. | |
8653 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
8654 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
8655 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
8656 | (s390_pseudo_register_name): New function. | |
8657 | (s390_pseudo_register_type): New function. | |
8658 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
8659 | Handle full GPR pesudos and varying pseudo register numbers. | |
8660 | (s390_pseudo_register_write): Likewise | |
8661 | (s390x_pseudo_register_read): Remove. | |
8662 | (s390x_pseudo_register_write): Likewise. | |
8663 | (s390_register_group): Remove. | |
8664 | (s390_pseudo_register_group): New function. | |
8665 | (s390_regmap_gregset): Add GPR upper halves. | |
8666 | (s390x_regmap_gregset): Likewise. | |
8667 | (s390_regmap_fpregset): Likewise. | |
8668 | (s390_regmap_upper): New global variable. | |
8669 | (s390_upper_regset): New global variable. | |
8670 | (s390_upper_regset_sections): New global variable. | |
8671 | (s390_regset_from_core_section): Handle GPR upper halves. | |
8672 | (s390_core_read_description): New function. | |
8673 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
8674 | register information. Handle varying pseudo register numbers. | |
8675 | (s390_backchain_frame_unwind_cache): Likewise. | |
8676 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
8677 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
8678 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
8679 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
8680 | Handle varying pseudo register numbers. | |
8681 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
8682 | (s390_dwarf2_prev_register): New function. | |
8683 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
8684 | register information. Handle varying pseudo register numbers. | |
8685 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
8686 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
8687 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
8688 | (_initialize_s390_tdep): Initialize target descriptions. | |
8689 | ||
8690 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
8691 | (S390_NUM_REGS): Redefine to include upper half registers. | |
8692 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
8693 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
8694 | (tdesc_s390_linux32): Add declaration. | |
8695 | (tdesc_s390_linux64): Likewise. | |
8696 | (tdesc_s390x_linux64): Likewise. | |
8697 | ||
1b1818e4 UW |
8698 | 2010-01-04 Ulrich Weigand <[email protected]> |
8699 | ||
8700 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
8701 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
8702 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
8703 | (ppc_linux_vmx_regset_sections): Likewise. | |
8704 | (ppc_linux_fp_regset_sections): Likewise. | |
8705 | ||
8706 | * corelow.c (get_core_register_section): Constify arguments. | |
8707 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
8708 | of hard-coded platform-specific register section names. | |
8709 | ||
dcbf108f UW |
8710 | 2010-01-04 Ulrich Weigand <[email protected]> |
8711 | ||
8712 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 8713 | a register, assume the least-significant part is used. |
dcbf108f UW |
8714 | (write_pieced_value): Likewise. |
8715 | ||
704e9165 UW |
8716 | 2010-01-04 Ulrich Weigand <[email protected]> |
8717 | ||
8718 | * printcmd.c: Include "arch-utils.h". | |
8719 | (do_one_display): Re-parse expression if current architecture changed. | |
8720 | ||
c54eabfa JK |
8721 | 2010-01-03 Jan Kratochvil <[email protected]> |
8722 | Joel Brobecker <[email protected]> | |
8723 | ||
8724 | * gdbtypes.c (check_typedef): New comment on type length. | |
8725 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
8726 | comment on type length. | |
8727 | (value_primitive_field): Keep the original TYPE value, new comment. | |
8728 | ||
50cb2941 JK |
8729 | 2010-01-01 Jan Kratochvil <[email protected]> |
8730 | ||
8731 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
8732 | p_start. Change != comparisons to > and < comparisons. | |
8733 | ||
be66db07 JK |
8734 | 2010-01-01 Jan Kratochvil <[email protected]> |
8735 | ||
8736 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
8737 | ||
abd775ce JB |
8738 | 2009-01-01 Joel Brobecker <[email protected]> |
8739 | ||
8740 | Update the copyright hearder to add year 2010 for most GDB files. | |
8741 | ||
6479260d JB |
8742 | 2009-01-01 Joel Brobecker <[email protected]> |
8743 | ||
8744 | Fix build failure in inf-ptrace.c. | |
8745 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
8746 | ||
4a70f654 JB |
8747 | 2010-01-01 Joel Brobecker <[email protected]> |
8748 | ||
8749 | * top.c (print_gdb_version): Update copyright year. | |
8750 | ||
595939de | 8751 | 2010-01-01, 10 Joel Brobecker <[email protected]> |
b9ee2233 JB |
8752 | |
8753 | Fix break *FUN'address thread NUM. | |
8754 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
8755 | ||
70575d34 JB |
8756 | 2010-01-01 Joel Brobecker <[email protected]> |
8757 | ||
8758 | Fix break *FUN'address task NUM. | |
8759 | * ada-lex.l (task): New rule. | |
8760 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
8761 | been built before using it. | |
8762 | ||
e1e4d4a4 | 8763 | For older changes see ChangeLog-2009. |
c906108c SS |
8764 | \f |
8765 | Local Variables: | |
8766 | mode: change-log | |
8767 | left-margin: 8 | |
8768 | fill-column: 74 | |
8769 | version-control: never | |
57da7796 | 8770 | coding: utf-8 |
c906108c | 8771 | End: |