~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to grub-core/gdb/cstub.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
}
202
202
 
203
203
/* This function does all command procesing for interfacing to gdb.  */
204
 
void
 
204
void __attribute__ ((regparm(3)))
205
205
grub_gdb_trap (int trap_no)
206
206
{
207
 
  int sig_no;
 
207
  unsigned int sig_no;
208
208
  int stepping;
209
209
  grub_uint64_t addr;
210
210
  grub_uint64_t length;
216
216
      grub_backtrace_print_address ((void *) grub_gdb_regs[PC]);
217
217
      grub_printf ("\n");
218
218
      grub_backtrace_pointer ((void *) grub_gdb_regs[EBP]);
219
 
      grub_abort ();
 
219
      grub_fatal ("Unhandled exception");
220
220
    }
221
221
 
222
222
  sig_no = grub_gdb_trap2sig (trap_no);
264
264
        case '?':
265
265
          grub_gdb_outbuf[0] = 'S';
266
266
          grub_gdb_outbuf[1] = hexchars[sig_no >> 4];
267
 
          grub_gdb_outbuf[2] = hexchars[sig_no % 16];
 
267
          grub_gdb_outbuf[2] = hexchars[sig_no & 0xf];
268
268
          grub_gdb_outbuf[3] = 0;
269
269
          break;
270
270