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