a308ba81ead767d2b7fa1d5ddbde83633b44436d
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-25 Pedro Alves <palves@redhat.com>
2
3 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
4 warning text.
5
6 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9 if $fp is used as the virtual frame pointer.
10
11 2013-02-23 Alan Modra <amodra@gmail.com>
12
13 * elfread.c (elf_symtab_read): Do not use udata.p here to find
14 symbol size.
15 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
16 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
17 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
18 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
19
20 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 Code cleanup.
23 * elfread.c (build_id_bfd_get): Make the return type const.
24 (build_id_verify): Make the check parameter const.
25 (build_id_to_debug_filename): Make the build_id parameter and variable
26 data const.
27 (find_separate_debug_file_by_buildid): Make the variable build_id const.
28
29 2013-02-21 Alan Modra <amodra@gmail.com>
30
31 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
32
33 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
34
35 Add a new method 'disassemble' to gdb.Architecture class.
36 * python/py-arch.c (archpy_disassmble): Implementation of the
37 new method gdb.Architecture.disassemble.
38 (arch_object_methods): Add entry for the new method.
39
40 2013-02-20 Jiong Wang <jiwang@tilera.com>
41
42 * MAINTAINERS (Write After Approval): Add myself to the list.
43
44 2013-02-19 Pedro Alves <palves@redhat.com>
45
46 Garbage collect 'struct monitor_ops'::load_routine.
47
48 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
49 * monitor.c (monitor_load): No longer call
50 current_monitor->load_routine.
51 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
52 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
53 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
54
55 2013-02-19 Pedro Alves <palves@redhat.com>
56
57 PR gdb/15161
58
59 Harmonize with generic_load.
60
61 * monitor.c: Include "readline/readline.h".
62 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
63 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
64 long/strtol for the 'load_offset' local. Error out if no argument
65 is given or if too many arguments are given. Tilde expand the
66 passed in file name.
67
68 2013-02-19 Kai Tietz <ktietz@redhat.com>
69
70 PR gdb/15161
71 * symfile.c (load_section_data): Change type of load_offset
72 to CORE_ADDR.
73 (generic_load): User strtoulst instead of strtoul for conversion
74 of load_offset.
75
76 2013-02-19 Jiong Wang <jiwang@tilera.com>
77
78 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
79 for return address, "lr" register, saved on stack.
80 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
81 after we invoke tilegx_analyze_prologue.
82
83 2013-02-19 Jiong Wang <jiwang@tilera.com>
84
85 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
86
87 2013-02-19 Jiong Wang <jiwang@tilera.com>
88
89 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
90
91 2013-02-19 Jiong Wang <jiwang@tilera.com>
92
93 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
94 (tilegx_write_pc): New function.
95 (tilegx_cannot_reference_register): Return zero if REGNO
96 is TILEGX_FAULTNUM_REGNUM.
97 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
98 (tilegx_register_name): Add handling of "faultnum" register.
99 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
100 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
101 handling of TILEGX_FAULTNUM_REGNUM.
102 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
103
104 2013-02-19 Jiong Wang <jiwang@tilera.com>
105
106 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
107 should be aligned to 64bit.
108
109 2013-02-19 Kai Tietz <ktietz@redhat.com>
110
111 * windows-nat.c (windows_xfer_memory): Fix debug-output
112 for LLP64.
113
114 2013-02-19 Lei Liu <lei.liu2@windriver.com>
115
116 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
117 Don't check DSP register number if HAVE_DSP is not set.
118
119 2013-02-19 Alan Modra <amodra@gmail.com>
120
121 * elfread.c (struct build_id): Delete. Use struct elf_build_id
122 throughout file instead.
123 (build_id_bfd_get): Update to use new elf_tdata build_id field.
124 Don't xmalloc return value.
125 (build_id_verify): Similarly. Don't xfree.
126 (build_id_to_debug_filename): Update.
127 (find_separate_debug_file_by_buildid): Update, don't xfree.
128
129 2013-02-18 Tom Tromey <tromey@redhat.com>
130
131 PR gdb/15102:
132 * dwarf2read.c (read_subrange_type): Use result of
133 'check_typedef'.
134
135 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
136
137 * frame.c: Remove one extra white space after #include
138 directive.
139
140 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
141
142 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
143
144 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
147 and dir commands into an if block.
148
149 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
150
151 * python/py-breakpoint (struct pybp_code): Use int instead of
152 enum type_code.
153
154 2013-02-15 Pedro Alves <pedro@codesourcery.com>
155 Hafiz Abid Qadeer <abidh@codesourcery.com>
156
157 * NEWS: Mention new field "trace-file".
158 * tracepoint.c (trace_status_mi): Output "trace-file" field.
159 (tfile_open): Record the trace file's filename in the trace
160 status.
161 (tfile_files_info): Mention the name of the trace file.
162 Check the "filename" field explicitely.
163 (trace_status_command): Explicitely check "filename" field.
164 (trace_find_command): Ditto.
165 (trace_find_pc_command): Ditto.
166 (trace_find_tracepoint_command): Ditto.
167 (trace_find_line_command): Ditto.
168 (trace_find_range_command): Ditto.
169 (trace_find_outside_command): Ditto.
170 * tracepoint.h (struct trace_status) <from_file>: Rename it
171 to "filename" and make it hold the trace file's filename
172 instead of a boolean.
173 * remote.c (remote_get_trace_status): Initialize "filename"
174 field with NULL instead of 0.
175
176 2013-02-15 Yao Qi <yao@codesourcery.com>
177
178 * remote.c: Fix a typo.
179
180 2013-02-14 Pierre Muller <muller@sourceware.org>
181
182 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
183
184 2013-02-14 Pedro Alves <palves@redhat.com>
185
186 * utils.c (savestring): Don't #undef it. Move function to
187 common/common-utils.c.
188 * common/common-utils.c: Include gdb_string.h.
189 (savestring): Move here from utils.c.
190 * common/common-utils.h (savestring): Declare.
191
192 2013-02-14 Pedro Alves <palves@redhat.com>
193
194 * utils.c (savestring): Rename parameter 'size' to 'len'.
195
196 2013-02-14 Pedro Alves <palves@redhat.com>
197 Yufeng Zhang <yufeng.zhang@arm.com>
198
199 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
200 (aarch64_inferior_data, struct aarch64_inferior_data):
201 Delete.
202 (struct aarch64_process_info): New.
203 (aarch64_process_list): New global.
204 (aarch64_find_process_pid, aarch64_add_process)
205 (aarch64_process_info_get): New functions.
206 (aarch64_inferior_data_get): Delete.
207 (aarch64_process_info_get): New function.
208 (aarch64_forget_process): New function.
209 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
210 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
211 aarch64_get_debug_reg_state.
212 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
213 instead of linux_nat_iterate_watchpoint_lwps.
214 (aarch64_linux_new_fork): New function.
215 (aarch64_linux_child_post_startup_inferior): Use
216 aarch64_forget_process instead of aarch64_init_debug_reg_state.
217 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
218 (aarch64_linux_remove_hw_breakpoint)
219 (aarch64_handle_aligned_watchpoint)
220 (aarch64_handle_unaligned_watchpoint)
221 (aarch64_linux_insert_watchpoint)
222 (aarch64_linux_remove_watchpoint)
223 (aarch64_linux_stopped_data_address): Adjust to pass the current
224 process id to aarch64_debug_reg_state.
225 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
226 linux_nat_new_fork hook, and aarch64_forget_process as
227 linux_nat_forget_process hook; remove the call to
228 register_inferior_data_with_cleanup.
229
230 2013-02-14 Pedro Alves <palves@redhat.com>
231
232 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
233 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
234 lval_memory.
235
236 2013-02-14 Pedro Alves <pedro@codesourcery.com>
237 Hafiz Abid Qadeer <abidh@codesourcery.com>
238
239 * tracepoint.h (validate_trace_state_variable_name): Declare.
240 * tracepoint.c (validate_trace_state_variable_name): New.
241 (trace_variable_command): Parse the trace state variable's name
242 without using parse_expression. Do several validations.
243 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
244 trace state variable's name with parse_expression. Validate it.
245
246 2013-02-14 Yao Qi <yao@codesourcery.com>
247
248 * infcmd.c (breakpoint_proceeded): Remove it.
249
250 2013-02-14 Yao Qi <yao@codesourcery.com>
251
252 * tracepoint.c (end_actions_pseudocommand): Make it static.
253 (while_stepping_pseudocommand): Likewise.
254 * tracepoint.h (end_actions_pseudocommand): Remove the
255 declaration.
256 (while_stepping_pseudocommand): Likewise.
257
258 2013-02-14 Yao Qi <yao@codesourcery.com>
259
260 * cli/cli-decode.c (help_cmd): Remove the declaration of
261 "cmdlist".
262 (help_all): Likewise.
263
264 2013-02-13 Pedro Alves <palves@redhat.com>
265
266 * amd64-linux-nat.c (update_debug_registers_callback):
267 Update comment.
268 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
269 iterate_over_lwps.
270 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
271 i386_debug_reg_state.
272 (amd64_linux_new_fork): New function.
273 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
274 linux_nat_new_fork hook, and i386_forget_process as
275 linux_nat_forget_process hook.
276 * i386-linux-nat.c (update_debug_registers_callback):
277 Update comment.
278 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
279 iterate_over_lwps.
280 (i386_linux_prepare_to_resume): Pass the lwp's pid to
281 i386_debug_reg_state.
282 (i386_linux_new_fork): New function.
283 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
284 linux_nat_new_fork hook, and i386_forget_process as
285 linux_nat_forget_process hook.
286 * i386-nat.c (i386_init_dregs): Delete.
287 (i386_inferior_data, struct i386_inferior_data):
288 Delete.
289 (struct i386_process_info): New.
290 (i386_process_list): New global.
291 (i386_find_process_pid, i386_add_process, i386_process_info_get):
292 New functions.
293 (i386_inferior_data_get): Delete.
294 (i386_process_info_get): New function.
295 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
296 (i386_forget_process): New function.
297 (i386_cleanup_dregs): Rewrite.
298 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
299 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
300 (i386_stopped_data_address, i386_insert_hw_breakpoint)
301 (i386_remove_hw_breakpoint): Adjust to pass the current process id
302 to i386_debug_reg_state.
303 (i386_use_watchpoints): Don't register inferior data.
304 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
305 adjust comment.
306 (i386_forget_process): Declare.
307 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
308 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
309 New static globals.
310 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
311 (add_initial_lwp): New, factored out from ...
312 (add_lwp): ... this. Don't check the number of lwps before
313 calling linux_nat_new_thread.
314 (linux_nat_iterate_watchpoint_lwps): Delete.
315 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
316 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
317 forks and vforks.
318 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
319 initial lwp.
320 (linux_nat_kill, linux_nat_mourn_inferior): Call
321 linux_nat_forget_process.
322 (linux_nat_set_new_fork, linux_nat_set_forget_process)
323 (linux_nat_forget_process): New functions.
324 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
325 type.
326 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
327 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
328 types.
329 (linux_nat_set_new_fork, linux_nat_set_forget_process)
330 (linux_nat_forget_process): New declarations.
331
332 * amd64fbsd-nat.c (super_mourn_inferior): New global.
333 (amd64fbsd_mourn_inferior): New function.
334 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
335 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
336
337 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
338
339 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
340 Adding _().
341
342 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
343
344 * aarch64-linux-nat.c (debug_reg_change_callback)
345 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
346 %s and phex().
347
348 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
349
350 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
351 with LONGEST.
352
353 2013-02-13 Pedro Alves <palves@redhat.com>
354 Hafiz Abid Qadeer <abidh@codesourcery.com>
355
356 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
357
358 2013-02-12 Tom Tromey <tromey@redhat.com>
359
360 PR symtab/11464:
361 * c-exp.y (lex_one_token): Initialize other fields of yylval on
362 NAME return.
363 (classify_inner_name): Remove 'first_name' argument, add
364 'context'. Remove unused variable.
365 (yylex): Explicitly maintain the context type. Exit loop earlier
366 if NAME result is seen.
367
368 2013-02-12 Pedro Alves <palves@redhat.com>
369
370 * amd64-darwin-tdep.c: Add (C) after Copyright.
371 * cli/cli-cmds.h: Ditto.
372 * cli/cli-decode.c: Ditto.
373 * cli/cli-decode.h: Ditto.
374 * cli/cli-dump.c: Ditto.
375 * cli/cli-dump.h: Ditto.
376 * cli/cli-interp.c: Ditto.
377 * cli/cli-logging.c: Ditto.
378 * cli/cli-script.c: Ditto.
379 * cli/cli-script.h: Ditto.
380 * cli/cli-setshow.c: Ditto.
381 * cli/cli-setshow.h: Ditto.
382 * cli/cli-utils.c: Ditto.
383 * cli/cli-utils.h: Ditto.
384 * config/alpha/nm-osf3.h: Ditto.
385 * config/djgpp/djconfig.sh: Ditto.
386 * config/i386/nm-fbsd.h: Ditto.
387 * config/i386/nm-i386gnu.h: Ditto.
388 * config/nm-linux.h: Ditto.
389 * config/nm-nto.h: Ditto.
390 * config/rs6000/nm-rs6000.h: Ditto.
391 * config/sparc/nm-sol2.h: Ditto.
392 * darwin-nat-info.c: Ditto.
393 * dfp.c: Ditto.
394 * dfp.h: Ditto.
395 * gdb-demangle.h: Ditto.
396 * i386-darwin-nat.c: Ditto.
397 * i386-darwin-tdep.c: Ditto.
398 * linux-fork.h: Ditto.
399 * m32c-tdep.c: Ditto.
400 * microblaze-linux-tdep.c: Ditto.
401 * microblaze-rom.c: Ditto.
402 * microblaze-tdep.c: Ditto.
403 * microblaze-tdep.h: Ditto.
404 * mips-linux-tdep.h: Ditto.
405 * ppc-ravenscar-thread.c: Ditto.
406 * ppc-ravenscar-thread.h: Ditto.
407 * prologue-value.c: Ditto.
408 * prologue-value.h: Ditto.
409 * ravenscar-thread.c: Ditto.
410 * ravenscar-thread.h: Ditto.
411 * sparc-ravenscar-thread.c: Ditto.
412 * sparc-ravenscar-thread.h: Ditto.
413 * tilegx-linux-tdep.c: Ditto.
414 * unwind_stop_reasons.def: Ditto.
415 * windows-nat.h: Ditto.
416 * xtensa-linux-tdep.c: Ditto.
417 * xtensa-xtregs.c: Ditto.
418 * regformats/regdat.sh: Ditto.
419 * regformats/regdef.h: Ditto.
420
421 2013-02-12 Pedro Alves <palves@redhat.com>
422
423 * break-catch-sig.c: Update copyright years.
424
425 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
426
427 Add support for a destructor for ui_out data and use it to
428 provide a ui_out destructor.
429 * ui-out.h: Declare the new ui_out destructor.
430 (ui_out_impl): Add a field for data destructor in ui_out_impl.
431 * ui-out.c (default_data_destroy): Add a default data destructor
432 which does nothing.
433 (default_ui_out_impl): Set the new data_destroy field to
434 default_data_destroy
435 (uo_data_destroy): Local function which invokes the data
436 destructor if present.
437 (clear_table): Local function which clears the table data of a
438 ui_out object.
439 (ui_out_destroy): Public function which frees a ui_out object.
440 (ui_out_table_end): Use the new clear_table function.
441 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
442 NULL.
443 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
444 to NULL.
445
446 2013-02-11 Doug Evans <dje@google.com>
447
448 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
449 (printf_decfloat): New function. Broken out from ui_printf.
450 Remove unnecessary code to shift the entire format string down.
451 (printf_pointer): New function.
452 (ui_printf): Code to print C strings, wide C strings, decfloats,
453 and pointers moved to separate functions.
454
455 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
456
457 * valops.c (value_assign): Handling bitfield offset in
458 `lval_internalvar_component' case.
459
460 2013-02-08 Doug Evans <dje@google.com>
461
462 * common/format.c (parse_format_string): Fix whitespace.
463
464 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
465
466 * stack.c (return_command): Work around uninitialized variable
467 warning.
468
469 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
470
471 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
472 number of the registers from 36 to 34.
473
474 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
475
476 * NEWS: Mention new AArch64 native and target support.
477
478 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
479
480 * MAINTAINERS (Write After Approval): Add myself.
481
482 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
483 Marcus Shawcroft <marcus.shawcroft@arm.com>
484 Nigel Stephens <nigel.stephens@arm.com>
485 Yufeng Zhang <yufeng.zhang@arm.com>
486
487 * aarch64-linux-nat.c: New file.
488 * config/aarch64/linux.mh: New file.
489 * configure.host: Add AArch64.
490 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
491
492 2013-02-07 Doug Evans <dje@google.com>
493
494 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
495 disassemble command.
496
497 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
498
499 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
500 set_gdbarch_fetch_tls_load_module_address.
501
502 2013-02-06 David S. Miller <davem@davemloft.net>
503
504 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
505 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
506 * value.c (struct_return_convention): New function.
507 (using_struct_return): Implement in terms of struct_return_convention.
508 * value.h (struct_return_convention): Declare.
509 * stack.c (return_command): Allow successful overriding of the return
510 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
511
512 2013-02-06 Tom Tromey <tromey@redhat.com>
513
514 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
515 outside of TRY_CATCH.
516
517 2013-02-06 Yao Qi <yao@codesourcery.com>
518
519 * mi/mi-interp.c: Include "tracepoint.h".
520 (mi_tsv_modified): Declare.
521 (mi_tsv_created, mi_tsv_deleted): Update declaration.
522 (mi_interpreter_init): Call observer_attach_tsv_modified.
523 (mi_tsv_modified): New.
524 (mi_tsv_created, mi_tsv_deleted): Update.
525 * tracepoint.c (trace_variable_command): Call
526 observer_notify_tsv_modified if the initial value of tsv is
527 changed.
528 (delete_trace_state_variable): Call
529 observer_notify_tsv_deleted earlier.
530 (trace_variable_command): Caller update.
531 (create_tsv_from_upload): Likewise.
532 * observer.sh: Declare "struct trace_state_variable".
533
534 * NEWS: Mention the new MI notification "=tsv-modified".
535
536 2013-02-05 Doug Evans <dje@google.com>
537
538 * completer.c (location_completer): Fix typo in comment.
539
540 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * breakpoint.c (add_location_to_breakpoint): Insert the location with
543 ADDRESS sorted.
544
545 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
546
547 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
548 Refactor if statement to avoid trailing || operator.
549
550 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
551
552 * NEWS: Add PowerPC FreeBSD as a new native configuration.
553
554 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
555
556 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
557 * configure.host: Add powerpc*-*-freebsd* target.
558 * configure.tgt: Add target info for powerpc*-*-freebsd*.
559 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
560 * config/powerpc/fbsd.mh: New file.
561
562 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
563 Denys Vlasenko <dvlasenk@redhat.com>
564 Pedro Alves <palves@redhat.com>
565
566 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
567 (struct elf_internal_linux_prpsinfo): Forward declare.
568 * gdbarch.h, gdbarch.c: Regenerate.
569 * linux-tdep.c: Include `cli/cli-utils.h'.
570 (linux_fill_prpsinfo): New function.
571 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
572 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
573 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
574 depending on gdbarch pointer bitness.
575 * ppc-linux-tdep.c: Include elf-bfd.h.
576 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
577 on 32-bit.
578
579 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
580 Marcus Shawcroft <marcus.shawcroft@arm.com>
581 Nigel Stephens <nigel.stephens@arm.com>
582 Yufeng Zhang <yufeng.zhang@arm.com>
583
584 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
585
586 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
587 Marcus Shawcroft <marcus.shawcroft@arm.com>
588 Nigel Stephens <nigel.stephens@arm.com>
589 Yufeng Zhang <yufeng.zhang@arm.com>
590
591 * aarch64-newlib-tdep.c: New file.
592 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
593 aarch64*-*-elf.
594 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
595 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
596 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
597 * osabi.c (gdb_osabi_names): Add "Newlib".
598
599 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
600 Marcus Shawcroft <marcus.shawcroft@arm.com>
601 Nigel Stephens <nigel.stephens@arm.com>
602 Yufeng Zhang <yufeng.zhang@arm.com>
603
604 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
605 (ALLDEPFILES): Add aarch64-linux-tdep.c.
606 * aarch64-linux-tdep.c: New file.
607 * aarch64-linux-tdep.h: New file.
608 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
609 * configure.tgt: Add aarch64-none-linux-gnu.
610
611 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
612 Marcus Shawcroft <marcus.shawcroft@arm.com>
613 Nigel Stephens <nigel.stephens@arm.com>
614 Yufeng Zhang <yufeng.zhang@arm.com>
615
616 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
617 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
618 (ALLDEPFILES): Add aarch64-tdep.c.
619 * aarch64-tdep.c: New file.
620 * aarch64-tdep.h: New file.
621 * configure.tgt: Add AArch64.
622 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
623 (aarch64-expedite): New definition.
624 * features/aarch64-core.xml: New file.
625 * features/aarch64-fpu.xml: New file.
626 * features/aarch64-without-fpu.c: New file (generated).
627 * features/aarch64-without-fpu.xml: New file.
628 * features/aarch64.c: New file (generated).
629 * features/aarch64.xml: New file.
630 * regformats/aarch64-without-fpu.dat: New file (generated).
631 * regformats/aarch64.dat: New file (generated).
632
633 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 * contrib/expect-read1.c: New file.
636 * contrib/expect-read1.sh: New file.
637
638 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 * dwarf2read.c (file_file_name): New function with code from
641 file_full_name.
642 (file_full_name): Move most of the code to file_file_name.
643 (macro_start_file): Rename variable full_name to file_name and use
644 file_file_name for it. Add comp_dir parameter to new_macro_table.
645 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
646 macro_source_file->filename access by macro_source_fullname call.
647 * macroscope.c (_initialize_macroscope): Update the new_macro_table
648 caller.
649 * macrotab.c (struct macro_table): New field comp_dir.
650 (macro_include): New variables link_fullname and source_fullname.
651 Replace any macro_source_file->filename access by macro_source_fullname
652 call.
653 (macro_lookup_inclusion): Remove the partial filenames checking code.
654 (check_for_redefinition): New variables source_fullname and
655 found_key_fullname. Replace any macro_source_file->filename access by
656 macro_source_fullname call.
657 (macro_undef): New variables source_fullname and key_fullname. Replace
658 any macro_source_file->filename access by macro_source_fullname call.
659 (macro_lookup_definition): New variables retval and source_fullname.
660 Replace any macro_source_file->filename access by macro_source_fullname
661 call.
662 (foreach_macro): New variable key_fullname. Replace any
663 macro_source_file->filename access by macro_source_fullname call.
664 (foreach_macro_in_scope): New variable datum_fullname. Replace any
665 macro_source_file->filename access by macro_source_fullname call.
666 (new_macro_table): Add parameter comp_dir. Initialize T with it.
667 (macro_source_fullname): New function.
668 * macrotab.h (struct macro_source_file): Extent the filename field
669 comment.
670 (new_macro_table): New parameter comp_dir, add a comment for it.
671 (macro_source_fullname): new declaration.
672
673 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
676 this_real_name to outer block. Use it also for
677 compare_filenames_for_search.
678 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
679 with dw2_get_real_path for file_matcher, considering also
680 BASENAMES_MAY_DIFFER.
681 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
682
683 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
686 to the file_matcher parameter. Pass 0 to it.
687 (dwarf2_create_include_psymtab): Copy also DIRNAME.
688 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
689 NULL psymtab_to_fullname result.
690 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
691 an expected filename instead.
692 (expand_symtabs_matching_via_partial): Add basenames parameter to the
693 file_matcher parameter. Call also psymtab_to_fullname, after newly
694 considering BASENAMES_MAY_DIFFER.
695 * source.c (rewrite_source_path): Remove static.
696 * source.h (rewrite_source_path): New declaration.
697 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
698 the expand_symtabs_matching field. Comment it.
699 * symtab.c (file_matches): New function comment. Add parameter
700 basenames, implement it.
701 (search_symbols_file_matches): Add basenames parameter. Update the
702 file_matches caller.
703 (search_symbols): Match FILES also against symtab_to_fullname.
704 Optimize it for BASENAMES_MAY_DIFFER.
705
706 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
707
708 * source.c (print_source_lines_base): Print for TUI also "fullname".
709 * tui/tui-data.c (init_content_element): Change tui_locator_element
710 field to full_name.
711 * tui/tui-data.h (struct tui_locator_element): Likewise.
712 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
713 tui_update_locator_filename calls to tui_update_locator_fullname.
714 Replace symtab->filename refererence by symtab_to_fullname call.
715 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
716 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
717 field to full_name. Replace symtab->filename refererence by
718 symtab_to_fullname call.
719 (tui_show_symtab_source): Rename parameter to fullname. Change
720 tui_locator_element field to full_name.
721 * tui/tui-stack.c: Include source.h.
722 (tui_set_locator_filename): Rename the declaration to ...
723 (tui_set_locator_fullname): ... here. Rename its parameter to
724 fullname, updates its comment.
725 (tui_set_locator_info): Rename its parameter to fullname.
726 (tui_set_locator_filename): Rename the definition to ...
727 (tui_set_locator_fullname): ... here. Rename its parameter to
728 fullname, updates its comment. Change tui_locator_element field to
729 full_name.
730 (tui_set_locator_info): Rename its parameter to fullname.
731 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
732 (tui_update_locator_filename): Rename to ...
733 (tui_update_locator_fullname): ... here. Rename callee to
734 tui_set_locator_fullname.
735 (tui_show_frame_info): Replace symtab->filename refererence by
736 symtab_to_fullname call.
737 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
738 (tui_update_locator_fullname): ... here.
739 * tui/tui-winsource.c (tui_display_main): Rename the callee to
740 tui_update_locator_fullname. Replace symtab->filename refererence by
741 symtab_to_fullname call.
742 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
743 Rename the callee to tui_update_locator_fullname.
744 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
745
746 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
749 by symtab_to_filename_for_display calls.
750 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
751 (clear_command): New variable sal_fullname, initialize it. Replace
752 compare_filenames_for_search by filename_cmp with sal_fullname.
753 (say_where, update_static_tracepoint): Replace symtab->filename
754 refererences by symtab_to_filename_for_display calls.
755 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
756 Likewise.
757 * dwarf2read.c: Include source.h.
758 (fixup_go_packaging): Replace symtab->filename refererences by
759 symtab_to_filename_for_display calls.
760 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
761 Replace symtab->filename refererences by symtab_to_filename_for_display
762 calls.
763 (create_sals_line_offset, convert_linespec_to_sals): New variable
764 fullname, initialize it, replace symtab->filename reference by the
765 variable.
766 * linux-fork.c: Include source.h.
767 (info_checkpoints_command): Replace symtab->filename refererences by
768 symtab_to_filename_for_display calls.
769 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
770 by symtab_to_filename_for_display calls.
771 * mdebugread.c: Include source.h.
772 (psymtab_to_symtab_1): Replace symtab->filename refererences by
773 symtab_to_filename_for_display calls.
774 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
775 (mi_cmd_file_list_exec_source_files): Likewise.
776 * printcmd.c: Include source.h.
777 (build_address_symbolic): Replace symtab->filename refererences by
778 symtab_to_filename_for_display calls.
779 * psymtab.c (partial_map_symtabs_matching_filename)
780 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
781 with psymtab_to_fullname.
782 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
783 by symtab_to_filename_for_display calls.
784 (stpy_get_filename): New variable filename, initialize it, use instead
785 of symtab->filename refererences.
786 (salpy_str): Make variable filename const char *. Replace
787 symtab->filename refererences by symtab_to_filename_for_display calls.
788 * skip.c: Include source.h and filenames.h.
789 (skip_file_command): Remove const from the symtab variable. Replace
790 symtab->filename refererences by symtab_to_fullname call.
791 (function_name_is_marked_for_skip): New variables searched_for_fullname
792 and fullname. Use them to search also with symtab's fullname.
793 * source.c (find_source_lines): Replace symtab->filename refererences
794 by symtab_to_filename_for_display calls.
795 (print_source_lines_base): New variable filename, use it instead of
796 symtab->filename. Replace symtab->filename refererences by
797 symtab_to_filename_for_display calls.
798 (line_info, forward_search_command): Replace symtab->filename
799 refererences by symtab_to_filename_for_display calls.
800 (reverse_search_command): Replace symtab->filename refererences by
801 symtab_to_filename_for_display calls. New variable filename for it.
802 * stack.c (frame_info): Likewise.
803 * symmisc.c: Include source.h.
804 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
805 (maintenance_info_symtabs): Replace symtab->filename refererences by
806 symtab_to_filename_for_display calls.
807 * symtab.c (iterate_over_some_symtabs): Call
808 compare_filenames_for_search also with symtab_to_fullname.
809 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
810 symtab->filename refererences by symtab_to_filename_for_display calls.
811 (find_line_symtab): Replace symtab->filename refererences by
812 symtab_to_filename_for_display calls.
813 (file_matches): Replace filename_cmp by compare_filenames_for_search.
814 (print_symbol_info): Make the last parameter const char *. New
815 variable s_filename. Use it in the function.
816 (symtab_symbol_info): Make the last_filename variable const char *.
817 Replace symtab->filename refererences by symtab_to_filename_for_display
818 calls.
819 (rbreak_command): New variable fullname. Use it. Replace
820 symtab->filename refererence by symtab_to_filename_for_display call.
821 * tracepoint.c (set_traceframe_context, trace_find_line_command)
822 (print_one_static_tracepoint_marker): Replace symtab->filename
823 refererences by symtab_to_filename_for_display calls.
824 * tui/tui-source.c (tui_set_source_content): New variables filename and
825 s_filename. Replace symtab->filename refererences by this variable.
826 Replace other symtab->filename refererences by
827 symtab_to_filename_for_display calls.
828
829 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
830 Jan Kratochvil <jan.kratochvil@redhat.com>
831
832 Add a new variable that controls a way in which filenames are
833 displayed.
834 * NEWS (set filename-display): New entry.
835 * source.c (filename_display_basename, filename_display_relative)
836 (filename_display_absolute, filename_display_kind_names)
837 (filename_display_string, show_filename_display_string)
838 (symtab_to_filename_for_display): New.
839 (_initialize_source): Added initialization of 'filename-display'
840 variable.
841 * source.h (symtab_to_filename_for_display): Added declaration.
842 * stack.c (print_frame): Added new variable and calling of a new
843 function and condition with this variable. Changed third argument of
844 calling of a function.
845
846 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
847
848 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
849 Rename field reference filename to fullname.
850 * tui/tui-data.h (struct tui_source_info): Rename field filename to
851 fullname. New comment for it.
852 * tui/tui-source.c (tui_set_source_content): Rename field reference
853 filename to fullname. Initialize field by symtab_to_fullname now.
854 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
855 reference filename to fullname. Use symtab_to_fullname during
856 comparison.
857
858 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
859
860 Code cleanup.
861 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
862 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
863 filename to fullname. Rename variable this_name to this_fullname.
864 Lowercase FILENAME_CMP call.
865 (dw2_find_symbol_file): New comment for the returned string.
866 (dwarf2_gdb_index_functions): Rename the function to
867 dw2_expand_symtabs_with_fullname.
868 * psymtab.c (read_psymtabs_with_filename): Rename to ...
869 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
870 fullname.
871 (psym_functions): Rename the function to read_psymtabs_with_fullname.
872 * symfile.h (struct quick_symbol_functions): Rename field
873 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
874 parameter filename to fullname. Document returned string meaning for
875 find_symbol_file.
876 * symtab.c (find_line_symtab): Rename the called function to
877 expand_symtabs_with_fullname.
878
879 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 Code cleanup.
882 * breakpoint.c (clear_command): Remove variable is_abs, unify the
883 call of filename_cmp with compare_filenames_for_search.
884 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
885 is_abs, unify the call of FILENAME_CMP with
886 compare_filenames_for_search. New gdb_asserts for real_path and name.
887 Unify the call of compare_filenames_for_search with FILENAME_CMP.
888 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
889 * symfile.h (struct quick_symbol_functions): Extend the comment for
890 map_symtabs_matching_filename.
891 * symtab.c (compare_filenames_for_search): Remove the function comment
892 relative path requirement. Handle absolute filenames, with a comment.
893 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
894 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
895 real_path and name. Unify the call of compare_filenames_for_search
896 with FILENAME_CMP.
897 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
898
899 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 Code cleanup.
902 * breakpoint.c (print_breakpoint_location): Replace bp_location field
903 source_file references by symtab field references. Remove variables
904 sal and fullname.
905 (momentary_breakpoint_from_master, add_location_to_breakpoint):
906 (clear_command, say_where): Replace bp_location field source_file
907 references by symtab field references.
908 (bp_location_dtor): Remove the source_file reference.
909 (update_static_tracepoint): Replace bp_location field source_file
910 references by symtab field references.
911 (breakpoint_free_objfile): New function.
912 * breakpoint.h (struct bp_location): Extend the comment for line_number.
913 Replace the field source_file by field symtab, extend its comment.
914 (breakpoint_free_objfile): New declaration.
915 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
916 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
917 field source_file references by symtab field references.
918
919 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
920
921 Replace xfullpath calls by gdb_realpath calls.
922 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
923 function comment.
924 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
925 Remove it from the iterate_over_some_symtabs call.
926 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
927 Remove it from the dw2_map_expand_apply calls, remove a block handling
928 it.
929 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
930 Remove it from the iterate_over_some_symtabs call.
931 (partial_map_symtabs_matching_filename): Remove parameter full_path.
932 Remove it from the partial_map_expand_apply calls, remove a block
933 handling it. Drop gdb_realpath call and cleanups from the real_path
934 handling.
935 * source.c (openp): Drop the comment part about xfullpath. Replace
936 xfullpath calls by gdb_realpath calls.
937 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
938 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
939 from method map_symtabs_matching_filename and its comment.
940 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
941 gdb_realpath call.
942 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
943 remove it also from the function comment, remove a block handling it.
944 Drop gdb_realpath call and cleanups from the real_path handling.
945 (iterate_over_symtabs): Drop variable full_path and its use.
946 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
947 * utils.c (xfullpath): Remove.
948 * utils.h (xfullpath): Remove.
949
950 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
951
952 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
953 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
954 (ALLDEPFILES): Add ppc64-tdep.c.
955 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
956 ppc64-tdep.o to gdb_target_obs.
957 * ppc64-tdep.h: New file.
958 * ppc64-tdep.c: New file.
959 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
960 ppc-linux-tdep.c to here.
961 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
962 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
963 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
964 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
965 from ppc-linux-tdep.c to here.
966 (ppc64_convert_from_func_ptr_addr): Rename from
967 ppc64_linux_convert_from_func_ptr_addr to
968 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
969 here.
970 * rs6000-tdep.c:
971 (read_insn): Move from ppc-linux-tdep.c to here.
972 (insns_match_pattern, insn_d_field, insn_ds_field): Move
973 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
974 * ppc-linux-tdep.c: Include ppc64-tdep.h.
975 Removed above functions.
976 (ppc_linux_init_abi): Adjust.
977
978 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
979
980 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
981
982 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
983
984 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
985
986 2013-02-01 Pedro Alves <palves@redhat.com>
987
988 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
989 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
990
991 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 * elfread.c (elf_symfile_read): Limit separate debug info additions to
994 files with no separate debug info.
995 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
996 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
997 only for files with no separate debug info.
998
999 2013-01-31 Tom Tromey <tromey@redhat.com>
1000
1001 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1002 change type.
1003 (struct jit_program_space_data): Rename from jit_inferior_data.
1004 Update comments.
1005 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1006 Change return type. Attach data to program space.
1007 (jit_program_space_data_cleanup): Rename from
1008 jit_inferior_data_cleanup; change argument type.
1009 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1010 change type.
1011 (jit_register_code): Update.
1012 (jit_update_inferior_cache): Remove.
1013 (jit_breakpoint_deleted): Get jit data from the location's program
1014 space.
1015 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1016 'ps_data', change type.
1017 (jit_inferior_init, jit_breakpoint_re_set_internal)
1018 (jit_event_handler): Update.
1019 (free_objfile_data): Get data from objfile's program space.
1020 (_initialize_jit): Update.
1021
1022 2013-01-31 Tom Tromey <tromey@redhat.com>
1023
1024 PR gdb/13987:
1025 * jit.c (struct jit_inferior_data) <cached_code_address,
1026 jit_breakpoint>: New fields.
1027 (jit_breakpoint_re_set_internal): Fix logging. Only create
1028 breakpoint if cached address has changed.
1029 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1030 functions.
1031 (_initialize_jit): Register breakpoint deleted observer.
1032
1033 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1034
1035 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1036 (save_infcall_suspend_state): Ifdef out unused inf.
1037 (restore_infcall_suspend_state): Ifdef out unused inf.
1038 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1039 (jit_frame_sniffer): Remove unused inf_data.
1040
1041 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1042
1043 * c-exp.y (classify_inner_name): Remove unused type.
1044 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1045 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1046 need_escape.
1047 (c_get_string): Remove unused kind.
1048 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1049
1050 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1051
1052 * charset.c (intermediate_encoding): Remove unused i.
1053 * completer.c (signal_completer): Remove unused i.
1054 * continuations.c (discard_my_continuations_1): Remove unused
1055 continuation_ptr.
1056 * corelow.c (core_close): Remove unuseD name.
1057 (get_core_siginfo): Remove unused pid.
1058 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1059 i, cps.
1060 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1061 (loclist_describe_location): Remove unused first.
1062 * event-top.c (command_line_handler): Remove unused got_eof.
1063 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1064 (resize_section_table): Remove unused old_value.
1065 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1066 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1067 * i386-tdep.c (i386_process_record): Remove unused rex.
1068 * infcmd.c (get_return_value): Remove unused uiout.
1069 * jv-lang.c (type_from_class): Remove unused is_array.
1070 * jv-valprint.c (java_val_print): Remove unused i.
1071 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1072 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1073 * m2-typeprint.c (m2_print_type): Remove unused code.
1074 * macroexp.c (get_character_constant): Remove unused body_start.
1075 (macro_stringify): Remove unused result.
1076 * objc-lang.c (find_methods): Remove unused gdbarch.
1077 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1078 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1079 * stack.c (print_frame_args): Remove unused summary.
1080 * thread.c (thread_apply_command): Remove unused p.
1081 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1082 * valops.c (search_struct_method): Remove unused skip.
1083 * valprint.c (generic_val_print): Remove unused byte_order.
1084 * varobj.c (varobj_update): Remove unused changed.
1085 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1086 (alias_command): Remove unused c.
1087 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1088 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1089 format.
1090 (mi_cmd_data_write_memory): Remove unused word_format.
1091 (mi_cmd_data_write_memory_bytes): Remove unused r.
1092 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1093 p_start, p_end.
1094 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1095 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1096 line_width.
1097
1098 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1099
1100 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1101 * symtab.c (iterate_over_symtabs): Remove unused s.
1102 (find_pc_sect_symtab): Remove unused pspAce.
1103 (find_pc_sect_line): Remove unused alt_symtab.
1104 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1105 (completion_list_add_name): Remove unused newsize.
1106
1107 2013-01-31 Tom Tromey <tromey@redhat.com>
1108
1109 PR c++/14998:
1110 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1111 TYPE_CODE_FUNC.
1112
1113 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1114
1115 * target.c (target_read_string): Remove unused origlen.
1116
1117 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1118
1119 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1120 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1121 * ax-general.c (ax_print): Remove unused is_float.
1122 * blockframe.c (block_innermost_frame): Remove unused start, end.
1123 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1124
1125 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1126
1127 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1128 (svr4_read_so_list): Remove unused lmo.
1129 * solib-target.c (solib_target_relocate_section_addresses): Remove
1130 unused flags.
1131
1132 2013-01-30 Tom Tromey <tromey@redhat.com>
1133
1134 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1135
1136 2013-01-30 Tom Tromey <tromey@redhat.com>
1137
1138 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1139 * utils.c (gnu_debuglink_crc32): Remove.
1140 * utils.h (gnu_debuglink_crc32): Don't declare.
1141
1142 2013-01-30 Tom Tromey <tromey@redhat.com>
1143
1144 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1145 (read_structure_type, read_enumeration_type): Remove cast.
1146
1147 2013-01-30 Tom Tromey <tromey@redhat.com>
1148
1149 * dwarf2read.c (read_namespace_type): Remove cast.
1150 (read_typedef): Likewise.
1151
1152 2013-01-29 Tom Tromey <tromey@redhat.com>
1153
1154 * dwarf2read.c (free_dwo_file): Remove assert.
1155
1156 2013-01-29 Tom Tromey <tromey@redhat.com>
1157
1158 * value.c (deprecated_set_value_modifiable): Remove.
1159 * value.h (deprecated_set_value_modifiable): Remove.
1160
1161 2013-01-28 Doug Evans <dje@google.com>
1162
1163 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1164 to addresses from dwo files.
1165
1166 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1167
1168 * valops.c (find_overload_match): Remove unused argument 'lax'.
1169 * value.h: Remove unused argument 'lax' from the declaration of
1170 find_overload_match.
1171 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1172 to find_overload_match.
1173 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1174 argument to find_overload_match.
1175
1176 2013-01-25 Tom Tromey <tromey@redhat.com>
1177
1178 * dwarf2read.c (processing_has_namespace_info): Remove.
1179 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1180 (process_die, read_func_scope, dwarf2_start_symtab)
1181 (new_symbol_full): Update.
1182
1183 2013-01-25 Tom Tromey <tromey@redhat.com>
1184
1185 * cp-namespace.c (cp_set_block_scope): Remove.
1186 * cp-support.h (cp_set_block_scope): Remove.
1187 * dbxread.c: Include block.h.
1188 (cp_set_block_scope): New function.
1189 (process_one_symbol): Update.
1190 * dwarf2read.c (read_func_scope): Use block_set_scope.
1191
1192 2013-01-25 Pedro Alves <palves@redhat.com>
1193
1194 * remote.c (add_current_inferior_and_thread): Tweak comment.
1195
1196 2013-01-25 Tom Tromey <tromey@redhat.com>
1197
1198 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1199 (cp_add_using_directive): Add 'copy_names' argument.
1200 * cp-support.h (cp_add_using_directive): Update.
1201 (struct using_direct) <import_src, import_dest, alias,
1202 declaration>: Now const.
1203 * dwarf2read.c (read_import_statement): Use obconcat.
1204 Don't copy names passed to cp_add_using_directive.
1205
1206 2013-01-25 Tom Tromey <tromey@redhat.com>
1207
1208 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1209
1210 2013-01-25 Pedro Alves <palves@redhat.com>
1211
1212 * remote.c (stop_reply_extract_thread): New.
1213 (add_current_inferior_and_thread): New parameter 'wait_status'.
1214 Handle it.
1215 (remote_start_remote): Pass wait status to
1216 add_current_inferior_and_thread.
1217 (extended_remote_run): Update comment.
1218 (extended_remote_create_inferior_1): Pass wait status to
1219 add_current_inferior_and_thread.
1220
1221 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1222 Ulrich Weigand <uweigand@de.ibm.com>
1223
1224 * valarith.c (value_vector_widen): New function for replicating a
1225 scalar into a vector.
1226 (value_binop): Use value_vector_widen to widen scalar to vector
1227 rather than casting, this better matches gcc C behaviour.
1228 * valops.c (value_casst): Update logic for casting between vector
1229 types, and for casting from scalar to vector, try to match gcc C
1230 behaviour.
1231 * value.h (value_vector_widen): Declare.
1232 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1233 function, handle special case for casting scalar to vector.
1234 (opencl_relop): Use opencl_value_cast.
1235 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1236 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1237 in order to use opencl_value_cast.
1238
1239 2013-01-25 Yao Qi <yao@codesourcery.com>
1240
1241 * event-loop.c: Include "queue.h".
1242 (gdb_event_p): New typedef.
1243 (DECLARE_QUEUE_P): Use.
1244 (DEFINE_QUEUE_P): Use.
1245 (async_queue_event): Remove.
1246 (gdb_event_xfree): New.
1247 (initialize_event_loop): New.
1248 (process_event): Use QUEUE macros.
1249 (event_queue): Remove.
1250 (gdb_wait_for_event): Caller update.
1251 (check_async_event_handlers): Likewise.
1252 (poll_timers): Likewise.
1253 * event-loop.h (initialize_event_loop): Declare.
1254 * event-loop.c (gdb_event_xfree): New.
1255 * top.c (gdb_init): Call initialize_event_loop.
1256
1257 2013-01-25 Yao Qi <yao@codesourcery.com>
1258
1259 * event-loop.c (async_queue_event): Remove one parameter
1260 'position'. Remove code handling 'position' == TAIL.
1261 (gdb_wait_for_event): Caller update.
1262 (check_async_event_handlers): Caller update.
1263 (poll_timers): Caller update.
1264 * event-loop.h (enum queue_position): Remove.
1265
1266 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1267
1268 * MAINTAINERS: Update my email.
1269
1270 2013-01-25 Yao Qi <yao@codesourcery.com>
1271
1272 * main.c (print_gdb_help): Remove "--epoch" from the help
1273 message.
1274
1275 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1276
1277 * symtab.c (skip_prologue_using_sal): Consider a file
1278 change the same as an increased line number
1279
1280 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1281
1282 * MAINTAINERS (Write After Approval): Add myself to the list.
1283
1284 2013-01-24 Tom Tromey <tromey@redhat.com>
1285
1286 * ada-lang.h (ada_decode_symbol): Make return type const.
1287 * ada-lang.c (ada_decode_symbol): Likewise.
1288
1289 2013-01-23 Doug Evans <dje@google.com>
1290
1291 * linespec.c (find_linespec_symbols): Make static.
1292
1293 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1294
1295 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1296 type on float conversion for complex type.
1297
1298 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1299
1300 Add a new class gdb.Architecture which exposes GDB's
1301 internal representation of architecture via GDB Python API.
1302 * Makefile.in: Add entries corresponding to the new file
1303 python/py-arch.c.
1304 * NEWS (Python Scripting): Add entries for the new class
1305 gdb.Architecture and the new method gdb.Frame.architecture.
1306 * python/py-arch.c: Implement gdb.Architecture class.
1307 * python/py-frame.c (frapy_arch): Implement the method
1308 gdb.Frame.architecture().
1309 (frame_object_methods): Add 'architecture' to the method table.
1310 * python/python-internal.h: Add declarations of new utility
1311 functions.
1312 * python/python.c (_initialize_python): Initialize
1313 gdb.Architecture class.
1314
1315 2013-01-23 Doug Evans <dje@google.com>
1316
1317 Work around binutils/15021.
1318 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1319 type_unit_group out of union s. All uses updated.
1320 (read_index_from_section): Watch for index version 8.
1321 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1322 an imported symtab.
1323 (write_psymtabs_to_index): Increment version number to 8.
1324
1325 2013-01-22 Pedro Alves <palves@redhat.com>
1326
1327 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1328 user-visible.
1329
1330 2013-01-22 Pedro Alves <palves@redhat.com>
1331
1332 * annotate.c (annotate_breakpoints_changed): Rename to ...
1333 (annotate_breakpoints_invalid): ... this. Make static.
1334 (breakpoint_changed): Adjust.
1335 (_initialize_annotate): Always install the observers. Install a
1336 "breakpoint_created" observer.
1337 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1338 * breakpoint.c (set_breakpoint_condition)
1339 (breakpoint_set_commands, do_map_commands_command)
1340 (init_raw_breakpoint, clear_command, set_ignore_count)
1341 (enable_breakpoint_disp): No longer call
1342 annotate_breakpoints_changed.
1343
1344 2013-01-22 Pedro Alves <palves@redhat.com>
1345
1346 * annotate.c: Include "inferior.h".
1347 (frames_invalid_emitted)
1348 (breakpoints_invalid_emitted): New globals.
1349 (async_background_execution_p): New function.
1350 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1351 emitting the annotation if it has already been emitted.
1352 (annotate_display_prompt): New function.
1353 * annotate.h (annotate_display_prompt): New declaration.
1354 * event-top.c: Include annotate.h.
1355 (display_gdb_prompt): Call annotate_display_prompt.
1356
1357 2013-01-22 Pedro Alves <palves@redhat.com>
1358
1359 * annotate.c (ignore_count_changed): Delete.
1360 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1361 (annotate_ignore_count_change): Delete.
1362 (annotate_stopped): Don't emit a delayed breakpoints-changed
1363 annotation.
1364 * annotate.h (annotate_ignore_count_change): Delete.
1365 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1366 annotate_ignore_count_change.
1367
1368 2013-01-22 Tom Tromey <tromey@redhat.com>
1369
1370 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1371 require_rvalue for a register location.
1372
1373 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1374
1375 * breakpoint.c (print_one_breakpoint_location): Add MI
1376 field 'thread-groups' when printing a breakpoint.
1377 (output_thread_groups): New function.
1378
1379 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1380
1381 * python/lib/gdb/commands/explore.py
1382 (CompoundExplorer.explore_expr): Correct the name of a method
1383 being invoked.
1384 (ExploreTypeCommand.invoke): Add a missing 'return'.
1385
1386 2013-01-21 Tom Tromey <tromey@redhat.com>
1387
1388 * gdb_obstack.h (obconcat): Move declaration here, from...
1389 * symfile.h (obconcat): ... here.
1390 * gdb_obstack.c: New file.
1391 (obconcat): Move from...
1392 * symfile.c (obconcat): ... here.
1393 * Makefile.in (SFILES): Add gdb_obstack.c.
1394 (COMMON_OBS): Add gdb_obstack.o.
1395
1396 2013-01-21 Tom Tromey <tromey@redhat.com>
1397
1398 * symfile.h (obsavestring): Don't declare.
1399 * symfile.c (obsavestring): Remove.
1400 * ada-exp.y: Use obstack_copy0, not obsavestring.
1401 * ada-lang.c: Use obstack_copy0, not obsavestring.
1402 * coffread.c: Use obstack_copy0, not obsavestring.
1403 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1404 * dbxread.c: Use obstack_copy0, not obsavestring.
1405 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1406 * jit.c: Use obstack_copy0, not obsavestring.
1407 * mdebugread.c: Use obstack_copy0, not obsavestring.
1408 * psymtab.c: Use obstack_copy0, not obsavestring.
1409 * stabsread.c: Use obstack_copy0, not obsavestring.
1410 * xcoffread.c: Use obstack_copy0, not obsavestring.
1411
1412 2013-01-21 Tom Tromey <tromey@redhat.com>
1413
1414 * dwarf2read.c (fixup_go_packaging): Save package name
1415 on objfile obstack.
1416 * gdbtypes.c (init_type): Don't copy name.
1417
1418 2013-01-21 Tom Tromey <tromey@redhat.com>
1419
1420 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1421 const.
1422 (struct attribute) <u.str>: Now const.
1423 (struct fnfieldlist) <name>: Now const.
1424 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1425 (partial_die_parent_scope): Make return type const.
1426 (partial_die_full_name, add_partial_symbol): Update.
1427 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1428 'name' const.
1429 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1430 (read_file_scope, read_func_scope, dwarf2_add_field)
1431 (dwarf2_add_member_fn, read_structure_type)
1432 (process_enumeration_scope, read_array_type, read_module_type)
1433 (read_base_type, read_subrange_type): Update.
1434 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1435 (new_symbol_full, guess_full_die_structure_name): Update.
1436 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1437 (dwarf2_name): Return const type.
1438 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1439 const.
1440
1441 2013-01-21 Tom Tromey <tromey@redhat.com>
1442
1443 * gdbtypes.c (init_type): Make 'name' const.
1444 * gdbtypes.h (init_type): Update.
1445
1446 2013-01-21 Tom Tromey <tromey@redhat.com>
1447
1448 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1449 (start_symtab): Make 'name' and 'dirname' const. Use
1450 set_last_source_file.
1451 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1452 (last_source_file): Define. Now static.
1453 (set_last_source_file, get_last_source_file): New functions.
1454 * buildsym.h (last_source_file): Don't declare.
1455 (start_symtab): Update.
1456 (set_last_source_file, get_last_source_file): Declare.
1457 * coffread.c (complete_symtab): Use set_last_source_file.
1458 (coff_end_symtab): Likewise.
1459 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1460 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1461 set_last_source_file.
1462 (process_one_symbol): Use get_last_source_file.
1463 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1464 (psymtab_to_symtab_1): Use get_last_source_file.
1465 * xcoffread.c (process_linenos): Use get_last_source_file.
1466 (complete_symtab): Use set_last_source_file.
1467 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1468 (scan_xcoff_symtab): Use set_last_source_file.
1469
1470 2013-01-21 Tom Tromey <tromey@redhat.com>
1471
1472 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1473 (symbol_set_names): Remove casts. Handle field const-ness.
1474
1475 2013-01-21 Tom Tromey <tromey@redhat.com>
1476
1477 * dwarf2read.c (new_symbol_full): Remove cast.
1478 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1479 * symtab.h (symbol_set_demangled_name): Update.
1480
1481 2013-01-21 Tom Tromey <tromey@redhat.com>
1482
1483 * main.c (captured_main): Call bfd_init.
1484
1485 2013-01-21 Tom Tromey <tromey@redhat.com>
1486
1487 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1488 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1489 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1490 * NEWS: Update.
1491
1492 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1495
1496 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1497
1498 Fix gdb.fortran/common-block.exp crash in PIE mode.
1499 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1500 LOC_COMMON_BLOCK.
1501 * f-valprint.c (info_common_command_for_block): Expect
1502 LOC_COMMON_BLOCK in gdb_assert.
1503 * symtab.h (struct general_symbol_info): Update comment for the
1504 common_block member.
1505 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1506 (enum address_class): New member LOC_COMMON_BLOCK.
1507
1508 2013-01-18 David Blaikie <dblaikie@gmail.com>
1509
1510 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1511
1512 2013-01-18 Tom Tromey <tromey@redhat.com>
1513
1514 PR c++/14999:
1515 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1516 Call require_rvalue.
1517
1518 2013-01-18 Yao Qi <yao@codesourcery.com>
1519
1520 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1521 (dbx_read_symtab): New declaration.
1522 (dbx_psymtab_to_symtab): Delete.
1523 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1524 Rename parameter PST to SELF. Exchanged two parameters.
1525 (start_psymtab): Caller update.
1526 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1527 (dwarf2_read_symtab): New declaration.
1528 (dwarf2_psymtab_to_symtab): Delete.
1529 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1530 Rename parameter PST to SELF. Exchanged two parameters.
1531 (create_partial_symtab): Caller update.
1532 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1533 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1534 Rename parameter PST to SELF. Exchanged two parameters.
1535 (parse_partial_symbols, new_psymtab): Caller update.
1536 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1537 two parameters.
1538 * psymtab.c (psymtab_to_symtab): Caller update.
1539 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1540 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1541 Rename parameter PST to SELF. Exchanged two parameters.
1542 (xcoff_start_psymtab): Caller update.
1543
1544 2013-01-18 Yao Qi <yao@codesourcery.com>
1545
1546 * infrun.c (proceed): Rename local variable 'oneproc' to
1547 'force_step'.
1548
1549 2013-01-17 Doug Evans <dje@google.com>
1550
1551 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1552 (dw2_build_type_unit_groups): Delete. All uses updated.
1553
1554 * symtab.h (struct symbol_search): Add comment.
1555
1556 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1557
1558 * symtab.c (compare_filenames_for_search): New comment for
1559 HAS_DRIVE_SPEC.
1560
1561 2013-01-17 Tom Tromey <tromey@redhat.com>
1562
1563 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1564
1565 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1568 initialize it by existing make_cleanup. Call new do_cleanups.
1569
1570 2013-01-17 Tom Tromey <tromey@redhat.com>
1571
1572 * cp-abi.c (cp_abi_completer): New function.
1573 (_initialize_cp_abi): Set completer for "set cp-abi".
1574
1575 2013-01-17 Tom Tromey <tromey@redhat.com>
1576
1577 * mem-break.c: Remove obsolete comment.
1578 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1579
1580 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1581
1582 * jit.c (jit_reader_load_command): Interpret the jit reader name
1583 as an absolute path if it begins with a forward slash.
1584
1585 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1586
1587 PR gdb/14550
1588
1589 * jit.c (finalize_symtab): Ensure that only the global block has a
1590 NULL superblock.
1591
1592 2013-01-17 Pedro Alves <palves@redhat.com>
1593
1594 * acinclude.m4: Include ../config/plugins.m4,
1595 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1596 * Makefile.in (aclocal_m4_deps): Update.
1597 * aclocal.m4: Renegerate.
1598
1599 2013-01-16 Doug Evans <dje@google.com>
1600
1601 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1602
1603 2013-01-16 Pedro Alves <palves@redhat.com>
1604 Tom Tromey <tromey@redhat.com>
1605
1606 PR cli/7221:
1607 * NEWS: Add "catch signal".
1608 * breakpoint.c (base_breakpoint_ops): No longer static.
1609 (bpstat_explains_signal): New function.
1610 (init_catchpoint): No longer static.
1611 (base_breakpoint_explains_signal): New function.
1612 (base_breakpoint_ops): Initialize new field.
1613 * breakpoint.h (enum bpstat_signal_value): New.
1614 (struct breakpoint_ops) <explains_signal>: New field.
1615 (bpstat_explains_signal): Remove macro, declare as function.
1616 (base_breakpoint_ops, init_catchpoint): Declare.
1617 * break-catch-sig.c: New file.
1618 * inferior.h (signal_catch_update): Declare.
1619 * infrun.c (signal_catch): New global.
1620 (handle_syscall_event): Update for change to
1621 bpstat_explains_signal.
1622 (handle_inferior_event): Likewise. Always handle random signals
1623 via bpstats.
1624 (signal_cache_update): Check signal_catch.
1625 (signal_catch_update): New function.
1626 (_initialize_infrun): Initialize signal_catch.
1627 * Makefile.in (SFILES): Add break-catch-sig.c.
1628 (COMMON_OBS): Add break-catch-sig.o.
1629
1630 2013-01-16 Tom Tromey <tromey@redhat.com>
1631
1632 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1633 (print_one_catch_solib, print_one_catch_syscall)
1634 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1635 "catch-type".
1636
1637 2013-01-16 Yao Qi <yao@codesourcery.com>
1638
1639 * printcmd.c (current_display_number): Make it static.
1640
1641 2013-01-16 Yao Qi <yao@codesourcery.com>
1642
1643 * infcmd.c (step_once): Don't check '!single_inst' as it was
1644 checked before.
1645
1646 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1649
1650 2013-01-14 Tom Tromey <tromey@redhat.com>
1651
1652 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1653 set command.
1654 * command.h (add_setshow_string_noescape_cmd): Update.
1655 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1656 (complete_set_gnutarget): New function.
1657 (_initialize_core): Set the "set gnutarget" completer.
1658
1659 2013-01-14 Tom Tromey <tromey@redhat.com>
1660
1661 PR symtab/14442:
1662 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1663 (c_type_print_modifier): Likewise.
1664 * dwarf2read.c (read_tag_restrict_type): New function.
1665 (read_type_die_1): Handle DW_TAG_restrict_type.
1666 * gdbtypes.c (make_restrict_type): New function.
1667 (recursive_dump_type): Handle TYPE_RESTRICT.
1668 * gdbtypes.h (enum type_flag_values): Renumber.
1669 (enum type_instance_flag_value): Add
1670 TYPE_INSTANCE_FLAG_RESTRICT.
1671 (TYPE_RESTRICT): New macro.
1672 (make_restrict_type): Declare.
1673
1674 2013-01-14 Tom Tromey <tromey@redhat.com>
1675
1676 PR symtab/14931:
1677 * psymtab.c (struct psymtab_state): New.
1678 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1679 functions.
1680 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1681 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1682
1683 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1684 Pedro Alves <palves@redhat.com>
1685
1686 PR remote/14786
1687
1688 * remote.c (remote_threads_info): Make a copy of the reply from
1689 qfThreadInfo and use that instead of rs->buf.
1690
1691 2013-01-14 Yao Qi <yao@codesourcery.com>
1692
1693 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1694 (dbx_psymtab_to_symtab): Likewise.
1695 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1696 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1697 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1698
1699 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1700
1701 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1702 make_cleanup_restore_current_language. Call set_language. Move
1703 OLD_CHAIN and INNER_CHAIN cleanups.
1704 * utils.c (do_restore_current_language)
1705 (make_cleanup_restore_current_language): New functions.
1706 * utils.h (make_cleanup_restore_current_language): New declaration.
1707
1708 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1711 non-existing files.
1712
1713 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1714 non-existing files if FILENAME is already absolute.
1715
1716 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1717
1718 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1719 fputs_filtered. Append trailing newline.
1720
1721 2013-01-11 Yao Qi <yao@codesourcery.com>
1722 Stan Shebs <stan@codesourcery.com>
1723
1724 * psymtab.c (init_psymbol_list): Clarify the comment.
1725
1726 2013-01-11 Yao Qi <yao@codesourcery.com>
1727
1728 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1729 (update_dprintf_command_list): Assert that 'printf_line' is
1730 non-null. Remove condition check.
1731
1732 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 Code cleanup.
1735 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1736 type const char *.
1737 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1738 const char *.
1739 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1740
1741 2013-01-09 Anthony Green <green@moxielogic.com>
1742
1743 * cp-abi.c (cplus_print_vtable): Don't return value from void
1744 function.
1745 * ada-lang.c (re_set_catch_assert): Ditto.
1746
1747 2013-01-09 Doug Evans <dje@google.com>
1748
1749 * symfile.h (quick_symbol_functions): Delete member
1750 pre_expand_symtabs_matching. All uses removed.
1751 * dwarf2read.c (dw2_lookup_symbol): Implement.
1752 (dw2_do_expand_symtabs_matching): Delete.
1753 (dw2_pre_expand_symtabs_matching): Delete.
1754 (struct dw2_symtab_iterator): New type.
1755 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1756 (dw2_expand_symtabs_for_function): Rewrite.
1757 (dwarf2_gdb_index_functions): Update.
1758 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1759 (psym_functions): Update.
1760
1761 2013-01-09 Tom Tromey <tromey@redhat.com>
1762
1763 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1764 * configure: Rebuild.
1765 * configure.ac: Add somread.o to the build if BFD has SOM
1766 support.
1767 * somread.c: Include som/aout.h, not syms.h.
1768 (som_symtab_read): Use som_external_symbol_dictionary_record.
1769 Unpack records manually.
1770 (_initialize_somread): Declare.
1771
1772 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1773
1774 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1775 Cast return_address to 64bits.
1776
1777 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1778
1779 * printcmd.c: Remove define of function output_command.
1780 * tracepoint.c: Remove extern of function output_command.
1781 * valprint.h: (output_command): New extern.
1782
1783 2013-01-07 Tom Tromey <tromey@redhat.com>
1784
1785 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1786 Remove.
1787 (objc_language_defn): Use c_printchar, c_printstr,
1788 c_emit_char.
1789
1790 2013-01-07 Tom Tromey <tromey@redhat.com>
1791
1792 PR cli/7719:
1793 * NEWS: Update.
1794 * ada-valprint.c (printstr, print_field_values): Remove
1795 "inspect_it" code.
1796 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1797 code.
1798 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1799 code.
1800 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1801 * main.c (captured_main): Remove "epoch" argument.
1802 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1803 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1804 * p-valprint.c (pascal_object_print_value_fields): Remove
1805 "inspect_it" code.
1806 * printcmd.c (print_command_1): Remove 'inspect' argument.
1807 (print_command, call_command): Update.
1808 (inspect_command): Remove.
1809 (_initialize_printcmd): Make "inspect" an alias for "print".
1810 * top.c (epoch_interface): Remove.
1811 * top.h (epoch_interface): Remove.
1812 * valprint.c (user_print_options): Update.
1813 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1814 * valprint.h (struct value_print_options) <inspect_it>: Remove
1815 field.
1816
1817 2013-01-04 Tom Tromey <tromey@redhat.com>
1818
1819 * valprint.h (read_string): Add 'extern'.
1820
1821 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1822
1823 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1824 used to decide whether to define darwin_read_dyld_info or not.
1825
1826 2013-01-03 Pierre Muller <muller@sourceware.org>
1827
1828 * main.c (relocate_gdb_directory): Avoid calling stat function
1829 if DIR is empty.
1830
1831 2013-01-03 Yao Qi <yao@codesourcery.com>
1832
1833 * psymtab.c (fixup_psymbol_section): Update declaration.
1834 (fixup_psymbol_section): Remove code returning value.
1835
1836 2013-01-03 Yao Qi <yao@codesourcery.com>
1837
1838 * symtab.h: Remove some out of date comments.
1839 (enum exception_event_kind): Move it ...
1840 * breakpoint.c: ... here.
1841
1842 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1843
1844 PR gdb/14405
1845 * darwin-nat.c (darwin_read_dyld_info): Only build if
1846 TASK_DYLD_INFO_COUNT is defined.
1847 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1848 TASK_DYLD_INFO_COUNT is defined.
1849
1850 2013-01-02 Tom Tromey <tromey@redhat.com>
1851
1852 * symfile.h (struct ecoff_debug_hack): Remove.
1853 * objfiles.c: Don't include mdebugread.h.
1854
1855 2013-01-02 Tom Tromey <tromey@redhat.com>
1856
1857 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1858 * configure.ac: Check for Mach-O support in BFD. Update
1859 CONFIG_OBS.
1860 * configure: Rebuild.
1861
1862 2013-01-02 Tom Tromey <tromey@redhat.com>
1863
1864 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1865 * configure.ac: Use GDB_AC_CHECK_BFD.
1866 * configure: Rebuild.
1867
1868 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1869
1870 * MAINTAINERS: Update my email.
1871
1872 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1873
1874 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1875
1876 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1877
1878 * rs6000-nat.c (bss_data_overlap): New function.
1879 (vmap_symtab): Use it to adjust the .bss section's offset.
1880
1881 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1882
1883 Update year range in copyright notice of all files.
1884
1885 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1886
1887 * top.c (print_gdb_version): Update copyright year.
1888
1889 For older changes see ChangeLog-2012.
1890 \f
1891 Local Variables:
1892 mode: change-log
1893 left-margin: 8
1894 fill-column: 74
1895 version-control: never
1896 coding: utf-8
1897 End:
This page took 0.072241 seconds and 3 git commands to generate.